/* AssemblyTrace web pages: the browser app (index.html) and, with guide.css, the user guide.
   Type: Newsreader (headings), IBM Plex Sans (text), IBM Plex Mono (code and sequences), all under the
   SIL Open Font License, served from fonts/ (no requests to font services). Colour: a cyanotype field in
   Prussian blue for header and footer; paper and ink for the working area; three pigments (viridian,
   ochre, madder) only for the PASS, REVIEW and FAIL results. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2"); 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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2"); 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: italic; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-opsz-italic.woff2) format("woff2"); 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: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-italic.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-400-italic.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); 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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); 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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2"); 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; }

:root {
  color-scheme: light dark;
  /* the cyanotype field of header and footer, the same in light and dark mode */
  --field: #103a5e;
  --field-deep: #0a2a45;
  --field-ink: #f1f6fa;
  --field-muted: #a9c2d6;
  --field-line: #cfe2ef;
  --field-rule: rgba(207, 226, 239, 0.22);
  /* paper and ink */
  --paper: #ffffff;
  --wash: #eef3f7;
  --ink: #14283a;
  --ink-2: #4a5d6e;
  --rule: #d3dde5;
  --accent: #1a5a8c;
  --accent-strong: #103a5e;
  --accent-text: #ffffff;
  /* pigments, for results only */
  --pass: #1d6b52;
  --pass-wash: #e6f1ec;
  --review: #8f620f;
  --review-wash: #f7eedc;
  --fail: #a63a30;
  --fail-wash: #f6e4e1;
  --focus: #1a5a8c;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 40rem;
  --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --field: #0d3253;
    --field-deep: #061726;
    --paper: #0b1d2d;
    --wash: #12304a;
    --ink: #dde7ef;
    --ink-2: #98acbd;
    --rule: #21405b;
    --accent: #8cc2ea;
    --accent-strong: #b5d8f2;
    --accent-text: #0b1d2d;
    --pass: #6cc7a0;
    --pass-wash: #10302a;
    --review: #e3b663;
    --review-wash: #33280f;
    --fail: #f08b7d;
    --fail-wash: #3a1c1a;
    --focus: #8cc2ea;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--wash);
  padding: 0.08em 0.35em;
  border-radius: 3px;
  overflow-wrap: anywhere;
}

pre {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  background: var(--wash);
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--accent);
  overflow: auto;
  max-height: 20rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 450;
  font-optical-sizing: auto;
  letter-spacing: -0.005em;
}
h2 { font-size: 2.25rem; line-height: 1.12; margin: 0 0 0.9rem; }
h3 { font-size: 1.3125rem; line-height: 1.3; margin: 1.75rem 0 0.6rem; }

/* ---- the cyanotype field: header bar, hero, footer ------------------------------------- */

.field {
  background:
    radial-gradient(70rem 32rem at 78% 18%, rgba(46, 112, 163, 0.55), transparent 62%),
    radial-gradient(50rem 30rem at 8% 92%, rgba(6, 30, 52, 0.55), transparent 65%),
    var(--field);
  color: var(--field-ink);
}
.field a { color: var(--field-ink); }
.field ::selection { background: rgba(207, 226, 239, 0.35); }
.field :focus-visible { outline-color: var(--field-ink); }

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--field-rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
  text-decoration: none;
}
.field .wordmark { color: var(--field-ink); }
.wordmark svg { width: 1.6rem; height: 1.6rem; flex: none; }
.topnav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.75rem; }
.field .topnav a {
  color: var(--field-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
}
.field .topnav a:hover { color: var(--field-ink); border-bottom-color: var(--field-line); }
.field .topnav a[aria-current="page"] { color: var(--field-ink); border-bottom-color: var(--field-ink); }

.hero { padding: clamp(2.25rem, 5vw, 3.75rem) 0 2.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.375rem);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.lede {
  max-width: 38rem;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--field-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.field .button-light, .field .button-ghost {
  display: inline-block;
  font: 500 1rem/1 var(--sans);
  padding: 0.85rem 1.35rem;
  border-radius: 3px;
  text-decoration: none;
}
.field .button-light { background: var(--field-ink); color: var(--field); }
.field .button-light:hover { background: #ffffff; }
.field .button-ghost { color: var(--field-ink); box-shadow: inset 0 0 0 1px var(--field-line); }
.field .button-ghost:hover { background: rgba(207, 226, 239, 0.1); }

/* the plate: the figure of the hero */

.plate {
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--field-rule);
}
.plate-scroll { overflow-x: auto; scrollbar-width: thin; }
.plate svg { display: block; width: 100%; min-width: 54rem; height: auto; }
.plate figcaption {
  max-width: 48rem;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--field-muted);
}
.plate figcaption b { color: var(--field-ink); font-weight: 600; }
.key { white-space: nowrap; }
.key::before {
  content: "";
  display: inline-block;
  width: 1.4em;
  margin: 0 0.4em 0.25em 0;
  vertical-align: middle;
  border-top: 2px solid currentColor;
}
.key-ok { color: #cfe2ef; }
.key-old { color: #ebcb8b; }
.key-bad { color: #f2a091; }

.pl-frame { fill: rgba(241, 246, 250, 0.05); stroke: var(--field-line); stroke-width: 1; }
.pl-release { fill: none; stroke: var(--field-line); stroke-width: 1; }
.pl-file { font: 500 15px var(--mono); fill: var(--field-ink); }
.pl-name { font: 500 14px var(--mono); fill: var(--field-ink); }
.pl-role { font: italic 400 16px var(--serif); fill: var(--field-ink); }
.pl-dig { font: 400 11.5px var(--mono); fill: var(--field-muted); }
.pl-note { font: 400 13px var(--sans); fill: var(--field-muted); }
.pl-note-bad { font: 400 13px var(--sans); fill: #f2a091; }
.pl-label { font: 400 12.5px var(--sans); fill: var(--field-muted); }
.pl-seq { font: 400 16px var(--mono); fill: rgba(241, 246, 250, 0.72); }
.pl-seq .hit { fill: #ffffff; font-weight: 500; }
.pl-big { font: 400 56px var(--serif); fill: #f2a091; letter-spacing: 0.02em; }
.pl-edge { stroke: var(--field-line); stroke-width: 1.25; fill: none; }
.pl-ok { stroke: #cfe2ef; stroke-width: 1.25; fill: none; opacity: 0.9; }
.pl-old { stroke: #ebcb8b; stroke-width: 1.25; fill: none; }
.pl-bad { stroke: #f2a091; stroke-width: 1.75; fill: none; }
.pl-dot { fill: var(--field-ink); }
.pl-dot-old { fill: #ebcb8b; }
.pl-dot-bad { fill: #f2a091; }
.pl-box { fill: rgba(6, 30, 52, 0.38); stroke: var(--field-rule); }
.pl-col { fill: rgba(207, 226, 239, 0.14); stroke: var(--field-line); stroke-width: 1; }
.pl-arrow { fill: var(--field-line); }

/* one orchestrated entrance: the versions, the change between them, then the files and the result */
@media (prefers-reduced-motion: no-preference) {
  .plate .in { opacity: 0; animation: plate-in 0.7s ease-out forwards; }
  .plate .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: plate-draw 0.9s ease-in-out forwards; }
  .plate .t1 { animation-delay: 0.15s; }
  .plate .t2 { animation-delay: 0.55s; }
  .plate .t3 { animation-delay: 0.95s; }
  .plate .t4 { animation-delay: 1.35s; }
  .plate .t5 { animation-delay: 1.75s; }
  .plate .t6 { animation-delay: 2.15s; }
  .plate .t7 { animation-delay: 2.65s; }
}
@keyframes plate-in { to { opacity: 1; } }
@keyframes plate-draw { to { stroke-dashoffset: 0; } }

/* ---- working area ----------------------------------------------------------------------- */

.engine {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.engine::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: none;
  background: var(--review);
  box-shadow: 0 0 0 4px var(--review-wash);
}
.engine[data-state="ready"] { color: var(--ink); }
.engine[data-state="ready"]::before { background: var(--pass); box-shadow: 0 0 0 4px var(--pass-wash); }
.engine[data-state="failed"] { color: var(--fail); }
.engine[data-state="failed"]::before { background: var(--fail); box-shadow: 0 0 0 4px var(--fail-wash); }
.engine .spinner { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .engine[data-state="loading"]::before { animation: lamp 1.4s ease-in-out infinite; }
}
@keyframes lamp { 50% { opacity: 0.3; } }

.tool {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.tool-head p { margin: 0 0 0.9rem; color: var(--ink-2); max-width: 30rem; }
.tool-body, .tool-out { min-width: 0; }
.tool-out { grid-column: 1 / -1; }

.pickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}
.drop {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-height: 9.5rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--rule));
  border-radius: 4px;
  background: color-mix(in srgb, var(--wash) 50%, var(--paper));
  transition: background-color 0.15s, border-color 0.15s;
}
.drop:hover { background: var(--wash); border-color: var(--accent); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.drop[hidden] { display: none; }
.drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop svg { width: 1.75rem; height: 1.75rem; color: var(--accent); margin-bottom: 0.4rem; }
.drop label { font-weight: 600; color: var(--ink); }
.drop .hint { font-size: 0.875rem; color: var(--ink-2); }
.drop .chosen { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); overflow-wrap: anywhere; }
.drop .chosen:empty { display: none; }
.drop.has-file { border-style: solid; border-color: var(--accent); background: var(--wash); }

.selection { margin: 0.9rem 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.aside-note { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--ink-2); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
button {
  font: 500 1rem/1 var(--sans);
  padding: 0.85rem 1.3rem;
  border-radius: 3px;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.15s;
}
button:hover:not(:disabled) { background: var(--wash); }
button.primary { background: var(--accent-strong); color: var(--accent-text); box-shadow: none; }
button.primary:hover:not(:disabled) { background: var(--accent); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.notes { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  margin: 1.5rem 0 0;
}
.notes-grid > div { padding: 1.1rem 0 1.4rem; border-top: 1px solid var(--rule); }
.notes-grid dt { font-family: var(--serif); font-size: 1.3125rem; line-height: 1.3; margin: 0 0 0.4rem; }
.notes-grid dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }

/* ---- progress and results ---------------------------------------------------------------- */

.progress {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 0.5rem;
  padding: 1rem 1.15rem;
  background: var(--wash);
  border-left: 2px solid var(--accent);
}
.progress[hidden] { display: none; }
.progress .spinner { margin-top: 0.2rem; }
.progress-text { display: block; font-weight: 500; }
.progress-log { display: block; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-2); overflow-wrap: anywhere; }

.spinner {
  width: 1rem;
  height: 1rem;
  flex: none;
  border: 1.5px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.result { margin-top: 0.5rem; }
.result:focus { outline: none; }
.result[hidden] { display: none; }

.verdict { border-top: 3px solid var(--accent); padding: 1.1rem 0 0; }
.verdict p { margin: 0.3rem 0; max-width: 46rem; }
.verdict-label { font-size: 1rem; color: var(--ink-2); }
.verdict-label strong {
  display: block;
  font: 400 clamp(2.75rem, 6vw, 4rem)/1 var(--serif);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0.2rem 0 0.35rem;
}
.verdict-gloss { color: var(--ink); font-size: 1.125rem; }
.verdict-summary { color: var(--ink-2); }
.verdict-pass { border-top-color: var(--pass); }
.verdict-pass .verdict-label strong { color: var(--pass); }
.verdict-review { border-top-color: var(--review); }
.verdict-review .verdict-label strong { color: var(--review); }
.verdict-fail { border-top-color: var(--fail); }
.verdict-fail .verdict-label strong { color: var(--fail); }
.verdict-info .verdict-label { color: var(--ink); font-size: 1.125rem; }
.verdict-info .verdict-label strong {
  display: inline;
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-transform: none;
  letter-spacing: -0.005em;
  margin-right: 0.3rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  margin: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.facts div { padding: 0.8rem 1rem 0.9rem 0; min-width: 0; }
.facts div + div { padding-left: 1rem; border-left: 1px solid var(--rule); }
.facts dt { font-size: 0.8125rem; color: var(--ink-2); }
.facts dd { margin: 0.2rem 0 0; font: 400 1.3125rem/1.25 var(--serif); overflow-wrap: anywhere; }

.result h3 { font-size: 1.5rem; }
.findings { padding-left: 1.25rem; max-width: 52rem; }
.findings li { margin: 0.4rem 0; overflow-wrap: anywhere; }
.findings li::marker { color: var(--ink-2); }

iframe.report {
  width: 100%;
  height: 78vh;
  min-height: 26rem;
  border: 1px solid var(--rule);
  background: #ffffff;
}

details { margin: 1rem 0; }
summary { cursor: pointer; font-weight: 500; color: var(--accent); }
.muted { color: var(--ink-2); font-size: 0.9375rem; }

.error { border-top: 3px solid var(--fail); background: var(--fail-wash); padding: 1rem 1.15rem; }
.error h3 { margin-top: 0; color: var(--fail); }

.table-wrap {
  overflow: auto;
  max-height: 32rem;
  margin-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 0.6rem 0; color: var(--ink-2); font-size: 0.875rem; caption-side: bottom; }
th, td { padding: 0.45rem 0.9rem 0.45rem 0; text-align: left; vertical-align: top; }
td { border-top: 1px solid var(--rule); }
thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 var(--ink);
}
td.num { white-space: nowrap; }
td.seq { font-family: var(--mono); font-size: 0.875rem; overflow-wrap: anywhere; }

/* ---- footer -------------------------------------------------------------------------------- */

footer.field { background: var(--field-deep); }
.foot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem clamp(2rem, 5vw, 4rem);
  padding: 3rem 0 2.25rem;
}
.foot h2 { font-size: 1.3125rem; margin: 0 0 0.6rem; color: var(--field-ink); }
.foot p, .foot li { color: var(--field-muted); font-size: 0.9375rem; line-height: 1.6; }
.foot p { margin: 0 0 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 0.35rem; }
.foot cite { font-style: normal; color: var(--field-ink); }
.foot code { background: rgba(207, 226, 239, 0.12); color: var(--field-ink); }
.colophon {
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--field-rule);
  color: var(--field-muted);
  font-size: 0.875rem;
}
.colophon p { margin: 0.25rem 0; }

/* ---- narrow screens and print ---------------------------------------------------------------- */

@media (max-width: 52rem) {
  .tool, .hero-grid, .notes-grid { grid-template-columns: minmax(0, 1fr); }
  h2 { font-size: 1.875rem; }
  .facts div + div { padding-left: 0; border-left: 0; }
  .facts div { border-bottom: 1px solid var(--rule); }
}

@media print {
  .field { background: none; color: #000; }
  .skip, .topnav, .hero-actions, .plate { display: none; }
}
