/* Instrument Sans, self-hosted (SIL OFL 1.1, licence in /assets/fonts). One family for the logo, titles and text. */
/* Newsreader (SIL OFL 1.1, assets/fonts/OFL-newsreader.txt): the manuscript's voice, used only for its text. */
@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/newsreader-latin-ext-standard-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/assets/fonts/newsreader-latin-standard-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url(/assets/fonts/instrument-sans-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700; font-stretch: 75% 100%;
  src: url(/assets/fonts/instrument-sans-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ReviewBot, 10 November 2026. One stylesheet for the public site and the portal.
   Idea: the annotated page. Content is set like print; notes, grades and controls are the referee's marks;
   structure is a printer's layout board (non-photo-blue guides, baseline rules, crop marks).
   Method: tokens -> component variables; flat markup; every child of .g places itself with --at (and --at-md). */

/* 1 ─ TOKENS ───────────────────────────────────────────────────────────── */
:root {
  --paper: #FFFFFF;
  --grey: #F5F5F7;
  --sheet: #FFFFFF;
  --ink: #1D1D1F;
  --graphite: #424245;
  --pencil: #6E6E73;
  --hair: rgba(0, 0, 0, .14);
  --npb: #7FC6E0;                       /* non-photo blue: guides and underlines */
  --npb-line: rgba(127, 198, 224, .32);
  --npb-wash: rgba(127, 198, 224, .14);
  --blue-pencil: #1F5E99;               /* the editor's mark: links, "what to change" */
  --red-pencil: #B3261E;                /* major */
  --ochre: #A86A00;                     /* moderate, conditional */
  --green: #2E6B3F;                     /* released, supported */

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans-display: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --t-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-ui: .9375rem;
  --t-small: .8125rem;
  --t-h2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-h1: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  --t-display: clamp(2.2rem, 1.2rem + 3.2vw, 4.25rem);
  --lh: 1.6;
  --measure: 34em;

  --cols: 24;
  --gap: clamp(.75rem, 1.6vw, 1.5rem);
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1320px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: clamp(3rem, 6vw, 6rem); --s6: clamp(5rem, 10vw, 10rem);

  --radius: 12px;
  --pill: 980px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 ─ BASE ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font: 400 var(--t-body)/1.5 var(--sans); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--sans-display); font-weight: 600; line-height: 1.07; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font: 600 var(--t-ui)/1.3 var(--sans); letter-spacing: 0; }
p, li, dd { max-width: var(--measure); text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--npb); }
a:hover { text-decoration-color: var(--ink); }
ul[role=list], ol[role=list] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-pencil); outline-offset: 3px; }
::selection { background: var(--npb-wash); }

.ui { font-family: var(--sans); font-size: var(--t-ui); line-height: 1.45; font-variant-numeric: tabular-nums; }
.small { font-size: var(--t-small); }
.quiet { color: var(--pencil); }
.mono { font-family: var(--mono); font-size: .85em; word-break: break-all; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 3 ─ GRID ─────────────────────────────────────────────────────────────── */
/* One 24-track grid. Children are flat and choose their tracks with --at / --at-md and, if needed, --row. */
.g {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gap); row-gap: var(--row-gap, var(--s4));
  width: min(100% - 2 * var(--edge), var(--max)); margin-inline: auto; align-items: start;
}
.g > * { grid-column: var(--at, 1 / -1); grid-row: var(--row, auto); min-width: 0; }
.g .sub { display: grid; grid-template-columns: subgrid; column-gap: var(--gap); row-gap: var(--row-gap, var(--s3)); }
.g .sub > * { grid-column: var(--at, 1 / -1); grid-row: var(--row, auto); min-width: 0; }
@media (max-width: 960px) { .g > *, .g .sub > * { grid-column: var(--at-md, 1 / -1); grid-row: auto; } }
@media (max-width: 620px) { .g > *, .g .sub > * { grid-column: 1 / -1; } }
.band { padding-block: var(--s5); }
.band--top { padding-top: var(--s4); }
.stack { display: grid; gap: var(--stack, var(--s2)); align-content: start; }
.sticky { position: sticky; top: 5rem; align-self: start; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); }

/* layout board: faint guides on every fourth track, behind a band */
.board { position: relative; isolation: isolate; }
.board::before {
  content: ""; position: absolute; z-index: -1; inset: 0; margin-inline: auto;
  width: min(100% - 2 * var(--edge), var(--max));
  border-right: 1px solid var(--npb-line);
  background: repeating-linear-gradient(to right, var(--npb-line) 0 1px, transparent 1px calc((100% + var(--gap)) / 6));
  -webkit-mask: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}
.rule { border-top: 1px solid var(--hair); padding-top: var(--s2); }

/* 4 ─ TYPE OBJECTS ─────────────────────────────────────────────────────── */
.display { font: 600 var(--t-display)/1.04 var(--sans-display); letter-spacing: -.03em; }
.lede { font: 400 clamp(1.15rem, .95rem + .7vw, 1.6rem)/1.38 var(--sans-display); letter-spacing: -.015em; color: var(--pencil); max-width: 30em; }
.label { font: 500 var(--t-small)/1.3 var(--sans); color: var(--pencil); }
.num { font-size: var(--t-h1); line-height: 1; font-variant-numeric: oldstyle-nums; }
.claim { text-decoration: underline 2px var(--npb); text-underline-offset: .22em; text-decoration-skip-ink: none; }

/* 5 ─ MARKS (grade and status: shape carries the meaning, colour supports it) ─ */
.mark { display: inline-flex; align-items: baseline; gap: .45em; font: 500 var(--t-small)/1.3 var(--sans); color: var(--m, var(--graphite)); white-space: nowrap; }
.mark::before { content: ""; flex: none; width: .62em; height: .62em; transform: translateY(-.05em); background: currentColor; border: 1.5px solid currentColor; border-radius: 50%; }
.mark--proven::before { border-radius: 0; }
.mark--recomputed, .mark--ok { --m: var(--blue-pencil); }
.mark--conditional { --m: var(--ochre); }
.mark--conditional::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.mark--open::before, .mark--minor::before, .mark--hollow::before { background: transparent; }
.mark--major, .mark--bad { --m: var(--red-pencil); }
.mark--moderate, .mark--warn { --m: var(--ochre); }
.mark--released { --m: var(--green); }
.mark--live::before { background: transparent; animation: spin 1.2s linear infinite; border-right-color: transparent; }
@keyframes spin { to { transform: translateY(-.05em) rotate(360deg); } }

/* 6 ─ CONTROLS ─────────────────────────────────────────────────────────── */
.btn {
  --b-bg: var(--blue-pencil); --b-fg: #fff; --b-bd: var(--blue-pencil);
  display: inline-block; text-align: center;
  padding: .78em 1.4em; font: 400 1.0625rem/1 var(--sans); letter-spacing: -.01em;
  color: var(--b-fg); background: var(--b-bg); border: 1px solid var(--b-bd); border-radius: var(--pill);
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { --b-bg: #174B7C; --b-bd: #174B7C; }
.btn--line { --b-bg: transparent; --b-fg: var(--blue-pencil); --b-bd: var(--blue-pencil); }
.btn--line:hover { --b-bg: var(--blue-pencil); --b-fg: #fff; }
.btn--wide { width: 100%; }
.btn--big { padding: 1.05em 1.7em; font-size: 1rem; }
.link { font-family: var(--sans); font-weight: 400; color: var(--blue-pencil); text-decoration: none; }
.link:hover { text-decoration: underline; }
.textbtn { background: none; border: 0; padding: 0; cursor: pointer; font: 500 var(--t-ui)/1.3 var(--sans); color: var(--graphite); }
.textbtn:hover { color: var(--ink); text-decoration: underline; }

.field { display: grid; gap: .4rem; font-family: var(--sans); }
.field > span:first-child { font-size: var(--t-small); font-weight: 500; color: var(--graphite); }
.input {
  width: 100%; padding: .8em .95em; font: 400 1.0625rem/1.3 var(--sans); background: var(--sheet);
  border: 1px solid rgba(0,0,0,.18); border-radius: var(--radius); transition: border-color .2s var(--ease);
}
.input:hover { border-color: var(--pencil); }
.input:focus { outline: none; border-color: var(--blue-pencil); box-shadow: 0 0 0 3px var(--npb-wash); }
textarea.input { min-height: 5.5em; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: .65em; align-items: flex-start; font: 400 var(--t-ui)/1.45 var(--sans); cursor: pointer; }
.check input { width: 1.05em; height: 1.05em; margin-top: .2em; accent-color: var(--ink); flex: none; }

/* 7 ─ THE SHEET (centrepiece, sign in, upload) ─────────────────────────── */
/* .sheet-wrap draws the crop marks; .sheet is the paper. */
.sheet-wrap {
  --c: 14px; --o: 22px; padding: var(--o); position: relative;
  background:
    linear-gradient(var(--ink), var(--ink)) left 0 top var(--o) / var(--c) 1px,
    linear-gradient(var(--ink), var(--ink)) left var(--o) top 0 / 1px var(--c),
    linear-gradient(var(--ink), var(--ink)) right 0 top var(--o) / var(--c) 1px,
    linear-gradient(var(--ink), var(--ink)) right var(--o) top 0 / 1px var(--c),
    linear-gradient(var(--ink), var(--ink)) left 0 bottom var(--o) / var(--c) 1px,
    linear-gradient(var(--ink), var(--ink)) left var(--o) bottom 0 / 1px var(--c),
    linear-gradient(var(--ink), var(--ink)) right 0 bottom var(--o) / var(--c) 1px,
    linear-gradient(var(--ink), var(--ink)) right var(--o) bottom 0 / 1px var(--c);
  background-repeat: no-repeat;
}
.sheet {
  position: relative; padding: clamp(1.5rem, 4vw, 3.25rem); background: var(--sheet);
  box-shadow: 0 1px 0 var(--hair), 0 30px 60px -40px rgba(0, 0, 0, .35);
}
.sheet__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s2); padding-bottom: var(--s2); margin-bottom: var(--s3); border-bottom: 1px solid var(--hair); }
.sheet__text { display: grid; gap: var(--s2); font: 400 var(--t-body)/1.6 var(--serif); letter-spacing: 0; font-variant-numeric: oldstyle-nums; }
.sheet__foot { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--ink); }

/* margin notes: beside the sheet on wide screens, after the text on narrow ones */
.notes { display: grid; gap: var(--s2); margin-top: var(--s3); }
.note { position: relative; display: grid; gap: .25rem; font: 400 var(--t-ui)/1.45 var(--sans); color: var(--graphite); max-width: 22rem; }
.note b { font-weight: 600; color: var(--ink); }
.board .note { background: var(--paper); box-shadow: 0 0 0 .4rem var(--paper); }
@media (min-width: 961px) {
  .notes { position: absolute; top: 0; bottom: 0; left: calc(100% + 22px + var(--gap)); width: min(16rem, 24vw); margin: 0; display: block; }
  .note { position: absolute; top: var(--y, 0); left: 0; right: 0; }
  .note::before { content: ""; position: absolute; top: .72em; right: calc(100% + .4rem); width: calc(var(--gap) + 22px + 2.4rem); border-top: 1px solid var(--npb); }
}

/* drop target */
.drop { position: relative; display: grid; gap: var(--s1); justify-items: center; padding: var(--s4) var(--s3); border: 1px dashed var(--pencil); text-align: center; transition: border-color .2s var(--ease), background .2s var(--ease); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.is-over { border-color: var(--blue-pencil); background: var(--npb-wash); }
.drop.has-file { border-style: solid; border-color: var(--green); }
.drop__big { font-size: var(--t-h2); line-height: 1.15; }
.drop[hidden] { display: none; }
/* The chosen file: one row with its type, name and size, Replace, and a remove button. */
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s2);
  padding: 1rem 1rem 1rem 1.1rem; border: 1px solid var(--hair); border-radius: var(--radius); background: var(--paper); }
.file__type { display: grid; place-items: center; min-width: 3rem; height: 3.6rem; padding: 0 .4rem; border-radius: 8px;
  background: var(--grey); font: 600 .75rem/1 var(--sans); letter-spacing: .02em; color: var(--graphite); }
.file__body { display: grid; gap: .2rem; min-width: 0; }
.file__name { font: 500 var(--t-ui)/1.35 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.file__meta { font: 400 var(--t-small)/1.4 var(--sans); color: var(--green); }
.file__acts { display: flex; align-items: center; gap: var(--s2); }
.file__acts .link { background: none; border: 0; padding: 0; font-size: var(--t-small); cursor: pointer; }
.file__x { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: transparent;
  font: 400 1.5rem/1 var(--sans); color: var(--pencil); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.file__x:hover { background: var(--grey); color: var(--ink); }
.file__x:focus-visible, .file__acts .link:focus-visible { outline: 2px solid var(--blue-pencil); outline-offset: 2px; }
.file--bad { border-color: var(--red-pencil); }
.file--bad .file__meta { color: var(--red-pencil); }
@media (max-width: 559px) {
  .file { position: relative; grid-template-columns: auto minmax(0, 1fr); padding-right: 3rem; }
  .file__type { height: 3rem; min-width: 2.6rem; }
  .file__acts { grid-column: 2; }
  .file__x { position: absolute; top: .5rem; right: .5rem; }
}

/* 8 ─ PAGE CHROME ──────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.top__in { display: flex; align-items: center; gap: var(--s2); min-height: 3.6rem; width: min(100% - 2 * var(--edge), var(--max)); margin-inline: auto; }
.brand { font: 600 1.3rem/1 var(--sans-display); letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.brand small { font: 500 .75rem/1 var(--sans); color: var(--pencil); margin-left: .4em; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: .25rem var(--s3); margin-left: auto; font: 400 .875rem/1 var(--sans); }
.nav a:not(.btn), .nav .textbtn { text-decoration: none; color: var(--graphite); padding-block: .4em; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--ink); border-color: var(--npb); }
.nav .btn { padding: .5em 1em; font-size: .875rem; }
.nav form { display: flex; }
.nav a { white-space: nowrap; }
@media (max-width: 720px) { .nav .opt, .brand small { display: none; } .nav { gap: .25rem .9rem; } .nav .btn { padding: .55em .8em; } .top__in { gap: var(--s1); } }
.foot { border-top: 1px solid var(--hair); padding-block: var(--s4) var(--s5); font: 400 var(--t-small)/1.6 var(--sans); color: var(--pencil); }
.foot a { color: var(--graphite); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* 9 ─ PORTAL OBJECTS ───────────────────────────────────────────────────── */
/* a finding: the quoted claim on the left, the referee's note on the right (a .sub row) */
.point { --row-gap: .75rem; padding-block: var(--s3); border-top: 1px solid var(--hair); }
.point:last-child { border-bottom: 1px solid var(--hair); }
.point__src { color: var(--graphite); font-family: var(--serif); letter-spacing: 0; }
.point__note { display: grid; gap: .45rem; font: 400 var(--t-ui)/1.5 var(--sans); color: var(--graphite); }
.point__title { font-weight: 600; color: var(--ink); font-size: 1.02rem; line-height: 1.35; }
.point__do { color: var(--blue-pencil); }
.point__do b { font-weight: 600; }
.point__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.point__keep { margin-left: auto; }

/* figures row: numbers in the serif, labels in the sans, ruled above */
.figs { --rule: #fff; display: grid; grid-template-columns: 1fr 1fr; background: var(--grey); border-radius: 18px; overflow: hidden; }
.fig { display: grid; gap: .45rem; justify-items: center; align-content: center; padding: var(--s3) var(--s2); text-align: center; }
.fig:nth-child(even) { border-left: 1px solid var(--rule); }
.fig:nth-child(n + 3) { border-top: 1px solid var(--rule); }
@media (max-width: 719px) { .fig:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.fig .num { font: 600 clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem)/1 var(--sans-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.fig .label { font: 500 .875rem/1.3 var(--sans); color: var(--graphite); letter-spacing: 0; }
.fig .label::first-letter { text-transform: uppercase; }
@media (min-width: 720px) {
  .figs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .fig:nth-child(n) { border-top: 0; border-left: 1px solid var(--rule); }
  .fig:nth-child(n):first-child { border-left: 0; }
}
}

/* steps: a real sequence, so numbered */
.steps { display: grid; gap: var(--s2); counter-reset: s; padding: 0; margin: 0; list-style: none; font: 400 var(--t-ui)/1.45 var(--sans); }
.step { display: grid; grid-template-columns: 1.6rem 1fr; gap: .75rem; color: var(--pencil); counter-increment: s; transition: color .3s var(--ease); }
.step::before { content: counter(s); font: 600 1.3rem/1 var(--sans-display); color: var(--hair); transition: color .3s var(--ease); }
.step.is-done { color: var(--graphite); }
.step.is-done::before { color: var(--green); }
.step.is-now { color: var(--ink); font-weight: 500; }
.step.is-now::before { color: var(--blue-pencil); }
.step small { display: block; font-weight: 400; font-size: var(--t-small); color: var(--pencil); }
.bar { height: 1px; background: var(--hair); }
.bar > i { display: block; height: 3px; margin-top: -1px; width: var(--p, 3%); background: var(--ink); transition: width .6s var(--ease); }

/* The waiting page: the main claim, in the manuscript's own serif, arrives once it has been read. */
.live { row-gap: var(--s4); }
.live__now { align-content: start; }
.live__claim[hidden] { display: none; }
.live__claim { margin: var(--s1) 0 0; padding: .1rem 0 .1rem var(--s3); border-left: 3px solid var(--npb); display: grid; gap: .7rem; }
.live__claim blockquote { margin: 0; max-width: 34em; font: 400 clamp(1.15rem, .95rem + .8vw, 1.6rem)/1.42 var(--serif);
  letter-spacing: -.005em; color: var(--ink); font-variant-numeric: oldstyle-nums; }
.live__claim figcaption { font: 500 var(--t-small)/1.4 var(--sans); color: var(--pencil); }
/* Progress in six segments, one per step: done in ink, the current one with a sweep. Honest about what is known:
   which step, not how far through it. */
.track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.track i { position: relative; height: 8px; border-radius: var(--pill); background: #E6E6EB; overflow: hidden;
  transition: background-color .4s var(--ease); }
.track i.is-done { background: var(--ink); }
.track i.is-now { background: rgba(31, 94, 153, .16); }
.track i.is-now::after { content: ""; position: absolute; inset: 0; width: 45%; border-radius: inherit;
  background: linear-gradient(90deg, rgba(31, 94, 153, 0), var(--blue-pencil), rgba(31, 94, 153, 0));
  animation: rb-sweep 1.8s var(--ease) infinite; }
@keyframes rb-sweep { from { transform: translateX(-110%); } to { transform: translateX(230%); } }
@media (prefers-reduced-motion: reduce) { .track i.is-now { background: var(--blue-pencil); } .track i.is-now::after { display: none; } }
.live__raw { margin-left: .75rem; padding-left: .75rem; border-left: 1px solid var(--hair); }
.live__figs .num.is-empty { color: var(--hair); }
.is-in { animation: rb-land .6s var(--ease) both; }
@keyframes rb-land { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.step.is-now::before { animation: rb-breathe 2.4s ease-in-out infinite; }
@keyframes rb-breathe { 50% { opacity: .35; } }

/* tables */
.table { width: 100%; border-collapse: collapse; font: 400 var(--t-ui)/1.4 var(--sans); }
.table th { text-align: left; font-weight: 500; font-size: var(--t-small); color: var(--pencil); padding: 0 .75rem .6rem 0; border-bottom: 1px solid var(--ink); }
.table td { padding: .85rem .75rem .85rem 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.table .r { text-align: right; white-space: nowrap; }
.table a { text-decoration: none; font-weight: 500; }
.table a:hover { text-decoration: underline; text-decoration-color: var(--npb); }
.scroll { overflow-x: auto; }

/* ruled folds: technical detail, closed by default */
.fold { border-top: 1px solid var(--hair); }
.fold:last-child { border-bottom: 1px solid var(--hair); }
.fold > summary { display: flex; align-items: baseline; gap: var(--s2); padding-block: .9rem; cursor: pointer; list-style: none; font: 500 var(--t-ui)/1.3 var(--sans); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; margin-left: auto; font: 300 1.3rem/1 var(--sans); color: var(--pencil); }
.fold[open] > summary::after { content: "\2212"; }
.fold > summary small { font-weight: 400; color: var(--pencil); }
.fold__body { display: grid; gap: .75rem; padding-bottom: var(--s3); font: 400 var(--t-ui)/1.55 var(--sans); color: var(--graphite); }
.fold__body p, .fold__body li { max-width: 48em; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem var(--s3); }
.dl dt { color: var(--pencil); }

.notice { padding: .8rem 1rem; border-left: 2px solid var(--ink); background: var(--sheet); font: 400 var(--t-ui)/1.5 var(--sans); }
.notice--warn { border-color: var(--ochre); }
.notice--ok { border-color: var(--green); }

/* 10 ─ MOTION: GSAP sets every initial state itself, so nothing is hidden without JavaScript. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 359px) { .brand { font-size: 1.15rem; } .nav { gap: .25rem .55rem; font-size: .875rem; } }

/* 11 ─ FIELDS: abstract gradient backgrounds built from the review's own colours ─ */
@property --fx { syntax: "<percentage>"; inherits: false; initial-value: 18%; }
@property --fy { syntax: "<percentage>"; inherits: false; initial-value: 28%; }
.wash {
  --c1: rgba(127, 198, 224, .55); --c2: rgba(31, 94, 153, .22); --c3: rgba(232, 176, 78, .26); --c4: rgba(46, 107, 63, .12);
  position: relative; isolation: isolate; overflow: hidden;
}
.wash::before {
  content: ""; position: absolute; inset: -12%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42% 52% at var(--fx) var(--fy), var(--c1), transparent 70%),
    radial-gradient(36% 46% at 88% 18%, var(--c2), transparent 70%),
    radial-gradient(46% 56% at 78% 96%, var(--c3), transparent 70%),
    radial-gradient(30% 40% at 6% 92%, var(--c4), transparent 70%);
  animation: drift 36s ease-in-out infinite alternate;
}
.wash::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
@keyframes drift { to { --fx: 58%; --fy: 72%; } }
.wash--soft { --c1: rgba(127, 198, 224, .32); --c2: rgba(31, 94, 153, .12); --c3: rgba(232, 176, 78, .16); --c4: transparent; }
.wash--ink { --c1: rgba(79, 143, 170, .5); --c2: rgba(143, 195, 240, .22); --c3: rgba(232, 176, 78, .2); --c4: rgba(46, 107, 63, .3); }
.wash--ink::after { mix-blend-mode: screen; opacity: .1; }

/* ink band: the same components, re-themed by overriding the tokens they read */
.band--ink {
  --ink: #FFFFFF; --graphite: rgba(255,255,255,.86); --pencil: rgba(255,255,255,.62); --hair: rgba(255,255,255,.2);
  --sheet: rgba(255,255,255,.06); --blue-pencil: #8FC3F0; --ochre: #E8B04E; --green: #7CC48F; --npb: #4F8FAA;
  background: #0B0D10; color: var(--ink);
}

/* 12 ─ MINIATURE PAGES: text drawn as bars, marks in the margin ─────────── */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 2vw, 1.5rem); align-items: start; }
.mini {
  --bar: clamp(.3rem, .7vw, .5rem); --mr: clamp(.3rem, .8vw, .65rem);
  position: relative; display: grid; align-content: start; gap: .5rem; aspect-ratio: 3 / 4;
  padding: clamp(.8rem, 2.2vw, 1.6rem) clamp(1.2rem, 3vw, 2.3rem) clamp(.8rem, 2.2vw, 1.6rem) clamp(.8rem, 2.2vw, 1.6rem);
  background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 26px 50px -34px rgba(0,0,0,.45);
}
.mini i { display: block; height: var(--bar); width: var(--w, 100%); background: rgba(0,0,0,.11); border-radius: 1px; }
.mini i.h { --bar: clamp(.45rem, 1vw, .75rem); background: rgba(0,0,0,.6); margin-bottom: .35rem; }
.mini i[data-m] { box-shadow: 0 3px 0 -1px var(--mc); }
/* margin marks: absolutely placed against the page, vertically at the bar's own position */
.mini i[data-m]::after, .mini--double i[data-m]::before { content: ""; position: absolute; right: var(--mr); width: .5rem; height: .5rem; margin-top: calc(var(--bar) / 2 - .25rem); border-radius: 50%; background: var(--mc); }
.mini--double i[data-m]::before { right: calc(var(--mr) + .75rem); background: transparent; border: 1.5px solid var(--mc); }
[data-m=bad] { --mc: #B3261E; } [data-m=warn] { --mc: #A86A00; } [data-m=ok] { --mc: #2E6B3F; } [data-m=blue] { --mc: #1F5E99; }
.caption { display: grid; gap: .15rem; margin-top: .9rem; font: 400 var(--t-ui)/1.35 var(--sans); }
.caption b { font: 600 var(--t-h2)/1.1 var(--sans-display); letter-spacing: -.02em; }
/* 14 ─ THE DOOR: first screen, sign in or register, nothing else */
.door { min-height: calc(100svh - 3.6rem); display: grid; align-content: center; padding-block: var(--s4); }
[data-door] [data-panel] { display: none; }
[data-door][data-mode=signin] [data-panel=signin], [data-door][data-mode=register] [data-panel=register] { display: grid; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; border-radius: 9px; background: rgba(118, 118, 128, .12); }
.seg a { padding: .5rem 1rem; border-radius: 7px; text-align: center; text-decoration: none; font: 500 .875rem/1.2 var(--sans); color: var(--ink); transition: background .25s var(--ease), box-shadow .25s var(--ease); }
[data-mode=signin] .seg a[data-to=signin], [data-mode=register] .seg a[data-to=register] { background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.card { display: grid; gap: var(--s3); padding: clamp(1.5rem, 3vw, 2.25rem); background: rgba(255,255,255,.74); backdrop-filter: saturate(180%) blur(24px); border-radius: 22px; box-shadow: 0 2px 12px rgba(0,0,0,.05), 0 40px 80px -40px rgba(0,0,0,.28); }
.sec { padding-block: clamp(5rem, 11vw, 10rem); }
.sec--grey { background: var(--grey); }
.center { text-align: center; justify-items: center; margin-inline: auto; }
.center p { margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chip { display: inline-flex; align-items: baseline; gap: .5em; padding: .6rem 1.1rem; border-radius: var(--pill); border: 1px solid var(--hair); background: transparent; color: var(--ink); font: 400 1rem/1 var(--sans); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.chip::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--m, currentColor); border: 1.5px solid var(--m, currentColor); }
.chip[data-to=proven]::before { border-radius: 1px; }
.chip[data-to=recomputed] { --m: var(--blue-pencil); }
.chip[data-to=conditional] { --m: var(--ochre); }
.chip[data-to=conditional]::before { background: linear-gradient(90deg, var(--ochre) 50%, transparent 50%); }
.chip[data-to=open]::before { background: transparent; }
.chip[aria-pressed=true] { background: #fff; color: #000; border-color: #fff; }
.cue { justify-self: center; display: grid; justify-items: center; gap: .6rem; font: 500 var(--t-small)/1 var(--sans); color: var(--graphite); text-decoration: none; }
.cue::after { content: ""; width: 1px; height: 2.6rem; background: linear-gradient(var(--ink), transparent); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* 13 ─ GRADES, LIVE ─────────────────────────────────────────────────────── */
.mark--xl { font: 600 var(--t-h2)/1.1 var(--sans-display); gap: .4em; }
.mark--xl::before { width: .45em; height: .45em; border-width: 2px; transform: none; }
.abstract { font: 400 clamp(1.35rem, 1rem + 1.4vw, 2.1rem)/1.45 var(--serif); letter-spacing: -.01em; max-width: none; }
.abstract .claim { transition: opacity .3s var(--ease), text-decoration-color .3s var(--ease); }
.claim[data-g=proven] { text-decoration-color: var(--ink); }
.claim[data-g=recomputed] { text-decoration-color: var(--blue-pencil); }
.claim[data-g=conditional] { text-decoration-color: var(--ochre); }
.claim[data-g=open] { text-decoration-style: dashed; text-decoration-color: var(--pencil); }
[data-active] .claim[data-g]:not(.is-on) { opacity: .38; text-decoration-color: transparent; }
.gnote { min-height: 3.2em; padding: .9rem 1.1rem; background: var(--sheet); border-left: 2px solid var(--hair); font: 400 var(--t-ui)/1.5 var(--sans); color: var(--graphite); max-width: none; }

/* price */
.price { font: 600 clamp(2rem, 1.5rem + 1.8vw, 3rem)/1 var(--sans-display); letter-spacing: -.025em; }
.price small { font: 400 var(--t-ui)/1 var(--sans); letter-spacing: 0; color: var(--pencil); margin-right: .35em; }

/* 15 ─ LAUNCH-PAGE DEVICES: gradient type, highlight tiles, the pinned story ─ */
.grad { background: linear-gradient(100deg, #5BB4D6 0%, #2F74C0 38%, #8C6BD8 66%, #E0A04A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band--ink .grad { background-image: linear-gradient(100deg, #9AD7EE 0%, #6FA8F0 40%, #B59CF2 68%, #F2C27A 100%); }
.tile { position: relative; overflow: hidden; display: grid; align-content: space-between; gap: var(--s3); min-height: 16rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 28px; background: var(--grey); }
.tile--ink { background: #000; color: #fff; --pencil: rgba(255,255,255,.66); }
.tile--ink::before { content: ""; position: absolute; inset: -30%; z-index: 0; background: radial-gradient(40% 40% at 80% 20%, rgba(79,143,170,.55), transparent 70%), radial-gradient(35% 35% at 20% 90%, rgba(232,176,78,.3), transparent 70%); }
.tile > * { position: relative; }
.tile--white { background: #fff; }
.big { font: 600 clamp(2.4rem, 1.7rem + 2.8vw, 4rem)/1 var(--sans-display); letter-spacing: -.03em; }
.tile p { font: 400 1.125rem/1.35 var(--sans); color: var(--pencil); max-width: 22em; }
.tile p b { color: var(--ink); font-weight: 600; }
.story [data-w] { transition: opacity .2s linear; }
.reveal { will-change: transform, opacity; }

/* 16 ─ PORTAL: clear before clever ─────────────────────────────────────── */
.title { font: 600 clamp(1.6rem, 1.3rem + 1vw, 2.2rem)/1.15 var(--sans-display); letter-spacing: -.025em; }
.verdict { font: 600 clamp(1.4rem, 1.2rem + .8vw, 1.9rem)/1.15 var(--sans-display); letter-spacing: -.02em; }
.panel { display: grid; gap: var(--s2); align-content: start; align-self: start; padding: var(--s3); background: var(--grey); border-radius: 18px; }
.panel .input { background: #fff; }
.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: .75rem; }
.counts div { display: grid; gap: .1rem; }
.counts b { font: 600 1.6rem/1 var(--sans-display); letter-spacing: -.02em; }
.counts span { font-size: var(--t-small); color: var(--pencil); }
.pts { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 0; }
.pt { display: grid; gap: .8rem; padding: var(--s3); background: #fff; border: 1px solid rgba(0,0,0,.1); border-radius: 16px; }
.pt__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.pt__title { font: 600 1.125rem/1.3 var(--sans); flex: 1 1 14rem; }
.pt__dl { display: grid; grid-template-columns: 4.5rem 1fr; gap: .45rem 1rem; font-size: 1rem; line-height: 1.45; }
.pt__dl dt { color: var(--pencil); font-size: var(--t-small); padding-top: .15rem; }
.pt__dl dd { margin: 0; max-width: 46em; }
.pt__quote { display: block; padding: .6rem .8rem; background: var(--grey); border-radius: 10px; font: 400 1rem/1.5 var(--serif); quotes: none; }
.pt__do { color: var(--blue-pencil); font-weight: 500; }
@media (max-width: 620px) { .pt__dl { grid-template-columns: 1fr; gap: .15rem; } .pt__dl dd { margin-bottom: .5rem; } }
li.pt { max-width: none; }
.tile p b { font-weight: 600; color: var(--ink); }
.tile--ink p b { color: #fff; }
.beta { min-height: 16.7rem; place-content: center; justify-items: center; text-align: center; }
.beta__msg { font: 600 1.35rem/1.25 var(--sans-display); letter-spacing: -.02em; color: var(--ink); }
h2.display { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); }
/* Panel counts: hairlines above and below, soft rules between the columns.
   A narrow panel shows two columns; a wide one puts every count on one row. */
.panel { container-type: inline-size; }
.panel .counts { --rule: rgba(0, 0, 0, .09); grid-template-columns: 1fr 1fr; gap: .9rem 0; padding-block: var(--s2); border-block: 1px solid var(--rule); }
.panel .counts div { padding-inline: .9rem 0; }
.panel .counts div:nth-child(even) { border-left: 1px solid var(--rule); }
.panel .counts div:nth-child(odd) { padding-left: 0; }
.panel .counts span { font-size: .8125rem; line-height: 1.25; }
@container (min-width: 21rem) {
  .panel .counts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .panel .counts div:nth-child(n) { padding-inline: .9rem; border-left: 1px solid var(--rule); }
  .panel .counts div:nth-child(n):first-child { padding-left: 0; border-left: 0; }
}

/* 17. Portal side navigation. One column on the left on wide screens; a bar with a menu button on narrow ones. */
.app { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); min-height: 100svh; }
.app__main { padding-block: var(--s4) var(--s5); min-width: 0; }
.side { position: sticky; top: 0; align-self: start; height: 100svh; overflow-y: auto; display: grid; grid-template-rows: auto 1fr; gap: var(--s3); padding: var(--s3) var(--s2) var(--s2); background: var(--grey); border-right: 1px solid rgba(0, 0, 0, .06); }
.side__top { display: flex; align-items: center; justify-content: space-between; padding-inline: .6rem; }
.side__toggle { display: none; font: 500 .875rem/1 var(--sans); color: var(--ink); background: #fff; border: 1px solid rgba(0, 0, 0, .12); border-radius: var(--pill); padding: .5em 1em; cursor: pointer; }
.side__body { display: grid; grid-template-rows: auto auto 1fr; gap: var(--s3); min-height: 0; }
.side__nav, .side__ctx, .side__foot { display: grid; gap: 2px; align-content: start; }
.side__nav .btn { margin-bottom: .6rem; }
.side a:not(.btn):not(.brand), .side .textbtn { display: block; padding: .5rem .6rem; border-radius: 8px; font: 400 .9375rem/1.3 var(--sans); color: var(--graphite); text-decoration: none; text-align: left; }
.side a:not(.btn):not(.brand):hover, .side .textbtn:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.side a[aria-current] { background: #fff !important; color: var(--ink) !important; font-weight: 500 !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.side__ctx { padding-top: var(--s2); border-top: 1px solid rgba(0, 0, 0, .08); }
.side__title { display: block; padding: .3rem .6rem .5rem; font: 600 .8125rem/1.35 var(--sans) !important; color: var(--ink) !important; }
.side__ctx a:not(.side__title) { padding-left: 1.2rem !important; }
.side__foot { align-self: end; padding-top: var(--s2); border-top: 1px solid rgba(0, 0, 0, .08); }
.side__foot > span { padding: .3rem .6rem; }
.side__foot form { display: block; }
.side__foot .textbtn { width: 100%; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { position: sticky; z-index: 20; height: auto; gap: 0; padding: .7rem var(--edge); border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
  .side__top { padding-inline: 0; }
  .side__toggle { display: inline-block; }
  .side__body { display: none; padding-top: var(--s2); }
  .side[data-open] .side__body { display: grid; }
  .app__main { padding-top: var(--s3); }
}

/* 18. Tier tiles and the comparison dialog. */
.tier { display: grid; gap: .6rem; align-content: start; }
.tier .price { margin-block: .2rem .3rem; }
.tier__time { margin-top: .4rem; font: 500 .8125rem/1 var(--sans); color: var(--blue-pencil); }
.dlg { width: min(100% - 2rem, 54rem); max-height: min(100svh - 2rem, 46rem); padding: var(--s4); border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.dlg[open] { display: grid; gap: var(--s3); align-content: start; animation: dlg-in .35s var(--ease) both; }
.dlg::backdrop { background: rgba(29, 29, 31, .35); backdrop-filter: blur(10px) saturate(140%); animation: dlg-fade .35s ease both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes dlg-fade { from { opacity: 0; } }
.dlg__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.dlg__close { font: 500 .875rem/1 var(--sans); color: var(--ink); background: var(--grey); border: 0; border-radius: var(--pill); padding: .6em 1.1em; cursor: pointer; }
.dlg__close:hover { background: #E8E8ED; }
.cmp { width: 100%; border-collapse: collapse; font: 400 .9375rem/1.35 var(--sans); }
.cmp th, .cmp td { padding: .7rem .5rem; border-bottom: 1px solid rgba(0, 0, 0, .07); text-align: center; }
.cmp tbody th { text-align: left; font-weight: 400; color: var(--graphite); }
.cmp thead th { vertical-align: bottom; font: 600 1rem/1.2 var(--sans-display); border-bottom: 1px solid var(--ink); }
.cmp thead th span { display: block; margin-top: .2rem; font: 400 .8125rem/1.2 var(--sans); color: var(--pencil); }
.cmp td:nth-child(4), .cmp th:nth-child(4) { background: rgba(31, 94, 153, .05); }
.cmp__time td { font-weight: 500; }
.tick, .dash { display: inline-block; vertical-align: middle; }
.tick { width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--blue-pencil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.dash { width: .8rem; height: 2px; background: #C7C7CC; border-radius: 1px; }
@media (max-width: 620px) {
  .dlg { padding: var(--s3) var(--s2); }
  .cmp { font-size: .8125rem; }
  .cmp th, .cmp td { padding: .55rem .25rem; }
  .cmp thead th { font-size: .8125rem; }
  .cmp thead th span { font-size: .6875rem; }
}
