/* ==========================================================================
   Gumel Emirate Foundation — design system v0.3 "Institutional and sharp"
   Source Serif 4 (display) + Source Sans 3 (text). Square corners (2px).
   Three colours used with discipline: forest green, warm stone, one gold accent.
   Fixed spacing and type scales. Mobile-first. WCAG 2.2 AA.
   ========================================================================== */

:root {
  --ink: #0B1A12;            /* hero and footer canvas; white on ink 17:1, gold on ink 7.5:1 */
  --ink-2: #122419;
  --forest: #0E3B25;         /* primary dark surface; white 10.9:1, gold 5.2:1 */
  --green: #0B6B3A;          /* buttons and links on light; white on green 6.6:1 */
  --green-2: #0A5A31;
  --gold: #C9A24A;           /* the one accent; use on dark, or as rules/marks on light */
  --gold-ink: #7A5A12;       /* gold for small text on stone, 5.5:1 */
  --stone: #F2F0EA;          /* page */
  --stone-2: #E7E4DC;        /* alternate band */
  --stone-3: #D9D5CC;
  --rule: #D9D5CC;
  --rule-dark: rgba(255,255,255,.16);
  --text: #1E2A22;
  --slate: #5B6861;          /* muted text, 5.1:1 on stone */
  --white: #FFFFFF;
  --surface: #FFFFFF;        /* cards, inputs */
  --heading: #0B1A12;        /* headings and strong text on light surfaces */
  --btn-border: rgba(11,26,18,.4);
  --ph-bg: #FFF4BF; --ph-line: #D1A500;

  --font-display: "GEF Web Serif", "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-text: "GEF Web Sans", "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;

  --step--1: clamp(.9rem, .88rem + .1vw, .95rem);
  --step-0: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.375rem);
  --step-2: clamp(1.45rem, 1.3rem + .75vw, 1.875rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.4vw, 3.5rem);
  --step-5: clamp(2.7rem, 2rem + 3.6vw, 4.6rem);

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem;
  --section: clamp(4rem, 8vw, 7rem);
  --section-sm: clamp(2.5rem, 5vw, 4rem);
  --container: 1160px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --header-h: 76px;
  --radius: 2px;
  --shadow-card: 0 1px 0 rgba(11,26,18,.06), 0 8px 24px -16px rgba(11,26,18,.25);
  --focus: 3px solid #E0B85C;
}

/* ---------- Base ---------- */
*, *::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-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--font-text); font-size: var(--step-0); line-height: 1.6; color: var(--text); background: var(--stone); overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: var(--heading); margin: 0 0 .5em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; letter-spacing: -.01em; }
h4 { font-family: var(--font-text); font-size: var(--step-0); font-weight: 700; margin: 0 0 .4em; color: var(--heading); }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
.wrap { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { 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-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Type helpers ---------- */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 var(--s-4); }
.dark .eyebrow { color: var(--gold); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 58ch; }
.dark .lede { color: rgba(255,255,255,.84); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark { color: rgba(255,255,255,.88); }
.dark a { color: #fff; }
.dark a:hover { color: var(--gold); }
.measure { max-width: 64ch; }
.small { font-size: var(--step--1); }
.muted { color: var(--slate); }
.dark .muted { color: rgba(255,255,255,.7); }
.serif { font-family: var(--font-display); }
.num { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- Placeholders (prototype only) ---------- */
.proto-bar { background: #000; color: rgba(255,255,255,.8); font-size: .78rem; }
.proto-bar .wrap { display: flex; gap: .5rem .75rem; align-items: center; justify-content: space-between; padding: .3rem 0; flex-wrap: wrap; }
.proto-bar .mark { display: inline-block; width: .75em; height: .75em; background: var(--ph-bg); border: 1px dashed var(--ph-line); vertical-align: -1px; margin-inline: .25em; }
.proto-bar button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: var(--radius); padding: .15rem .5rem; font: inherit; cursor: pointer; }
.ph { background: var(--ph-bg); color: var(--ink); border-bottom: 2px dashed var(--ph-line); padding-inline: .15em; cursor: help; }
.ph-block { background: var(--ph-bg); color: var(--ink); border: 1px dashed var(--ph-line); padding: .9rem 1rem; }
.ph-block > :last-child { margin-bottom: 0; }
body.hide-ph .ph { background: transparent; border-color: transparent; color: inherit; }
body.hide-ph .ph-block { background: transparent; color: inherit; border: 1px dashed var(--rule); }
body.hide-ph .dark .ph-block, body.hide-ph .hero .ph-block { border-color: var(--rule-dark); }
body.hide-ph .ph-block strong { color: inherit; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--radius); font-family: var(--font-text); font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.1; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #D8B25C; border-color: #D8B25C; color: var(--ink); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.btn-outline { background: transparent; color: var(--heading); border-color: var(--btn-border); }
.btn-outline:hover { border-color: var(--heading); color: var(--heading); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 38px; padding: .45rem .95rem; font-size: .88rem; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "→"; }
.dark .link-arrow { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #fff; border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap { display: flex; align-items: center; gap: .75rem; min-height: 64px; width: min(1400px, 100% - 2 * var(--gutter)); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; margin-right: auto; flex: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand .name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.05; letter-spacing: -.01em; }
.brand .name small { display: block; font-family: var(--font-text); font-weight: 600; font-size: .66rem; color: rgba(255,255,255,.62); letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }
.primary-links { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .5rem .85rem; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--radius); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.menu-btn:hover { border-color: #fff; }
.menu-btn .bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-btn .bars::before { top: -6px; } .menu-btn .bars::after { top: 6px; }
.header-campaign { min-height: 42px; padding: .5rem 1.1rem; white-space: nowrap; }
@media (min-width: 900px) {
  .site-header .wrap { min-height: var(--header-h); gap: .75rem; }
  .brand img { width: 44px; height: 44px; }
  .primary-links { display: flex; align-items: center; gap: .1rem; margin-right: .25rem; }
  .primary-links a { color: rgba(255,255,255,.9); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .7rem; white-space: nowrap; border-bottom: 2px solid transparent; }
  .primary-links a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.5); }

  .primary-links a.campaign { color: var(--gold); }
  .primary-links a.campaign:hover { border-bottom-color: var(--gold); }
  .primary-links a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
}
@media (min-width: 1280px) { .menu-btn .label { display: none; } .menu-btn { padding: .5rem .7rem; } }
@media (min-width: 900px) and (max-width: 1279px) { .primary-links { display: none; } }
html.a11y-text-lg .primary-links, html.a11y-text-xl .primary-links { display: none; }
@media (max-width: 899px) {
  .brand { flex: 1; min-width: 0; }
  .brand .name { overflow-wrap: anywhere; }
  .brand .name small { display: none; }
}
@media (max-width: 420px) {
  .site-header .wrap { gap: .4rem; }
  .site-header .header-campaign { padding-inline: .5rem; }
  .site-header .brand img { width: 32px; height: 32px; }
}
@media (max-width: 640px) { .brand .name small { display: none; } .brand .name { font-size: .98rem; white-space: normal; max-width: 13ch; } .menu-btn .label { display: none; } .menu-btn { padding: .5rem .7rem; } .header-campaign { padding-inline: .75rem; } .header-campaign .yr { display: none; } .site-header .wrap { gap: .5rem; } }
@media (max-width: 480px) { .brand .name { display: none; } .brand img { width: 44px; height: 44px; } }

/* ---------- Full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 200; background: var(--ink); color: #fff; overflow: auto; display: none; }
.menu.open { display: block; }
.menu .menu-top { display: flex; justify-content: space-between; align-items: center; min-height: 64px; border-bottom: 1px solid var(--rule-dark); }
.menu .close-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .5rem .85rem; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer; }
.menu .close-btn:hover { border-color: #fff; }
.menu-grid { display: grid; gap: 1.75rem 2.5rem; padding: 2rem 0 3rem; }
@media (min-width: 760px) { .menu-grid { grid-template-columns: repeat(3, 1fr); padding-top: 3rem; } }

.menu-grid h2 { font-size: var(--step-1); margin-bottom: .6rem; }
.menu-grid h2 a { color: #fff; text-decoration: none; }
.menu-grid h2 a:hover { color: var(--gold); }
.menu-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.menu-grid li a { color: rgba(255,255,255,.78); text-decoration: none; padding: .3rem 0; display: inline-block; font-size: .98rem; }
.menu-grid li a:hover { color: var(--gold); }
.menu-grid .services h2 a, .menu-grid .campaign h2 a { color: var(--gold); }
.menu-foot { border-top: 1px solid var(--rule-dark); padding: 1.5rem 0 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; color: rgba(255,255,255,.75); font-size: .95rem; }
.menu-foot a { color: #fff; }

/* ---------- Hero (Enthronement takeover) ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 2rem; padding-top: var(--section-sm); align-items: stretch; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 3rem; padding-top: 0; min-height: min(760px, calc(100vh - 150px)); } }
.hero .copy { padding-bottom: var(--section-sm); align-self: center; }
@media (min-width: 900px) { .hero .copy { padding: var(--section-sm) 0; } }
.hero h1 { color: #fff; max-width: 16ch; text-wrap: balance; line-height: 1.02; margin-bottom: .45em; }
.hero .who { font-family: var(--font-display); font-size: var(--step-1); color: rgba(255,255,255,.92); margin: 0 0 .3rem; }
.hero .when { color: var(--gold); font-weight: 600; letter-spacing: .02em; margin: 0 0 var(--s-6); }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .note { margin-top: var(--s-6); color: rgba(255,255,255,.68); font-size: var(--step--1); max-width: 46ch; }
.hero .note a { color: #fff; }
/* Portrait: the official photograph has a black background; blending with "lighten" lets the canvas show through it so there is no visible box */
.portrait { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .portrait { aspect-ratio: auto; min-height: 520px; margin: 0 0 0 auto; align-self: stretch; } }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; mix-blend-mode: lighten; }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, var(--ink) 0%, rgba(11,26,18,0) 26%), linear-gradient(to left, var(--ink) 0%, rgba(11,26,18,0) 18%), linear-gradient(to bottom, var(--ink) 0%, rgba(11,26,18,0) 14%); pointer-events: none; }
.hero-rule { height: 3px; background: var(--gold); }
[hidden] { display: none !important; }

/* ---------- Foundation statement + proof ---------- */
.statement { padding: var(--section) 0 var(--section-sm); }
.statement .wrap { display: grid; gap: 2rem; }
@media (min-width: 900px) { .statement .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: end; } }
.statement h2 { font-size: var(--step-5); max-width: 12ch; }
.statement .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: var(--s-5); }
.statement .motto { font-family: var(--font-display); font-style: italic; color: var(--slate); margin-top: var(--s-5); }
.proof { background: var(--forest); color: #fff; }
.proof .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem; padding: var(--s-7) 0; }
@media (min-width: 760px) { .proof .wrap { grid-template-columns: repeat(4, 1fr); } }
.proof > .wrap > div { border-left: 1px solid rgba(201,162,74,.45); padding-left: 1rem; }
.proof .num { font-size: var(--step-4); color: var(--gold); }
.proof .label { margin-top: .5rem; font-weight: 600; line-height: 1.3; }
.proof .asof { color: rgba(255,255,255,.65); font-size: .82rem; margin-top: .25rem; }
.proof .asof abbr { text-decoration: none; border-bottom: 1px dotted; cursor: help; }
.proof .ph { color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-sm { padding: var(--section-sm) 0; }
.band-2 { background: var(--stone-2); }
.dark { background: var(--forest); }
.ink { background: var(--ink); }
.section-head { max-width: 62ch; margin-bottom: var(--s-7); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section-head p { color: var(--slate); font-size: var(--step-1); }
.dark .section-head p { color: rgba(255,255,255,.84); }

/* Numbered work grid (BilFair-style services) */
.work-grid { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(5, 1fr); border-left: 1px solid var(--rule); } }
.work-item { display: block; text-decoration: none; color: inherit; padding: 1.5rem 1.25rem 1.75rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 1100px) { .work-item { padding: 1.75rem 1.25rem; border-right: 1px solid var(--rule); } }
.work-item .n { font-family: var(--font-display); font-size: var(--step-1); color: var(--gold-ink); display: block; margin-bottom: .9rem; }
.work-item h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.work-item p { color: var(--slate); font-size: .95rem; margin: 0 0 .8rem; }
.work-item .more { font-weight: 600; color: var(--green); font-size: .92rem; }
.work-item:hover h3 { color: var(--green); }
.dark .work-grid, .dark .work-item { border-color: var(--rule-dark); }

/* Steps (funding model) */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.steps li { position: relative; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.dark .steps li { border-top-color: var(--rule-dark); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: var(--step-2); color: var(--gold-ink); display: block; margin-bottom: .5rem; }
.dark .steps li::before { color: var(--gold); }
.steps h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--slate); }
.dark .steps p { color: rgba(255,255,255,.8); }

/* Places strip */
.places { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .places { grid-template-columns: repeat(4, 1fr); } }
.place { display: block; text-decoration: none; color: inherit; background: var(--stone); padding: 1.25rem 1.25rem 1.4rem; }
.place:hover { background: var(--surface); }
.place h3 { font-size: var(--step-1); margin: 0 0 .25rem; }
.place p { margin: 0; color: var(--slate); font-size: .92rem; }
.place .count { font-family: var(--font-display); color: var(--gold-ink); font-size: var(--step-2); display: block; margin-bottom: .6rem; }

/* Cards (stories) */
.cards { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow-card); }
.card .img { aspect-ratio: 3 / 2; background: var(--stone-2); overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img.placeholder { display: grid; place-items: center; color: var(--gold-ink); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.card .body { padding: 1.1rem 1.25rem 1.4rem; }
.card .meta { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: .5rem; }
.card h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.card:hover h3 { color: var(--green); }
.card p { margin: 0; color: var(--slate); font-size: .95rem; }

/* Homepage section introductions and editorial stories */
.home-centred .section-head { max-width: 960px; margin-inline: auto; text-align: center; }
.home-centred .section-head h2 { max-width: 30ch; margin-inline: auto; text-wrap: balance; }
.home-centred .section-head > p:not(.eyebrow) { max-width: 60ch; margin-inline: auto; }
.home-centred .section-head > .eyebrow { font-size: .78rem; color: var(--gold-ink); }
.home-centred .section-head .link-arrow { display: inline-block; margin-top: .5rem; }
.home-centred .work-item { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem 1.25rem; text-align: center; min-width: 0; }
.home-centred .work-item h3 { text-wrap: balance; }
.home-centred .work-item .more { margin-top: auto; padding-top: .75rem; }
.home-section-action, .home-centred .place { text-align: center; }
.home-centred .place h3 { text-wrap: balance; }
.home-funding .section-head { max-width: 800px; }
.home-funding .section-head > p:not(.eyebrow) { max-width: 54ch; font-size: var(--step-0); }
.funding-model { display: grid; gap: var(--s-7); align-items: center; }
.funding-photo { margin: 0; min-width: 0; }
.funding-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.funding-photo figcaption { margin-top: var(--s-3); font-size: var(--step--1); color: var(--slate); }
.funding-flow { grid-template-columns: minmax(0, 1fr); gap: 0; text-align: left; }
.funding-flow li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: var(--s-4); padding: var(--s-5) 0; }
.funding-flow li:first-child { padding-top: 0; border-top: 0; }
.funding-flow li:last-child { padding-bottom: 0; }
.funding-flow li::before { grid-row: 1 / 3; font-size: var(--step-1); line-height: 1.3; margin: 0; }
.funding-flow h3 { font-size: var(--step-1); line-height: 1.25; text-wrap: balance; margin-bottom: var(--s-2); }
.funding-flow p { font-size: 1rem; max-width: 52ch; }
.funding-close { margin-top: var(--s-7); text-align: center; }
.funding-context { max-width: 72ch; margin: var(--s-5) auto 0; font-size: var(--step--1); color: var(--slate); }
@media (min-width: 960px) {
  .funding-model { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
}
#stories .section-head { margin-bottom: var(--s-6); }
#stories .section-head h2 { font-size: var(--step-3); margin-bottom: var(--s-4); }
.home-stories { display: grid; gap: var(--s-6); }
.home-centred .section-head > .feed-status { font-size: .85rem; color: var(--slate); margin-top: var(--s-4); margin-bottom: 0; }
.home-stories.single-story { grid-template-columns: minmax(0, 1fr); }
.feed-empty { color: var(--slate); text-align: center; }
.home-story { min-width: 0; }
.story-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--heading); }
.story-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-4); }
.story-meta p { margin: 0; font-size: .85rem; }
.story-topic { font-weight: 700; color: var(--gold-ink); }
.home-story-date { color: var(--slate); }
.home-story h3 { font-size: var(--step-1); line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; margin-bottom: var(--s-3); }
.story-summary { font-size: 1rem; line-height: 1.6; color: var(--slate); max-width: 58ch; margin-bottom: var(--s-5); }
.story-readmore { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--green); }
.story-readmore > span { font-size: var(--step-1); }
.story-link:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.home-story-lead { background: var(--forest); }
.home-story-lead .story-link { padding: var(--s-6); color: var(--white); }
.home-story-lead h3 { font-size: var(--step-2); line-height: 1.2; color: var(--white); }
.home-story-lead .story-topic, .home-story-lead .story-readmore { color: var(--gold); }
.home-story-lead .home-story-date, .home-story-lead .story-summary { color: color-mix(in srgb, var(--white) 85%, var(--forest)); }
.home-story-lead .story-readmore { padding-top: var(--s-5); border-top: 1px solid var(--rule-dark); }
.home-stories-secondary { display: grid; gap: var(--s-5); }
.home-stories-secondary .home-story { border-bottom: 1px solid var(--rule); padding-bottom: var(--s-5); }
@media (min-width: 960px) {
  .home-stories { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); }
  .home-story-lead .story-link { padding: var(--s-7); }
  .home-story-lead h3 { font-size: clamp(1.875rem, 1.5rem + .75vw, 2.25rem); }
}

/* Get involved */
.involve .wrap { display: grid; gap: 2rem; padding: var(--section) 0; align-items: center; }
@media (min-width: 900px) { .involve .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.involve h2 { max-width: 16ch; }
.involve.accepted-involve-introduction .wrap { display: block; padding: 3rem 0; }
.involve.accepted-involve-introduction p { max-width: 62ch; margin: 1rem 0 1.5rem; }
.ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.ways li { border-bottom: 1px solid var(--rule-dark); }
.ways a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; color: #fff; text-decoration: none; font-weight: 600; }
.ways a:hover { color: var(--gold); }
.ways a span:last-child { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); font-size: .95rem; border-top: 1px solid var(--rule-dark); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer .cols { display: grid; gap: 2rem; padding: var(--section-sm) 0 2rem; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-text); color: var(--gold); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer .brand-foot { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.site-footer .brand-foot img { width: 52px; height: 52px; }
.site-footer .brand-foot strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.site-footer .brand-foot span { font-size: .82rem; color: rgba(255,255,255,.6); }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer .social { display: flex; gap: .6rem; margin-top: .9rem; }
.site-footer .social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule-dark); border-radius: var(--radius); }
.site-footer .social a:hover { border-color: var(--gold); }
.site-footer .social svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer .legal { border-top: 1px solid var(--rule-dark); padding: 1.1rem 0 1.5rem; font-size: .85rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer .legal ul { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.site-footer .newsletter { display: flex; gap: .5rem; margin-top: .8rem; }
.site-footer .newsletter input { flex: 1; min-width: 0; padding: .6rem .8rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; font: inherit; min-height: 42px; }
.site-footer .newsletter input::placeholder { color: rgba(255,255,255,.5); }
.site-footer .legal .ph { color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; }
.form label { font-weight: 600; display: block; margin-bottom: .3rem; }
.form .hint { color: var(--slate); font-size: var(--step--1); margin-top: .3rem; }
.form input, .form select, .form textarea { width: 100%; padding: .7rem .85rem; border: 1px solid var(--btn-border); border-radius: var(--radius); font: inherit; color: var(--text); background: var(--surface); min-height: 44px; }
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .req { color: #A32D2D; }
.form-note { padding: .8rem 1rem; border-radius: var(--radius); background: rgba(11,107,58,.1); border: 1px solid rgba(11,107,58,.3); color: var(--forest); display: none; }
.form-note.show { display: block; }
.dark .form label { color: #fff; } .dark .form .hint { color: rgba(255,255,255,.7); }

/* ---------- Inner pages ---------- */
.crumbs { font-size: var(--step--1); color: var(--slate); padding: 1rem 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--slate); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--forest); text-decoration: underline; }
.page-hero { padding: var(--section-sm) 0 var(--section-sm); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .page-hero.with-media .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { max-width: 60ch; }
.page-hero.dark { border-bottom: 0; }
.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--rule); }
.figure figcaption { font-size: .82rem; color: var(--slate); margin-top: .5rem; }
.dark .figure figcaption { color: rgba(255,255,255,.7); }
.dark .figure img { border-color: var(--rule-dark); }
.figure.portrait-fig img { aspect-ratio: 4 / 5; object-position: top; }
.biography-portrait { width: min(100%, 360px); margin-inline: auto; }
.biography h2 { scroll-margin-top: calc(var(--header-h) + 5rem); overflow-wrap: anywhere; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: var(--s-6) 0; }
.facts > div { background: var(--stone); padding: 1.1rem 1rem; }
.facts .num { font-size: var(--step-3); color: var(--heading); }
.facts .label { margin-top: .5rem; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.facts .asof { color: var(--slate); font-size: .8rem; margin-top: .2rem; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a, .rows .row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: 1rem 0; text-decoration: none; color: var(--heading); }
.rows h3 { font-size: var(--step-1); margin: 0 0 .2rem; }
.rows a:hover h3 { color: var(--green); }
.rows p { margin: 0; color: var(--slate); font-size: .95rem; }
.rows .meta { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; white-space: nowrap; }
.dark .rows { border-top-color: var(--rule-dark); } .dark .rows li { border-bottom-color: var(--rule-dark); }
.dark .rows a, .dark .rows .row { color: #fff; } .dark .rows p { color: rgba(255,255,255,.75); } .dark .rows .meta { color: var(--gold); } .dark .rows a:hover h3 { color: var(--gold); }

.tiles { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tiles.four { grid-template-columns: repeat(4, 1fr); } .tiles.three { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: block; text-decoration: none; color: #fff; background: var(--forest); aspect-ratio: 4 / 5; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,59,37,0) 35%, rgba(14,59,37,.94) 100%); }
.tile .txt { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; }
.tile h3 { color: #fff; margin: 0 0 .25rem; font-size: var(--step-2); }
.tile p { margin: 0; color: var(--gold); font-size: .9rem; }
.tile:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.people { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .people { grid-template-columns: repeat(4, 1fr); } }
.person img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--stone-2); border: 1px solid var(--rule); }
.person h3, .person h4 { font-family: var(--font-display); font-size: var(--step-0); margin: .8rem 0 .15rem; }
.person p { margin: 0; color: var(--slate); font-size: .9rem; }
.chairs { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.chairs li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.chairs li::before { content: ""; position: absolute; left: -4px; top: .55rem; width: 7px; height: 7px; background: var(--gold); }
.chairs .yrs { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); }
.chairs strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--heading); }

.partners { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.partners li { border: 1px solid var(--rule); padding: .4rem .75rem; font-size: .9rem; color: var(--text); background: var(--surface); }

.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .5rem; }
.filters button { font: inherit; font-size: .86rem; font-weight: 600; padding: .4rem .8rem; border-radius: var(--radius); border: 1px solid var(--btn-border); background: transparent; color: var(--heading); cursor: pointer; min-height: 34px; }
.filters button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.filters button:hover { border-color: var(--forest); }
.filter-group { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; }
.filter-group .lbl { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--slate); min-width: 6.5rem; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.news-list li { border-bottom: 1px solid var(--rule); }
.news-list a { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 0; text-decoration: none; color: var(--heading); align-items: baseline; }
@media (max-width: 520px) { .news-list a { grid-template-columns: 1fr; gap: .25rem; } }
.news-list time { font-size: .85rem; color: var(--slate); font-variant-numeric: tabular-nums; }
.news-list h3 { font-size: var(--step-1); margin: 0 0 .3rem; }
.news-list a:hover h3 { color: var(--green); }
.news-list .tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.news-list .tag { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: .15rem .5rem; border: 1px solid var(--rule); color: var(--slate); }
.news-list .tag.type { border-color: rgba(122,90,18,.45); color: var(--gold-ink); }
.news-list .tag.ha { border-color: rgba(11,107,58,.45); color: var(--green); }
.count-line { color: var(--slate); font-size: .92rem; margin: 1rem 0; }

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.contact-grid address { font-style: normal; line-height: 1.8; }
.contact-grid .dept { border-top: 1px solid var(--rule); padding: .9rem 0; display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.contact-grid .dept:last-of-type { border-bottom: 1px solid var(--rule); }
.contact-grid .dept strong { display: block; }
.contact-grid .dept span { color: var(--slate); font-size: .92rem; }
.map-ph { border: 1px dashed var(--ph-line); background: var(--ph-bg); color: var(--ink); min-height: 200px; display: grid; place-items: center; text-align: center; padding: 1rem; margin-top: 1.5rem; }
.emirate-map { margin: var(--s-6) 0 0; }
.emirate-map img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); background: var(--stone); }
.emirate-map figcaption { margin-top: .5rem; color: var(--slate); font-size: .82rem; }

.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.docs li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.docs strong { display: block; }
.docs span { color: var(--slate); font-size: .9rem; }

/* ---------- Enthronement page ---------- */
.sub-nav { position: sticky; top: 64px; z-index: 90; background: var(--stone); border-bottom: 1px solid var(--rule); overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .sub-nav { top: var(--header-h); } }
.sub-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; white-space: nowrap; }
.sub-nav a { display: inline-block; padding: .9rem .75rem; color: var(--heading); text-decoration: none; font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; min-height: 44px; }
.sub-nav a:hover, .sub-nav a[aria-current="true"] { border-bottom-color: var(--gold); color: var(--forest); }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(201,162,74,.35); border: 1px solid rgba(201,162,74,.35); max-width: 520px; margin: var(--s-5) 0 var(--s-6); }
.countdown .unit { background: var(--ink); padding: .8rem .25rem; text-align: center; }
.countdown .val { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-top: .4rem; }
.countdown-tba { margin: var(--s-5) 0 var(--s-6); display: inline-flex; gap: .7rem; align-items: center; border: 1px solid rgba(201,162,74,.45); padding: .85rem 1.1rem; color: #fff; }
.countdown-tba svg { color: var(--gold); flex: none; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: .5rem; width: 7px; height: 7px; background: var(--gold); }
.timeline .day { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); margin-bottom: .25rem; }
.timeline h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.timeline p { margin: 0; color: var(--slate); }
.two-col { display: grid; gap: 2rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.info-list li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; }
.info-list svg { width: 22px; height: 22px; color: var(--green); margin-top: .15rem; }
.dark .info-list svg { color: var(--gold); }
.wall { display: grid; gap: 1rem; }
.msg { border-left: 2px solid var(--gold); padding: .25rem 0 .25rem 1.1rem; }
.msg p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; margin: 0 0 .4rem; }
.msg .who { font-size: var(--step--1); color: var(--slate); font-weight: 600; }
.dark .msg .who { color: rgba(255,255,255,.75); }
.tiers { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 1.5rem; }
@media (min-width: 760px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--surface); padding: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.tier .lvl { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--gold-ink); }
.tier .amt { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); color: var(--forest); }
.tier ul { margin: 0 0 .5rem; padding-left: 1.1rem; color: var(--slate); font-size: .95rem; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.bank dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
.bank dt { color: var(--slate); font-weight: 600; }
.bank dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.notice { border-left: 2px solid var(--gold); padding: .25rem 0 .25rem 1.1rem; }
.profile { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .profile { grid-template-columns: .85fr 1.15fr; gap: 4rem; } }
.gallery { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border: 1px solid var(--rule-dark); }
.gallery figcaption { font-size: .85rem; color: rgba(255,255,255,.7); margin-top: .5rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

.tile.pattern { background: var(--forest); }


/* ==========================================================================
   Display and accessibility preferences (header controls)
   ========================================================================== */
/* Dark theme: pages turn dark; hero, menu and footer are dark in both themes */
html[data-theme="dark"] { --stone: #0F1C14; --stone-2: #142419; --stone-3: #24382C; --rule: rgba(255,255,255,.14); --text: #E6E4DD; --slate: #A9B3AC; --surface: #142419; --heading: #FFFFFF; --btn-border: rgba(255,255,255,.4); --gold-ink: #D9B45C; --forest: #0B2F1E; --shadow-card: none; }
html[data-theme="dark"] .proof { background: #0B2F1E; }
html[data-theme="dark"] .dark { background: #0B2F1E; }
html[data-theme="dark"] body.hide-ph .ph, html[data-theme="dark"] body.hide-ph .ph-block { color: inherit; }
html[data-theme="dark"] .btn-green { background: var(--gold); color: #0B1A12; border-color: var(--gold); }
html[data-theme="dark"] .tile .shade { background: linear-gradient(180deg, rgba(11,47,30,0) 35%, rgba(11,47,30,.94) 100%); }

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--radius); cursor: pointer; padding: 0; flex: none; }
.icon-btn:hover { border-color: #fff; }
.icon-btn[aria-pressed="true"], .icon-btn[aria-expanded="true"] { background: var(--gold); color: #0B1A12; border-color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .sun { display: none; }
html[data-theme="dark"] .icon-btn .moon { display: none; }
html[data-theme="dark"] .icon-btn .sun { display: block; }
.header-tools { display: flex; gap: .5rem; align-items: center; }
@media (max-width: 640px) { .header-tools .theme-btn { display: none; } }

.a11y-panel { position: fixed; top: calc(var(--header-h) + 8px); right: var(--gutter); z-index: 150; width: min(360px, calc(100% - 2 * var(--gutter))); background: var(--surface); color: var(--text); border: 1px solid var(--rule); box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); padding: 1.1rem 1.2rem 1.2rem; max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
.a11y-panel h2 { font-family: var(--font-text); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .8rem; }
.a11y-panel .group { margin-bottom: 1rem; }
.a11y-panel .group-lbl { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; display: block; color: var(--heading); }
.a11y-panel .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.a11y-panel .seg button { font: inherit; font-size: .88rem; font-weight: 600; padding: .55rem .5rem; background: var(--surface); color: var(--heading); border: 0; cursor: pointer; min-height: 40px; }
.a11y-panel .seg button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.a11y-panel .toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; font: inherit; font-size: .95rem; font-weight: 600; color: var(--heading); background: transparent; border: 0; border-top: 1px solid var(--rule); padding: .7rem 0; cursor: pointer; text-align: left; min-height: 44px; }
.a11y-panel .toggle:last-of-type { border-bottom: 1px solid var(--rule); }
.a11y-panel .toggle .sw { flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--stone-3); position: relative; transition: background .15s; }
.a11y-panel .toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.a11y-panel .toggle[aria-pressed="true"] .sw { background: var(--green); }
.a11y-panel .toggle[aria-pressed="true"] .sw::after { transform: translateX(16px); }
.a11y-panel .reset { margin-top: .9rem; }
.a11y-panel .foot { font-size: .82rem; color: var(--slate); margin: .9rem 0 0; }
.a11y-panel .foot a { color: var(--green); }
html[data-theme="dark"] .a11y-panel .foot a { color: var(--gold); }

/* Preference classes on <html> */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }
html.a11y-contrast { --text: #000; --slate: #1E2A22; --heading: #000; --rule: #6B6B6B; --btn-border: #000; --gold-ink: #5C4100; --stone: #FFFFFF; --stone-2: #F2F2F2; --surface: #FFFFFF; }
html.a11y-contrast[data-theme="dark"] { --text: #FFF; --slate: #E6E6E6; --heading: #FFF; --rule: #BDBDBD; --btn-border: #FFF; --gold-ink: #FFD98A; --stone: #000; --stone-2: #111; --surface: #000; --gold: #FFD98A; }
html.a11y-contrast .dark, html.a11y-contrast .proof, html.a11y-contrast .hero, html.a11y-contrast .site-header, html.a11y-contrast .site-footer, html.a11y-contrast .menu { background: #000; }
html.a11y-contrast .dark .lede, html.a11y-contrast .dark .muted, html.a11y-contrast .proof .asof, html.a11y-contrast .hero .note, html.a11y-contrast .site-footer { color: #fff; }
html.a11y-font, html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font .num, html.a11y-font .brand .name, html.a11y-font .hero .who, html.a11y-font .msg p, html.a11y-font .statement .motto { font-family: Verdana, "Atkinson Hyperlegible", Tahoma, Arial, sans-serif; letter-spacing: 0; }
html.a11y-font h1, html.a11y-font h2, html.a11y-font h3 { font-weight: 700; }
html.a11y-spacing body { line-height: 1.85; letter-spacing: .02em; word-spacing: .12em; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 1.3em; }
html.a11y-spacing h1, html.a11y-spacing h2, html.a11y-spacing h3 { line-height: 1.25; }
html.a11y-underline a { text-decoration: underline !important; text-decoration-thickness: 1px; }
html.a11y-headings h1, html.a11y-headings h2, html.a11y-headings h3 { padding-left: .5em; border-left: 6px solid var(--gold); }
html.a11y-motion, html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
html.a11y-focus :focus-visible { outline: 4px solid #1D4ED8 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #fff !important; }

/* Menu groups collapse on phones; everything is open on wider screens */
.menu-grid .mg { position: relative; }
.menu-grid .mg h2 { display: inline-block; margin-right: .5rem; }
.mg-toggle { display: none; }
@media (max-width: 759px) {
  .menu-grid .mg { border-top: 1px solid var(--rule-dark); padding: .35rem 0 .2rem; }
  .menu-grid .mg:first-child { border-top: 0; }
  .menu-grid .mg h2 { margin: .45rem 0; }
  .menu-grid .mg ul { display: none; padding: 0 0 .75rem; }
  .menu-grid .mg.open ul { display: grid; }
  .mg-toggle { display: inline-grid; place-items: center; position: absolute; right: 0; top: .2rem; width: 40px; height: 40px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
  .menu-grid .mg.open .mg-toggle span { display: inline-block; transform: rotate(45deg); }
  .menu-grid { gap: 0; padding: .5rem 0 2rem; }
}
