/* Shrinkflated — info-noise sleeve world.
   Absolute black, process magenta, safety orange, signal white. Flat print: no gradients
   for depth, no glows. Noise lives in the frame; the verdict and the numbers stay clean. */

:root {
  --black: #000000;
  --panel: #080808;
  --panel-2: #111111;
  --mag: #ff00a6;
  --mag-hover: #ff3dbb;
  --mag-line: rgba(255, 0, 166, 0.5);
  --mag-faint: rgba(255, 0, 166, 0.12);
  --org: #ff5a00;
  --white: #ffffff;
  --text: #ece7ea;
  --muted: #a9a2a6;
  --rule: rgba(255, 255, 255, 0.16);
  --rule-strong: rgba(255, 255, 255, 0.32);
  --display: "League Gothic", "Arial Narrow", sans-serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: 16px;
  --max: 1240px;
  --tab-h: 62px;
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 12v8M12 16h8' stroke='%23ff00a6' stroke-opacity='.28' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-top: 72px;
  background: var(--black);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--white);
  text-decoration-color: var(--mag);
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 2px solid var(--org);
  outline-offset: 3px;
}

/* ---------- Type ---------- */

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.88;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 11vw, 5.75rem);
}
h2 {
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
}
h3 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}
.shout {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.82;
  letter-spacing: 0;
  color: var(--white);
  margin: 0;
}
.lead {
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text);
  max-width: 34em;
}
.muted {
  color: var(--muted);
}
.label,
.code {
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.code {
  text-transform: none;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.mag {
  color: var(--mag);
}
.org {
  color: var(--org);
}
.small {
  font-size: 0.9rem;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--mag);
  color: #000;
  padding: 8px 12px;
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
}
.skip:focus {
  left: 8px;
}

/* ---------- Marks ---------- */

.ico {
  width: 22px;
  height: 22px;
  flex: none;
}
.reg {
  width: 14px;
  height: 14px;
  color: var(--mag);
}
.hazard {
  display: inline-block;
  width: 40px;
  height: 11px;
  background: repeating-linear-gradient(-45deg, var(--org) 0 4px, transparent 4px 9px);
  flex: none;
}
.hazard.mag {
  background: repeating-linear-gradient(-45deg, var(--mag) 0 4px, transparent 4px 9px);
}
.grid-field {
  background-image: var(--cross);
  background-size: 32px 32px;
  background-position: -16px -16px;
}

/* Hairline frame with registration crosses on two corners. */
.frame {
  position: relative;
  border: 1px solid var(--mag-line);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  background:
    linear-gradient(var(--mag), var(--mag)) center / 1px 100% no-repeat,
    linear-gradient(var(--mag), var(--mag)) center / 100% 1px no-repeat;
  pointer-events: none;
}
.frame::before {
  top: -9px;
  left: -9px;
}
.frame::after {
  bottom: -9px;
  right: -9px;
}

/* ---------- Masthead, tab bar, footer ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: var(--black);
  border-bottom: 1px solid var(--mag);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}
.wordmark:hover {
  color: var(--white);
}
.logo {
  width: 26px;
  height: 26px;
  color: var(--white);
}
.mast-code {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.topnav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 22px;
}
.topnav > a:not(.btn) {
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.topnav > a:not(.btn):hover,
.topnav > a[aria-current="page"]:not(.btn) {
  color: var(--white);
  border-bottom-color: var(--mag);
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--black);
  border-top: 1px solid var(--mag-line);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tab[aria-current="page"] {
  color: var(--white);
}
.tab[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22%;
  right: 22%;
  height: 2px;
  background: var(--mag);
}
.tab-scan {
  background: var(--mag);
  color: #000;
}
.tab-scan[aria-current="page"] {
  color: #000;
}
.tab-scan[aria-current="page"]::before {
  background: var(--white);
}
.tab-scan:hover {
  color: #000;
  background: var(--mag-hover);
}

.colophon {
  margin-top: 56px;
  padding: 22px var(--gutter) 28px;
  border-top: 1px solid var(--mag-line);
  color: var(--muted);
  font-size: 0.86rem;
}
.colophon > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.fineprint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mag);
  opacity: 0.75;
}
.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}


main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter) 0;
}
main.narrow {
  max-width: 760px;
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1.5px solid var(--mag);
  border-radius: 0;
  background: transparent;
  color: var(--mag);
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.btn .ico {
  width: 20px;
  height: 20px;
}
/* Certification brackets: appear when the control is engaged. */
.btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  --c: var(--mag);
  background:
    linear-gradient(var(--c), var(--c)) top left / 9px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 9px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 9px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 9px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 9px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 9px no-repeat;
}
.btn:hover::after,
.btn:focus-visible::after,
.btn:active::after {
  opacity: 1;
}
.btn:hover {
  background: var(--mag-faint);
  color: var(--mag);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--mag);
  color: #000;
}
.btn.primary:hover {
  background: var(--mag-hover);
  color: #000;
}
.btn.white {
  border-color: var(--white);
  color: var(--white);
}
.btn.white::after {
  --c: var(--white);
}
.btn.white:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.btn.solid-white {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}
.btn.solid-white::after {
  --c: var(--white);
}
.btn.solid-white:hover {
  background: #e6e6e6;
  color: #000;
}
.btn.ghost {
  border-color: var(--rule-strong);
  color: var(--white);
}
.btn.ghost::after {
  --c: var(--white);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.btn.warn {
  border-color: var(--org);
  color: var(--org);
}
.btn.warn::after {
  --c: var(--org);
}
.btn.warn:hover {
  background: rgba(255, 90, 0, 0.12);
  color: var(--org);
}
.btn.small {
  min-height: 40px;
  padding: 0 13px;
  font-size: 1.25rem;
}
.btn.block {
  width: 100%;
}
.btn[disabled],
.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
  background-image: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(0, 0, 0, 0.3) 7px 14px);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

/* ---------- Stamps (proof tiers) ---------- */

.stamp {
  display: inline-grid;
  justify-items: center;
  align-self: start;
  justify-self: start;
  padding: 5px 10px 4px;
  border: 2px solid currentColor;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.stamp.confirmed,
.stamp.verified {
  color: var(--white);
}
.stamp.suspected {
  color: var(--org);
}
.stamp.reported {
  color: var(--muted);
  border-style: dashed;
}
.stamp.mini {
  font-size: 1rem;
  padding: 3px 6px 2px;
  border-width: 1.5px;
}

/* ---------- Exhibit (one shrink, as evidence) ---------- */

.exhibit {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: var(--black);
}
.exhibit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.exhibit-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.exhibit-title a {
  text-decoration: none;
}
.exhibit-title .brand {
  color: var(--mag);
}
.wasnow {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
}
.wasnow .was {
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--mag);
  text-decoration-thickness: 0.09em;
}
.wasnow .now {
  font-size: clamp(4.4rem, 23vw, 7.6rem);
  color: var(--white);
}
.wasnow .arrow {
  align-self: center;
  width: 30px;
  height: 30px;
  color: var(--mag);
}

/* Spec table: the shrink's facts, ruled like a regulatory panel. */
.facts {
  width: 100%;
  border-collapse: collapse;
  border-top: 4px solid var(--white);
  font-variant-numeric: tabular-nums;
}
.facts th,
.facts td {
  padding: 8px 0 7px;
  border-bottom: 1px solid var(--rule-strong);
  vertical-align: baseline;
}
.facts th {
  text-align: left;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts td {
  text-align: right;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--white);
}
.facts tr.hit td {
  color: var(--mag);
}
.facts tr:last-child th,
.facts tr:last-child td {
  border-bottom: 4px solid var(--white);
}
.facts-note {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Real barcodes */
.codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}
.codes figure {
  margin: 0;
}
.bars {
  width: 100%;
  height: 46px;
  fill: var(--white);
}
.codes figcaption {
  display: grid;
  gap: 2px;
  margin-top: 6px;
}
.codes figcaption .code {
  color: var(--text);
}
.codes .old .bars {
  fill: var(--muted);
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  gap: 26px;
  padding: 10px 0 8px;
}
.hero .shout {
  font-size: clamp(5.2rem, 27vw, 10.5rem);
}
.hero .shout .less {
  color: var(--mag);
}
.hero-lead {
  margin: 0;
}
.hero-actions {
  display: grid;
  gap: 16px;
  align-content: start;
}
/* The line under the headline: who builds the record. */
.hero-sub {
  margin: -14px 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 7.4vw, 2.3rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
}
.hero-sub a {
  color: var(--mag);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
.hero-sub a:hover {
  color: var(--white);
}
/* Running count under the headline. */
.tally {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -6px 0 0;
  color: inherit;
  text-decoration: none;
  justify-self: start;
}
.tally-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tally-more svg {
  width: 12px;
  height: 12px;
}
.tally:hover .tally-n,
.tally:focus-visible .tally-n {
  color: var(--white);
}
.tally:hover .tally-more {
  color: var(--mag);
}
/* Scan miss: "Is it one of these?" */
.suggest {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.suggest ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.suggest li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name btn" "meta btn";
  gap: 2px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.suggest li a {
  grid-area: name;
  color: var(--white);
  text-decoration: none;
}
.suggest li .label {
  grid-area: meta;
}
.suggest li .btn {
  grid-area: btn;
}
/* Barcode hunt (admin) */
.hunt-cam {
  position: sticky;
  top: 64px;
  z-index: 5;
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 14px;
  background: var(--bg, #000);
}
.hunt-cam video {
  width: 100%;
  max-height: 38vh;
  object-fit: cover;
  background: #111;
}
.hunt-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.hunt-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.hunt-list li.active {
  border-bottom-color: var(--mag);
}
.hunt-list li.done {
  opacity: 0.55;
}
.list-more {
  margin: 18px 0 0;
}
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
}
.pager > :last-child {
  justify-self: end;
}
.tally-n {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 15vw, 5rem);
  line-height: 0.9;
  color: var(--mag);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}
.tally-n.bump {
  color: var(--white);
}
.tally-label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-actions .btn-row {
  margin: 0;
}
#result,
.verdict {
  scroll-margin-top: 72px;
}
.search-bar {
  display: flex;
  gap: 0;
}
.search-bar input {
  flex: 1;
  min-width: 0;
}
.search-bar .btn {
  border-left: 0;
}

.alarm {
  margin: 44px calc(var(--gutter) * -1) 0;
  padding: 22px var(--gutter);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--org) 0 6px, transparent 6px 14px) 11;
}
.alarm p {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(2rem, 7.5vw, 3.6rem);
  line-height: 0.92;
  color: var(--white);
  margin: 0 0 12px;
  max-width: 22ch;
}
.alarm p b {
  font-weight: 400;
  color: var(--org);
}

.index-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2.8rem 0 0.9rem;
}
.index-head h2 {
  margin: 0;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
}
.seg a {
  padding: 8px 12px;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.seg a + a {
  border-left: 1px solid var(--rule-strong);
}
.seg a[aria-current="true"] {
  background: var(--white);
  color: #000;
}

.index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mag-line);
}
.index li {
  border-bottom: 1px solid var(--rule);
}
.index a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "code delta"
    "name delta"
    "size stamp";
  gap: 3px 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
}
.index a:hover {
  background: var(--mag-faint);
}
.ix-code {
  grid-area: code;
  color: var(--mag);
}
.ix-name {
  grid-area: name;
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
}
.ix-size {
  grid-area: size;
  align-self: center;
}
.ix-delta {
  grid-area: delta;
  justify-self: end;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 0.85;
  color: var(--mag);
  font-variant-numeric: tabular-nums;
}
.ix-delta small {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.index .stamp {
  grid-area: stamp;
  justify-self: end;
}

.procedure {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--mag-line);
}
.procedure li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 4px 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.procedure .n {
  grid-row: span 2;
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 0.8;
  color: var(--mag);
}
.procedure h3 {
  margin: 0;
}
.procedure p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Product page ---------- */

.product-head h1 .brand {
  color: var(--mag);
  display: block;
}
.verdict-line {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.9rem, 6.5vw, 2.6rem);
  line-height: 0.95;
  color: var(--white);
  margin: 14px 0 0;
}
.verdict-line b {
  font-weight: 400;
  color: var(--mag);
}
.photo {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--panel-2);
  border: 1px solid var(--rule);
}
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--mag-line);
}
.log li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 2px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.log .when {
  color: var(--muted);
}
.log .what {
  color: var(--white);
}
.log li.shrink .what {
  color: var(--mag);
}
.sources {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sources li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}
.sources a {
  color: var(--white);
}

/* ---------- Notices ---------- */

.notice {
  border: 1px solid var(--rule-strong);
  padding: 14px 16px;
  margin: 16px 0;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice.warn {
  border-color: var(--org);
}
.notice.bad {
  border-color: var(--mag);
}
.notice.good {
  border-color: var(--white);
}
.notice .btn-row {
  margin-bottom: 0;
}

/* ---------- Scanner ---------- */

.scan-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.scanner {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  width: 100%;
  overflow: hidden;
  background-color: var(--black);
}
.scanner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reticle {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 34%;
  bottom: 34%;
  pointer-events: none;
  --c: var(--mag);
  background:
    linear-gradient(var(--c), var(--c)) top left / 26px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 26px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 26px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 26px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 26px no-repeat;
}
.scanner:not(.live) .reticle .ico {
  display: none;
}
.reticle .ico {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  color: var(--mag);
  opacity: 0.8;
}
.scanner.live .reticle::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 2px;
  background: var(--mag);
  animation: sweep 1.4s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes sweep {
  from {
    transform: translateY(-34px);
  }
  to {
    transform: translateY(34px);
  }
}
.scan-hud {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.scan-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.78);
  border-top: 1px solid var(--mag-line);
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.scan-idle {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.scan-idle p {
  max-width: 26ch;
  margin: 0;
  color: var(--text);
}
.scan-alt {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.manual {
  display: flex;
}
.manual input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
}
.manual .btn {
  border-left: 0;
}

/* ---------- Verdict ---------- */

.verdict {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 16px 20px;
  background: var(--black);
}
.v-scan {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}
.v-scan .bars {
  height: 34px;
}
.v-word {
  font-family: var(--display);
  font-size: clamp(5rem, 27vw, 10rem);
  line-height: 0.8;
  text-transform: uppercase;
  color: var(--mag);
  margin: 0;
}
.v-same .v-word,
.v-compare .v-word {
  color: var(--white);
}
.v-recipe .v-word {
  font-size: clamp(3.6rem, 19vw, 8rem);
}
/* Recipe change: before → now, copied from the ingredient list. */
.beforeafter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.95;
}
.beforeafter .was {
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--mag);
  text-decoration-thickness: 0.08em;
}
.beforeafter .now {
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  color: var(--white);
}
.beforeafter .arrow {
  width: 26px;
  height: 26px;
  color: var(--mag);
}
.v-also {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.v-also a {
  color: var(--text);
}
/* Browse brands A–Z */
.letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 20px;
}
.letters a,
.letters span {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--rule-strong);
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
}
.letters a:hover {
  border-color: var(--mag);
  color: var(--mag);
}
.letters span {
  opacity: 0.3;
}
.letters .letters-all {
  padding: 0 10px;
  border-color: var(--mag-line);
  color: var(--mag);
}
.company-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.company-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--mag-line);
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}
.company-list a:hover {
  border-color: var(--mag);
}
.company-list small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mag);
}
.brand-letter h2 {
  margin: 22px 0 6px;
  color: var(--mag);
}
.brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 220px;
  column-gap: 24px;
}
.brand-list li {
  break-inside: avoid;
  border-bottom: 1px solid var(--rule);
}
.brand-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: var(--text);
  text-decoration: none;
}
.brand-list a:hover span {
  color: var(--mag);
}
.brand-list small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.recipe-changes {
  display: grid;
  gap: 16px;
}
.recipe-changes h2 {
  margin: 8px 0 0;
}
.ix-kind {
  font-size: 1.35rem;
  line-height: 1;
  text-align: right;
  max-width: 9em;
}
/* Home headline glitch: "Same price." becomes "Higher price." for a moment. */
.price-swap.alt {
  color: var(--org);
  font-stretch: 75%;
}
.price-swap.glitch {
  animation: price-glitch 0.19s steps(3) infinite;
}
@keyframes price-glitch {
  0% {
    transform: translate(0);
    text-shadow: 4px 0 var(--mag), -4px 0 var(--org);
    clip-path: inset(0 0 52% 0);
  }
  33% {
    transform: translate(-4px, 2px);
    text-shadow: -4px 0 var(--mag), 4px 0 var(--org);
    clip-path: inset(38% 0 0 0);
  }
  66% {
    transform: translate(3px, -1px);
    text-shadow: 3px 0 var(--org), -3px 0 var(--mag);
    clip-path: inset(12% 0 28% 0);
  }
  100% {
    transform: translate(0);
    text-shadow: none;
    clip-path: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .price-swap.glitch {
    animation: none;
  }
}
.v-old .v-word,
.v-new .v-word {
  color: var(--org);
}
.v-title {
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.v-title .brand {
  color: var(--mag);
}
.v-body {
  color: var(--text);
  margin: 0;
  max-width: 40ch;
}
.v-thumb {
  display: block;
  width: 108px;
  height: 140px;
  object-fit: contain;
  background: #fff;
}
.v-thumb-link {
  justify-self: end;
}
.history-lead {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 14px;
  border: 1.5px solid var(--org);
}
.history-lead .label {
  color: var(--org);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  border-top: 4px solid var(--white);
  border-bottom: 4px solid var(--white);
}
.compare-row > div {
  padding: 10px 0;
}
.compare-row .vs {
  align-self: center;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.compare-row b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--white);
}
.compare-row .yours b {
  color: var(--mag);
}

/* The one authored moment: the verdict lands in register, the stamp slams down. */
@media (prefers-reduced-motion: no-preference) {
  .register .v-word,
  .register .verdict-line {
    animation: register 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .register .stamp {
    animation: stamp 0.34s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
@keyframes register {
  from {
    text-shadow:
      0.07em 0.035em 0 var(--org),
      -0.05em -0.02em 0 rgba(255, 255, 255, 0.55);
  }
  to {
    text-shadow:
      0 0 0 transparent,
      0 0 0 transparent;
  }
}
@keyframes stamp {
  from {
    transform: rotate(-9deg) scale(1.7);
    opacity: 0.25;
  }
  to {
    transform: rotate(-3deg) scale(1);
    opacity: 1;
  }
}

/* ---------- Forms ---------- */

.field {
  display: block;
  margin-bottom: 16px;
}
.field > span,
.field-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .hint {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-size: 17px;
}
input::placeholder,
textarea::placeholder {
  color: #8f878b;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--mag);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--org);
  outline-offset: 2px;
}
select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff00a6' stroke-width='2.5'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
textarea {
  min-height: 112px;
  resize: vertical;
}
input[type="date"] {
  color-scheme: dark;
}
fieldset {
  margin: 0 0 22px;
  padding: 16px 16px 2px;
  border: 1px solid var(--rule);
}
legend {
  padding: 0 8px;
  font-family: var(--display);
  font-size: 1.65rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
legend .label {
  font-size: 10px;
  margin-left: 6px;
}
.row {
  display: grid;
  gap: 0 12px;
}
.row.two {
  grid-template-columns: 1fr 1fr;
}
.row.three {
  grid-template-columns: 1fr 1fr;
}
.choice {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 22px;
}
@media (min-width: 600px) {
  .choice {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}
.choice label {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 0;
  padding: 14px;
  border: 1.5px solid var(--rule-strong);
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--white);
}
.choice span {
  font-size: 0.85rem;
  color: var(--muted);
}
.choice label:has(input:checked) {
  border-color: var(--mag);
  background: var(--mag-faint);
}
.choice label:has(input:checked) b {
  color: var(--mag);
}
.choice label:has(input:focus-visible) {
  outline: 2px solid var(--org);
  outline-offset: 3px;
}
.live-metric {
  display: none;
  margin: -2px 0 16px;
}
.live-metric.show {
  display: block;
}
.live-metric .facts td {
  font-size: 1.5rem;
}
/* Proof photo slots: old pack and new pack, each with Take photo / Choose photo. */
.slot-intro {
  margin: 0 0 14px;
  color: var(--muted);
}
.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.slots > div {
  display: grid;
}
.photo-slot {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1.5px dashed var(--mag-line);
}
.photo-slot.has-photo {
  border-style: solid;
}
.slot-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.slot-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.slot-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.slot-buttons label:has(input:focus-visible) {
  outline: 2px solid var(--org);
  outline-offset: 2px;
}
.slot-preview {
  display: grid;
  gap: 6px;
}
.slot-preview .photo {
  max-height: 180px;
  width: auto;
  justify-self: start;
}
.slot-remove {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mag);
  cursor: pointer;
  text-decoration: underline;
}
.wayback-tip {
  margin: -6px 0 14px;
}
.wayback-tip a {
  color: var(--mag);
}
@media (max-width: 520px) {
  .slots {
    grid-template-columns: 1fr;
  }
}
/* Record page: old and new pack photos side by side. */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.proof-fig {
  margin: 0;
  display: grid;
  gap: 6px;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  border: 1.5px dashed var(--mag-line);
  text-align: center;
  cursor: pointer;
  color: var(--text);
}
.dropzone:hover {
  border-color: var(--mag);
  background: var(--mag-faint);
}
.dropzone .ico {
  width: 30px;
  height: 30px;
  color: var(--mag);
}
.dropzone input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.dropzone:has(input:focus-visible) {
  outline: 2px solid var(--org);
  outline-offset: 3px;
}
#photo-preview img {
  margin-top: 12px;
}
.form-status:empty {
  display: none;
}
.form-status {
  margin-top: 12px;
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.form-status.bad {
  color: var(--org);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cf-turnstile {
  margin: 4px 0 14px;
}

/* ---------- Method page ---------- */

.prose {
  max-width: 68ch;
}
.prose h2 {
  margin-top: 2.8rem;
}
.prose ul {
  padding-left: 1.1em;
}
.prose li {
  margin-bottom: 0.5em;
}
.tiers {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--mag-line);
}
.tiers li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.form-code > span:not(.hazard) {
  white-space: nowrap;
}
/* Phones: stamp above its explanation instead of squeezing the text into a column. */
@media (max-width: 520px) {
  .tiers li {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
}

/* ---------- Install banner ---------- */

#install-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#install-banner.show {
  display: flex;
}

/* ---------- Admin ---------- */

table.admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.admin th,
table.admin td {
  text-align: left;
  vertical-align: top;
  padding: 10px 6px;
  border-bottom: 1px solid var(--rule);
}
table.admin form {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}
table.admin select {
  min-height: 40px;
  width: auto;
}
.thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

/* ---------- Wider screens ---------- */

@media (min-width: 480px) {
  .mast-code {
    display: inline-flex;
  }
}
@media (min-width: 600px) {
  .row.three {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .index a {
    grid-template-columns: 92px 1fr auto auto;
    grid-template-areas:
      "code name delta stamp"
      "code size delta stamp";
    align-items: center;
  }
  .ix-code {
    align-self: start;
    padding-top: 4px;
  }
  .index .stamp {
    justify-self: center;
    width: 112px;
  }
  .procedure {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
  }
  .procedure li {
    grid-template-columns: 1fr;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .procedure .n {
    grid-row: auto;
  }
}
@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }
  .tabbar {
    display: none;
  }
  .topnav {
    display: flex;
  }
  :root {
    --gutter: 28px;
  }
  main {
    padding-top: 34px;
  }
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "shout exhibit"
      "sub exhibit"
      "tally exhibit"
      "lead exhibit"
      "actions exhibit";
    grid-template-rows: auto auto auto auto 1fr;
    gap: 22px 44px;
    align-items: start;
  }
  .hero-shout {
    grid-area: shout;
  }
  .hero-lead {
    grid-area: lead;
  }
  .tally {
    grid-area: tally;
  }
  .hero-sub {
    grid-area: sub;
  }
  .hero > .exhibit {
    grid-area: exhibit;
  }
  .hero-actions {
    grid-area: actions;
  }
  .hero .shout {
    font-size: clamp(7rem, 12.5vw, 11rem);
  }
  .exhibit {
    padding: 22px;
  }
  .scan-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .scan-layout .verdict {
    margin-top: 0;
  }
  .scanner {
    aspect-ratio: 4 / 3;
  }
  .alarm {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
  }
  .alarm p {
    max-width: 30ch;
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scanner.live .reticle::after {
    animation: none;
  }
  .btn,
  .btn::after {
    transition: none;
  }
}

/* =====================================================================
   Sleeve frame: the noise layer. Density steps by breakpoint:
   phone  = hazard/code strip under the masthead + crosses on modules
   tablet = the same, wider
   wide   = left and right rails replace the strip
   Verdicts and numbers never carry ornament.
   ===================================================================== */

.logo {
  width: 30px;
  height: 30px;
}
.foot-mark {
  width: 18px;
  height: 18px;
  color: var(--white);
}

/* The strip is tablet-width furniture: phones need the room, wide screens get the rail. */
.noise-strip {
  display: none;
  align-items: center;
  gap: 14px;
  height: 26px;
  padding: 0 var(--gutter);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--mag-line);
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--mag);
}
.noise-strip .hazard {
  height: 9px;
  width: 34px;
}

.rail {
  display: none;
}

/* Modules: every section is a framed module with registration crosses. */
.module {
  position: relative;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--mag-line);
}
.module::before,
.module::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 17px;
  height: 17px;
  background:
    linear-gradient(var(--mag), var(--mag)) center / 1px 100% no-repeat,
    linear-gradient(var(--mag), var(--mag)) center / 100% 1px no-repeat;
  pointer-events: none;
}
.module::before {
  left: -9px;
}
.module::after {
  right: -9px;
}
main > .module:first-child {
  margin-top: 0;
  padding-top: 8px;
  border-top: 0;
}
main > .module:first-child::before,
main > .module:first-child::after {
  display: none;
}
.alarm + .module {
  margin-top: 0;
  border-top: 0;
}
.module > h2:first-child,
.module > .index-head:first-child {
  margin-top: 0;
}
.panel {
  padding: 16px 16px 8px;
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 2.1rem;
}
.stack {
  display: grid;
  gap: 30px;
  align-content: start;
}
fieldset.frame {
  border-color: var(--mag-line);
}
.form-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 14px;
  margin: 0 0 16px;
  color: var(--mag);
}

/* Hero: the shout sets two full-width lines. */
.hero-shout span {
  display: block;
  white-space: nowrap;
}
.hero .shout {
  font-size: 19.4vw;
  font-stretch: 84%;
  line-height: 0.84;
}

/* Exhibit, compact: stamp beside the title. */
.exhibit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.exhibit-top .stamp {
  flex: none;
  margin-top: 4px;
}
.exhibit-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.more .ico {
  width: 14px;
  height: 14px;
}
.hero .exhibit {
  gap: 12px;
}
.hero .exhibit .wasnow .now {
  font-size: clamp(4rem, 20vw, 7.6rem);
}
.hero .exhibit .facts td {
  font-size: 1.55rem;
}
.hero .exhibit .facts th,
.hero .exhibit .facts td {
  padding: 6px 0 5px;
}
.hero .exhibit .bars {
  height: 38px;
}
.hero .exhibit .facts-note {
  margin-top: 4px;
}

/* ID panel: the record's spec sheet. */
.idpanel {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.idpanel dl {
  margin: 0;
  border-top: 4px solid var(--white);
}
.idpanel dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0 6px;
  border-bottom: 1px solid var(--rule-strong);
}
.idpanel dt {
  font-family: var(--mono);
  font-stretch: 87.5%;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.idpanel dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.summary {
  margin: 0;
}

/* Engaged controls carry official marks. */
.tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: 7px 16%;
  pointer-events: none;
  --c: var(--mag);
  background:
    linear-gradient(var(--c), var(--c)) top left / 7px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 7px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 7px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 7px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 7px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 7px no-repeat;
}
.tab-scan[aria-current="page"] {
  background: var(--white);
  color: #000;
}
.tab-scan[aria-current="page"]::after {
  --c: #000;
}
.topnav > a[aria-current="page"]:not(.btn) {
  position: relative;
}
.topnav > a[aria-current="page"]:not(.btn)::after {
  content: "";
  position: absolute;
  inset: -2px -8px;
  pointer-events: none;
  --c: var(--mag);
  background:
    linear-gradient(var(--c), var(--c)) top left / 6px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1.5px 6px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 6px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1.5px 6px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 6px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1.5px 6px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 6px 1.5px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1.5px 6px no-repeat;
}
.topnav .btn[aria-current="page"] {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}
.topnav .btn[aria-current="page"]::after {
  --c: var(--white);
  opacity: 1;
}

/* Compare: two answers, one treatment. */
.answers .wide {
  grid-column: 1 / -1;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn.answer {
  min-height: 64px;
  padding: 0 10px;
  gap: 8px;
  white-space: nowrap;
  border-color: var(--white);
  color: var(--white);
  font-size: clamp(1.3rem, 6vw, 1.7rem);
}
.btn.answer::after {
  --c: var(--white);
}
.btn.answer:hover {
  background: var(--white);
  color: #000;
}
.verdict .more {
  justify-self: start;
}

.manual input::placeholder {
  font-family: var(--sans);
  font-stretch: 100%;
  letter-spacing: 0;
}

@media (min-width: 860px) {
  .hero .shout {
    font-size: clamp(6.5rem, 10.6vw, 10.5rem);
    font-stretch: 92%;
  }
  .hero {
    grid-template-areas:
      "shout exhibit"
      "sub exhibit"
      "tally exhibit"
      "lead exhibit"
      "actions exhibit";
  }
}

@media (min-width: 768px) {
  .noise-strip {
    display: flex;
  }
}

/* Wide: the rail replaces the strip. */
@media (min-width: 1280px) {
  .noise-strip {
    display: none;
  }
  main,
  .colophon > * {
    max-width: min(var(--max), calc(100vw - 200px));
  }
  .rail {
    position: fixed;
    top: 57px;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 76px;
    padding: 18px 0;
    background: var(--black);
    font-family: var(--mono);
    font-stretch: 87.5%;
    pointer-events: none;
  }
  .rail-l {
    left: 0;
    border-right: 1px solid var(--mag);
  }
  .rail-mark {
    width: 40px;
    height: 40px;
    color: var(--white);
  }
  .rail-code {
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-align: center;
    color: var(--mag);
  }
  .rail-hazard {
    flex: none;
    width: 100%;
    height: 58px;
    background: repeating-linear-gradient(-45deg, var(--org) 0 6px, transparent 6px 13px);
  }
  .rail-bars {
    position: relative;
    flex: none;
    width: 44px;
    height: 150px;
  }
  .rail-bars .bars {
    position: absolute;
    top: 53px;
    left: -53px;
    width: 150px;
    max-width: none;
    height: 44px;
    transform: rotate(90deg);
    fill: var(--white);
  }
  .rail-gtin {
    writing-mode: vertical-rl;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    color: var(--muted);
  }
  .rail-legend {
    display: grid;
    justify-items: center;
    gap: 2px;
    font-size: 8.5px;
    letter-spacing: 0.12em;
    color: var(--muted);
  }
  .rail-legend i {
    display: block;
    width: 16px;
    height: 8px;
    margin-top: 8px;
  }
  .rail-legend .t-c {
    background: var(--white);
  }
  .rail-legend .t-s {
    background: var(--org);
  }
  .rail-legend .t-r {
    border: 1px dashed var(--muted);
  }
}

/* Round-two fixes: product order, rail density, boxed modules on wide screens. */
.product-layout {
  display: grid;
  gap: 26px;
}
.product-main {
  display: grid;
  gap: 4px;
  align-content: start;
}
@media (min-width: 860px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas:
      "head side"
      "main side";
    grid-template-rows: auto 1fr;
    gap: 30px 40px;
    align-items: start;
  }
  .product-head {
    grid-area: head;
  }
  .product-main {
    grid-area: main;
  }
  .product-side {
    grid-area: side;
  }
  main > .module,
  main > .module:first-child {
    margin-top: 40px;
    padding: 28px;
    border: 1px solid var(--mag-line);
  }
  main > .module:first-child {
    margin-top: 8px;
  }
  main > .module::before,
  main > .module:first-child::before,
  main > .module::after,
  main > .module:first-child::after {
    display: block;
  }
  main > .module::after {
    top: auto;
    bottom: -9px;
  }
  .alarm {
    margin: 40px 0 0;
    padding: 24px 28px;
    border-left: 1px solid var(--mag-line);
    border-right: 1px solid var(--mag-line);
  }
  .alarm + .module {
    margin-top: 0;
    border-top: 0;
  }
}
@media (min-width: 1280px) {
  .rail-rec {
    display: grid;
    justify-items: center;
    gap: 2px;
    font-size: 9px;
    letter-spacing: 0.14em;
    color: var(--muted);
  }
  .rail-rec b {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    color: var(--white);
  }
  .rail-tier {
    padding: 3px 5px 2px;
    border: 1.5px solid currentColor;
    font-family: var(--display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: rotate(-4deg);
  }
  .rail-tier.t-confirmed {
    color: var(--white);
  }
  .rail-tier.t-suspected {
    color: var(--org);
  }
  .rail-tier.t-reported {
    color: var(--muted);
    border-style: dashed;
  }
  .rail-ruler {
    flex: 1;
    min-height: 40px;
    width: 26px;
    border-left: 1px solid var(--mag-line);
    background:
      repeating-linear-gradient(to bottom, var(--mag) 0 1px, transparent 1px 8px) left top / 9px 100% no-repeat,
      repeating-linear-gradient(to bottom, var(--mag) 0 1px, transparent 1px 40px) left top / 22px 100% no-repeat;
    opacity: 0.8;
  }
  .rail-legend {
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--text);
  }
}

/* Reporter's statement on the report form. */
.affirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 16px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.affirm input {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--mag);
}
