/* ══════════════════════════════════════════════════════════════════════════
   celpippracticeai.com — Test Day Console, on the web.

   One stylesheet for the whole site. No framework, no build step, no third
   party host: the three families below are self-hosted from /assets/fonts/,
   which is why the privacy policy has no font CDN in it.

   The colour tokens are a one-to-one copy of app/lib/theme/sim_theme.dart
   (SimColors). Red and green are RESERVED for correction semantics — a struck
   error and its replacement — and are never used for decoration, emphasis or
   a call to action. Colour is never the only signal: every marked correction
   also carries a strikethrough or an underline, plus a legend in words.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────────────────────── */
/* Shipped as .ttf: no woff2 compressor is available on the build machine
   (fontTools is installed but the brotli module is not), and a third-party
   font host is forbidden. Swap in .woff2 the day the tool exists — the
   @font-face src lists are the only place to change. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/SourceSerif4-MediumItalic.ttf") format("truetype");
  font-weight: 500; font-style: italic; font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  /* Console identity — names fixed by contract, values from SimColors. */
  --paper:      #F7F5F1;
  --ink:        #16181D;
  --navy:       #1B2A4A;
  --rec:        #C8102E;
  --faint:      #6D6960;   /* web AA için SimColors'tan koyulaştırıldı */
  --muted:      #676257;   /* web AA için SimColors'tan koyulaştırıldı */
  --card:       #FFFDF8;
  --border:     #DDD7CA;
  --hairline:   #EEE9DF;
  --fix-ink:    #1F4D3A;
  --fix-tint:   #4F9F63;
  --err-wash:   #FAECEC;
  --fix-wash:   #EAF2EC;
  --range-band: #CDD5E3;

  /* Supporting values, also from SimColors. */
  --serif-ink:  #6F695B;   /* web AA için SimColors'tan koyulaştırıldı */
  --bar-empty:  #E2DCCD;
  --outline:    #CFC9BB;

  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, Roboto, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: 20px;
  --radius: 2px;   /* the console does not round things */
  --tap: 44px;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

body.has-sticky { padding-bottom: 76px; }
@media (min-width: 721px) { body.has-sticky { padding-bottom: 0; } }

img, svg { max-width: 100%; height: auto; }

a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

h1, h2, h3 { color: var(--navy); letter-spacing: -0.012em; margin: 0; }
h1 { font-size: 42px; line-height: 1.12; font-weight: 700; }
h2 { font-size: 27px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); }
p  { margin: 0; }

ul, ol { margin: 0; padding-left: 22px; }
li { margin: 5px 0; }

hr, .hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

::selection { background: var(--range-band); }

/* ── Layout ─────────────────────────────────────────────────────────────── */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 60px 0; }
.section-tight { padding: 38px 0; }
.section-band {
  background: var(--hairline);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 9px; }

.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Type ───────────────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow-rec { color: var(--rec); }

.lede { font-size: 19.5px; line-height: 1.55; color: var(--muted); }
.small { font-size: 14.5px; line-height: 1.55; }
.muted-text { color: var(--muted); }
.faint-text { color: var(--faint); }
.nowrap { white-space: nowrap; }

.serif-note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--serif-ink);
  font-size: 17px;
  line-height: 1.5;
}

/* Every number the product shows is an instrument reading, not a headline. */
.num {
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Controls ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap);
  padding: 11px 20px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #FFFFFF; }
.btn-primary:hover { background: #14203A; color: #FFFFFF; }
.btn-ghost { border-color: var(--outline); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { font-size: 17px; padding: 14px 26px; min-height: 52px; }
.btn-block { display: flex; width: 100%; }

/* ── Surfaces ───────────────────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-pad { padding: 20px 22px; }

.card-list > .card-row { padding: 13px 18px; border-bottom: 1px solid var(--hairline); }
.card-list > .card-row:last-child { border-bottom: 0; }

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rec);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.callout-fix { border-left-color: var(--fix-ink); }
.callout-navy { border-left-color: var(--navy); }

.honesty {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15.5px; line-height: 1.6; color: var(--muted);
}
.honesty strong { color: var(--ink); }

.chip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 4px 9px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--card);
}
.chip-soon { color: var(--faint); border-style: dashed; }

.timer-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 5px 10px; background: var(--card);
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.timer-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rec); flex: none;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  min-height: var(--tap);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  background: var(--navy); color: #FFFFFF;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; border-radius: var(--radius);
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
  font-size: 17px; font-weight: 700; color: var(--navy);
}
.brand-sub {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint);
}
.head-cta { flex: none; padding: 9px 16px; min-height: var(--tap); font-size: 15px; }

.site-nav { border-top: 1px solid var(--hairline); }
.nav-row { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav-row a {
  display: inline-flex; align-items: center;
  min-height: var(--tap);
  font-size: 15.5px; font-weight: 600; color: var(--muted);
  text-decoration: none;
}
.nav-row a:hover { color: var(--navy); }
.nav-row a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 0 var(--navy);
}

/* ── Sticky CTA — the ONLY fixed element on the site ────────────────────── */
/* body.has-sticky reserves the space, so it never covers a line of text. */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.sticky-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 9px; padding-bottom: 9px;
}
.sticky-text { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.sticky-cta .btn { min-height: var(--tap); padding: 9px 16px; font-size: 15px; flex: none; }
@media (min-width: 721px) { .sticky-cta { display: none; } }

/* ── Evidence strip ─────────────────────────────────────────────────────── */

.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.proof-item { background: var(--card); padding: 16px 18px; }
.proof-num {
  font-family: var(--mono); font-weight: 600; font-size: 22px;
  font-variant-numeric: tabular-nums; color: var(--ink);
  display: block; line-height: 1.2;
}
.proof-label {
  display: block; margin-top: 5px;
  font-size: 13.5px; line-height: 1.45; color: var(--muted);
}

/* ── Report components (carried over from the app, same names) ──────────── */

.report {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.report-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.report-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
}
.report-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

/* CLB band bar. The band is the likely range; the marker is the point
   estimate. At CLB 9 and above the marker is not drawn at all — the band is
   the answer, and the caption says why. Scale is 1–12. */
.clb-bar {
  position: relative;
  height: 10px;
  background: var(--hairline);
  border-radius: var(--radius);
}
.clb-band {
  position: absolute; top: 0; height: 10px;
  background: var(--range-band);
  border-radius: var(--radius);
}
.clb-marker {
  position: absolute; top: 0; height: 10px;
  background: var(--navy);
  border-radius: var(--radius);
}
.clb-scale {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  font-variant-numeric: tabular-nums; color: var(--faint);
  margin-top: 4px;
}
.clb-level { font-family: var(--mono); font-weight: 600; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.clb-range { font-size: 14px; color: var(--faint); }

/* Four dimensions */
.dims { display: flex; flex-direction: column; }
.dim {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}
.dim:last-child { border-bottom: 0; }
.dim-name { flex: 1; font-size: 15px; font-weight: 500; }
.dim-units { display: flex; gap: 3px; flex: none; }
.u { width: 16px; height: 8px; background: var(--bar-empty); }
.u.on { background: var(--navy); }
.u.low { background: var(--rec); }
.dim-score {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums; width: 14px; text-align: right; flex: none;
}
.dim.is-low .dim-name, .dim.is-low .dim-score { color: var(--rec); }

/* Writing corrections.
   Real <del> and <ins> elements: the line-through and the underline are the
   signal that survives greyscale, colour blindness and a screen reader. The
   wash and the ink are the second signal, never the only one. */
del.mark-err {
  background: var(--err-wash);
  color: var(--rec);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  padding: 0 2px;
}
ins.mark-fix {
  background: var(--fix-wash);
  color: var(--fix-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  padding: 0 2px;
}
.marked-passage {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
  font-size: 16px;
  line-height: 2.05;
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legend-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--muted);
}
.sw-err, .sw-fix { width: 14px; height: 14px; flex: none; }
.sw-err { background: var(--err-wash); border: 1px solid var(--rec); }
.sw-fix { background: var(--fix-wash); border: 1px solid var(--fix-ink); }

/* Fix-first list */
.fix-list { display: flex; flex-direction: column; gap: 11px; }
.fix-item { display: flex; gap: 12px; align-items: flex-start; }
.fix-num {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--rec); flex: none; padding-top: 2px;
}
.fix-num.second { color: var(--faint); }
.fix-text { font-size: 15.5px; line-height: 1.55; }

/* ── FAQ — <details>, no JavaScript ─────────────────────────────────────── */

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: var(--tap);
  padding: 15px 2px;
  font-size: 17.5px; font-weight: 600; color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono); font-size: 20px; font-weight: 500;
  color: var(--faint); flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 2px 18px 2px; color: var(--muted); font-size: 16px; }
.faq .faq-body p + p { margin-top: 10px; }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.plan-free { border-left: 3px solid var(--navy); }
.plan-name { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.plan-price {
  font-family: var(--mono); font-size: 40px; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.plan-per { font-size: 15px; color: var(--faint); }
.plan-renew {
  font-size: 14px; line-height: 1.5; color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 11px;
}
.plan ul { padding-left: 18px; font-size: 15px; color: var(--ink); }
.plan .btn { margin-top: auto; }

.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: var(--tap);
  border: 1px dashed var(--outline);
  border-radius: var(--radius);
  padding: 8px 16px;
  background: var(--card);
  color: var(--faint);
  font-size: 13px; line-height: 1.35;
}
.store-badge b { display: block; color: var(--muted); font-size: 14.5px; font-weight: 600; }

/* ── Tables ─────────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; }
table.t {
  width: 100%; border-collapse: collapse; font-size: 15px;
  background: var(--card);
  border: 1px solid var(--border);
}
table.t th, table.t td {
  text-align: left; padding: 10px 13px;
  border-bottom: 1px solid var(--hairline); vertical-align: top;
}
table.t tr:last-child td { border-bottom: 0; }
table.t th {
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); font-weight: 700;
}
table.t td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-foot {
  background: var(--hairline);
  border-top: 1px solid var(--border);
  padding: 40px 0 48px 0;
  margin-top: 8px;
}
.disclaimer {
  font-size: 15px; line-height: 1.6; color: var(--ink);
  border-left: 3px solid var(--navy);
  padding-left: 14px;
  max-width: 760px;
}
.foot-cols {
  display: grid; gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 26px 0;
}
.foot-h {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 6px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin: 0; }
.foot-col a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-size: 15px; color: var(--muted); text-decoration: none;
}
.foot-col a:hover { color: var(--navy); text-decoration: underline; }
.foot-fine { font-size: 13.5px; line-height: 1.6; color: var(--faint); max-width: 760px; }
.foot-fine + .foot-fine { margin-top: 10px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .lede { font-size: 17.5px; }
  .section { padding: 40px 0; }
  .section-tight { padding: 28px 0; }
  .g-2, .g-3, .g-4, .plans, .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .head-row { min-height: 56px; }
  .brand-text { font-size: 16px; }
  .head-cta { font-size: 14px; padding: 9px 12px; }
  .nav-row { gap: 0 18px; }
  .nav-row a { font-size: 15px; }
  .clb-level { font-size: 32px; }
  .plan-price { font-size: 34px; }
  .marked-passage { font-size: 15.5px; line-height: 1.95; }
  .sticky-text { font-size: 12.5px; }
}

@media (max-width: 380px) {
  .head-cta { font-size: 13.5px; padding: 9px 10px; }
  .brand-sub { display: none; }
}

/* Someone who has asked for less motion gets none. There is almost none to
   begin with — the console does not perform. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .site-head, .sticky-cta, .btn { display: none; }
  body { background: #fff; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Composer — added by the /free-practice team, per PARTS.md §5
   ("a component site.css does not have goes INTO site.css").
   Purely additive: nothing above this line is changed. Only /free-practice
   uses these today; any later page with a writing box reuses them.
   ══════════════════════════════════════════════════════════════════════════ */

.task-card { border-left: 3px solid var(--navy); }
.task-points { margin: 0; padding-left: 20px; font-size: 16px; }
.task-points li { margin: 7px 0; }

.composer { display: flex; flex-direction: column; gap: 10px; }
.composer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px;
}
.composer-area {
  width: 100%;
  min-height: 340px;
  resize: vertical;
  padding: 14px 16px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
}
.composer-area:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.composer-area::placeholder { color: var(--faint); }

/* Word counter and countdown share the instrument face: mono, tabular. */
.meter {
  font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.meter b { color: var(--ink); font-weight: 600; }
.meter.is-under b, .meter.is-over b { color: var(--rec); }
.meter.is-ok b { color: var(--fix-ink); }

/* Bot trap. Never shown, never announced, never tabbable. A human cannot
   fill it in; a naive script fills every field it finds. */
.trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.state-note {
  font-size: 14.5px; line-height: 1.55; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius); padding: 12px 14px;
}
.state-note.is-error { border-left-color: var(--rec); color: var(--ink); }

.is-hidden { display: none !important; }

/* Waiting for the score. No spinner: a line of text that says what is
   happening and roughly how long, which is what the app does too. */
.waiting { display: flex; align-items: center; gap: 11px; }
.waiting .dot {
  width: 9px; height: 9px; flex: none; border-radius: 50%;
  background: var(--rec); animation: waitpulse 1.4s ease-in-out infinite;
}
@keyframes waitpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ══════════════════════════════════════════════════════════════════════════
   Reference tool pages — added by the integration round, per PARTS.md §5.
   These are the rules that survived the deletion of the in-page <style>
   blocks in /celpip-score-calculator/, /celpip-reading-score-chart/ and
   /celpip-listening-score-chart/: the calculator components site.css did not
   have, plus the flow rhythm those three long prose documents need (they are
   not built out of .stack/.section like the rest of the site). Everything is
   scoped to .tool-main or to a name only those pages use, so no existing page
   changes. Purely additive: nothing above this line is touched.
   ══════════════════════════════════════════════════════════════════════════ */

/* 900px column: wider than .wrap-narrow so the five-column conversion chart
   fits, narrower than .wrap so the prose line length stays readable. */
.wrap-tool { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }

.tool-main { padding: 26px 0 72px; }
.tool-main h1 { margin: 12px 0 10px; }
.tool-main h2 { margin: 44px 0 10px; }
.tool-main h3 { margin: 26px 0 6px; }
.tool-main p  { margin: 0 0 14px; }
.tool-main ul, .tool-main ol { margin: 0 0 16px; }
.tool-main .honesty h2 { margin-top: 0; font-size: 20px; }
.tool-main .honesty ul { margin-bottom: 0; }

/* Conversion tables. table.t supplies the frame; these add the three pieces a
   raw-score chart needs and the site had not needed before: a caption, a
   numeric row header that must not shrink to a column label, and the two
   value columns. */
.tool-main table.t caption {
  caption-side: top; text-align: left;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); padding: 0 0 8px;
}
.tool-main table.t .num { white-space: nowrap; }
.tool-main table.t th[scope="row"] {
  font-size: 15px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--ink);
}
.tool-main table.t td.est { font-weight: 600; color: var(--navy); }
.tool-main table.t td.where { color: var(--muted); font-size: 14.5px; }
.t-wide { min-width: 520px; }

/* ── Raw-score calculator (/celpip-score-calculator/) ───────────────────── */

.calc-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
  margin: 22px 0 8px;
}
.calc-shell > h2 { margin-top: 0; }
.tabs { display: flex; gap: 8px; margin: 0 0 18px; border-bottom: 1px solid var(--hairline); }
.tab {
  appearance: none; background: transparent;
  border: 0; border-bottom: 3px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; color: var(--muted);
  min-height: var(--tap); padding: 0 14px; cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }

.field-label { display: block; font-weight: 600; font-size: 15.5px; margin: 0 0 10px; }
.inputs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.calc-shell input[type="range"] {
  flex: 1 1 220px; min-width: 180px; height: var(--tap);
  accent-color: var(--navy); background: transparent;
}
.calc-shell input[type="number"] {
  width: 5.5em; min-height: var(--tap);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 19px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); padding: 6px 8px;
}
.of38 { color: var(--muted); font-size: 15px; }

/* Raw-score bar: same idea as .clb-bar, different scale (0–38, not 1–12). */
.bar { position: relative; height: 14px; margin: 20px 0 6px; background: var(--hairline); border: 1px solid var(--border); }
.bar-band { position: absolute; top: 0; bottom: 0; background: var(--range-band); }
.bar-mark { position: absolute; top: -5px; bottom: -5px; width: 3px; background: var(--navy); }
.bar-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

.result {
  display: block; margin: 20px 0 0; padding: 16px 16px 4px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--paper);
}
.tool-main .result-level {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 40px; line-height: 1.1; font-weight: 600;
  color: var(--navy); margin: 0 0 2px;
}
.tool-main .result-kicker {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.tool-main .result-band { margin: 10px 0 6px; }
.tool-main .result-caveat { font-size: 15px; color: var(--muted); margin: 0 0 12px; }

@media (max-width: 640px) {
  .tool-main { padding: 20px 0 56px; }
  .tool-main h2 { margin-top: 34px; }
  .tool-main .result-level { font-size: 34px; }
  .calc-shell { padding: 14px 12px 16px; }
}
