/*
 * Shared chrome for the secondary pages (handbook, resources).
 * Loaded after css/index.css and css/lang-switcher.css.
 */

/* ------------------------------------------------ header (same as index.html) */
header .header-links[aria-current="page"] {
    color: #000;
    font-weight: 700;
}

/* index.js is not loaded on these pages, so page.js opens the drawer with a class */
@media not all and (min-width: 1024px) {
    header .collapsible-header.is-open {
        width: min(320px, 80vw);
        opacity: 1;
    }

    header .header-links[aria-current="page"] {
        color: #fff;
    }

    header #collapse-btn.is-open {
        color: #fff;
    }
}

/* -------------------------------------------------------------------- hero */
.page-hero {
    max-width: 880px;
    margin: 0 auto;
    padding: 7rem 5% 1.5rem; /* top space = absolutely positioned 60px header */
    text-align: center;
}

.page-kicker {
    margin: 0 0 0.75rem;
    color: #4b4b4b;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* mirrors the hero title on index.html: Montserrat, semibold, uppercase */
.page-title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

@media (max-width: 575px) {
    .page-title {
        font-size: 2rem;
    }
}

.page-subtitle {
    margin: 0.75rem 0 0;
    color: #374151; /* same grey as tw-text-gray-700 */
    font-size: 1.25rem;
}

.page-desc {
    max-width: 720px;
    margin: 1.75rem auto 0;
    color: #374151;
    line-height: 1.7;
}

.page-desc p {
    margin: 0 0 1rem;
}

@media not all and (min-width: 1024px) {
    .page-title {
        font-size: 2.25rem;
        line-height: 1.3;
    }
}
