/* ============================================================================
   NATIONAL CADET CORPS GHANA — Design System
   Palette drawn from the NCCG crest & the Ghana tricolour:
     ink     — the crest's black band / lettering
     red     — the crest's red band
     gold    — the crest's gold eagles & stars
     green   — the crest's green band
     brass   — the crest's bronze/leopard band
   Type: a condensed display face (parade-banner, stencilled feel) for
   headings, paired with a clean grotesque for body copy and data.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink:        #16160F;
    --ink-soft:   #2B2B22;
    --parchment:  #F7F3E6;
    --parchment-dim: #EFE9D8;
    --white:      #FFFFFF;
    --red:        #C8102E;
    --red-dark:   #9C0C23;
    --gold:       #D8A61F;
    --gold-bright:#F2C230;
    --green:      #046A38;
    --green-dark: #034D28;
    --brass:      #9C7A3C;
    --line:       #E1D9C2;
    --text-dim:   #5B5847;

    --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius: 6px;
    --shadow: 0 4px 18px rgba(22,22,15,0.10);
    --shadow-lg: 0 12px 32px rgba(22,22,15,0.16);
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--parchment);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
    margin: 0 0 0.5em;
    color: var(--ink);
}
h1 { font-weight: 800; }
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- chevron / ribbon stripe motif (the page's signature texture) -------- */
.chevron-stripe {
    background-image: repeating-linear-gradient(
        -45deg,
        var(--gold) 0px, var(--gold) 10px,
        var(--red) 10px, var(--red) 20px,
        var(--green) 20px, var(--green) 30px
    );
    height: 6px;
    width: 100%;
}

/* ---- utility top bar ------------------------------------------------------ */
.utility-bar {
    background: var(--ink);
    color: var(--parchment-dim);
    font-size: 12.5px;
}
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.utility-bar a { opacity: 0.9; }
.utility-bar a:hover { opacity: 1; text-decoration: underline; }
.utility-bar .ub-links { display: flex; gap: 18px; }
.utility-bar .ub-links > * + * { margin-left: 18px; } /* gap fallback for older renderers */

/* ---- header ---------------------------------------------------------------- */
.site-header {
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 84px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: 56px; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-text strong { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; letter-spacing: 0.01em; }
.brand .brand-text span { font-size: 11.5px; letter-spacing: 0.14em; color: var(--red); font-weight: 600; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > * + * { margin-left: 26px; } /* gap fallback for older renderers */
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); padding: 6px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--red); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---- buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: 14px;
    padding: 11px 20px; border-radius: var(--radius); border: 2px solid transparent;
    cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--parchment); }
.btn-outline-light { background: transparent; border-color: rgba(247,243,230,0.6); color: var(--parchment); }
.btn-outline-light:hover { background: var(--parchment); color: var(--ink); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- hero ------------------------------------------------------------------ */
.hero {
    background: var(--ink);
    color: var(--parchment);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute; top: 0; right: 0; bottom: 0; width: 42%;
    background-image: repeating-linear-gradient(
        -45deg, var(--gold) 0 14px, var(--red) 14px 28px, var(--green) 28px 42px, var(--ink) 42px 56px
    );
    opacity: 0.16;
    -webkit-mask-image: linear-gradient(to left, black, transparent);
    mask-image: linear-gradient(to left, black, transparent);
}
.hero .container { position: relative; z-index: 1; padding-top: 74px; padding-bottom: 60px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gold-bright); margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold-bright); display: inline-block; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p.lead { font-size: 17px; color: rgba(247,243,230,0.82); max-width: 46ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.stat-strip {
    display: flex; flex-direction: column; gap: 0;
    border: 1px solid rgba(247,243,230,0.18); border-radius: 10px; overflow: hidden;
    background: rgba(247,243,230,0.04);
}
.stat-strip .stat { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid rgba(247,243,230,0.14); }
.stat-strip .stat:last-child { border-bottom: none; }
.stat-strip .stat .num { font-family: var(--font-display); font-size: 34px; color: var(--gold-bright); }
.stat-strip .stat .lbl { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247,243,230,0.75); }

/* ---- section scaffolding ---------------------------------------------------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-dark { background: var(--ink); color: var(--parchment); }
.section-dark h2 { color: var(--white); }
.section-alt { background: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head .eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.section-head h2 { margin-bottom: 4px; font-size: clamp(24px, 3vw, 34px); }
.section-head p { color: var(--text-dim); margin: 0; max-width: 60ch; }

/* ---- quarter ribbon selector (signature element) ---------------------------- */
.quarter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.quarter-tab {
    position: relative;
    font-family: var(--font-display); font-size: 15px; letter-spacing: 0.03em;
    padding: 10px 22px 10px 18px;
    background: var(--white); border: 1px solid var(--line); color: var(--ink-soft);
    clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
    cursor: pointer;
}
.quarter-tab strong { color: var(--red); margin-right: 6px; }
.quarter-tab.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.quarter-tab.is-active strong { color: var(--gold-bright); }
.quarter-tab:hover:not(.is-active) { border-color: var(--gold); }

/* ---- "orders of the day" event cards ---------------------------------------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.event-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.event-card .banner { height: 150px; background: var(--ink) linear-gradient(135deg, var(--ink), var(--ink-soft)); position: relative; }
.event-card .banner img { width: 100%; height: 100%; object-fit: cover; }
.event-card .serial {
    position: absolute; top: 12px; left: 0;
    background: var(--red); color: var(--white); font-family: var(--font-display);
    font-size: 12.5px; letter-spacing: 0.05em; padding: 5px 14px 5px 10px;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.event-card .level-tag {
    position: absolute; top: 12px; right: 12px;
    background: rgba(22,22,15,0.65); color: var(--gold-bright); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 4px;
}
.event-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card .date-line { font-size: 12.5px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.04em; }
.event-card h3 { font-size: 19px; margin-bottom: 2px; text-transform: none; }
.event-card .meta { font-size: 13px; color: var(--text-dim); display: flex; flex-direction: column; gap: 3px; }
.event-card .meta span { display: flex; align-items: center; gap: 6px; }
.event-card .footer-row { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); }
.event-card .fee { font-family: var(--font-display); font-size: 16px; color: var(--green-dark); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--white); }
.empty-state h3 { color: var(--ink); }

/* ---- org structure cards ---------------------------------------------------- */
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.org-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.org-card::before { content: ""; position: absolute; top:0; left:0; right:0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--red), var(--green)); }
.org-card .count { font-family: var(--font-display); font-size: 46px; color: var(--red); line-height: 1; }
.org-card h3 { font-size: 20px; margin: 8px 0 6px; }
.org-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 18px; }

.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; }
.tile-link {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14.5px;
}
.tile-link:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.tile-link .crest { width: 40px; height: 40px; border-radius: 50%; background: var(--parchment-dim); display:flex; align-items:center; justify-content:center; font-family: var(--font-display); color: var(--red); flex-shrink: 0; overflow:hidden; }
.tile-link .crest img { width: 100%; height: 100%; object-fit: cover; }
.tile-link .sub { display:block; font-size: 12px; font-weight: 500; color: var(--text-dim); }

/* ---- school cards ------------------------------------------------------------ */
.school-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.school-card .top { display:flex; gap: 14px; align-items:center; padding: 18px; border-bottom: 1px solid var(--line); }
.school-card .crest { width: 54px; height: 54px; border-radius: 50%; background: var(--parchment-dim); overflow: hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.school-card .crest img { width:100%; height:100%; object-fit: cover; }
.school-card h3 { font-size: 16.5px; text-transform: none; margin-bottom: 2px; }
.school-card .arm { font-size: 12px; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.school-card .body { padding: 16px 18px; font-size: 13.5px; color: var(--text-dim); }

/* ---- CTA band ---------------------------------------------------------------- */
.cta-band { background: var(--green-dark); color: var(--white); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cta-col { padding: 46px 40px; }
.cta-col:first-child { border-right: 1px solid rgba(255,255,255,0.18); }
.cta-col h3 { color: var(--white); font-size: 24px; }
.cta-col p { color: rgba(255,255,255,0.82); margin-bottom: 20px; }

/* ---- footer -------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(247,243,230,0.75); padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid h4 { color: var(--parchment); font-size: 14px; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-grid ul a:hover { color: var(--gold-bright); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { height: 46px; width: 46px; }
.footer-brand strong { font-family: var(--font-display); font-size: 16px; color: var(--white); text-transform: uppercase; }
.footer-bottom { border-top: 1px solid rgba(247,243,230,0.12); padding: 16px 0; font-size: 12.5px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- generic page header (inner pages) ------------------------------------------ */
.page-header { background: var(--ink); color: var(--parchment); padding: 46px 0 34px; }
.page-header .eyebrow { color: var(--gold-bright); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; display:block; }
.page-header h1 { color: var(--white); font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-header p { color: rgba(247,243,230,0.8); max-width: 70ch; margin: 0; }
.breadcrumb { font-size: 12.5px; color: rgba(247,243,230,0.6); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ---- filters bar ------------------------------------------------------------ */
.filters-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 26px; }
.filters-bar select, .filters-bar input[type=text] { padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; font-family: var(--font-body); font-size: 13.5px; background: var(--parchment); }

/* ---- badges ------------------------------------------------------------------ */
.badge { display: inline-flex; align-items:center; gap:5px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 20px; }
.badge-approved { background: rgba(4,106,56,0.12); color: var(--green-dark); }
.badge-pending  { background: rgba(216,166,31,0.18); color: #8a6710; }
.badge-rejected { background: rgba(200,16,46,0.12); color: var(--red-dark); }
.badge::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }

/* ---- forms (shared by public + admin) ----------------------------------------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.form-group .hint { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.form-group input[type=text], .form-group input[type=email], .form-group input[type=password],
.form-group input[type=date], .form-group input[type=number], .form-group input[type=tel],
.form-group input[type=file], .form-group select, .form-group textarea {
    padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px;
    font-family: var(--font-body); font-size: 14.5px; background: var(--parchment); color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(216,166,31,0.18); }
.form-group textarea { resize: vertical; min-height: 100px; }
.radio-row, .checkbox-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.radio-row label, .checkbox-row label { display:flex; align-items:center; gap:7px; font-weight: 500; font-size: 14px; }
.form-section-title { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); margin: 26px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.form-section-title:first-child { margin-top: 0; }
.field-error { color: var(--red-dark); font-size: 12.5px; }

.alert { padding: 13px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: rgba(4,106,56,0.10); color: var(--green-dark); border-color: rgba(4,106,56,0.25); }
.alert-error { background: rgba(200,16,46,0.08); color: var(--red-dark); border-color: rgba(200,16,46,0.25); }
.alert-info { background: rgba(216,166,31,0.12); color: #7a5c0c; border-color: rgba(216,166,31,0.3); }

.auth-shell { min-height: calc(100vh - 84px); display: flex; align-items: center; justify-content: center; padding: 50px 20px; background: var(--parchment-dim); }
.auth-card { max-width: 480px; width: 100%; }
.auth-card .form-card { padding: 40px 36px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head img { height: 64px; margin: 0 auto 14px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }
.auth-switch a { color: var(--red); font-weight: 600; }
.role-picker { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.role-picker a { border: 1.5px solid var(--line); border-radius: 8px; padding: 16px; text-align:center; font-weight: 600; font-size: 13.5px; }
.role-picker a:hover { border-color: var(--gold); background: var(--parchment); }

/* ---- generic content page (region/sector/national/school detail) ---------------- */
.profile-hero { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; margin-bottom: 10px; }
.profile-hero .crest-lg { width: 110px; height: 110px; border-radius: 50%; background: rgba(247,243,230,0.08); border: 3px solid var(--gold); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.profile-hero .crest-lg img { width:100%; height:100%; object-fit:cover; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.info-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.info-box .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); font-weight: 700; margin-bottom: 6px; }
.info-box .val { font-size: 15.5px; font-weight: 600; }
.prose { font-size: 15.5px; color: var(--ink-soft); }
.prose h3 { text-transform: none; font-size: 19px; margin-top: 28px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gallery-grid img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.data-table th, table.data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
table.data-table th { background: var(--parchment-dim); font-family: var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; font-size: 12px; color: var(--ink-soft); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: rgba(216,166,31,0.06); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 5px; font-size: 13.5px; font-weight: 600; }
.pagination .is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---- responsive ------------------------------------------------------------------ */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .org-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .info-grid { grid-template-columns: 1fr 1fr; }
    .cta-grid { grid-template-columns: 1fr; }
    .cta-col:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.18); }
}
@media (max-width: 780px) {
    .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--parchment);
        flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 4px; overflow-y:auto;
        transform: translateX(-100%); transition: transform 0.25s ease; z-index: 49; }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav > * + * { margin-left: 0; } /* undo the desktop gap-fallback margin in the stacked mobile layout */
    .main-nav a { width: 100%; padding: 13px 4px; border-bottom: 1px solid var(--line); }
    .nav-toggle { display: block; }
    .header-actions .btn-outline { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .profile-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 640px) {
    .org-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .role-picker { grid-template-columns: 1fr; }
    .site-header .container { height: 70px; }
    .brand img { height: 44px; width: 44px; }
}
