/* Direction B: editorial, light and dark, fills the screen. */
@font-face { font-family: "JD Serif"; src: url("shared/fonts/DejaVuSerif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JD Serif"; src: url("shared/fonts/DejaVuSerif-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Minimal / quiet palette. Warm off-white paper, near-black ink, one copper
   accent used sparingly (numerals, underlines, the quiet band, the wordmark). */
:root {
  color-scheme: light;
  --paper: #F6F4EF;
  --tint: #EFECE4;
  --ink: #111111;
  --muted: #55514A;
  --rule: #D8D3C8;
  --strong-rule: #111111;
  --accent: #9A5A1E;        /* copper, ~5.2:1 on the paper, richer than the old clay */
  --nav-bg: rgba(246,244,239,.97);
  --btn-bg: #111111;  --btn-ink: #F6F4EF;  --btn-hover: #9A5A1E;
  --cta-bg: #9A5A1E;  --cta-ink: #F6F4EF;   /* copper buttons, same in both themes */
  --panel-bg: #111111; --panel-ink: #F6F4EF; --panel-muted: #C9C4B8; --panel-rule: #2C2A24;
  --band-bg: #EFECE4; --band-ink: #111111; --band-muted: #55514A; --band-rule: #D8D3C8;   /* closing call-to-action band */
  --field-bg: #F6F4EF; --field-border: #8A8578;
  --serif: "JD Serif", "DejaVu Serif", Georgia, serif;
  --sans: "JD Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 120px);   /* page edge: grows with the screen, so wide monitors are used */
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0E0E0E;
  --tint: #161513;
  --ink: #EDEBE6;
  --muted: #A29C8E;
  --rule: #2A2823;
  --strong-rule: #4A463D;
  --accent: #C98A45;        /* copper, matches the recolored wordmark on dark */
  --nav-bg: rgba(14,14,14,.96);
  --btn-bg: #EDEBE6;  --btn-ink: #0E0E0E;  --btn-hover: #C98A45;
  --cta-bg: #9A5A1E;  --cta-ink: #F6F4EF;
  --panel-bg: #161513; --panel-ink: #EDEBE6; --panel-muted: #B4AEA0; --panel-rule: #2A2823;
  --band-bg: #161513; --band-ink: #EDEBE6; --band-muted: #B4AEA0; --band-rule: #2A2823;
  --field-bg: #161513; --field-border: #5A554A;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: clamp(17px, .5vw + 11px, 21px); line-height: 1.65; transition: background .2s, color .2s; }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; margin: 0; padding: 0 var(--gutter); }
.narrow-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }

/* Logos: one image per theme */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Masthead */
.topbar { border-bottom: 1px solid var(--rule); font-size: .76em; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: var(--muted); }
.mast { text-align: center; padding: 38px 0 26px; }
.mast img { margin: 0 auto; width: min(560px, 86%); height: auto; }
.nav { position: sticky; top: 0; z-index: 40; background: var(--nav-bg); border-top: 3px double var(--strong-rule); border-bottom: 1px solid var(--strong-rule); }
.nav .wrap { display: flex; justify-content: center; align-items: center; gap: 6px; position: relative; }
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 8px; align-items: center; }
.nav a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88em; letter-spacing: .04em; text-transform: uppercase; padding: 14px 18px; }
.nav a:hover { color: var(--accent); }
.nav a.apply-link { border: 1px solid var(--btn-bg); padding: 7px 18px; margin-left: 14px; background: var(--btn-bg); color: var(--btn-ink); }
.nav a.apply-link:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--paper); }
:root[data-theme="dark"] .nav a.apply-link:hover { color: #0E0E0E; }
.menu-btn { display: none; margin: 8px 0; background: none; border: 1px solid var(--strong-rule); font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .78em; padding: 9px 16px; cursor: pointer; color: var(--ink); }
.theme-btn { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--strong-rule); color: var(--ink); font: inherit; font-size: .78em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; cursor: pointer; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }

.btn { display: inline-block; background: var(--cta-bg); color: var(--cta-ink); font-weight: 600; font-size: 1em; padding: 15px 30px; text-decoration: none; border: 1px solid var(--cta-bg); letter-spacing: .01em; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--paper); }
:root[data-theme="dark"] .btn:hover { color: #0E0E0E; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: clamp(40px, 5vw, 110px); padding-top: clamp(50px, 6vw, 110px); padding-bottom: clamp(56px, 6vw, 120px); align-items: start; }
.dateline { font-size: .76em; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 22px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 96px); letter-spacing: -.01em; }
.hero .deck { font-family: var(--serif); font-size: 1.25em; line-height: 1.6; color: var(--muted); margin: 28px 0 34px; max-width: 34em; }
.side { background: var(--panel-bg); color: var(--panel-ink); padding: clamp(28px, 2.4vw, 48px); border-top: 2px solid var(--accent); }
.side h2 { font-size: 1.45em; color: var(--panel-ink); margin-bottom: 14px; }
.side p { margin: 0 0 22px; color: var(--panel-muted); font-size: .95em; }
.side ul { margin: 0 0 26px; padding: 0; list-style: none; border-top: 1px solid var(--panel-rule); }
.side li { padding: 11px 0; border-bottom: 1px solid var(--panel-rule); font-size: .9em; }
.side .btn { width: 100%; text-align: center; }
.side .side-note { margin: 18px 0 0; font-size: .8em; line-height: 1.55; color: var(--panel-muted); }
.side .side-note a { color: var(--panel-ink); }

/* Sections as editorial rows */
.row { border-top: 1px solid var(--strong-rule); padding: clamp(52px, 5vw, 100px) 0; }
.row .wrap { display: grid; grid-template-columns: clamp(200px, 16vw, 340px) minmax(0, 1fr); gap: clamp(32px, 4vw, 90px); }
.label { position: sticky; top: 96px; align-self: start; }
.label .num { font-family: var(--serif); font-size: clamp(56px, 4.5vw, 96px); color: var(--accent); line-height: 1; display: block; margin-bottom: 8px; }
.label h2 { font-size: 1.18em; text-transform: uppercase; letter-spacing: .1em; font-family: var(--sans); }
.intro { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 42px); line-height: 1.35; margin: 0 0 44px; max-width: 26em; }

.entries { border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 64px); padding: 34px 0; border-bottom: 1px solid var(--rule); }
.entry h3 { font-size: 1.65em; }
.entry p { margin: 14px 0 0; color: var(--muted); max-width: 34em; }
.entry ul { margin: 0; padding: 0 0 0 20px; }
.entry li { padding: 3px 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; padding: 30px 30px 30px 0; border-bottom: 1px solid var(--rule); }
.steps li + li { padding-left: 30px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2.6em; color: var(--accent); line-height: 1; display: block; margin-bottom: 10px; }
.steps h3 { font-size: 1.3em; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

.band { background: var(--band-bg); color: var(--band-ink); padding: clamp(64px, 6vw, 130px) 0; text-align: center; border-top: 1px solid var(--band-rule); border-bottom: 1px solid var(--band-rule); }
.band q { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.6vw, 84px); line-height: 1.18; max-width: 18em; margin: 0 auto 22px; quotes: none; }
.band p { color: var(--band-muted); font-size: 1.12em; max-width: 36em; margin: 0 auto 34px; }
.band .btn { font-size: 1.05em; padding: 18px 38px; }

.about-text { max-width: 52em; }
.about-text p { font-size: 1.12em; margin: 0 0 20px; }
.about-text p:first-child::first-letter { font-family: var(--serif); font-size: 3.8em; float: left; line-height: .85; padding: 6px 10px 0 0; color: var(--accent); font-weight: 700; }
.facts { margin: 36px 0 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 160px 1fr; padding: 13px 0; border-bottom: 1px solid var(--rule); gap: 16px; }
.facts dt { font-size: .76em; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 70px); }
.contacts h3 { font-size: 1.18em; margin-bottom: 6px; }
.contacts p { margin: 0 0 8px; color: var(--muted); }
.contacts a { font-family: var(--serif); font-size: 1.3em; font-weight: 700; overflow-wrap: anywhere; }

/* Footer: brand, legal, links, then a bottom bar */
footer { flex-shrink: 0; background: var(--tint); border-top: 3px double var(--strong-rule); color: var(--muted); }
.foot-main { display: grid; grid-template-columns: minmax(200px, 300px) minmax(340px, 1fr) auto; gap: clamp(28px, 3.5vw, 90px); align-items: start; padding-top: clamp(40px, 4vw, 72px); padding-bottom: clamp(32px, 3vw, 56px); }
.foot-brand img { width: clamp(210px, 16vw, 320px); height: auto; margin-left: -4px; }
.foot-brand p { margin: 14px 0 0; font-family: var(--serif); font-size: .95em; color: var(--ink); }
.foot-legal p { margin: 0 0 12px; font-size: .88em; max-width: 62ch; }
.foot-cols { display: flex; gap: clamp(24px, 2.6vw, 64px); }
.foot-cols h2 { font-family: var(--sans); font-size: .76em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin: 0 0 8px; font-size: .92em; white-space: nowrap; }
.foot-cols a { color: var(--accent); }
.foot-cols a:hover { color: var(--ink); }
.foot-bar { border-top: 1px solid var(--rule); font-size: .8em; }
.foot-bar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; padding-bottom: 20px; }
.foot-bar p { margin: 0; }

/* Apply page */
.page { padding: clamp(40px, 5vw, 90px) 0 clamp(56px, 6vw, 110px); }
.page .narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.page h1 { font-size: clamp(34px, 5vw, 64px); margin-bottom: 16px; }
.page .deck { font-family: var(--serif); font-size: 1.2em; color: var(--muted); margin: 0 0 34px; }
form { display: grid; gap: 22px; border-top: 3px double var(--strong-rule); padding-top: 30px; }
label { display: grid; gap: 8px; font-weight: 600; font-size: .9em; }
input, select, textarea { font: inherit; font-weight: 400;border: 1px solid var(--field-border); padding: 13px 14px; background: var(--field-bg); color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 120px; }
.note { font-size: .85em; color: var(--muted); margin: 0; }
form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.nav ul.always { display: flex; }

/* Shared bits for the inner pages */
.nav a[aria-current="page"]:not(.apply-link) { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.band .actions .btn { margin: 0; }
.btn.line.on-dark { color: var(--band-ink); border-color: var(--band-ink); }
.btn.line.on-dark:hover { background: var(--band-ink); color: var(--band-bg); }
.more { margin: 30px 0 0; font-weight: 600; }
.cta-line { margin-top: 18px !important; }
.cta-line a { font-weight: 600; }
.page-head { border-bottom: 1px solid var(--strong-rule); }
.page-head .wrap { padding-top: clamp(44px, 5vw, 100px); padding-bottom: clamp(40px, 4.5vw, 90px); }
.page-head h1 { font-size: clamp(38px, 5.2vw, 96px); letter-spacing: -.01em; max-width: 16em; }
.page-head .deck { font-family: var(--serif); font-size: 1.25em; line-height: 1.6; color: var(--muted); margin: 26px 0 0; max-width: 38em; }
.page-head + .row { border-top: 0; }
.row.flush { border-top: 0; }
.about-text.plain p:first-child::first-letter { all: unset; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.trio > div { padding: 30px 30px 30px 0; border-bottom: 1px solid var(--rule); }
.trio > div + div { padding-left: 30px; border-left: 1px solid var(--rule); }
.trio h3 { font-size: 1.3em; margin-bottom: 8px; }
.trio p { margin: 0; color: var(--muted); }
.goals { list-style: none; margin: 0; padding: 0; counter-reset: g; border-top: 1px solid var(--rule); max-width: 60em; }
.goals li { counter-increment: g; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.goals li::before { content: counter(g); grid-row: span 2; font-family: var(--serif); font-size: 2.6em; line-height: 1; color: var(--accent); }
.goals h3 { font-size: 1.3em; margin-bottom: 8px; }
.goals p { margin: 0; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); max-width: 52em; }
.checks li { padding: 15px 0 15px 34px; border-bottom: 1px solid var(--rule); position: relative; font-size: 1.05em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 1.2em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.contacts.four { margin-bottom: 44px; }
.contacts.four > div { border-top: 1px solid var(--rule); padding-top: 22px; }
.contacts p a { font-family: inherit; font-size: inherit; font-weight: inherit; }
.contacts + .facts { margin-top: 0; max-width: 52em; }
.facts div { grid-template-columns: 180px 1fr; }

/* Legal pages: each section is a row, heading on the left and text on the right, using the full width */
.legal { padding-top: clamp(16px, 2vw, 40px); padding-bottom: clamp(48px, 5vw, 100px); }
.legal-row { display: grid; grid-template-columns: clamp(220px, 24vw, 460px) minmax(0, 1fr); gap: clamp(28px, 4vw, 90px);
  padding: clamp(22px, 2vw, 36px) 0; border-bottom: 1px solid var(--rule); }
.legal-row h2 { font-size: 1.2em; }
.legal-row > div { max-width: 82ch; }
.legal p, .legal li { color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal p:last-child, .legal ul:last-child { margin-bottom: 0; }
.legal ul { margin: 0 0 14px; padding-left: 22px; columns: 2 22em; column-gap: 48px; }
.legal li { padding: 3px 0; break-inside: avoid; }

/* Apply: intro and form side by side on wide screens */
.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 140px); align-items: start; }
.apply-intro { position: sticky; top: 100px; }
.apply-intro .checks { margin: 0; }
.apply-grid form { border-top: 3px double var(--strong-rule); }

/* Application panels */
.apply-panel .panel-box { border-top: 3px double var(--strong-rule); padding-top: 30px; }
.apply-panel h2 { font-size: clamp(26px, 2vw, 36px); margin-bottom: 14px; }
.apply-panel p { margin: 0 0 18px; }
.apply-panel .facts { margin: 22px 0 22px; }
.google-btn { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 22px; }
.google-btn svg { width: 22px; height: 22px; fill: currentColor; }
.opt { font-weight: 400; color: var(--muted); }
.err { color: #B3261E; font-weight: 600; }
:root[data-theme="dark"] .err { color: #F2B8B5; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
legend { font-weight: 600; font-size: .9em; margin-bottom: 8px; width: 100%; }
label.inline { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .95em; }
label.inline input { margin-top: .3em; flex: none; width: 1.1em; height: 1.1em; accent-color: var(--accent); }
input[type="file"] { padding: 10px; }
.signed-in { margin: 0; font-size: .92em; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.link-btn.danger { color: #B3261E; }
:root[data-theme="dark"] .link-btn.danger { color: #F2B8B5; }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
button.btn.line { background: transparent; }
button.btn:disabled { opacity: .6; cursor: progress; }

/* Interview (second step) */
.iv-step { font-size: 1.35em; margin: 18px 0 -10px; padding-top: 22px; border-top: 1px solid var(--rule); }
.iv-questions .iv-step:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.iv-hint { margin: 0; color: var(--muted); }
.task { background: var(--tint); border-left: 3px solid var(--accent); padding: 18px 22px; }
.task p { margin: 0 0 12px; }
.task p:last-child { margin-bottom: 0; }
.task-label { font-size: .76em; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 16px !important; }
.task-label:first-child { margin-top: 0 !important; }
textarea.tall { min-height: 260px; }
.iv-questions { display: grid; gap: 22px; }
.iv-page { display: grid; gap: 22px; }
.iv-page .iv-step { border-top: 0; padding-top: 0; margin-top: 0; }
.iv-page .iv-step:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Progress bar with stopwatch: stays in view under the menu bar while scrolling a long step */
.iv-progress { position: sticky; top: 54px; z-index: 5; background: var(--paper); padding: 10px 0 8px; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.iv-progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.iv-progress-step { font-weight: 700; font-size: .92em; }
.iv-clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05em; white-space: nowrap; }
.iv-bar { height: 6px; background: var(--rule); overflow: hidden; }
.iv-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s ease; }
.iv-saved { margin: 0; font-size: .8em; color: var(--muted); min-height: 1.2em; }
.iv-saved.err { color: #B3261E; }
:root[data-theme="dark"] .iv-saved.err { color: #F2B8B5; }
.iv-nav { display: flex; gap: 12px; flex-wrap: wrap; }
.iv-nav .btn { margin: 0; }
.iv-start-points { margin: 0 0 22px; }
@media (max-width: 900px) {
  body.iv-running .apply-intro { display: none; }
  .iv-progress { top: 48px; }
}
@media (max-width: 600px) {
  .iv-nav { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0 12px; border-top: 1px solid var(--rule); z-index: 5; }
  .iv-nav .btn { flex: 1 1 0; text-align: center; padding-left: 10px; padding-right: 10px; }
  .task { padding: 14px 16px; }
  #iv-form fieldset { gap: 10px 18px; }
  #iv-form label.inline { font-size: 1em; padding: 4px 0; }
}
.iv-words { margin: -12px 0 0; }
label .iv-hint { font-weight: 400; }
fieldset .iv-hint.wide { width: 100%; margin-top: -4px; }
.preview-banner { border: 1px solid var(--accent); border-left-width: 4px; padding: 12px 16px; margin: 0 0 22px; background: var(--tint); }
.note.ok { color: var(--ink); font-weight: 600; }

/* Admin */
.admin .unlock { max-width: 640px; margin-top: 26px; }
.admin td .iv-actions { display: grid; gap: 6px; justify-items: start; }
.admin td small { color: var(--muted); }
.invite-box { margin-top: 8px; display: grid; gap: 6px; max-width: 34ch; }
.invite-box input { font-size: .85em; padding: 6px 8px; }
.viewer-body { flex: 1; overflow: auto; padding: 18px clamp(16px, 3vw, 40px) 40px; }
.viewer-body h3 { font-size: 1.1em; margin: 26px 0 8px; }
.viewer-body h3:first-child { margin-top: 0; }
.viewer-body p { margin: 0 0 10px; white-space: pre-wrap; max-width: 80ch; }
.viewer-body .facts { margin-top: 10px; }
.viewer-body h3.iv-read-section { font-size: 1.3em; border-top: 1px solid var(--rule); padding-top: 18px; }
.viewer-body h4 { font-size: .95em; margin: 16px 0 4px; }
.viewer-body .task { margin: 8px 0 12px; max-width: 80ch; }
.admin-note { color: var(--accent); font-style: italic; }

/* "Edit the site" on /admin (the editors themselves are styled in editor.css) */
.edit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 14px; }
.edit-card { border: 1px solid var(--rule); padding: 18px 20px; display: grid; gap: 10px; align-content: start; }
.edit-card h3 { font-size: 1.15em; }
.edit-card .actions { margin: 4px 0 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 22px; margin: 26px 0 12px; }
.toolbar .spacer { flex: 1; }
.toolbar .btn { padding: 10px 18px; }
.table-wrap { overflow-x: auto; border-top: 3px double var(--strong-rule); }
.admin table { width: 100%; border-collapse: collapse; font-size: .9em; }
.admin th, .admin td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.admin th { font-size: .78em; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.admin td.notes { max-width: 36ch; white-space: pre-wrap; }
.admin select { padding: 6px 8px; }
.viewer-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .6); display: flex; padding: clamp(10px, 3vw, 40px); }
.viewer-box { flex: 1; display: flex; flex-direction: column; background: var(--paper); border-top: 3px double var(--strong-rule); max-width: 1200px; margin: 0 auto; width: 100%; }
.viewer-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.viewer-head .note { flex: 1; }
.viewer-head .btn { padding: 8px 16px; }
.viewer-box iframe { flex: 1; width: 100%; border: 0; background: #2A2823; }
.admins { margin-top: 56px; max-width: 760px; }
.admins h2 { font-size: 1.4em; margin-bottom: 8px; }
.admins .checks li small { color: var(--muted); }
.desk { margin-top: 40px; max-width: 760px; }
.desk h2 { font-size: 1.6em; margin-bottom: 8px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; border-top: 0; padding-top: 18px; }
.inline-form label { flex: 1 1 280px; }
.inline-form .btn { padding: 12px 20px; }

/* Careers: requirements and benefits side by side */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 90px); }
.split h3 { font-size: 1.3em; margin-bottom: 14px; }
.split .checks { max-width: none; }
.contacts.three { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.contacts.three { margin-bottom: 44px; }
.contacts.three > div > a.em { font-family: var(--sans); font-size: .98em; font-weight: 700; white-space: nowrap; }

@media (max-width: 1360px) {
  .foot-main { grid-template-columns: minmax(160px, 220px) 1fr; }
  .foot-cols { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 44px; padding-bottom: 52px; }
  .row { padding: 52px 0; }
  .row .wrap { grid-template-columns: 1fr; gap: 24px; }
  .label { position: static; display: flex; align-items: baseline; gap: 16px; }
  .label .num { font-size: 40px; margin: 0; }
  .intro { font-size: 23px; }
  .entry { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; }
  .contacts { grid-template-columns: 1fr; gap: 28px; }
  .trio { grid-template-columns: 1fr; }
  .trio > div, .trio > div + div { padding: 24px 0; border-left: 0; }
  .goals li { grid-template-columns: 44px 1fr; }
  .legal-row { grid-template-columns: 1fr; gap: 10px; }
  .apply-grid { grid-template-columns: 1fr; }
  .apply-intro { position: static; }
  .contacts.three { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .foot-main { grid-template-columns: 1fr; gap: 28px; }
  .menu-btn { display: block; }
  .nav .wrap { flex-direction: column; align-items: stretch; }
  .nav .menu-btn { align-self: center; }
  .nav ul:not(.always) { display: none; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 14px; }
  .nav ul.open { display: flex; }
  .nav ul a { padding: 14px 4px; border-bottom: 1px solid var(--rule); }
  .nav a.apply-link { margin: 14px 0 0; text-align: center; }
  .theme-btn { top: 8px; transform: none; right: var(--gutter); padding: 9px 12px; }
  .topbar .wrap { flex-direction: column; gap: 2px; }
}
@media (max-width: 520px) {
  .mast { padding: 24px 0 18px; }
  .hero .deck { font-size: 18px; }
  .side { padding: 26px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .actions { flex-direction: column; }
  .actions .btn { text-align: center; }
  .foot-cols { flex-direction: column; gap: 24px; }
  .theme-btn .label-text { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } body { transition: none; } }
