/* Shared editorial reading system for HND's detailed service pages. */
.hnd-editorial-page {
    --hnd-navy: #242841;
    --hnd-red: #e3121a;
    --hnd-ink: #444856;
    --hnd-muted: #656a79;
    --hnd-line: #d9dce3;
    --hnd-soft: #f4f5f7;
}

.hnd-editorial-page .intro-section {
    padding: 64px 40px 58px;
}

.hnd-editorial-page .intro-inner,
.hnd-editorial-page .tabs-container {
    max-width: 1180px;
}

.hnd-editorial-page .intro-title {
    max-width: 920px;
    margin-bottom: 22px;
}

.hnd-editorial-page .intro-inner .intro-copy {
    max-width: 1010px;
    font-size: .96rem;
    line-height: 1.9;
}

.hnd-scanline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 38px;
    border-top: 2px solid var(--hnd-navy);
    border-bottom: 1px solid var(--hnd-line);
    background: var(--hnd-soft);
}

.hnd-scanline article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 15px;
    min-width: 0;
    padding: 24px 25px;
}

.hnd-scanline article + article {
    border-left: 1px solid var(--hnd-line);
}

.hnd-scanline__index {
    padding-top: 2px;
    color: var(--hnd-red);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .8px;
}

.hnd-scanline h3 {
    margin: 0 0 7px;
    color: var(--hnd-navy);
    font-size: .9rem;
    line-height: 1.4;
    letter-spacing: 0;
}

.hnd-scanline p,
.hnd-editorial-page .intro-inner .hnd-scanline p {
    margin: 0;
    color: var(--hnd-muted);
    font-size: .78rem;
    font-style: normal;
    line-height: 1.68;
}

.hnd-editorial-page:not(.academic-compass-page) .tabs-section {
    padding: 68px 0 76px;
    border-top: 1px solid #e3e5ea;
    background: var(--hnd-soft);
}

.hnd-editorial-page:not(.academic-compass-page) .tabs-container {
    padding: 0 40px;
}

.hnd-editorial-page:not(.academic-compass-page) .tabs-heading {
    margin-bottom: 32px;
}

.hnd-editorial-page:not(.academic-compass-page) .tabs-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.hnd-editorial-page:not(.academic-compass-page) .tabs-nav .tab-btn {
    min-width: 0;
    min-height: 76px;
    padding: 18px 17px;
    border: 1px solid #d5d8df;
    border-top: 4px solid #c9ccd4;
    border-radius: 3px;
    background: #fff;
    color: var(--hnd-navy);
    line-height: 1.45;
    text-align: left;
}

.hnd-editorial-page:not(.academic-compass-page) .tabs-nav .tab-btn:hover,
.hnd-editorial-page:not(.academic-compass-page) .tabs-nav .tab-btn:focus-visible {
    border-top-color: var(--hnd-red);
    background: #fff;
    box-shadow: 0 8px 24px rgba(36, 40, 65, .09);
    outline: none;
}

.hnd-editorial-page:not(.academic-compass-page) .tabs-nav .tab-btn.active {
    border-color: var(--hnd-navy);
    border-top-color: var(--hnd-red);
    background: var(--hnd-navy);
    color: #fff;
    box-shadow: 0 10px 26px rgba(36, 40, 65, .14);
}

.hnd-editorial-page:not(.academic-compass-page) .tabs-content,
.hnd-editorial-page:not(.academic-compass-page) .tabs-panels {
    padding: 42px 42px 36px;
    border: 1px solid #dfe2e8;
    border-top: 3px solid var(--hnd-navy);
    background: #fff;
}

.hnd-editorial-page:not(.academic-compass-page) .tab-title,
.hnd-editorial-page:not(.academic-compass-page) .focus-panel-title,
.hnd-editorial-page:not(.academic-compass-page) .cvp-panel-heading h3 {
    font-size: 1.48rem;
    line-height: 1.38;
}

.hnd-editorial-page:not(.academic-compass-page) .comparison-table th,
.hnd-editorial-page:not(.academic-compass-page) .application-table th,
.hnd-editorial-page:not(.academic-compass-page) .evidence-table th {
    border-bottom-color: var(--hnd-navy);
    background: var(--hnd-navy);
    color: #fff;
}

@media (min-width: 601px) {
    .hnd-editorial-page:not(.academic-compass-page) .comparison-table tbody tr:nth-child(even) td,
    .hnd-editorial-page:not(.academic-compass-page) .application-table tbody tr:nth-child(even) td,
    .hnd-editorial-page:not(.academic-compass-page) .evidence-table tbody tr:nth-child(even) td {
        background: #f7f8fa;
    }
}

.hnd-editorial-page:not(.academic-compass-page) .system-item,
.hnd-editorial-page:not(.academic-compass-page) .readiness-item,
.hnd-editorial-page:not(.academic-compass-page) .experience-item,
.hnd-editorial-page:not(.academic-compass-page) .tracking-item,
.hnd-editorial-page:not(.academic-compass-page) .application-item,
.hnd-editorial-page:not(.academic-compass-page) .application-system,
.hnd-editorial-page:not(.academic-compass-page) .responsibility-item,
.hnd-editorial-page:not(.academic-compass-page) .priority-grid article,
.hnd-editorial-page:not(.academic-compass-page) .focus-detail-grid article,
.hnd-editorial-page:not(.academic-compass-page) .curriculum-grid article {
    border-top-color: var(--hnd-red);
}

.hnd-editorial-page:not(.academic-compass-page) .page-cta-strip {
    margin-top: 42px;
    padding: 28px 30px;
    border: 0;
    border-top: 4px solid var(--hnd-red);
    background: var(--hnd-navy);
}

.hnd-editorial-page:not(.academic-compass-page) .page-cta-strip h3 {
    color: #fff;
}

.hnd-editorial-page:not(.academic-compass-page) .page-cta-strip p {
    color: rgba(255, 255, 255, .72);
}

.hnd-editorial-page:not(.academic-compass-page) .page-cta-strip > a {
    border: 1px solid var(--hnd-red);
    background: var(--hnd-red);
}

.hnd-editorial-page:not(.academic-compass-page) .page-cta-strip > a:hover,
.hnd-editorial-page:not(.academic-compass-page) .page-cta-strip > a:focus-visible {
    border-color: #fff;
    background: #fff;
    color: var(--hnd-navy);
    outline: none;
}

.academic-compass-page .compass-intro .hnd-scanline {
    margin-top: 34px;
}

.academic-compass-page .compass-principle {
    margin-top: 0;
    border-top: 0;
}

.academic-compass-page .horizon-grid article,
.academic-compass-page .compass-tabs .compass-tab,
.academic-compass-page .output-list {
    box-shadow: 0 8px 24px rgba(36, 40, 65, .055);
}

.academic-compass-page .compass-output-section {
    border-top: 1px solid #e0e2e7;
    border-bottom: 1px solid #e0e2e7;
}

@media (max-width: 900px) {
    .hnd-scanline {
        grid-template-columns: 1fr;
    }

    .hnd-scanline article + article {
        border-top: 1px solid var(--hnd-line);
        border-left: 0;
    }

    .hnd-editorial-page:not(.academic-compass-page) .tabs-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hnd-editorial-page .intro-section {
        padding: 46px 20px 42px;
    }

    .hnd-editorial-page .intro-title {
        font-size: 1.45rem;
    }

    .hnd-editorial-page .intro-inner .intro-copy {
        font-size: .86rem;
        line-height: 1.8;
    }

    .hnd-scanline {
        margin-top: 28px;
    }

    .hnd-scanline article {
        padding: 20px 18px;
    }

    .hnd-editorial-page:not(.academic-compass-page) .tabs-section {
        padding: 48px 0 56px;
    }

    .hnd-editorial-page:not(.academic-compass-page) .tabs-container {
        padding: 0 20px;
    }

    .hnd-editorial-page:not(.academic-compass-page) .tabs-nav .tab-btn {
        min-height: 66px;
        padding: 15px 13px;
        text-align: left;
    }

    .hnd-editorial-page:not(.academic-compass-page) .tabs-content,
    .hnd-editorial-page:not(.academic-compass-page) .tabs-panels {
        padding: 28px 22px 26px;
    }

    .hnd-editorial-page:not(.academic-compass-page) .page-cta-strip {
        padding: 25px 22px;
    }
}

@media (max-width: 520px) {
    .hnd-editorial-page:not(.academic-compass-page) .tabs-nav {
        grid-template-columns: 1fr;
    }

    .hnd-editorial-page:not(.academic-compass-page) .tabs-nav .tab-btn {
        min-height: 0;
    }

    .hnd-scanline article {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hnd-editorial-page .tab-btn,
    .hnd-editorial-page .page-cta-strip > a {
        transition: none;
    }
}
