/* MDKO public site (mdko.org): home, about, contact, official documents.
   Plain CSS, no build step and no CSS framework at runtime. */

:root {
    --ink: var(--mdko-ink);
    --text: #33433c;
    --muted: #64746d;
    --line: #e3e0d6;
    --paper: #f8f6f0;
    --card: #ffffff;
    /* Brand greens come from the shared tokens (App\Support\MdkoPanelTheme::BRAND,
       printed in the page head by partials/brand-tokens) - the same values the
       member portal and admin use. */
    --forest: var(--mdko-forest);
    --forest-2: var(--mdko-forest-2);
    --forest-3: var(--mdko-forest-3);
    --deep: var(--mdko-deep);
    --leaf: var(--mdko-leaf);
    --leaf-2: var(--mdko-leaf-2);
    --leaf-ink: var(--mdko-leaf-ink);
    --mint: var(--mdko-mint);
    --on-dark: var(--mdko-on-dark);
    --on-dark-muted: var(--mdko-on-dark-muted);
    --navy: #1b2340;
    --danger: #9b1c1c;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(5, 59, 43, .06), 0 8px 24px -12px rgba(5, 59, 43, .18);
    --shadow-lg: 0 24px 60px -24px rgba(2, 30, 20, .45);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--forest-2); text-underline-offset: 3px; }
a:hover { color: var(--forest-3); }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--leaf-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--forest); color: var(--on-dark); font-size: 13.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contact { display: flex; gap: 22px; align-items: center; }
.topbar-contact span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-contact svg { width: 15px; height: 15px; opacity: .75; }
.topbar-right { font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(74, 222, 128, .18); display: inline-block; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.1; display: block; }
.brand-sub { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--forest-3); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--mint); color: var(--forest-2); }
.nav a[aria-current="page"] { color: var(--forest-2); box-shadow: inset 0 -2px 0 var(--leaf-2); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 700 15.5px/1 var(--sans); text-decoration: none; border-radius: 999px; padding: 15px 26px; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--leaf); color: var(--leaf-ink); box-shadow: 0 10px 24px -12px rgba(34, 197, 94, .8); }
.btn-primary:hover { background: #6ee7a0; color: var(--leaf-ink); }
.btn-dark { background: var(--forest-2); color: #fff; }
.btn-dark:hover { background: var(--forest-3); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { background: transparent; color: var(--forest-2); border-color: #b9d8c8; }
.btn-outline:hover { border-color: var(--forest-2); color: var(--forest-2); }
.btn-sm { padding: 11px 20px; font-size: 14.5px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--forest-2); border-color: #b9d8c8; }
.icon-btn svg { width: 18px; height: 18px; }

/* Mobile menu (details/summary: works without JavaScript) */
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--card); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu .close-icon { display: none; }
.menu[open] .open-icon { display: none; }
.menu[open] .close-icon { display: block; }
.menu-panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px; }
.menu-panel a { display: block; padding: 13px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--mint); color: var(--forest-2); }
.menu-panel a.btn { display: flex; justify-content: center; margin-top: 8px; padding: 14px; color: #fff; background: var(--forest-2); }
.menu-panel a.btn:hover { background: var(--forest-3); color: #fff; }

@media (max-width: 920px) {
    .nav, .header-actions > .btn, .header-actions > .icon-btn { display: none; }
    .menu { display: block; }
    .topbar-contact .hide-sm { display: none; }
}
@media (max-width: 520px) {
    .topbar-contact span:not(:first-child) { display: none; }
    .brand img { width: 46px; height: 46px; }
    .brand-name { font-size: 17px; }
    .site-header .wrap { min-height: 68px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #e4f1ea; background: radial-gradient(1000px 520px at 85% 10%, rgba(74, 222, 128, .14), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(10, 92, 69, .55), transparent 60%), var(--forest); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 40%, transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--forest-3); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
.hero .eyebrow { color: var(--leaf); }
.hero h1 { color: #fff; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.06; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--leaf); }
.hero .lead { font-size: 19px; color: var(--on-dark); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 14.5px; color: var(--on-dark-muted); max-width: 520px; }

.enroll-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; padding: 30px; box-shadow: var(--shadow-lg); backdrop-filter: blur(6px); }
.enroll-card .label { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); }
.enroll-card .range { font-family: var(--serif); color: #fff; font-size: 30px; line-height: 1.15; margin: 10px 0 14px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(74, 222, 128, .12); color: var(--leaf); }
.status-pill.is-open { background: rgba(251, 146, 60, .14); color: #fdba74; }
.status-pill.is-closed { background: rgba(255, 255, 255, .08); color: var(--on-dark); }
.enroll-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 24px 0; }
.enroll-logo { display: flex; align-items: center; gap: 14px; color: var(--on-dark); font-size: 14.5px; }
.enroll-logo img { width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 4px; }

.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 16px 18px; }
.hero-stat strong { display: block; font-family: var(--serif); font-size: 34px; color: #fff; line-height: 1; }
.hero-stat span { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }

@media (max-width: 920px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; padding-bottom: 64px; }
    .hero .lead { font-size: 17.5px; }
}
@media (max-width: 520px) {
    .hero-actions .btn { width: 100%; }
    .hero-stat { padding: 14px; }
    .hero-stat strong { font-size: 28px; }
    .hero-stat span { font-size: 11px; letter-spacing: .08em; }
    .enroll-card { padding: 24px; border-radius: 22px; }
    .enroll-card .range { font-size: 26px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(700px 360px at 90% 0%, rgba(74, 222, 128, .14), transparent 60%), var(--forest); color: var(--on-dark); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.page-hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.page-hero .eyebrow { color: var(--leaf); }
.page-hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 52px); margin: 14px 0 14px; max-width: 820px; }
.page-hero p { font-size: 18.5px; max-width: 700px; color: var(--on-dark); }
@media (max-width: 520px) { .page-hero .wrap { padding-top: 44px; padding-bottom: 46px; } .page-hero p { font-size: 17px; } }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .7; }
@media (max-width: 520px) { .section { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 20px; }
.split .body { font-size: 18px; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list { display: grid; gap: 16px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 24px; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--forest-2); display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; margin-bottom: 6px; }
.feature p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.stat { padding: 30px; text-align: left; }
.stat strong { display: block; font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--forest-2); }
.stat span { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 520px) { .stat { padding: 22px; } .stat strong { font-size: 40px; } }

/* Notify / CTA band */
.cta-band { background: linear-gradient(135deg, var(--forest-2), var(--forest)); color: var(--on-dark); border-radius: 28px; padding: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 222, 128, .22), transparent 65%); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin: 14px 0 12px; }
.cta-band .eyebrow { color: var(--leaf); }
.cta-band p { color: var(--on-dark); }
.cta-band form { position: relative; z-index: 1; }
@media (max-width: 920px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; gap: 26px; border-radius: 24px; } }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.on-dark .field label { color: #e4f1ea; }
.input { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #d6dcd5; border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--leaf-2); box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
textarea.input { min-height: 168px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.alert { border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-weight: 600; font-size: 15.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-success { background: #e7f6ec; color: var(--forest-2); border: 1px solid #b7e2c6; }
.alert-error { background: #fdecec; color: var(--danger); border: 1px solid #f5c2c2; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.on-dark .form-note { color: var(--on-dark-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-items { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 18px 20px; text-decoration: none; color: var(--text); }
a.contact-item:hover { border-color: #b9d8c8; color: var(--text); }
.contact-item .feature-icon { width: 48px; height: 48px; }
.contact-item .k { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-item .v { display: block; font-weight: 600; color: var(--ink); font-size: 17px; word-break: break-word; }
.form-card { padding: 36px; }
.form-card h2 { font-size: 28px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 520px) { .form-card { padding: 24px; } }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 920px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .people { gap: 12px; } }
.person { padding: 26px 18px; text-align: center; }
.avatar { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--forest-2), var(--forest-3)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .02em; }
.person h3 { font-size: 18.5px; line-height: 1.25; }
.person .role { margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-3); }

.prose-lite { font-size: 18.5px; max-width: 760px; }
.prose-lite p + p { margin-top: 18px; }

/* ---------- Documents ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-card { display: flex; flex-direction: column; padding: 26px; text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s, box-shadow .15s; }
.doc-card:hover { transform: translateY(-2px); border-color: #b9d8c8; color: var(--text); box-shadow: 0 1px 2px rgba(5, 59, 43, .06), 0 16px 32px -16px rgba(5, 59, 43, .3); }
.doc-card h2, .doc-card h3 { font-size: 21px; margin: 18px 0 8px; }
.doc-card p { color: var(--muted); font-size: 15.5px; }
.doc-card .meta { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.doc-card .go { color: var(--forest-2); font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.doc-card .go svg { width: 16px; height: 16px; }

.doc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.back-link svg { width: 18px; height: 18px; }
.doc-paper { padding: 0; overflow: hidden; }
.doc-paper-head { padding: 36px 48px; border-bottom: 1px solid var(--line); background: #fbfaf6; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.doc-paper-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.doc-paper-head .date { margin-top: 10px; color: var(--muted); font-size: 15px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--forest-2); font-size: 13px; font-weight: 700; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf-2); }
.doc-body { padding: 40px 48px 48px; font-size: 17.5px; line-height: 1.75; color: #2c3a34; overflow-wrap: anywhere; }
.doc-body h1, .doc-body h2, .doc-body h3, .doc-body h4 { margin: 1.8em 0 .6em; }
.doc-body h1 { font-size: 30px; } .doc-body h2 { font-size: 25px; padding-bottom: .35em; border-bottom: 1px solid var(--line); } .doc-body h3 { font-size: 21px; } .doc-body h4 { font-size: 18px; }
.doc-body > :first-child { margin-top: 0; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body table, .doc-body blockquote { margin: 0 0 1.1em; }
.doc-body ul, .doc-body ol { padding-left: 1.4em; }
.doc-body li { margin: .3em 0; }
.doc-body strong { color: var(--ink); }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-body blockquote { border-left: 3px solid var(--leaf-2); padding-left: 16px; color: var(--muted); }
.doc-paper-foot { padding: 32px 48px; border-top: 1px solid var(--line); background: #fbfaf6; text-align: center; }
.doc-paper-foot img { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 12px; }
.doc-paper-foot p { font-size: 14px; color: var(--muted); font-style: italic; max-width: 680px; margin: 0 auto; }
.doc-paper-foot .sysid { margin-top: 14px; font: 600 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: #8a958f; font-style: normal; }
@media (max-width: 600px) { .doc-paper-head, .doc-body, .doc-paper-foot { padding-left: 22px; padding-right: 22px; } .doc-body { font-size: 16.5px; } }

.empty { text-align: center; padding: 48px 24px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--forest) 0%, var(--deep) 100%); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { width: 54px; height: 54px; border-radius: 12px; background: #fff; padding: 3px; }
.footer-brand strong { display: block; font-family: var(--serif); color: #fff; font-size: 20px; font-weight: 600; line-height: 1.2; }
.footer-brand span { display: block; font-size: 13.5px; color: var(--on-dark-muted); margin-top: 4px; font-weight: 600; }
.site-footer p.about { margin-top: 18px; max-width: 380px; }
.site-footer h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--on-dark-muted); }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } .site-footer { padding-top: 56px; } }

/* ---------- Print ---------- */
.print-only { display: none; }
@media print {
    .topbar, .site-header, .site-footer, .no-print, form, .btn, .icon-btn, .hero::before, .page-hero::before { display: none !important; }
    .print-only { display: flex !important; align-items: center; justify-content: center; gap: 20px; border-bottom: 2px solid var(--forest-2); padding-bottom: 18px; margin-bottom: 26px; }
    .print-only img { height: 72px; width: auto; }
    body { background: #fff !important; color: #111 !important; font-size: 12pt; }
    .hero, .page-hero { background: none !important; color: #111 !important; }
    .hero h1, .page-hero h1, .hero .lead, .page-hero p, .hero .eyebrow, .page-hero .eyebrow, .enroll-card .range, .enroll-card .label, .hero-stat strong, .hero-stat span { color: var(--forest-2) !important; }
    .enroll-card, .hero-stat, .card { box-shadow: none !important; border: 1px solid #ddd !important; background: #fff !important; }
    .hero .wrap, .page-hero .wrap { padding-top: 0 !important; padding-bottom: 20px !important; grid-template-columns: 1fr !important; }
    .section { padding: 20px 0 !important; page-break-inside: avoid; }
    .doc-paper-head, .doc-paper-foot { background: #fff !important; }
}

/* Phone / tablet bottom bar (same look as the portals' bar), 11 Nov 2026 */
.site-bnav { display: none; }
@media (max-width: 920px) {
    .site-bnav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        display: flex; align-items: stretch; justify-content: space-around;
        height: calc(62px + env(safe-area-inset-bottom, 0px));
        padding: 0 4px env(safe-area-inset-bottom, 0px);
        background: rgba(255, 255, 255, .97);
        -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px -16px rgba(15, 42, 32, .35);
    }
    .site-bnav-item {
        position: relative; flex: 1 1 0; min-width: 0;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        font: 600 11px/1.1 var(--sans); letter-spacing: .01em;
        color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent;
    }
    .site-bnav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .site-bnav-item svg { width: 22px; height: 22px; flex: none; }
    .site-bnav-item:hover { color: var(--forest-2); }
    .site-bnav-item.is-active { color: var(--forest-2); }
    .site-bnav-item.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--forest-2); }
    .site-bnav-item.is-portal { color: var(--forest-2); }
    .site-bnav-item:focus-visible { outline: 2px solid var(--leaf-2); outline-offset: -4px; border-radius: 12px; }
    /* keep the footer's last lines above the bar */
    body:has(.site-bnav) { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .site-bnav { display: none !important; } }
