/* ISO 20996 Revision Checker. Ballot-clock system: ultramarine ink on warm paper,
   a thin sticky spine, numbered plates, ruled tables, no cards. */
:root {
  --ink: #14161a;
  --paper: #f4f3ef;
  --paper-2: #ebe9e2;
  --blue: #1b34c8;
  --blue-dark: #13259a;
  --amber: #a8440a;
  --rule: #d3d0c6;
  --mute: #565d64;
  --white: #fffefb;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -.022em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.03; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.14; margin-top: 2.2em; }
h3 { font-size: 1.18rem; line-height: 1.25; margin-top: 1.7em; letter-spacing: -.01em; }
p { margin: 0 0 1.05em; max-width: 70ch; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; max-width: 70ch; }
li { margin-bottom: .45em; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 1px 4px; }
.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--white); padding: 12px 18px; z-index: 100; }
.skip:focus { left: 12px; top: 10px; }
.lab, .kicker, .count, .plate-no, .code, .stage-chip, .unit-meta, .hero-facts {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; font-weight: 600;
}
p.lab { font-size: 16px; }
.badges li, .stage-chip, .plate-no, .count { font-size: 14px; }
.kicker { color: var(--amber); display: block; margin-bottom: 14px; }

/* spine */
.spine {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px;
  padding: 10px clamp(16px, 3vw, 34px); background: var(--ink); color: var(--paper);
  border-bottom: 1px solid #2b2f36;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); font-weight: 700; text-decoration: none; font-size: 16px; letter-spacing: -.01em; }
.mark { width: 12px; height: 12px; background: var(--blue); display: inline-block; }
.stage-chip { color: #c9c6bc; font-size: 14px; letter-spacing: .06em; border-left: 1px solid #3a3f47; padding-left: 18px; }
.stage-chip b { color: var(--paper); }
.spine nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.spine nav a { color: var(--paper); text-decoration: none; font-size: 14px; padding: 11px 12px; min-height: 44px; display: inline-flex; align-items: center; }
.spine nav a:hover { background: #262a31; color: var(--white); }

main { display: block; }
.plate { max-width: var(--max); margin: 0 auto; padding: 34px clamp(18px, 4vw, 46px) 26px; border-top: 1px solid var(--rule); position: relative; }
.plate-no { position: absolute; left: clamp(18px, 4vw, 46px); top: 40px; color: var(--mute); font-size: 14px; }
.plate > h2, .plate > h3, .plate > .lede, .plate > p, .plate > ul, .plate > ol, .plate > table, .plate > .faq, .plate > .three, .plate > .checks, .plate > .price-row, .plate > .provenance, .plate > .badges, .plate > .answer-list, .plate > .downloads {
  margin-left: clamp(0px, 4.2vw, 62px);
}
.intro { padding-top: 54px; border-top: 0; }
.intro h1 { max-width: 22ch; }
.lede { font-size: 19px; line-height: 1.55; color: #2b3036; max-width: 64ch; }

/* hero */
.hero { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.08fr .92fr; gap: 0; align-items: stretch; padding: 0 clamp(18px, 4vw, 46px); }
.hero-type { padding: 44px 34px 40px 0; }
.hero-shot { margin: 0; position: relative; border-left: 1px solid var(--rule); }
.hero-shot img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; filter: saturate(.82) contrast(1.02); }
.hero-shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(20,22,26,.94); color: var(--paper); padding: 16px 18px; font-size: 15px; line-height: 1.45; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 22px 0 24px; color: var(--mute); text-transform: none; letter-spacing: 0; font-size: 15px; }
.hero-facts b { color: var(--ink); font-family: var(--sans); font-size: 24px; letter-spacing: -.03em; margin-right: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 20px; background: var(--blue); color: var(--white); border: 1px solid var(--blue);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn.ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn.ghost:hover { background: var(--blue); color: var(--white); }

.checker { margin-left: clamp(0px, 4.2vw, 62px); display: grid; gap: 18px; max-width: 760px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 16px; font-weight: 600; line-height: 1.4; max-width: 60ch; }
.field select {
  font: 16px/1.4 var(--sans); padding: 12px 14px; min-height: 48px; width: 100%; max-width: 520px;
  border: 1px solid #8b877b; background: var(--white); color: var(--ink); border-radius: 0;
}
.check-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.result { margin: 26px 0 0 clamp(0px, 4.2vw, 62px); border-top: 3px solid var(--ink); padding-top: 18px; }
.result .verdict { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--sans); letter-spacing: -.03em; margin: 4px 0 6px; color: var(--blue); }
.result h3 { margin-top: 26px; }
table.ruled { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 16px; display: block; overflow-x: auto; }
table.ruled caption { text-align: left; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding-bottom: 8px; }
table.ruled th, table.ruled td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.ruled thead th { border-bottom: 2px solid var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
table.ruled tbody th { font-weight: 600; width: 32%; }
table.ruled .code { font-size: 14px; white-space: nowrap; color: var(--mute); }
.verdict-cell { font-weight: 700; }
.actions li { margin-bottom: .7em; }
.actions b { display: block; }
.provenance { border-left: 3px solid var(--blue); padding: 4px 0 4px 16px; margin-top: 26px; color: #343a40; font-size: 16px; }
.provenance p { margin: 0; }

/* plates and blocks */
.band { background: var(--paper-2); max-width: none; padding-left: max(18px, calc((100vw - var(--max)) / 2 + 46px)); padding-right: max(18px, calc((100vw - var(--max)) / 2 + 46px)); }
.band .plate-no { left: max(18px, calc((100vw - var(--max)) / 2 + 46px)); }
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px clamp(0px, 4.2vw, 62px); }
.badges li { border: 1px solid var(--ink); padding: 6px 11px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.checks { list-style: none; padding: 0; }
.checks li { border-left: 3px solid var(--rule); padding-left: 14px; margin-bottom: .8em; }
.checks b { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--amber); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 18px; }
.three > div { border-top: 2px solid var(--ink); padding-top: 10px; }
.three p:last-child { margin-bottom: 0; }
.count { color: var(--mute); font-size: 13px; margin-left: 8px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 4px 0; min-height: 32px; }
.faq p { margin: 10px 0 6px; }

/* prices */
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; }
.price-cell { border-top: 3px solid var(--ink); padding-top: 14px; }
.price-cell .big { font: 700 2.6rem/1 var(--sans); letter-spacing: -.04em; margin: 4px 0 12px; }
.price-cell .per { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.price-cell .btn { margin-top: 6px; }
.price-table .big-cell { font-weight: 700; white-space: nowrap; }

/* units */
.unit { max-width: var(--max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 46px); }
.unit-head { border-top: 4px solid var(--ink); padding: 26px 0 20px; }
.unit-code { font: 700 clamp(2.6rem, 7vw, 4.6rem)/1 var(--mono); letter-spacing: -.05em; color: var(--blue); margin: 0 0 4px; }
.unit-head h1 { max-width: 24ch; }
.unit-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--mute); margin-top: 16px; }
.unit-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(240px, .8fr); gap: 40px; border-top: 1px solid var(--rule); padding-top: 24px; }
.unit-main h2:first-child { margin-top: 0; }
.unit-aside { border-left: 1px solid var(--rule); padding-left: 24px; }
.unit-aside dl { margin: 10px 0 18px; font-size: 15px; }
.unit-aside dt { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin-top: 10px; }
.unit-aside dd { margin: 2px 0 0; }
.evidence li { margin-bottom: .5em; }
.source-line { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 12px; font-size: 15px; color: #3a4046; }
.crumbs { max-width: var(--max); margin: 0 auto; padding: 16px clamp(18px, 4vw, 46px) 0; font-size: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--mute); }
.crumbs a { color: var(--mute); }
.market h2 { text-transform: none; }
.answer-lede { font-size: 21px; line-height: 1.5; border-left: 4px solid var(--blue); padding-left: 18px; max-width: 60ch; }
.answer-list dt { font-weight: 700; font-size: 18px; margin-top: 18px; }
.answer-list dd { margin: 4px 0 0; max-width: 70ch; }
.downloads { padding-left: 0; list-style: none; }
.downloads li { border-top: 1px solid var(--rule); padding: 10px 0; }

/* footer */
.foot { background: var(--ink); color: #d8d5cc; margin-top: 40px; padding: 40px clamp(18px, 4vw, 46px) 26px; }
.foot-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 34px; }
.foot p { max-width: 52ch; font-size: 16px; }
.foot .foot-mark { font-weight: 700; color: var(--white); font-size: 17px; margin-bottom: 8px; }
.foot a { color: #c9d0ff; }
.foot .lab { color: #c2bfb5; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { margin-bottom: .35em; font-size: 16px; }
.fine { max-width: var(--max); margin: 26px auto 0; font-size: 14px; line-height: 1.55; color: #565d64; }
.foot .fine { color: #c2bfb5; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-type { padding: 30px 0 26px; order: 2; }
  .hero-shot { order: 1; border-left: 0; }
  .hero-shot img { min-height: 260px; max-height: 340px; }
  .hero-shot figcaption { position: static; }
  .unit-grid { grid-template-columns: 1fr; gap: 24px; }
  .unit-aside { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 18px; }
  .three, .price-row { grid-template-columns: 1fr; gap: 18px; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .spine { flex-wrap: wrap; gap: 8px 14px; }
  .stage-chip { border-left: 0; padding-left: 0; }
  .spine nav { margin-left: 0; width: 100%; }
  .spine nav a { padding: 10px 9px; }
  .plate { padding-top: 28px; }
  .plate-no { position: static; display: block; margin-bottom: 8px; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .plate > h2, .plate > h3, .plate > .lede, .plate > p, .plate > ul, .plate > ol, .plate > table, .plate > .faq, .plate > .three, .plate > .checks, .plate > .price-row, .plate > .provenance, .plate > .badges, .plate > .answer-list, .plate > .downloads, .checker, .result { margin-left: 0; }
  .hero-facts b { font-size: 20px; }
}
/* readable minimums on data cells and labels (R-182) */
.kicker { font-size: 16px; }
table.ruled .code, td.code { font-size: 16px; }
.badges li { font-size: 16px; }
.crumbs li, .crumbs a { font-size: 16px; }
