/* AANSU Global: public site, member area and chapter sites.
   System fonts only, no external assets. Navy + gold on a light canvas. */

:root {
  --navy: #0b2447;
  --navy-2: #19376d;
  --navy-3: #243b6b;
  --navy-ink: #07182f;
  --gold: #f8b447;          /* logo orange */
  --gold-2: #fbc86f;
  --gold-3: #d9951f;        /* darker orange: large text / on navy */
  --gold-ink: #8a5700;      /* orange-family text on light backgrounds (AA) */
  --blue: #4892c3;          /* logo blue */
  --blue-2: #2f6f9e;        /* deeper blue for text, links, secondary buttons (AA on white) */
  --blue-3: #245a82;
  --grey: #60686b;          /* logo wordmark grey */
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --ink: #16213a;
  --muted: #56607a;
  --line: #dfe3ec;
  --line-2: #eceff5;
  --ok: #0f7a4a;
  --ok-bg: #e7f6ee;
  --err: #b42318;
  --err-bg: #fdecea;
  --info-bg: #eaf1fd;
  --meet: #6d28d9;
  --meet-bg: #f1eafe;
  --accent: var(--navy);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(11, 36, 71, .06), 0 1px 3px rgba(11, 36, 71, .05);
  --shadow: 0 4px 14px rgba(11, 36, 71, .08), 0 1px 3px rgba(11, 36, 71, .06);
  --shadow-lg: 0 18px 40px rgba(11, 36, 71, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, Cambria, "Times New Roman", serif;
  --wrap: 1200px;
  --focus: 0 0 0 3px #fff, 0 0 0 5px var(--blue-2);
}

*, *::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 { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-3); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy-ink); margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .75rem; } .mb-2 { margin-bottom: 1.5rem; }
.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; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
a:focus-visible, button:focus-visible { outline: none; }

.skip { position: absolute; left: 1rem; top: -60px; background: var(--gold); color: var(--navy-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: .75rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 820px; }
.wrap-tight { max-width: 560px; }
.section { padding: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) 0; }
.section-sm { padding: 2rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #e8edf7; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6rem; }
.section-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-2); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 64ch; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.6em; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { --b: var(--blue-2); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .66rem 1.15rem; border-radius: 999px; font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; border: 1.5px solid var(--b); background: var(--b); color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { color: #fff; background: var(--blue-3); border-color: var(--blue-3); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-ink); }
.btn-gold:hover { background: var(--gold-3); border-color: var(--gold-3); color: var(--navy-ink); }
.btn-ghost { background: transparent; color: var(--blue-2); }
.btn-ghost:hover { background: var(--blue-2); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: #f1f4fa; border-color: #f1f4fa; color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.btn-sm { padding: .42rem .85rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.link-arrow { font-weight: 650; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* ── Header & mega menu ──────────────────────────────────────────────── */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(7, 24, 47, .18); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; }
/* The header gets more room than page content (1200px): the full menu plus
   the account links need about 1250px. */
.site-header .wrap { max-width: 1400px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #fff; padding: 3px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .02em; }
.brand-text span { font-size: .7rem; color: #b9c5dc; letter-spacing: .04em; max-width: 9.5rem; }
.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.nav-item { position: relative; }
.nav-top { display: flex; align-items: center; gap: .3rem; padding: .55rem .6rem; color: #e6ecf7; text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 8px; white-space: nowrap; }
.nav-top:hover, .nav-item:focus-within > .nav-top, .nav-item:hover > .nav-top { color: #fff; background: rgba(255,255,255,.08); }
.nav-top[aria-current="page"], .nav-item.is-current > .nav-top { color: var(--gold-2); }
.has-menu > .nav-top::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.mega { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; border-top: 3px solid var(--gold); }
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-item:hover > .mega, .nav-item:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega-wide { min-width: 560px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.5rem; }
.mega-right { left: auto; right: 0; }
.mega h3 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: .2rem 0 .4rem; font-family: var(--font); }
.mega ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.mega a { display: block; padding: .38rem .55rem; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.mega a:hover, .mega a:focus-visible { background: var(--surface-2); color: var(--navy); }
.mega a small { display: block; color: var(--muted); font-size: .78rem; }
.mega .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .45rem; vertical-align: middle; }
.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.nav-actions > a:not(.btn) { color: #e6ecf7; text-decoration: none; font-size: .88rem; font-weight: 600; padding: .45rem .55rem; border-radius: 8px; }
.nav-actions > a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-actions form { margin: 0; }
.nav-actions .linklike { color: #e6ecf7; font-size: .88rem; }
.nav-account .mega { min-width: 190px; }
.mega .linklike { display: block; width: 100%; text-align: left; padding: .38rem .55rem; border-radius: 7px; color: var(--ink); font-weight: 400; font-size: .92rem; }
.mega .linklike:hover, .mega .linklike:focus-visible { background: var(--surface-2); color: var(--navy); text-decoration: none; }
.linklike { background: none; border: 0; padding: .45rem .55rem; font: inherit; font-weight: 600; cursor: pointer; color: var(--navy-2); border-radius: 8px; }
.linklike:hover { text-decoration: underline; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: #fff; border-radius: 10px; padding: .5rem .7rem; font: inherit; font-weight: 650; font-size: .85rem; cursor: pointer; align-items: center; gap: .5rem; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.nav-open .burger { background: transparent; }
.nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1365px) {
  .nav-top { padding: .55rem .45rem; letter-spacing: .04em; }
}
/* Below 1280px the full menu does not fit beside the logo: use the Menu button. */
@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  /* 100dvh is the height actually visible: 100vh counts the space behind a
     phone's address bar, which hid the end of the menu. */
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: .5rem 0 calc(1rem + env(safe-area-inset-bottom)); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-top { font-size: .85rem; padding: .7rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .has-menu > .nav-top::after { display: none; }
  .mega, .mega-wide { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; color: #dfe6f3; border-top: 0; min-width: 0; padding: .25rem 0 .5rem .75rem; display: block; }
  .mega::before { display: none; }
  .mega h3 { color: #97a6c2; }
  .mega a { color: #dfe6f3; padding: .35rem .5rem; }
  .mega a small { color: #97a6c2; }
  .mega a:hover, .mega a:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
  .mega-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  /* Account links (Sign in, Join, Dashboard, Admin) come first on phones, so
     they never sit below a long list of sections. */
  .nav-actions { order: -1; flex-wrap: wrap; padding: .25rem 0 .75rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-account { flex-basis: 100%; }
  .mega .linklike { color: #dfe6f3; padding: .35rem .5rem; }
  .mega .linklike:hover, .mega .linklike:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
}

/* Chapter sub-navigation */
.chapter-bar { background: var(--accent); color: #fff; position: relative; }
.chapter-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0) 60%); pointer-events: none; }
.chapter-bar .wrap { display: flex; align-items: center; gap: 1rem; min-height: 50px; position: relative; z-index: 1; }
.chapter-bar-name { font-family: var(--serif); font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; font-size: 1.02rem; }
.chapter-bar-name:hover { color: #fff; text-decoration: underline; }
.chapter-links { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chapter-links a { display: block; padding: .4rem .7rem; color: rgba(255,255,255,.9); text-decoration: none; font-size: .88rem; font-weight: 600; border-radius: 999px; white-space: nowrap; }
.chapter-links a:hover { background: rgba(255,255,255,.14); color: #fff; }
.chapter-links a[aria-current="page"] { background: #fff; color: var(--navy-ink); }
.chapter-links .cb-join { background: var(--gold); color: var(--navy-ink); }
.chapter-links .cb-join:hover { background: var(--gold-2); color: var(--navy-ink); }
@media (max-width: 700px) { .chapter-bar .wrap { flex-direction: column; align-items: stretch; gap: .25rem; padding-top: .5rem; padding-bottom: .5rem; } }

/* ── Page hero ───────────────────────────────────────────────────────── */
.page-hero { background: radial-gradient(1200px 400px at 85% -20%, rgba(248,180,71,.22), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe3f1; padding: clamp(2.2rem, 1.5rem + 3vw, 3.75rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero p { color: #c7d2e6; max-width: 64ch; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 1.25rem; }
.page-hero-accent { background: radial-gradient(900px 380px at 90% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--accent) 0%, var(--navy) 120%); }
.crumbs { font-size: .82rem; margin-bottom: .6rem; color: #aebbd4; }
.crumbs a { color: #d7e0f0; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }

/* Home hero */
.hero { position: relative; overflow: hidden; color: #dbe3f1; background: radial-gradient(1000px 500px at 80% 0%, rgba(248,180,71,.25), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(25,55,109,.9), transparent 70%), linear-gradient(160deg, var(--navy-ink) 0%, var(--navy) 55%, var(--navy-2) 100%); padding: clamp(3rem, 2rem + 5vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.hero::after { 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(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); max-width: 16ch; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero p.lead { color: #c9d4e8; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); }
.hero .btn-row { margin-top: 1.75rem; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); border: 1px solid rgba(255,255,255,.12); }
.stat { background: rgba(7, 24, 47, .55); padding: 1.1rem 1rem; text-align: center; backdrop-filter: blur(4px); }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; color: var(--gold-2); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #b9c5dc; margin-top: .3rem; }
.stats-light { background: var(--line); border-color: var(--line); }
.stats-light .stat { background: #fff; }
.stats-light .stat-num { color: var(--navy); }
.stats-light .stat-label { color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Grids & cards ───────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .split-even { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.card-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfd6e4; }
.card-media { aspect-ratio: 16 / 9; background: var(--navy); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; top: .7rem; left: .7rem; }
.card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.06rem; line-height: 1.35; }
.card-body h3 a { color: var(--navy-ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--navy-2); text-decoration: underline; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-link { position: relative; }
.card-body p { margin: 0; color: var(--muted); font-size: .93rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; font-size: .8rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; box-shadow: var(--shadow-sm); }
.panel > h2, .panel > h3 { margin-top: 0; }
.panel h2 { font-size: 1.3rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.panel-navy { background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%); color: #dbe3f1; border-color: transparent; }
.panel-navy h2, .panel-navy h3 { color: #fff; }
.panel-gold { background: linear-gradient(145deg, #fff6e6, #fff); border-color: #f6d49a; }
.panel + .panel { margin-top: 1.25rem; }
.stack > * + * { margin-top: 1.25rem; }
.empty { padding: 1.5rem; border: 1.5px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); background: rgba(255,255,255,.6); }

/* Feature grid */
.feature { padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); position: relative; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #fff1dc, #fcd9a0); color: var(--gold-ink); margin-bottom: .9rem; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .3rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.feature a.link-arrow { display: inline-block; margin-top: .6rem; font-size: .9rem; }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; line-height: 1.5; background: var(--surface-2); color: var(--navy-2); border: 1px solid transparent; white-space: nowrap; }
.badge-public { background: #e8f1ff; color: #1d4ed8; }
.badge-members { background: #fff1dc; color: var(--gold-ink); border-color: #f6d49a; }
.badge-meeting { background: var(--meet-bg); color: var(--meet); }
.badge-cancelled { background: var(--err-bg); color: var(--err); text-transform: uppercase; }
.badge-on-global { background: #e6f5ef; color: var(--ok); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-pending { background: #fff1dc; color: var(--gold-ink); }
.badge-gold { background: var(--gold); color: var(--navy-ink); }
.badge-dark { background: rgba(7,24,47,.75); color: #fff; }
.badge-kind { background: var(--navy); color: #fff; }
.lock { display: inline-block; width: .8em; height: .8em; vertical-align: -.05em; }
.chip { display: inline-block; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: .8rem; margin: 0 .3rem .3rem 0; }

/* ── Tabs & pills ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; color: var(--muted); text-decoration: none; font-weight: 650; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--blue-3); }
.tabs a[aria-selected="true"], .tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }
.pills { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.5rem; }
.pills a { padding: .38rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; }
.pills a:hover { border-color: var(--navy-2); color: var(--navy); }
.pills a[aria-current="true"], .pills a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.toolbar .pills, .toolbar .tabs { margin-bottom: 0; }

/* ── Pager ───────────────────────────────────────────────────────────── */
.pager { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 2rem; }
.pager a, .pager span { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--navy); }
.pager a:hover { border-color: var(--navy); }
.pager span.is-disabled { color: #a3abbd; }
.pager .page-no { border: 0; background: transparent; color: var(--muted); }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert { padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; margin: 0 0 1.25rem; font-size: .95rem; }
.alert ul { margin: .35rem 0 0; }
.alert-success { background: var(--ok-bg); border-color: #b6e3cb; color: #0b5a37; }
.alert-error { background: var(--err-bg); border-color: #f4c3be; color: #8f1c13; }
.alert-info { background: var(--info-bg); border-color: #c6d7f5; color: #1c3d7a; }
.alert-gold { background: #fff6e6; border-color: #f6d49a; color: #6e4600; }
.flash-bar { padding-top: 1.25rem; }
.prototype-note { background: #fff6e6; color: #6e4600; border-bottom: 1px solid #f6d49a; font-size: .78rem; text-align: center; padding: .3rem 1rem; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1rem; }
.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem 1.5rem; background: var(--surface); margin: 0 0 1.25rem; }
.form-section > legend { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy-ink); padding: 0 .5rem; margin-left: -.5rem; }
.form-section > p.hint { margin-top: -.2rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field + .field { margin-top: 0; }
.form-section .field, .form-section .form-row { margin-bottom: 1rem; }
.form-section .field:last-child, .form-section .form-row:last-child { margin-bottom: 0; }
label, .label { font-weight: 650; font-size: .9rem; color: var(--ink); }
.req { color: var(--err); }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; margin: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="tel"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: #fff; border: 1.5px solid #cdd4e1; border-radius: 10px; padding: .62rem .8rem; transition: border-color .15s ease, box-shadow .15s ease; min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input:hover, select:hover, textarea:hover { border-color: #aab4c7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(248, 180, 71, .45); }
input[readonly] { background: var(--surface-2); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: .18rem 0 0; accent-color: var(--navy); flex-shrink: 0; }
.check small { display: block; color: var(--muted); font-size: .83rem; }
.checks { display: grid; gap: .5rem .9rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.choice-cards { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .choice-cards { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 1rem 1rem 1rem 2.8rem; cursor: pointer; background: #fff; font-weight: 500; transition: border-color .15s ease, background .15s ease; }
.choice input { position: absolute; left: 1rem; top: 1.15rem; width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.choice strong { display: block; color: var(--navy-ink); margin-bottom: .2rem; }
.choice span { display: block; color: var(--muted); font-size: .86rem; }
.choice:hover { border-color: #aab4c7; }
.choice:has(input:checked) { border-color: var(--navy); background: #f4f7fd; box-shadow: inset 0 0 0 1px var(--navy); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.consent-box { background: #f8f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.suggest { font-size: .82rem; color: var(--ok); min-height: 1.2em; margin: 0; }
.filter-bar { display: grid; gap: .75rem; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)) auto; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem; }
.filter-bar .check { align-self: center; margin-top: 1.4rem; }
@media (max-width: 1100px) { .filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .filter-bar { grid-template-columns: minmax(0, 1fr); } }
/* Search box + optional filter + button. The text box gets the room: form
   controls are width: 100% by default, which let a filter squeeze it to nothing. */
.search-inline { display: flex; align-items: center; gap: .5rem; flex: 1 1 360px; max-width: 640px; }
.search-inline input { flex: 1 1 14rem; min-width: 0; width: auto; }
.search-inline select { flex: 0 1 11rem; width: auto; min-width: 8rem; }
.search-inline .btn { flex: none; }
@media (max-width: 560px) {
  /* Phones: the text box on its own full-width row, filter and button below. */
  .search-inline { flex-wrap: wrap; flex-basis: 100%; }
  .search-inline input { flex-basis: 100%; }
  .search-inline select { flex: 1 1 auto; }
}

.auth-shell { min-height: 60vh; display: grid; place-items: center; padding: 3rem 1.25rem; background: radial-gradient(700px 300px at 50% -10%, rgba(248,180,71,.16), transparent 70%); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 2rem 1.75rem; }
.auth-card h1 { font-size: 1.8rem; }
.auth-card .form { margin-top: 1.25rem; }
.auth-foot { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); text-align: center; }

/* ── People, avatars & org chart ─────────────────────────────────────── */
.avatar { --h: 220; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 1rem; color: #fff; background: linear-gradient(145deg, hsl(var(--h) 45% 42%), hsl(calc(var(--h) + 30) 50% 30%)); letter-spacing: .02em; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.7rem; }
.avatar-xl { width: 112px; height: 112px; font-size: 2.2rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.avatar-sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar-photo { object-fit: cover; background: var(--line, #e5e7eb); }
.photo-row { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.photo-row > .stack { flex: 1; min-width: 240px; }
.person { display: flex; gap: .85rem; align-items: center; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.person-name { font-weight: 700; color: var(--navy-ink); line-height: 1.25; }
.person-title { font-size: .83rem; color: var(--muted); line-height: 1.3; }
.person-bio { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.person-lead { border-color: #f6d49a; background: linear-gradient(145deg, #fff9f0, #fff); }
.person-lead .avatar { box-shadow: 0 0 0 3px var(--gold); }
.president-card { display: flex; gap: 1.25rem; align-items: center; }
.president-card .person-name { font-size: 1.25rem; font-family: var(--serif); }

.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-tier { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding-top: 1.75rem; }
.org-tier:first-child { padding-top: 0; }
.org-tier + .org-tier::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 1.75rem; background: linear-gradient(var(--gold), #f2c67e); transform: translateX(-1px); }
/* Fractional tiers: short connector to the row below, and that row's label is
   dropped closer so the pair reads as one level with one person slightly above. */
.org-tier.after-half { padding-top: .6rem; }
.org-tier.after-half::before { height: .6rem; }
.org-tier.is-half .org-node { padding: .7rem .75rem; }
/* "Show slightly above": the raised card stays on the line, centred, about
   1.5 cm higher. The other cards are pushed down by the same amount and their
   connectors lengthened, so every card still hangs from the tier line. */
.org-row.has-raised { align-items: flex-start; }
.org-row.has-raised .org-node:not(.is-raised) { margin-top: 1.5cm; }
.org-row.has-raised .org-node:not(.is-raised)::before { top: calc(-.6rem - 1.5cm - 1px); height: calc(.6rem + 1.5cm); }
.org-node.is-raised { border-color: #f2c67e; }
.org-tier-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); background: #fff6e6; border: 1px solid #f6d49a; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .6rem; position: relative; z-index: 1; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; position: relative; padding-top: .6rem; max-width: 100%; }
.org-row.multi::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; background: #f2c67e; }
.org-node { width: 210px; max-width: 100%; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem .75rem; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.org-row.multi .org-node::before { content: ""; position: absolute; top: calc(-.6rem - 1px); left: 50%; width: 2px; height: .6rem; background: #f2c67e; transform: translateX(-1px); }
.org-node.top { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(248,180,71,.2), var(--shadow); }
.org-node.top .avatar { box-shadow: 0 0 0 3px var(--gold); }
.org-node .person-bio { text-align: center; }
@media (max-width: 560px) { .org-node { width: calc(50% - .4rem); } .org-row.multi::before { left: 25%; right: 25%; } }
/* Phones: a row cannot hold three cards side by side, so the raised member
   sits centred on its own line at the top of the group and the rest wrap
   below it. Single cards (e.g. the President) keep their full width. */
@media (max-width: 560px) {
  .org-row:not(.multi) .org-node { width: min(210px, 100%); }
  .org-row.has-raised .org-node.is-raised { order: -1; margin: 0 25%; }
  .org-row.has-raised .org-node:not(.is-raised) { margin-top: .6rem; }
  .org-row.has-raised .org-node:not(.is-raised)::before { top: calc(-.6rem - 1px); height: .6rem; }
}

.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: var(--shadow-sm); }
.team-card h3 { margin: 0; display: flex; align-items: baseline; gap: .5rem; }
.team-no { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; }
.team-card .mandate { color: var(--muted); font-size: .92rem; margin: 0; }
.team-card .initiatives { font-size: .85rem; background: #f8f9fc; border-radius: 8px; padding: .55rem .7rem; margin: 0; }
.team-people { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .45rem; }
.team-people li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.team-people .role { color: var(--muted); font-size: .8rem; }

/* ── Timeline ────────────────────────────────────────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--navy-2)); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 2.2rem; padding-bottom: 1.75rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 82px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.timeline .year { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy); text-align: right; line-height: 1.2; }
.timeline h3 { margin: 0 0 .25rem; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .timeline::before { left: 7px; } .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 2rem; } .timeline li::before { left: 1px; } .timeline .year { text-align: left; } }

/* ── World map ───────────────────────────────────────────────────────── */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: minmax(0, 1fr); } }
.map-canvas { background: radial-gradient(ellipse at center, #13325f 0%, var(--navy) 70%); border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08); }
.world-map { width: 100%; height: auto; display: block; }
.map-sphere { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.12); stroke-width: .8; }
.map-country { fill: #2b4a7d; stroke: #16305a; stroke-width: .5; transition: fill .2s ease; }
.map-country.on { fill: #f8b447; fill-opacity: .72; stroke: #7e6412; }
.map-country.home { fill: #2fae7c; fill-opacity: .95; stroke: #0e5e3f; }
.map-link { cursor: pointer; outline: none; }
.map-link:hover .map-country, .map-link:focus .map-country, .map-link.is-active .map-country { fill: var(--gold-2); fill-opacity: 1; }
.map-link:hover .map-country.home, .map-link:focus .map-country.home, .map-link.is-active .map-country.home { fill: #4fd6a0; }
.map-link:focus-visible .map-country, .map-link:focus-visible .map-dot { stroke: #fff; stroke-width: 1.5; }
.map-dot { fill: #fff; stroke: var(--gold); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: map-pulse 2.6s ease-in-out infinite; }
.map-dot.home { fill: #4fd6a0; stroke: #fff; animation-duration: 2s; }
.map-link:hover .map-dot { fill: var(--gold-2); }
@keyframes map-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .65; } }
.map-arc { fill: none; stroke: var(--gold-2); stroke-width: 1.1; stroke-opacity: .55; stroke-dasharray: 5 6; stroke-linecap: round; animation: map-dash 18s linear infinite; pointer-events: none; }
@keyframes map-dash { to { stroke-dashoffset: -220; } }
.map-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .6rem; min-height: 260px; }
.map-panel h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.map-panel .tagline { color: var(--muted); font-size: .94rem; margin: 0; }
.map-panel dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: .25rem 0; font-size: .9rem; }
.map-panel dt { color: var(--muted); }
.map-panel dd { margin: 0; font-weight: 600; }
.map-panel .btn { margin-top: auto; align-self: flex-start; }
.map-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.map-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; background: var(--c); }
.section-navy .map-legend { color: #b9c5dc; }

/* Chapter cards */
.chapter-card { border-top: 4px solid var(--accent, var(--navy)); padding: 1.2rem; gap: .5rem; }
.chapter-card h3 { margin: 0; font-family: var(--serif); font-size: 1.2rem; }
.chapter-card h3 a { color: var(--navy-ink); text-decoration: none; }
.chapter-card h3 a::after { content: ""; position: absolute; inset: 0; }
.chapter-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.chapter-stats { display: flex; gap: 1.25rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--muted); }
.chapter-stats strong { display: block; font-size: 1.1rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.flag-list { display: flex; flex-wrap: wrap; gap: .3rem; }

/* ── Events ──────────────────────────────────────────────────────────── */
.event-card { flex-direction: row; align-items: stretch; }
.date-badge { flex-shrink: 0; width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; text-align: center; padding: .75rem .25rem; }
.date-badge .d { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.date-badge .m { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-top: .25rem; font-weight: 700; }
.event-card.is-meeting .date-badge { background: linear-gradient(160deg, #4c1d95, var(--meet)); }
.event-card.is-cancelled { opacity: .78; }
.event-card.is-cancelled h3 a { text-decoration: line-through; }
.event-card .card-body { padding: .95rem 1.1rem; }
.event-list { display: grid; gap: .85rem; }
.event-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; color: #dbe3f1; font-size: .95rem; }
.event-hero-meta span strong { color: #fff; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; font-size: .93rem; }
.facts svg { width: 20px; height: 20px; color: var(--gold-ink); margin-top: .1rem; }
.facts strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rsvp-state { padding: .7rem .9rem; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: .92rem; margin-bottom: .75rem; }
.attendees { display: flex; flex-wrap: wrap; gap: .35rem; }
.attendees .avatar { width: 36px; height: 36px; font-size: .75rem; border: 2px solid #fff; }

/* ── Calendar ────────────────────────────────────────────────────────── */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.cal-head h2 { margin: 0; }
.cal { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cal th { background: var(--navy); color: #fff; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: .6rem .3rem; font-weight: 700; }
.cal td { vertical-align: top; height: 118px; padding: .35rem; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.cal td:first-child { border-left: 0; }
.cal td.out { background: #fafbfd; }
.cal td.today { background: #fff8ea; box-shadow: inset 0 0 0 2px var(--gold); }
.cal .dn { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .2rem; }
.cal td.today .dn { color: var(--gold-ink); }
.cal-item { display: block; font-size: .74rem; line-height: 1.25; padding: .22rem .4rem; border-radius: 6px; margin-bottom: .22rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #e8f1ff; color: #163b8a; border-left: 3px solid #2563eb; }
.cal-item:hover { filter: brightness(.96); text-decoration: underline; }
.cal-item.meeting { background: var(--meet-bg); color: #4c1d95; border-left-color: var(--meet); }
.cal-item.course { background: #e7f0fb; color: #1d4f91; border-left-color: #1d4f91; }
.cal-item.cancelled { text-decoration: line-through; opacity: .7; }
.cal-legend { display: flex; gap: 1.25rem; font-size: .84rem; color: var(--muted); margin: .9rem 0 0; flex-wrap: wrap; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; vertical-align: -1px; background: var(--c); }
.agenda { display: none; }
@media (max-width: 760px) { .cal { display: none; } .agenda { display: block; } }
.agenda-day { margin-bottom: 1rem; }
.agenda-day h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .4rem; }

/* ── Gallery ─────────────────────────────────────────────────────────── */
.album .card-media { aspect-ratio: 4 / 3; }
/* Overrides the top/left of `.card-media .badge`; otherwise the badge is
   pinned to all four sides and stretches over the whole cover. */
.card-media .album-count { top: auto; left: auto; right: .7rem; bottom: .7rem; }

/* ── Documents & benefits ────────────────────────────────────────────── */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.doc { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.doc-icon { width: 40px; height: 48px; flex-shrink: 0; border-radius: 6px; background: linear-gradient(160deg, var(--navy), var(--navy-2)); position: relative; }
.doc-icon::after { content: ""; position: absolute; right: 0; top: 0; border-width: 0 12px 12px 0; border-style: solid; border-color: var(--bg) var(--bg) var(--gold) var(--gold); }
.doc-body { flex: 1; min-width: 0; }
.doc-body h3 { margin: 0 0 .2rem; font-size: 1rem; }
.doc-body p { margin: 0; color: var(--muted); font-size: .9rem; }
.benefit-offer { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); font-weight: 700; }
.benefit-locked { display: flex; align-items: center; gap: .4rem; color: var(--gold-ink); font-weight: 600; font-size: .9rem; background: #fff6e6; border: 1px dashed #f2c67e; padding: .45rem .7rem; border-radius: 8px; }

/* ── Member area ─────────────────────────────────────────────────────── */
.welcome { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; }
@media (max-width: 760px) { .welcome { grid-template-columns: 1fr; } }
.welcome h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin: 0; color: #fff; }
.id-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .85rem; color: #fff; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .03em; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.feed-item { display: grid; grid-template-columns: 132px 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line-2); position: relative; }
.feed-item:first-of-type { border-top: 0; padding-top: 0; }
.feed-item img { border-radius: 10px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.feed-item h3 { font-size: 1.02rem; margin: .25rem 0; }
.feed-item h3 a { color: var(--navy-ink); text-decoration: none; }
.feed-item h3 a:hover { text-decoration: underline; }
.feed-item p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 520px) { .feed-item { grid-template-columns: 1fr; } }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: .7rem 0; border-top: 1px solid var(--line-2); display: flex; gap: .75rem; align-items: flex-start; }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list a { font-weight: 650; color: var(--navy-ink); text-decoration: none; }
.mini-list a:hover { text-decoration: underline; }
.mini-date { flex-shrink: 0; width: 46px; text-align: center; border-radius: 8px; background: var(--surface-2); padding: .25rem 0; line-height: 1.1; }
.mini-date .d { display: block; font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.mini-date .m { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.mini-date.meeting { background: var(--meet-bg); }
.mini-date.meeting .d { color: var(--meet); }
.mini-meta { display: block; font-size: .8rem; color: var(--muted); }
.admin-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.count-bubble { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 .5rem; border-radius: 999px; background: var(--gold); color: var(--navy-ink); font-weight: 800; font-size: .88rem; }

.member-card { flex-direction: row; gap: 1rem; padding: 1.1rem; align-items: flex-start; }
.member-card h3 { margin: 0; font-size: 1.02rem; }
.member-card h3 a { color: var(--navy-ink); text-decoration: none; }
.member-card h3 a::after { content: ""; position: absolute; inset: 0; }
.member-card .role { font-size: .87rem; color: var(--ink); margin: .1rem 0 .3rem; }
.member-card .meta { font-size: .8rem; color: var(--muted); }
.profile-head { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.profile-head h1 { color: #fff; margin: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .55rem 1.25rem; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 90px; }
.settings-nav a { padding: .6rem .85rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.settings-nav a:hover { background: #fff; }
.settings-nav a[aria-selected="true"] { background: var(--navy); color: #fff; }
@media (max-width: 820px) { .settings-layout { grid-template-columns: 1fr; } .settings-nav { position: static; flex-direction: row; overflow-x: auto; } .settings-nav a { white-space: nowrap; } }
.tab-panel[hidden] { display: none; }

/* ── Digital ID card ─────────────────────────────────────────────────── */
.id-stage { display: grid; place-items: center; padding: 1rem 0 2rem; }
.id-card { width: min(100%, 520px); aspect-ratio: 1.586; border-radius: 22px; position: relative; overflow: hidden; color: #fff; padding: clamp(1rem, 4vw, 1.6rem); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: .5rem 1rem; background: radial-gradient(420px 220px at 105% -10%, rgba(251,200,111,.45), transparent 60%), radial-gradient(360px 260px at -10% 120%, rgba(47,174,124,.25), transparent 60%), linear-gradient(135deg, var(--navy-ink) 0%, var(--navy) 50%, var(--navy-2) 100%); box-shadow: 0 30px 60px rgba(7,24,47,.35), inset 0 1px 0 rgba(255,255,255,.12); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.id-card::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 10px); pointer-events: none; }
.id-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold)); }
.id-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; position: relative; }
.id-org { display: flex; gap: .6rem; align-items: center; }
.id-org .brand-mark { width: 34px; height: 34px; font-size: 1.05rem; }
.id-org strong { display: block; font-family: var(--serif); font-size: clamp(.9rem, 2.6vw, 1.05rem); letter-spacing: .03em; }
.id-org span { display: block; font-size: clamp(.55rem, 1.6vw, .66rem); color: #b9c5dc; letter-spacing: .06em; text-transform: uppercase; }
.id-chip { width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #fbd28a, #c98314); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.id-main { position: relative; align-self: end; min-width: 0; }
.id-person { display: flex; align-items: flex-end; gap: .8rem; }
.id-photo { width: clamp(54px, 15vw, 84px); aspect-ratio: 3 / 4; height: auto; object-fit: cover; border-radius: 8px; border: 2px solid rgba(255,255,255,.85); flex-shrink: 0; background: rgba(255,255,255,.1); }
.id-name { font-family: var(--serif); font-size: clamp(1.1rem, 4.4vw, 1.65rem); font-weight: 700; line-height: 1.15; margin-bottom: .25rem; overflow-wrap: anywhere; }
.id-line { font-size: clamp(.68rem, 2vw, .82rem); color: #d1dbec; }
.id-qr { position: relative; align-self: end; background: #fff; border-radius: 10px; padding: 6px; width: clamp(78px, 22vw, 116px); }
.id-qr svg { display: block; width: 100%; height: auto; }
.id-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem; position: relative; padding-bottom: .35rem; }
.id-no { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(.8rem, 2.4vw, 1rem); letter-spacing: .08em; color: var(--gold-2); }
.id-label { display: block; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: #9fb0cd; font-family: var(--font); }
.id-status { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: rgba(47,174,124,.22); color: #8ff0c6; border: 1px solid rgba(143,240,198,.4); }
.id-status.pending { background: rgba(251,200,111,.18); color: var(--gold-2); border-color: rgba(251,200,111,.45); }
.verify-card { text-align: center; }
.verify-mark { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.verify-mark.bad { background: var(--err-bg); color: var(--err); }
.verify-mark svg { width: 38px; height: 38px; }

/* ── Chapter site ────────────────────────────────────────────────────── */
.ch-hero { background: radial-gradient(900px 420px at 95% -20%, rgba(255,255,255,.2), transparent 60%), linear-gradient(135deg, var(--accent) 0%, var(--navy) 115%); color: #eef2fa; padding: clamp(2.8rem, 2rem + 4vw, 5rem) 0; position: relative; overflow: hidden; }
.ch-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.ch-hero h1 { color: #fff; max-width: 20ch; }
.ch-hero p.lead { color: #e1e8f5; }
.ch-hero .wrap { position: relative; z-index: 1; }
.ch-hero .badge { background: rgba(255,255,255,.16); color: #fff; }
.ch-facts { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 1.75rem; }
.ch-facts div { min-width: 90px; }
.ch-facts strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ch-facts span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.locked-teaser { position: relative; border: 1px dashed #e9b965; background: repeating-linear-gradient(135deg, #fff9f0 0 10px, #fff 10px 20px); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.locked-teaser .lock-ic { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto .6rem; display: grid; place-items: center; background: var(--gold); color: var(--navy-ink); }
.locked-teaser .lock-ic svg { width: 22px; height: 22px; }
.social { display: flex; gap: .5rem; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .88rem; text-transform: capitalize; }
.social a:hover { border-color: var(--navy); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.checklist .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent, var(--navy)); color: #fff; font-weight: 800; }
.checklist h3 { margin: .2rem 0 .2rem; }
.checklist p { margin: 0; color: var(--muted); font-size: .93rem; }

/* CTA band */
.cta-band { background: radial-gradient(700px 300px at 100% 0%, rgba(248,180,71,.35), transparent 60%), linear-gradient(135deg, var(--navy-ink), var(--navy-2)); color: #dbe3f1; border-radius: 22px; padding: clamp(1.75rem, 1rem + 3vw, 3rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: #c7d2e6; max-width: 58ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Article */
.article-cover { border-radius: var(--radius); overflow: hidden; margin: -3rem 0 2rem; box-shadow: var(--shadow-lg); aspect-ratio: 21 / 9; background: var(--navy); position: relative; z-index: 2; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; color: #c7d2e6; font-size: .9rem; margin-top: .75rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-ink); color: #aebbd4; margin-top: 0; font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 3rem 0 2rem; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-family: var(--font); color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer a { color: #d3dcec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { max-width: 36ch; margin-top: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.1rem 0 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; }
.proto-tag { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-2); }
.proto-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Error page */
.error-code { font-family: var(--serif); font-size: clamp(3rem, 2rem + 6vw, 6rem); color: var(--gold); line-height: 1; margin-bottom: .5rem; }

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
  .site-header, .chapter-bar, .site-footer, .prototype-note, .no-print, .flash-bar, .skip { display: none !important; }
  body { background: #fff; }
  .page-hero { background: none; color: #000; padding: 0 0 1rem; }
  .page-hero h1 { color: #000; }
  .id-card { box-shadow: none; }
  .section { padding: 0; }
}

/* ── Mentoring courses ───────────────────────────────────────────────── */
.badge-course { background: #e7f0fb; color: #1d4f91; }
.facts-plain li { grid-template-columns: 1fr; }
.session-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.session { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: #fff; }
.session > div { display: flex; flex-direction: column; gap: .15rem; }
.session.is-next { border-color: var(--gold, #f5b942); box-shadow: 0 0 0 2px rgba(245, 185, 66, .25); }
.session.is-past { opacity: .65; }
.live-frame { position: relative; width: 100%; height: min(78vh, 760px); border-radius: 12px; overflow: hidden; background: #0b2447; box-shadow: var(--shadow); }
.live-frame.is-video { height: auto; aspect-ratio: 16 / 9; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
