/* ------------------------------------------------------------------
   css/design.css — header layouts and switches from the admin's Design
   tab. Every rule here waits for an attribute on <html> that js/boot.js
   sets from settings.design.htmlAttrs (built by lib/design.js), so with
   no saved design this file changes nothing.

     data-header="centered"     name centred above the menu
     data-header="minimal"      a slimmer header without the tagline
     data-tagline="off"         hide the line under the name
     data-theme-toggle="off"    hide the light/dark button

   Layout only: the menu's items belong to the Pages tab (js/site.js),
   so nothing here depends on how many there are or what they say.
   Phones keep the compact header in every layout; the centred and
   minimal variants apply from 1001px, where style.css's own phone
   header ends.
   ------------------------------------------------------------------ */

@media (min-width: 1001px) {
    html[data-header="centered"] .site-header {
        height: auto;
        padding-top: 1rem;
    }
    html[data-header="centered"] .nav-wrap {
        grid-template-columns: 1fr auto 1fr;
        grid-template-areas:
            ".    brand tools"
            "menu menu  menu";
        row-gap: 0.25rem;
        height: auto;
    }
    html[data-header="centered"] .nav-left {
        grid-area: brand;
        justify-content: center;
    }
    html[data-header="centered"] .brand-lockup {
        align-items: center;
        text-align: center;
    }
    html[data-header="centered"] .nav-right {
        grid-area: tools;
        justify-self: end;
    }
    html[data-header="centered"] .nav-center { grid-area: menu; }
    /* A long menu wraps onto a second centred row instead of running off
       the edge. */
    html[data-header="centered"] .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    html[data-header="centered"] .nav-links li { height: 52px; }

    html[data-header="minimal"] { --header-h: 64px; }
    html[data-header="minimal"] .brand-text { font-size: clamp(17px, 1.5vw, 21px); }
    html[data-header="minimal"] .nav-links a { font-size: 14px; }
}

html[data-header="minimal"] .site-header .brand-secondary,
html[data-tagline="off"] .site-header .brand-secondary { display: none; }

/* By id: the language button shares the .theme-toggle class. */
html[data-theme-toggle="off"] #themeToggle { display: none; }
