
:root {
  --paper: #F6F4EF;
  --sheet: #FFFFFF;
  --ink: #14202B;
  --ink-2: #46525E;
  --ink-3: #6A737D;
  --rule: #D8D2C4;
  --rule-strong: #14202B;
  --blue: #185FA5;        
  --blue-deep: #0F4479;
  --green: #1D9E75;       
  --green-ink: #147A5B;   
  --gold: #F0A500;        
  --gold-tint: #FDF1D6;
  --night: #0F1B26;
  --night-2: #1A2836;
  --night-text: #C9D3DD;
  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: 16px;
  --max: 1240px;
  --step: clamp(56px, 9vw, 128px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 4.75rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-stretch: 104%; letter-spacing: -0.005em; }
strong { font-weight: 600; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }
.label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label--blue { color: var(--blue); }
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 5; }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.masthead__logo img { width: 132px; height: auto; }
.nav-desk { display: none; }
.nav-desk ul, .menu ul, .foot__nav ul { list-style: none; margin: 0; padding: 0; }
.nav-desk ul { display: flex; gap: 4px; }
.nav-desk a {
  display: block; padding: 8px 12px;
  font-family: var(--f-display); font-size: 0.95rem; font-weight: 500; font-stretch: 100%;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent;
}
.nav-desk a:hover { color: var(--blue); }
.nav-desk a[aria-current="page"] { border-bottom-color: var(--gold); }
.menu summary {
  list-style: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px; border: 1px solid var(--ink); color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--ink);
  padding: 8px var(--gutter) 20px;
}
.menu a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.menu a[aria-current="page"] { color: var(--blue); }
@media (min-width: 960px) {
  .nav-desk { display: block; }
  .menu { display: none; }
  .masthead__logo img { width: 154px; }
}
.section { padding: var(--step) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--tight { padding: calc(var(--step) * 0.6) 0; }
.section--white { background: var(--sheet); }
.rail-grid { display: grid; gap: 20px 40px; }
.rail { padding-top: 14px; border-top: 2px solid var(--rule-strong); align-self: start; }
.rail .label { display: block; }
.rail__no { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-3); display: block; margin-bottom: 4px; }
.body { max-width: 44rem; }
.lead { font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.375rem); line-height: 1.5; color: var(--ink); }
.muted { color: var(--ink-2); }
@media (min-width: 900px) {
  .rail-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .rail { grid-column: 1 / span 3; }
  .rail-grid > .body, .rail-grid > .body-wide { grid-column: 4 / span 9; }
  .rail-grid > .body { grid-column: 4 / span 7; }
  .rail { position: sticky; top: 24px; }
}
.hero { padding: clamp(48px, 8vw, 112px) 0 clamp(40px, 6vw, 88px); border-bottom: 1px solid var(--ink); }
.hero__grid { display: grid; gap: 28px 40px; }
.hero h1 { max-width: 15ch; margin-bottom: 0; }
.hero .lead { max-width: 36rem; margin: 0; }
.hero__kicker { margin-bottom: 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__kicker::before { content: ""; width: 28px; height: 3px; background: var(--gold); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .hero__grid > :first-child { grid-column: 1 / span 7; }
  .hero__grid > :last-child { grid-column: 8 / span 5; }
}
.front { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 120px); border-bottom: 1px solid var(--ink); overflow: hidden; }
.front__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.front h1 { font-size: clamp(2.4rem, 1.3rem + 4.2vw, 4.6rem); max-width: 13ch; }
.front h1 em { font-style: normal; color: var(--blue); }
.front .lead { max-width: 34rem; }
.front__actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 32px; }
@media (min-width: 1000px) {
  .front__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
  .front__text { grid-column: 1 / span 5; }
  .front__doc { grid-column: 6 / span 7; transform: rotate(0.6deg); }
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; font-stretch: 104%;
  padding: 15px 22px; background: var(--ink); color: #fff; text-decoration: none; border: 2px solid var(--ink);
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn::after { content: "\2192"; font-family: var(--f-mono); }
.textlink { font-family: var(--f-display); font-weight: 600; font-stretch: 104%; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.textlink:hover { color: var(--blue); text-decoration-color: var(--blue); }
.sheet {
  background: var(--sheet);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--rule);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 100%;
  margin: 0;
}
.sheet__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--ink); }
.sheet__title { font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.sheet__meta { color: var(--ink-2); }
.sheet__fields { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; padding: 12px 16px; border-bottom: 1px solid var(--rule); margin: 0; }
.sheet__fields dt { color: var(--ink-3); }
.sheet__fields dd { margin: 0; }
.sheet__scroll { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 30rem; }
.sheet th, .sheet td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sheet td { font-size: 0.8rem; }
.sheet td.verdict { white-space: nowrap; }
.sheet th { font-weight: 500; color: var(--ink-2); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sheet th:first-child, .sheet td:first-child { padding-left: 16px; }
.sheet tr.flag td { background: var(--gold-tint); }
@media (max-width: 559px) {
  .sheet table.results { min-width: 0; }
  .sheet table.results thead { position: absolute; left: -10000px; }
  .sheet table.results tr { display: grid; grid-template-columns: 1fr; gap: 2px 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
  .sheet table.results td { display: block; padding: 0; border: 0; }
  .sheet table.results td:first-child { grid-column: 1 / -1; padding: 0; font-weight: 500; }
  .sheet table.results td:nth-child(2)::before { content: "Result "; color: var(--ink-3); }
  .sheet table.results td:nth-child(3)::before { content: "Limit "; color: var(--ink-3); }
  .sheet table.results td.verdict { grid-column: 1 / -1; }
  .sheet table.results tr.flag { background: var(--gold-tint); box-shadow: inset 4px 0 0 var(--gold); }
  .sheet table.results tr.flag td { background: none; box-shadow: none; }
}
.sheet tr.flag td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.verdict { white-space: nowrap; font-weight: 500; }
.verdict--ok { color: var(--green-ink); }
.verdict--qa { color: var(--ink); }
.verdict--qa::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold); margin-right: 6px; transform: rotate(45deg); vertical-align: 1px; }
.sheet__note { padding: 12px 16px; display: grid; grid-template-columns: max-content 1fr; gap: 0 12px; }
.sheet__note b { font-weight: 500; }
.sheet__foot { padding: 10px 16px; border-top: 1px solid var(--ink); color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stamp { display: inline-block; border: 1.5px solid var(--blue); color: var(--blue); padding: 1px 6px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; }
.caption { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); margin-top: 14px; max-width: 34rem; }
.log { list-style: none; margin: 0; padding: 4px 0; }
.log li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--rule); }
.log li:last-child { border-bottom: 0; }
.log time { color: var(--ink-3); }
.log .is-handoff { background: var(--gold-tint); box-shadow: inset 4px 0 0 var(--gold); }
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ruled > li { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px 32px; }
.ruled h3 { margin: 0; }
.ruled p { margin: 0; color: var(--ink-2); }
.ruled__no { font-family: var(--f-mono); font-size: 0.8rem; color: var(--blue); }
@media (min-width: 760px) {
  .ruled > li { grid-template-columns: 3.5rem minmax(0, 15rem) minmax(0, 1fr); align-items: baseline; }
  .ruled--two > li { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); }
}
.proof { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.proof li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--rule); }
.proof li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 10px; height: 2px; background: var(--blue); }
.twoup { display: grid; gap: 32px 48px; }
@media (min-width: 760px) { .twoup { grid-template-columns: 1fr 1fr; } }
.twoup h3 { padding-top: 12px; border-top: 3px solid var(--green); display: inline-block; }
.pull {
  font-family: var(--f-display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0; max-width: 22ch;
}
.pull cite { display: block; margin-top: 20px; font: 500 0.75rem/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); font-style: normal; }
.pull mark { background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 90%, transparent 90%); color: inherit; padding: 0 2px; }
.band { background: var(--night); color: var(--night-text); }
.band h2, .band h3 { color: #fff; }
.band a { color: #fff; }
.band .label { color: #9FB3C8; }
.band .rail { border-top-color: var(--gold); }
.band .textlink { color: #fff; }
.band .pull { color: #fff; }
.band .pull mark { background: none; color: var(--gold); padding: 0; }
.band .pull cite { color: #9FB3C8; }
.band .sheet { box-shadow: 6px 6px 0 var(--night-2); }
.split { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 7 / span 6; }
  .split--flip > :first-child { grid-column: 8 / span 5; order: 2; }
  .split--flip > :last-child { grid-column: 1 / span 6; order: 1; }
}
.mt { margin-top: 24px; }
.mb-l { margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { padding: 22px 0 26px; border-bottom: 1px solid var(--rule); }
.steps .ruled__no { display: block; margin-bottom: 10px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
  .steps li { padding: 24px 28px 32px 0; border-bottom: 0; }
  .steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
}
.procedure { list-style: none; margin: 0; padding: 0; }
.procedure li { display: grid; gap: 6px 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
.procedure li:first-child { border-top: 2px solid var(--ink); }
.procedure .ruled__no { font-size: 0.85rem; }
.procedure h3 { margin: 0 0 6px; }
.procedure p { margin: 0; color: var(--ink-2); max-width: 40rem; }
@media (min-width: 760px) { .procedure li { grid-template-columns: 7rem 1fr; } }
.people { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.person { padding: 28px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px 40px; }
.person h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); margin: 0; }
.person__role { font-family: var(--f-mono); font-size: 0.8rem; color: var(--blue); margin: 4px 0 0; }
.creds { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.creds li { font-family: var(--f-mono); font-size: 0.72rem; border: 1px solid var(--ink); padding: 3px 8px; letter-spacing: 0.04em; }
@media (min-width: 760px) { .person { grid-template-columns: minmax(0, 18rem) 1fr; } }
.chapters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.toc { display: none; }
@media (min-width: 1100px) {
  .chapters { grid-template-columns: 15rem minmax(0, 1fr); gap: 64px; }
  .toc { display: block; position: sticky; top: 24px; align-self: start; padding-top: 14px; border-top: 2px solid var(--ink); }
  .toc ol { list-style: none; margin: 12px 0 0; padding: 0; }
  .toc a { display: grid; grid-template-columns: 2rem 1fr; padding: 7px 0; font-family: var(--f-display); font-size: 0.9rem; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.3; border-bottom: 1px solid var(--rule); }
  .toc a span { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-3); padding-top: 1px; }
  .toc a:hover { color: var(--blue); }
}
.chapter { padding: 0 0 clamp(48px, 7vw, 88px); scroll-margin-top: 24px; }
.chapter + .chapter { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.chapter__no { font-family: var(--f-mono); font-size: 0.8rem; color: var(--blue); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.chapter__no::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--ink); }
.chapter h2 { max-width: 20ch; }
.chapter__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 48px; }
.chapter__text { max-width: 40rem; }
@media (min-width: 1300px) {
  .chapter__body--art { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); align-items: start; }
}
.close { padding: var(--step) 0; border-top: 1px solid var(--ink); }
.close__grid { display: grid; gap: 28px 40px; }
.close h2 { font-size: clamp(2rem, 1.3rem + 3.2vw, 4rem); max-width: 16ch; margin: 0; }
@media (min-width: 900px) {
  .close__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
  .close__grid > :first-child { grid-column: 1 / span 7; }
  .close__grid > :last-child { grid-column: 9 / span 4; }
}
.form { display: grid; gap: 20px; background: var(--sheet); border: 1px solid var(--ink); padding: clamp(20px, 4vw, 36px); box-shadow: 6px 6px 0 var(--rule); }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.field label small { text-transform: none; letter-spacing: 0; color: var(--ink-3); font-weight: 400; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink-3); border-radius: 0; padding: 12px 12px; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; padding: 12px 14px; border-left: 4px solid var(--blue); background: #EEF3F9; font-size: 0.98rem; }
.form__status[data-kind="error"] { border-left-color: var(--gold); background: var(--gold-tint); }
.form__status[hidden] { display: none; }
.form button { justify-self: start; cursor: pointer; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.terms { margin: 0; border-top: 1px solid var(--ink); }
.terms div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.terms dt { font-family: var(--f-display); font-weight: 700; font-stretch: 110%; font-size: 1.35rem; line-height: 1.1; }
.terms dd { margin: 0; color: var(--ink-2); }
.foot { background: var(--night); color: var(--night-text); padding: 64px 0 0; font-size: 0.95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot__grid { display: grid; gap: 36px; padding-bottom: 48px; }
.foot__mark { display: block; width: 150px; color: #fff; margin-bottom: 18px; }
.foot__line { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.foot__nav li { padding: 4px 0; }
.foot__nav a { font-family: var(--f-display); font-weight: 500; }
.foot__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.foot__motto { font-family: var(--f-display); font-weight: 700; font-stretch: 110%; color: #fff; font-size: 1.1rem; border-top: 2px solid var(--gold); padding-top: 12px; display: inline-block; }
.foot__base { border-top: 1px solid var(--night-2); padding-top: 20px; padding-bottom: 28px; font-family: var(--f-mono); font-size: 0.72rem; color: #9FB3C8; }
.foot__base p { margin: 0; }
@media (min-width: 900px) {
  .foot__grid { grid-template-columns: 5fr 3fr 4fr; }
}
.missing { padding: clamp(64px, 12vw, 160px) 0; }
.missing h1 { max-width: 14ch; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .masthead, .foot, .menu { display: none; }
  body { background: #fff; }
}
