@media (min-width: 768px) {
header nav img {
    max-height: 50px !important;
    width: auto !important;
}


/* ============================================================
   2. HERO / BANNER
   ============================================================ */

header.cover {
    min-height: 40vh !important;
    height: auto !important;

    display: grid !important;

    position: relative !important;

    box-sizing: border-box;
}


/*
   The dark overlay occupies the entire hero.
*/
header.cover > .bg-black-60 {
    grid-area: 1 / 1;

    width: 100% !important;

    min-height: 100% !important;
    height: auto !important;

    box-sizing: border-box;

    display: flex !important;
    flex-direction: column !important;
}


/*
   Keep the navigation and hero content above the overlay.
*/
header.cover > .bg-black-60 > * {
    position: relative;
}


/* ============================================================
   3. HERO CONTENT
   ============================================================ */

header.cover .tc {
    width: 100% !important;

    box-sizing: border-box;

    padding: 2rem 1rem !important;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}

header.cover .tc,
header.cover .tc-l {
    text-align: center !important;
}

header.cover .tc h1,
header.cover .tc h2,
header.cover .tc-l h1,
header.cover .tc-l h2 {
    text-align: center !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* ============================================================
   4. MAIN CONTENT
   ============================================================ */

main > article {
    margin-top: 0 !important;

    padding-top: 2rem !important;
}


/* ============================================================
   5. FIXED NAVIGATION
   ============================================================ */

nav[role="navigation"] {
    position: fixed !important;

    top: 0;

    width: 100%;

    z-index: 9999;

    background-color: rgba(0, 0, 0, 0.8) !important;

    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}
}


/* ============================================================
   6. HERO TITLE FONT
   ============================================================ */

/*
   The theme renders this page's hero title as a <div>, not an
   <h1>/<h2> (see themes/ananke/layouts/_partials/page-header.html),
   so it never picked up the sitewide "header h1" title styling
   from css/index.css. Target it directly so it matches the
   homepage hero: avenir, bold weight, drop shadow.

   Intentionally placed outside the 768px media query above so it
   also applies on mobile.
*/
header.cover div.f2.fw2.lh-title {
    font-family: 'avenir next', avenir, sans-serif;

    font-size: clamp(2rem, 5vw, 4.5rem);

    font-weight: 600 !important;

    text-shadow:
        2px 2px 0px rgba(0,0,0,0.8),
        4px 4px 0px rgba(0,0,0,0.6),
        8px 8px 15px rgba(0,0,0,0.5) !important;

    transition: transform 0.3s ease;

    max-width: 900px;

    width: 100%;

    margin-inline: auto;
}