/* =========================================================
   Prune Hill Capital - site stylesheet
   Layout: fixed header, full-width bands, 1200px content column.
   ========================================================= */

:root {
  --bg: #F6F7F5;
  --bg-alt: #ECF0ED;
  --surface: #FFFFFF;
  --ink: #16201B;
  --ink-2: #34403A;
  --muted: #62706A;
  --line: #D7DED9;
  --line-strong: #B5C1B9;
  --brand: #1B3A2D;
  --brand-2: #2C5A45;
  --brand-soft: #E4EEE8;
  --gold: #A9792C;
  --gold-soft: #F6EBD6;
  --rhul-orange: #EB641E; /* Royal Holloway "Brick Orange" (Pantone 166C) */
  --on-brand: #FFFFFF;
  --ok: #2E7D5B;
  --ok-soft: #E3F2EA;
  --warn: #A66A00;
  --warn-soft: #FBF0D9;
  --bad: #B23A3A;
  --bad-soft: #F8E3E3;

  --f-display: "Spectral", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 28, 22, .04), 0 8px 24px rgba(16, 28, 22, .06);
  --max: 1200px;
  --header-h: 72px;
}

:root[data-theme="dark"] {
  --bg: #0F1412;
  --bg-alt: #141B17;
  --surface: #18211C;
  --ink: #E9EFEB;
  --ink-2: #CBD5CF;
  --muted: #98A69E;
  --line: #26322B;
  --line-strong: #3A4A41;
  --brand: #9CC9B0;
  --brand-2: #B7DCC6;
  --brand-soft: #1C2A23;
  --gold: #D9B26A;
  --gold-soft: #2E2618;
  --on-brand: #0F1412;
  --ok: #6CC79C;
  --ok-soft: #16271F;
  --warn: #E3B04B;
  --warn-soft: #2C2414;
  --bad: #EC8A8A;
  --bad-soft: #2E1818;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-rhul { color: var(--rhul-orange); font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.section.alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.stack { display: grid; gap: 16px; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }
.brand-sub { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: .94rem; font-weight: 500;
}
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-links a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

@media (max-width: 1040px) {
  .menu-btn { display: grid; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-actions .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-2); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: #1B3A2D; }
.btn-light:hover { background: #E4EEE8; color: #1B3A2D; }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn svg { width: 16px; height: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(64px, 10vw, 128px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand-2); }
.hero .lead { margin-top: 20px; }
.hero .btn-row { margin-top: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: .82rem; color: var(--ink-2);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero-art { position: relative; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 24px;
}
.hero-card + .hero-card { margin-top: 16px; }
.hero-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 12px; }
.hero-card-head h3 { font-size: 1.05rem; }
.hero-contour { position: absolute; inset: 0; pointer-events: none; opacity: .5; }
.hero-contour path { fill: none; stroke: var(--line); stroke-width: 1; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-hero .eyebrow { display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero .lead { margin-top: 18px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.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)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--ink-2); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.card .icon svg { width: 22px; height: 22px; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card .more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--brand-2); display: inline-flex; gap: 6px; align-items: center; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 24px 24px 22px; border-right: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.stat:last-child { border-right: 0; }
.stat .value { font-family: var(--f-display); font-size: 2rem; font-weight: 600; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .label { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Check lists */
.checklist, .crosslist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li, .crosslist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.checklist li::before, .crosslist li::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.checklist li::before { background-color: var(--ok-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D5B' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.crosslist li::before { background-color: var(--bad-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B23A3A' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }

/* ---------- Range bars (allocation targets) ---------- */
.ranges { display: grid; gap: 18px; }
.range-row { display: grid; gap: 8px; }
.range-top { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.range-top strong { font-weight: 600; }
.range-top span { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.range-track { position: relative; height: 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); }
.range-fill { position: absolute; top: -1px; bottom: -1px; border-radius: 999px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.range-marker { position: absolute; top: -5px; width: 3px; height: 20px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); transition: left .25s; }
.range-scale { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 10px; align-content: start; }
.step-num { font-family: var(--f-mono); font-size: .78rem; color: var(--gold); letter-spacing: .1em; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .93rem; color: var(--ink-2); }
.step .who { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
@media (max-width: 1040px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { display: grid; grid-template-columns: 140px 24px 1fr; gap: 16px; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.tl-label { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); padding-top: 3px; text-align: right; }
.tl-dot { position: relative; display: flex; justify-content: center; }
.tl-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); margin-top: 6px; box-shadow: 0 0 0 4px var(--brand-soft); position: relative; z-index: 1; }
.tl-dot::after { content: ""; position: absolute; top: 18px; bottom: -38px; width: 2px; background: var(--line); }
.timeline li:last-child .tl-dot::after { display: none; }
.tl-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.tl-body p { color: var(--ink-2); }
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 24px 1fr; }
  .tl-label { grid-column: 2; text-align: left; order: -1; }
  .tl-dot { grid-row: 1 / span 2; grid-column: 1; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
td.n, th.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
td strong { font-weight: 600; }

/* ---------- Org chart ---------- */
.org-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.org { width: max-content; min-width: 100%; padding: 40px 28px 44px; display: flex; flex-direction: column; align-items: center; }
.ocard { box-sizing: border-box; width: 160px; padding: 12px 14px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); display: grid; gap: 3px; text-align: left; }
.ocard.w { width: 220px; }
.ocard .r { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.35; }
.ocard .n { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.ocard .d { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.ocard.lead { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.ocard.lead .n { color: var(--on-brand); }
.ocard.lead .r, .ocard.lead .d { color: var(--on-brand); opacity: .8; }
.ocard.head { background: var(--brand-soft); border-color: var(--brand); }
.ocard.dash { border-style: dashed; background: transparent; }
.ocard.analysts { width: 100%; max-width: 560px; text-align: center; justify-items: center; }
.ovdash { width: 0; height: 30px; border-left: 1.5px dashed var(--line-strong); }
.ovdash.s { height: 22px; }
.opeer { position: relative; }
.oside { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.oside.l { right: 100%; }
.oside.r { left: 100%; }
.olink { width: 84px; border-top: 1.5px solid var(--line-strong); position: relative; }
.olink.dash { border-top-style: dashed; }
.olink b { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); font-family: var(--f-mono); font-weight: 500; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ocomm { width: 240px; }
.ocomm .members { display: grid; gap: 1px; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.otree, .otree ul { margin: 0; padding: 0; }
.otree ul { display: flex; justify-content: center; padding-top: 26px; position: relative; }
.otree li { list-style: none; position: relative; padding: 26px 6px 0; display: flex; flex-direction: column; align-items: center; }
.otree li::before, .otree li::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 26px; border-top: 1.5px solid var(--line-strong); }
.otree li::after { right: auto; left: 50%; border-left: 1.5px solid var(--line-strong); }
.otree li:first-child::before, .otree li:last-child::after { border: 0; }
.otree li:last-child::before { border-right: 1.5px solid var(--line-strong); border-radius: 0 8px 0 0; }
.otree li:first-child::after { border-radius: 8px 0 0 0; }
.otree li:only-child { padding-top: 0; }
.otree li:only-child::before, .otree li:only-child::after { display: none; }
.otree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 26px; border-left: 1.5px solid var(--line-strong); }
.otree > li { padding-top: 0; }
.otree .officers > li { padding-inline: 8px; }
.org-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 14px; }
.org-legend span { display: inline-flex; align-items: center; gap: 8px; }
.org-legend i { width: 28px; border-top: 1.5px solid var(--line-strong); }
.org-legend i.dash { border-top-style: dashed; }
.scroll-hint { display: none; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.scroll-hint.show { display: block; }
html:not(.js) .scroll-hint { display: block; }

/* People */
.person { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 600; font-size: 1.15rem;
  background: var(--brand-soft); color: var(--brand); border: 1px solid var(--line);
}
.avatar.lead { background: var(--brand); color: var(--on-brand); }
.avatar.open { background: transparent; border-style: dashed; color: var(--muted); }
.person .role { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.person h3 { font-size: 1.25rem; margin: 2px 0 8px; }
.person p { font-size: .95rem; color: var(--ink-2); }
.person ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .93rem; display: grid; gap: 4px; }

/* ---------- Doc layout (mandate) ---------- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; font-size: .9rem; }
.toc .eyebrow { margin-bottom: 8px; }
.toc a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--brand); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.toc .btn { margin-top: 16px; }
.doc-body { display: grid; gap: 56px; max-width: 820px; }
.doc-sec { display: grid; gap: 18px; }
.doc-sec h2 { font-size: 1.8rem; display: flex; gap: 14px; align-items: baseline; }
.doc-sec h2 .secno { font-family: var(--f-mono); font-size: .95rem; color: var(--gold); font-weight: 500; }
.doc-sec h3 { font-size: 1.2rem; margin-top: 8px; }
.doc-sec p, .doc-sec li { color: var(--ink-2); }
.doc-sec ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--gold-soft); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.callout strong { color: var(--ink); }
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc .eyebrow, .toc .btn { grid-column: 1 / -1; }
}

/* ---------- Tools ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 10px 16px; border-radius: 9px; font: 600 .92rem var(--f-body); color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .tool { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; min-width: 0; }
.panel h3 { font-size: 1.2rem; }
.results { display: grid; gap: 10px; }
.result { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); }
.result.ok { background: var(--ok-soft); border-color: transparent; }
.result.warn { background: var(--warn-soft); border-color: transparent; }
.result.bad { background: var(--bad-soft); border-color: transparent; }
.result .ref { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); }
.result p { font-size: .92rem; color: var(--ink-2); }
.verdict { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; font-weight: 600; }
.verdict.ok { background: var(--ok); color: #fff; }
.verdict.warn { background: var(--warn); color: #fff; }
.verdict.bad { background: var(--bad); color: #fff; }
:root[data-theme="dark"] .verdict { color: #121014; }
.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.slider-row label { font-weight: 600; font-size: .95rem; }
.slider-row output { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: .9rem; min-width: 52px; text-align: right; }
.slider-row input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--brand); }
.slider-row .hint { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.total-line { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field .req { color: var(--bad); }
.field .help { font-size: .82rem; color: var(--muted); }
.field .err { font-size: .82rem; color: var(--bad); display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
input, select, textarea {
  width: 100%; font: 400 1rem var(--f-body); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
input[type="range"] { padding: 0; border: 0; background: transparent; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand); padding: 0; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type="file"] { padding: 8px; cursor: pointer; color: var(--muted); font-size: .92rem; }
input[type="file"]::file-selector-button {
  font: 600 .88rem var(--f-body); color: var(--on-brand); background: var(--brand);
  border: 0; border-radius: var(--radius-sm); padding: 8px 14px; margin-right: 12px; cursor: pointer; transition: background .15s;
}
input[type="file"]:hover::file-selector-button { background: var(--brand-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--ink-2); }
.form-status { padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.info { background: var(--warn-soft); color: var(--warn); }
.form-status.bad { background: var(--bad-soft); color: var(--bad); }
.counter { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); justify-self: end; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.3rem; color: var(--brand); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); display: grid; gap: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: #1B3A2D; color: #fff; border-radius: 20px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); margin-top: 12px; max-width: 56ch; }
.cta-band .eyebrow { color: #E2C48A; }
.cta-band svg.deco { position: absolute; right: -40px; bottom: -40px; width: 360px; opacity: .14; pointer-events: none; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0E1A14; color: #C3CEC7; padding-block: 64px 32px; margin-top: 0; }
.site-footer a { color: #DDE6E0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #E2C48A; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; }
.footer-brand p { margin-top: 14px; font-size: .94rem; max-width: 40ch; color: #A9B8AF; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-sub { color: #97A79E; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid #26382E; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .84rem; color: #97A79E; }
.footer-bottom p { max-width: 80ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.note { font-size: .85rem; color: var(--muted); }
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal.pending { opacity: 0; transform: translateY(14px); }
.back-top {
  position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top svg { width: 18px; height: 18px; }
.calendar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .calendar { grid-template-columns: 1fr; } }
.cal-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); display: grid; gap: 8px; }
.cal-item .freq { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal.pending { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .back-top, .cta-band { display: none !important; }
  body { background: #fff; }
}

.card > .pill { align-self: flex-start; }

/* Compact team list (home) */
.mini-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.mini-team > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; min-width: 0; }
.mini-team strong { display: block; font-weight: 600; font-size: .95rem; }
.mini-team small { display: block; font-size: .8rem; color: var(--muted); }
.avatar.sm { width: 40px; height: 40px; font-size: .9rem; }
@media (max-width: 460px) { .mini-team { grid-template-columns: 1fr; } }

/* Horizontal FAQ */
.faq-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.faq-nav { display: flex; gap: 8px; }
.faq-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 40px) / 3));
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.faq-track:focus-visible { outline-offset: 6px; }
.faq-card {
  scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.faq-card h3 { font-size: 1.15rem; }
.faq-card p { color: var(--ink-2); font-size: .95rem; }
.faq-no { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; color: var(--gold); }
@media (max-width: 900px) { .faq-track { grid-auto-columns: minmax(260px, 70%); } }
@media (max-width: 520px) { .faq-track { grid-auto-columns: 85%; } }
.icon-btn:disabled { opacity: .4; cursor: default; }

/* ---------- Fixes ---------- */
/* Components that set display (e.g. .card) must still honour the hidden attribute. */
[hidden] { display: none !important; }

/* Org chart: compact the officer and PM rows so the full chart fits a laptop-width container. */
.org { padding-inline: 16px; }
.otree .officers > li { padding-inline: 6px; }
.otree .officers > li > .ocard.w { width: 180px; }
.otree .officers ul > li { padding-inline: 4px; }
.otree .officers ul .ocard { width: 132px; padding-inline: 12px; }
