/* Consistent, restrained heading scale for all internal WordPress pages. */
body.page:not(.home) main h1,
body.page:not(.home) h1.wp-block-post-title,
body.page:not(.home) .wp-block-post-title {
    font-size: clamp(26px, 2.5vw, 34px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em !important;
}

body.page:not(.home) main h2 {
    font-size: clamp(20px, 2vw, 26px) !important;
    line-height: 1.28 !important;
    letter-spacing: -0.018em !important;
}

/*
 * Document page layout hard-fix.
 * The custom document template renders <main.doc-hub> directly under .wp-site-blocks,
 * unlike the Accreditation page which is wrapped by WordPress' constrained group.
 * Force the outer main to span the site canvas, then center the inner 1160px shell.
 */
body.page-id-34 .wp-site-blocks > main.doc-hub {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

body.page-id-34 .wp-site-blocks > main.doc-hub > .doc-shell {
    display: block !important;
    width: min(1160px, calc(100% - 44px)) !important;
    max-width: 1160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

body.page-id-34 .doc-hero,
body.page-id-34 .doc-toolbar,
body.page-id-34 .doc-controls,
body.page-id-34 .doc-table-wrap,
body.page-id-34 .doc-meta,
body.page-id-34 .doc-links {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Document table typography: improve readability without changing the settled layout. */
body.page-id-34 .doc-table-head {
    font-size: 12.5px !important;
    letter-spacing: .07em !important;
}

body.page-id-34 .doc-table-head span {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

body.page-id-34 .doc-item summary > span {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

body.page-id-34 .doc-no {
    font-size: 13px !important;
}

body.page-id-34 .doc-info small {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
}

body.page-id-34 .doc-info strong {
    font-size: 15.5px !important;
    line-height: 1.38 !important;
}

body.page-id-34 .doc-info em {
    font-size: 11.8px !important;
    line-height: 1.4 !important;
}

body.page-id-34 .doc-category {
    font-size: 10.8px !important;
    padding: 6px 10px !important;
}

body.page-id-34 .doc-year {
    font-size: 12.5px !important;
}

body.page-id-34 .doc-plus {
    font-size: 18px !important;
}

@media (max-width: 680px) {
    body.page:not(.home) main h1,
    body.page:not(.home) h1.wp-block-post-title,
    body.page:not(.home) .wp-block-post-title {
        font-size: 27px !important;
        line-height: 1.2 !important;
    }

    body.page:not(.home) main h2 {
        font-size: 21px !important;
    }

    body.page-id-34 .wp-site-blocks > main.doc-hub > .doc-shell {
        width: calc(100% - 28px) !important;
    }

    body.page-id-34 .doc-table-head {
        font-size: 11.5px !important;
    }

    body.page-id-34 .doc-info strong {
        font-size: 14.5px !important;
    }

    body.page-id-34 .doc-info small {
        font-size: 10px !important;
    }

    body.page-id-34 .doc-info em,
    body.page-id-34 .doc-year {
        font-size: 11.5px !important;
    }
}


/* Document page refinements requested after layout stabilization. */
body.page-id-34 .wp-site-blocks > main.doc-hub {
    padding-top: 26px !important;
}

body.page-id-34 .doc-hero {
    display: none !important;
}

body.page-id-34 .doc-links-top {
    margin-top: 0 !important;
    margin-bottom: 26px !important;
}

/* Draw the preview icon with CSS so the plus is perfectly centered. */
body.page-id-34 .doc-plus {
    position: relative !important;
    display: block !important;
    align-self: center !important;
    justify-self: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transform-origin: center !important;
}

body.page-id-34 .doc-plus::before,
body.page-id-34 .doc-plus::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    border-radius: 999px;
    background: #8b001f;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

body.page-id-34 .doc-plus::before {
    width: 12px;
    height: 1.5px;
}

body.page-id-34 .doc-plus::after {
    width: 1.5px;
    height: 12px;
}

body.page-id-34 .doc-item[open] .doc-plus {
    transform: rotate(45deg) !important;
}

@media (max-width: 680px) {
    body.page-id-34 .wp-site-blocks > main.doc-hub {
        padding-top: 18px !important;
    }

    body.page-id-34 .doc-links-top {
        margin-bottom: 20px !important;
    }
}


/* Document quick-link cards: stronger clickable affordance. */
body.page-id-34 .doc-links-top {
    gap: 14px !important;
}

body.page-id-34 .doc-links-top a {
    position: relative !important;
    min-height: 78px !important;
    padding: 18px 20px !important;
    border: 1px solid #e5d9dd !important;
    border-radius: 17px !important;
    background: linear-gradient(145deg, #ffffff 0%, #fffafb 100%) !important;
    box-shadow: 0 6px 18px rgba(74,0,20,.035) !important;
    cursor: pointer !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease !important;
}

body.page-id-34 .doc-links-top a strong {
    color: #172033 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

body.page-id-34 .doc-links-top a > span {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #f7eaee !important;
    color: #8b001f !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    transition: transform .22s ease, background-color .22s ease, color .22s ease !important;
}

body.page-id-34 .doc-links-top a:hover,
body.page-id-34 .doc-links-top a:focus-visible {
    transform: translateY(-3px) !important;
    border-color: #cfa7b1 !important;
    background: #fff7f9 !important;
    box-shadow: 0 14px 28px rgba(74,0,20,.08) !important;
    outline: none !important;
}

body.page-id-34 .doc-links-top a:hover > span,
body.page-id-34 .doc-links-top a:focus-visible > span {
    transform: translate(2px,-1px) !important;
    background: #8b001f !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    body.page-id-34 .doc-links-top a {
        min-height: 70px !important;
        padding: 16px 17px !important;
    }
    body.page-id-34 .doc-links-top a strong {
        font-size: 14px !important;
    }
}


/* Document table column alignment after public URL/root migration.
 * Give the action control a real track and prevent cell padding from overflowing grid columns. */
body.page-id-34 .doc-table-head,
body.page-id-34 .doc-item summary {
    grid-template-columns: 58px minmax(0, 1fr) 132px 92px 64px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body.page-id-34 .doc-table-head > span,
body.page-id-34 .doc-item summary > span {
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.page-id-34 .doc-table-head > span:nth-child(3),
body.page-id-34 .doc-table-head > span:nth-child(4),
body.page-id-34 .doc-item summary > span:nth-child(3),
body.page-id-34 .doc-item summary > span:nth-child(4) {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

body.page-id-34 .doc-table-head > span:nth-child(5),
body.page-id-34 .doc-item summary > span:nth-child(5) {
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
}

body.page-id-34 .doc-category,
body.page-id-34 .doc-year {
    justify-self: start !important;
}

body.page-id-34 .doc-plus {
    justify-self: center !important;
    align-self: center !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    body.page-id-34 .doc-table-head,
    body.page-id-34 .doc-item summary {
        min-width: 760px !important;
        grid-template-columns: 58px minmax(360px, 1fr) 132px 92px 64px !important;
    }
}
