/* Vellum Health — clinical editorial. Values ported from the design canvas. */
:root {
  --paper: #FAF8F4; --paper-2: #F3EFE6; --paper-3: #FDFCFA;
  --rule: #D9D2C4;  --rule-2: #EAE4D8;
  --ink: #12211E;   --ink-2: #4E5B57; --ink-3: #808C87; --ink-4: #B0A895;
  --ph: #8A7F6B;
  --accent: #14544B; --oxide: #6E4032;
  --d-bg: #12211E; --d-panel: #1A2C28; --d-rule: #37473F;
  --d-text: #B6C4BF; --d-mute: #8FA8A2; --d-accent: #D8B08C;
  --d-off: #273833; --d-off-fg: #6E8079;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid #B9C6C2; }
a:hover { color: #0C3A34; border-bottom-color: var(--accent); }
::selection { background: #D8E3E0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.01em; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }

.mono { font-family: var(--mono); }
.ph { color: var(--ph); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 14px; border: 0; }

/* ---- eyebrow label: the numbered-section device ---- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.20em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow i { display: block; width: 34px; height: 1px; background: var(--rule); }
.lbl {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---- chrome ---- */
.strip {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 9px var(--gutter); border-bottom: 1px solid var(--rule-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--ink-3);
}
.strip span { display: flex; gap: 22px; }
.mast {
  display: flex; justify-content: space-between; align-items: center; gap: 40px;
  padding: 20px var(--gutter); border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; background: var(--paper); z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; border: 0; }
.brand:hover { border: 0; }
.brand svg { color: var(--accent); }
.brand .name { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.brand .name b { font-size: 19px; font-weight: 500; letter-spacing: 0.055em; }
.brand .name i {
  font-family: var(--mono); font-style: normal; font-size: 8.5px;
  letter-spacing: 0.30em; color: var(--ink-3);
}
.nav { display: flex; align-items: center; gap: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; }
.nav a { border: 0; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.mast-actions { display: flex; align-items: center; gap: 14px; }

/* ---- buttons: 44px floor everywhere ---- */
.btn, .ghost {
  font: inherit; cursor: pointer; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 20px; border-radius: 0; transition: box-shadow .15s ease;
}
.btn { background: var(--accent); color: var(--paper); border: 0; font-size: 15px; }
.btn:hover { box-shadow: inset 0 0 0 999px rgba(255,255,255,0.12); }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.ghost { background: transparent; border: 1px solid var(--rule); color: var(--ink); font-size: 14px; }
.ghost:hover { box-shadow: inset 0 0 0 999px rgba(18,33,30,0.045); }
.textlink {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.10em;
  text-transform: uppercase; align-self: flex-start;
}

/* ---- hero ---- */
.hero { padding-top: 92px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; }
.hero h1 {
  grid-column: span 8; font-size: 74px; line-height: 1.02; letter-spacing: -0.018em;
}
.hero-aside { grid-column: span 4; display: flex; flex-direction: column; gap: 26px; padding-top: 10px; }
.hero-aside p { font-size: 18.5px; line-height: 1.55; color: var(--ink-2); }
.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ---- ledger ---- */
.panel { border: 1px solid var(--rule); background: var(--paper-3); }
.panel-head {
  display: flex; justify-content: space-between; gap: 20px; padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.ledger-row {
  display: grid; grid-template-columns: 150px 92px 1fr 170px; gap: 20px;
  padding: 13px 20px; border-bottom: 1px solid var(--rule-2); align-items: center;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
}
.ledger-row:hover { background: var(--paper-2); }
.ledger-row .at { color: var(--ink-3); }
.ledger-row .kind { letter-spacing: 0.10em; }
.ledger-row .who { color: var(--ink); font-family: var(--serif); font-size: 15px; }
.ledger-row .scope { color: var(--ink-3); text-align: right; }
.kind-grant { color: var(--accent); } .kind-revoke { color: var(--oxide); }
.panel-foot { padding: 12px 20px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* ---- sections ---- */
.section { padding-top: 116px; }
.section-head { border-top: 1px solid var(--ink); padding-top: 22px; }
.section-head .eyebrow { grid-column: span 3; }
.section-head h2 {
  grid-column: span 9; font-size: 34px; line-height: 1.22; max-width: 22em;
}
.band { background: var(--paper-2); margin-top: 116px; padding: 116px 0; }
.band + .section, .band + .wrap { padding-top: 116px; }

.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.beat { display: flex; flex-direction: column; gap: 16px; padding-right: 34px; }
.beat .n { font-family: var(--mono); font-size: 40px; line-height: 1; color: var(--rule); }
.beat h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
.beat p { font-size: 16.5px; line-height: 1.62; color: var(--ink-2); }

/* ---- tabs (custody states, audiences) ---- */
.tabs { display: flex; border: 1px solid var(--rule); background: var(--paper-3); width: fit-content; }
.tabs button {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase;
  background: transparent; color: var(--ink-2); border: 0; border-right: 1px solid var(--rule);
  padding: 0 22px; min-height: 44px; cursor: pointer; white-space: nowrap;
}
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--paper); }
.tabs.scrolls { overflow-x: auto; scrollbar-width: none; width: 100%; }
.tabs.scrolls::-webkit-scrollbar { display: none; }

.custody-panel {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px;
  margin-top: 36px; background: var(--paper-3); border: 1px solid var(--rule); padding: 38px 40px;
}
.custody-panel .lede { grid-column: span 5; display: flex; flex-direction: column; gap: 14px; }
.custody-panel .lede h3 { font-size: 27px; line-height: 1.2; }
.custody-panel .lede p { font-size: 17px; color: var(--ink-2); }
.custody-panel dl { grid-column: span 7; margin: 0; display: flex; flex-direction: column; }
.custody-panel .kv {
  display: grid; grid-template-columns: 190px 1fr; gap: 28px;
  padding: 15px 0; border-bottom: 1px solid var(--rule-2); align-items: baseline;
}
.custody-panel dt {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.custody-panel dd { margin: 0; font-size: 16.5px; line-height: 1.5; }
.footnote { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3); }

/* ---- programs ---- */
.programs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; grid-column: span 9; }
.programs-head h2 { font-size: 34px; line-height: 1.22; max-width: 18em; }
.prog {
  display: grid; grid-template-columns: 60px repeat(2, minmax(0, 1fr)) 120px; gap: 36px;
  padding: 26px 12px; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.prog:hover { background: var(--paper-2); }
.prog .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-4); }
.prog h3 { font-size: 23px; line-height: 1.25; }
.prog p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.prog .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); text-align: right;
}

/* ---- native accordion (details/summary) ---- */
.faq { grid-column: span 9; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 12px; min-height: 44px; cursor: pointer; list-style: none;
  font-size: 21px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--mono); font-size: 20px; color: var(--accent); line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq summary:hover { background: var(--paper-2); }
.faq .a { padding: 0 12px 26px; max-width: 52em; font-size: 17px; line-height: 1.62; color: var(--ink-2); }
.faq-head { grid-column: span 3; border-top: 1px solid var(--ink); padding-top: 22px; }

/* ---- access (dark) ---- */
.access { background: var(--d-bg); color: var(--paper-2); margin-top: 116px; padding: 116px 0; }
.access .eyebrow { color: var(--d-mute); }
.access .eyebrow i { background: var(--d-rule); }
.access .grid12 { gap: 56px; }
.access .lede { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; }
.access h2 { font-size: 46px; line-height: 1.08; letter-spacing: -0.015em; }
.access .lede p { font-size: 18px; line-height: 1.55; color: var(--d-text); max-width: 26em; }
.access .meta {
  display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--d-mute);
}
.access .meta b { color: var(--d-accent); font-weight: 400; }
.form { grid-column: span 6; background: var(--d-panel); border: 1px solid var(--d-rule); padding: 34px; }
.form .fields { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--d-mute); }
.field input, .field textarea {
  font: inherit; font-size: 16px; background: var(--d-bg); border: 1px solid var(--d-rule);
  color: var(--paper-2); padding: 14px; min-height: 48px; border-radius: 0;
}
.field textarea { line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--d-off-fg); }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--d-text); cursor: pointer; padding: 6px 0; min-height: 44px; }
.consent input { appearance: none; width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; border: 1px solid var(--d-off-fg); background: transparent; cursor: pointer; }
.consent input:checked { background: var(--d-accent); }
.consent input:checked::after { content: '\2713'; display: block; text-align: center; color: var(--d-bg); font-size: 14px; line-height: 18px; }
.form .btn { background: var(--d-accent); color: var(--d-bg); width: 100%; min-height: 52px; font-size: 16.5px; }
.form .btn:disabled { background: var(--d-off); color: var(--d-off-fg); cursor: not-allowed; box-shadow: none; }
.sent { display: flex; flex-direction: column; gap: 16px; padding: 12px 0; }
.sent svg { color: var(--d-accent); }
.sent h3 { font-size: 26px; line-height: 1.2; }
.sent p { font-size: 17px; line-height: 1.6; color: var(--d-text); max-width: 30em; }
.sent b { color: var(--d-accent); font-weight: 400; }
.sent .ghost { border-color: var(--d-rule); color: var(--d-text); align-self: flex-start; font-family: var(--mono); font-size: 13px; }
.sent .ghost:hover { box-shadow: inset 0 0 0 999px rgba(255,255,255,0.06); }
[hidden] { display: none !important; }

/* ---- footer ---- */
.foot { padding: 56px var(--gutter) 44px; max-width: 1280px; margin: 0 auto; }
.foot .grid12 { border-top: 1px solid var(--rule); padding-top: 32px; }
.foot-brand { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
.foot-brand .line { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; letter-spacing: 0.055em; }
.foot-brand p { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--ink-3); }
.foot-col { grid-column: span 2; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { font-size: 15px; border: 0; color: var(--ink); }
.foot-col a:hover { border-bottom: 1px solid var(--rule); }
.foot-col small { font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--ink-3); }

/* ---- custody page ---- */
.page-title { padding-top: 80px; }
.page-title .grid12 { align-items: end; }
.page-title .t { grid-column: span 8; display: flex; flex-direction: column; gap: 20px; }
.page-title h1 { font-size: 62px; line-height: 1.04; letter-spacing: -0.02em; }
.page-title p { grid-column: span 4; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); }
.figure { border: 1px solid var(--rule); background: var(--paper-3); padding: 30px 30px 22px; }
.figure .cap { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
.figure svg text { font-family: var(--mono); }
.figure-scroll { overflow-x: auto; }
.figure-scroll svg { min-width: 900px; }

.group { margin-bottom: 44px; }
.group-head {
  display: flex; justify-content: space-between; gap: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.ctrl { border-bottom: 1px solid var(--rule); }
.ctrl summary {
  display: grid; grid-template-columns: 34px 1fr 240px 130px; gap: 26px;
  align-items: baseline; padding: 19px 12px; min-height: 44px; cursor: pointer; list-style: none;
}
.ctrl summary::-webkit-details-marker { display: none; }
.ctrl summary:hover { background: var(--paper-2); }
.ctrl .sign { font-family: var(--mono); font-size: 15px; color: var(--accent); line-height: 1; }
.ctrl summary .sign::after { content: '+'; }
.ctrl[open] summary .sign::after { content: '\2212'; }
.ctrl .cname { font-size: 19.5px; line-height: 1.3; }
.ctrl .ref, .ctrl .state {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.ctrl .state { text-align: right; color: var(--ink-2); }
.ctrl .state.unverified { color: var(--oxide); }
.ctrl .body { display: grid; grid-template-columns: 34px 1fr; gap: 26px; padding: 0 12px 26px; }
.ctrl .body .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.ctrl .body .col { display: flex; flex-direction: column; gap: 7px; }
.ctrl .body dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); }
.ctrl .body dd { margin: 0; font-size: 16.5px; line-height: 1.55; }
.ctrl .body .evid dd { color: var(--ink-2); }

.subs { margin-top: 34px; background: var(--paper-3); border: 1px solid var(--rule); }
.subs-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 210px; gap: 24px;
  padding: 16px 20px; border-bottom: 1px solid var(--rule-2); align-items: baseline;
}
.subs-row:last-child { border-bottom: 0; }
.subs-head {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 210px; gap: 24px;
  padding: 12px 20px; border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-3);
}
.subs-row .name { font-size: 16.5px; }
.subs-row .purpose { font-size: 16px; color: var(--ink-2); }
.subs-row .loc, .subs-row .read { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.subs-row .read.partial { color: var(--oxide); }

.clock { display: flex; flex-direction: column; }
.clock .row {
  display: grid; grid-template-columns: 120px 1fr; gap: 26px;
  padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.clock .when { font-family: var(--mono); font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent); }
.clock .what { font-size: 16.5px; line-height: 1.55; }
.disclose { grid-column: span 5; border: 1px solid var(--ink); padding: 32px; height: fit-content; display: flex; flex-direction: column; gap: 22px; }
.disclose dl { margin: 0; display: flex; flex-direction: column; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* ---- responsive: values from the 390 phone artboard ---- */
@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 58px; }
  .page-title h1 { font-size: 50px; }
  .ctrl summary { grid-template-columns: 28px 1fr 160px; }
  .ctrl summary .state { display: none; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .grid12 { display: flex; flex-direction: column; gap: 24px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: 39px; line-height: 1.06; }
  .hero-aside { padding-top: 0; gap: 20px; }
  .hero-aside p { font-size: 17.5px; }
  .hero-cta { gap: 12px; width: 100%; }
  .hero-cta .btn, .hero-cta .ghost { width: 100%; min-height: 52px; font-size: 17px; justify-content: space-between; }
  .section, .band, .band + .section, .access { padding-top: 48px; }
  .band { margin-top: 48px; padding: 40px 0; }
  .access { margin-top: 0; padding: 44px 0; }
  .section-head h2, .programs-head h2, .access h2, .page-title h1 { font-size: 26px; line-height: 1.2; }
  .access h2 { font-size: 32px; line-height: 1.1; }
  .beats { grid-template-columns: 1fr; gap: 0; margin-top: 22px; }
  .beat { padding: 22px 0; border-bottom: 1px solid var(--rule-2); }
  .beat .n { font-size: 12px; color: var(--ink-4); }
  .beat h3 { font-size: 20px; }
  .beat p { font-size: 15.5px; }
  .nav, .mast-actions .ghost, .strip span { display: none; }
  .mast { padding: 16px var(--gutter); gap: 12px; }
  .ledger-row { grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 14px; }
  .ledger-row .who { grid-column: 1 / -1; }
  .ledger-row .scope { grid-column: 1 / -1; text-align: left; font-size: 10.5px; }
  .panel-head { flex-direction: column; gap: 4px; font-size: 9.5px; }
  .panel-head span:last-child { display: none; }
  .custody-panel { padding: 22px 18px; gap: 16px; }
  .custody-panel .lede h3 { font-size: 22px; }
  .custody-panel .kv { grid-template-columns: 1fr; gap: 5px; padding: 13px 0; }
  .programs-head { flex-direction: column; gap: 20px; }
  .tabs { width: 100%; overflow-x: auto; }
  .prog { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .prog .tag { text-align: left; }
  .faq summary { font-size: 18px; padding: 18px 4px; }
  .faq .a { padding: 0 4px 22px; font-size: 16px; }
  .form { padding: 22px 18px; }
  .foot .grid12 { gap: 28px; }
  .page-title { padding-top: 34px; }
  .figure { padding: 18px; }
  .ctrl summary { grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 4px; }
  .ctrl summary .ref { display: none; }
  .ctrl .cname { font-size: 17px; }
  .ctrl .body { grid-template-columns: 1fr; gap: 0; padding: 0 4px 20px; }
  .ctrl .body .spacer { display: none; }
  .ctrl .body .cols { grid-template-columns: 1fr; gap: 18px; }
  .subs-head { display: none; }
  .subs-row { grid-template-columns: 1fr; gap: 5px; }
  .clock .row { grid-template-columns: 1fr; gap: 6px; }
  .disclose { padding: 22px 18px; }
}

/* ---- the handful of layout offsets, as classes so the CSP needs no
        'unsafe-inline' for style attributes ---- */
.mt-26 { margin-top: 26px; }
.mt-40 { margin-top: 40px; }
.mt-44 { margin-top: 44px; }
.pt-64 { padding-top: 64px; }
.align-start { align-items: start; }
.gap-56 { gap: 56px; }
.rule-top { border-top: 1px solid var(--ink); padding-top: 22px; }
.h2-sm { font-size: 32px; line-height: 1.2; max-width: 22em; }
.incident { grid-column: span 7; display: flex; flex-direction: column; gap: 26px; }
.disclose p { font-size: 17px; line-height: 1.6; }
@media (max-width: 900px) {
  .pt-64 { padding-top: 32px; }
  .mt-40, .mt-44 { margin-top: 22px; }
  .h2-sm { font-size: 26px; }
  .incident { gap: 20px; }
}

/* ---- unverified-controls notice ---- */
.notice {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 34px;
  border: 1px solid var(--oxide); background: var(--paper-3); padding: 20px 22px;
}
.notice > svg { flex-shrink: 0; color: var(--oxide); margin-top: 2px; }
.notice .lbl { color: var(--oxide); margin-bottom: 6px; }
.notice p:last-child { font-size: 16.5px; line-height: 1.55; max-width: 60em; }
.notice .mono { font-size: 14px; }

/* ---- document pages (privacy) ---- */
.doc { max-width: 74ch; display: flex; flex-direction: column; }
.doc section { padding-top: 52px; }
.doc h2 {
  font-size: 27px; line-height: 1.22; border-top: 1px solid var(--ink);
  padding-top: 20px; margin-bottom: 18px;
}
.doc h3 { font-size: 19px; line-height: 1.3; font-weight: 500; margin: 26px 0 8px; }
.doc p { font-size: 17px; line-height: 1.65; margin-bottom: 14px; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { font-size: 17px; line-height: 1.65; margin-bottom: 7px; }
.doc li::marker { color: var(--ink-4); }
.doc .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.20em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 14px;
}
.doc strong { font-weight: 500; }
.answer { border-left: 0; border: 1px solid var(--rule); background: var(--paper-3); padding: 20px 22px; margin-bottom: 14px; }
.answer p { margin-bottom: 0; }

.cookie-head, .cookie-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 150px; gap: 20px;
  padding: 14px 18px; align-items: baseline;
}
.cookie-head {
  border-bottom: 1px solid var(--rule); font-family: var(--mono);
  font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3);
}
.cookie-row { border-bottom: 1px solid var(--rule-2); font-size: 16px; }
.cookie-row:last-child { border-bottom: 0; }
.cookie-row .verdict { font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--accent); }
.cookie-row .verdict.third { color: var(--oxide); }

/* ---- login ---- */
.auth { min-height: 60vh; display: grid; place-items: center; padding: 72px var(--gutter); }
.auth-card { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 26px; }
.auth-card > header { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.auth-card h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.012em; }
.auth-card .sub { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.auth-form { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--rule); background: var(--paper-3); padding: 28px 26px; }
.auth-form .field label { color: var(--ink-3); }
.auth-form .field input {
  background: var(--paper); border: 1px solid var(--rule); color: var(--ink);
  padding: 14px; min-height: 48px; font: inherit; font-size: 16px; border-radius: 0;
}
.auth-form .field input:disabled { background: var(--paper-2); color: var(--ink-3); cursor: not-allowed; }
.auth-form .btn { width: 100%; min-height: 52px; font-size: 16.5px; }
.auth-form .btn:disabled { background: var(--rule); color: var(--ph); cursor: not-allowed; box-shadow: none; }
.auth-alt { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auth-foot { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--ink-3); }

@media (max-width: 900px) {
  .doc section { padding-top: 34px; }
  .doc h2 { font-size: 22px; }
  .cookie-head { display: none; }
  .cookie-row { grid-template-columns: 1fr; gap: 5px; }
  .auth { padding: 40px var(--gutter); min-height: 0; }
  .auth-card h1 { font-size: 27px; }
}
