/* Qivblock — print-magazine stylesheet
   Newsprint cream, ink black, one cobalt accent. Hand-set, no framework. */

:root {
  --paper: #F3EEE4;
  --paper-deep: #E9E2D3;
  --paper-light: #FBF8F2;
  --ink: #17150F;
  --ink-soft: #49443A;
  --ink-faint: #8C8576;
  --rule: #CDC4B2;
  --cobalt: #2140C4;
  --cobalt-deep: #18309A;
  --cobalt-wash: #DCE2F6;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --measure: 42rem;
  --margin-col: 15rem;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --hair: 1px solid var(--rule);
  --speed: 320ms;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

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

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

p { margin: 0 0 1.1em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
}
.skip:focus { top: 1rem; color: var(--paper); }

.wrap { width: 100%; max-width: 75rem; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Masthead: broadsheet nameplate ---------- */

.masthead { border-top: 5px solid var(--cobalt); }
.mast-top {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.75rem;
  min-height: 2.5rem; border-bottom: var(--hair);
  font-family: var(--sans); font-size: 0.85rem; font-variant-caps: all-small-caps; letter-spacing: 0.07em;
  color: var(--ink-soft);
}
.mast-flag {
  justify-self: end; color: var(--ink); font-weight: 700;
  border: 1px solid var(--ink); padding: 0 0.5rem; line-height: 1.45rem;
}
.mast-domain { display: none; }
.mast-date, .mast-flag { white-space: nowrap; }
@media (max-width: 26rem) { .mast-weekday { display: none; } }
.nameplate { display: block; width: fit-content; margin: 0.8rem auto 0.7rem; padding: 0.2rem; }
.nameplate img { width: clamp(11rem, 40vw, 20rem); height: auto; }
.sections {
  display: flex; gap: 1.5rem;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink);
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
  mask-image: linear-gradient(to right, #000 82%, transparent);
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  font-variant-caps: all-small-caps; letter-spacing: 0.08em;
}
.sections::-webkit-scrollbar { display: none; }
.sections a {
  flex: none; display: inline-flex; align-items: center; min-height: 2.9rem;
  color: var(--ink); text-decoration: none; scroll-snap-align: start;
}
.sections a:hover { color: var(--cobalt); text-decoration: underline; }
.sections a:focus-visible { outline-offset: -3px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.8rem 1.7rem;
  background: var(--cobalt); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; border: 2px solid var(--cobalt); border-radius: 2px;
  cursor: pointer; transition: background-color 160ms, border-color 160ms;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-small { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* ---------- Hero: front-page grid ---------- */

.hero { padding-top: clamp(1rem, 2.6vw, 1.7rem); }
.hero h1 {
  font-size: clamp(2.35rem, 7vw, 5.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  padding-bottom: clamp(0.8rem, 1.8vw, 1.3rem);
  border-bottom: 1px solid var(--ink);
}
.front { display: flex; flex-direction: column; gap: 1.1rem; padding-top: 1.1rem; }

.front-photo { order: -1; margin: 0 calc(-1 * var(--gutter)); }
.front-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 62% 40%; }
.cap-bar { background: var(--cobalt); color: #fff; font-family: var(--sans); font-size: 0.78rem; line-height: 1.45; padding: 0.55rem var(--gutter); }
.cap-bar b, figcaption b { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75em; margin-right: 0.5em; }

.front-lede {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.8rem 1rem;
}
.dek { grid-column: 1 / -1; font-size: clamp(1.08rem, 1.6vw, 1.2rem); line-height: 1.42; font-style: italic; margin: 0; }
.byline { font-family: var(--sans); font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); margin: 0; }
.byline strong { color: var(--ink); font-weight: 600; }
.cta-note { grid-column: 1 / -1; font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); margin: 0; line-height: 1.45; }

.rail { border-top: 1px solid var(--ink); padding-top: 0.7rem; }
.rail-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; font-variant-caps: all-small-caps; letter-spacing: 0.1em; margin-bottom: 0.2rem; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
.rail-list a {
  display: flex; align-items: center; gap: 0.55rem; min-height: 2.75rem; padding: 0.3rem 0;
  border-bottom: var(--hair); color: var(--ink); text-decoration: none; font-size: 0.92rem; line-height: 1.2;
}
.rail-list a:hover { color: var(--cobalt); }
.rail-num {
  flex: none; display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--cobalt); color: #fff; font: 700 0.72rem/1 var(--sans);
}
.rail-more { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; }

/* ---------- Article column + margin notes ---------- */

.col { padding-top: 2.4rem; }
.col > * { max-width: var(--measure); }

.has-dropcap::first-letter {
  float: left;
  font-size: 4.5em;
  line-height: 0.82;
  font-weight: 700;
  padding: 0.06em 0.1em 0 0;
  color: var(--cobalt);
}

.note {
  font-family: var(--sans); font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft);
  border-left: 3px solid var(--cobalt); padding: 0.2rem 0 0.2rem 0.9rem; margin: 0 0 1.4rem;
}
.note p { margin: 0; }
.note .note-label { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; margin-bottom: 0.3rem; }

.sec { padding-top: clamp(3rem, 7vw, 5rem); }
.sec h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin-bottom: 1.2rem; border-top: 1px solid var(--ink); padding-top: 0.9rem; }

.small-print { font-family: var(--sans); font-size: 0.82rem; line-height: 1.55; color: var(--ink-soft); }

.inline-photo { margin: 2rem 0; }
.inline-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.inline-photo figcaption, .plate-cap {
  font-family: var(--sans); font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft);
  padding-top: 0.6rem; border-bottom: var(--hair); padding-bottom: 0.7rem;
}
.inline-photo figcaption b { color: var(--cobalt); }

/* ---------- The plate (interactive illustration) ---------- */

.plate-band {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--paper-deep);
  border-block: 1px solid var(--ink);
  padding: 2.6rem 0 2.8rem;
}
.plate-band h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin-bottom: 0.7rem; }
.plate-how { max-width: var(--measure); color: var(--ink-soft); }
.plate { margin: 1.6rem 0 0; }
.plate-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }

.plate-tools { margin-bottom: 0.9rem; }
.switch {
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 2.75rem; padding: 0.35rem 0.9rem 0.35rem 0.45rem;
  background: var(--paper-light); border: 1px solid var(--ink); border-radius: 2rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.switch-track {
  position: relative; width: 2.9rem; height: 1.6rem; flex: none;
  border-radius: 1rem; background: var(--paper-deep); border: 1.5px solid var(--ink);
  transition: background-color var(--speed);
}
.switch-knob {
  position: absolute; top: 2px; left: 2px; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--ink);
  transition: transform var(--speed), background-color var(--speed);
}
.switch[aria-checked="true"] .switch-track { background: var(--cobalt); border-color: var(--cobalt); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(1.3rem); background: #fff; }

/* the drawn browser */
.mock {
  background: var(--paper-light);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  font-family: var(--sans);
}
.mock-bar {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.7rem; border-bottom: 1.5px solid var(--ink); background: var(--paper);
}
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); }
.mock-url {
  flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 0.72rem; color: var(--ink-soft); background: var(--paper-light);
  border: 1px solid var(--rule); border-radius: 1rem; padding: 0.2rem 0.7rem;
}
.mock-screen { position: relative; padding: 1.1rem 1.1rem 5.4rem; min-height: 36rem; }

.mock-stamp {
  flex: none; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cobalt); border: 1.5px solid var(--cobalt); padding: 0.15rem 0.4rem; line-height: 1.3;
  max-width: 9.5rem; text-align: center;
}

.m-head { text-align: center; border-bottom: 3px double var(--ink); padding: 0.2rem 0 0.55rem; margin-bottom: 0.7rem; }
.m-logo { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.02em; }
.m-nav { display: inline-flex; gap: 0.6rem; margin-top: 0.35rem; }
.m-nav i { width: 2.2rem; height: 5px; background: var(--rule); }

.m-article { max-width: 30rem; }
.m-kicker { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); margin: 0.6rem 0 0.2rem; }
.m-title { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.12; margin: 0 0 0.5rem; }
.m-by i { display: block; width: 7rem; height: 5px; background: var(--ink-faint); margin-bottom: 0.8rem; }
.m-lines { padding: 0.2rem 0 0.4rem; }
.m-lines i { display: block; height: 6px; background: #D8D0C0; margin-bottom: 9px; border-radius: 1px; }
.m-lines i:last-child { width: 62%; }

/* clutter pieces */
.clutter { position: relative; }
.box { display: block; position: relative; transition: outline-color var(--speed), opacity var(--speed); outline: 3px solid transparent; outline-offset: 3px; }

.c-notify { position: absolute; top: 0.35rem; left: 0.9rem; z-index: 6; width: min(15.5rem, 72%); }
.notify {
  background: #fff; border: 1px solid var(--ink); border-radius: 8px;
  box-shadow: 0 6px 18px rgba(23, 21, 15, 0.22); padding: 0.65rem 0.75rem; font-size: 0.74rem; line-height: 1.35;
}
.notify-q { display: block; }
.notify-what { display: flex; align-items: center; gap: 0.35rem; margin: 0.35rem 0 0.5rem; font-weight: 600; }
.fake-btns { display: flex; gap: 0.4rem; justify-content: flex-end; }
.fake-btns span { border: 1px solid var(--ink); border-radius: 3px; padding: 0.15rem 0.55rem; font-size: 0.68rem; font-weight: 600; }
.fake-btns span:first-child { background: var(--ink); color: var(--paper-light); }

.trackers {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  border: 1.5px dashed var(--ink-faint); padding: 0.4rem 0.6rem 0.4rem 2.2rem; margin-bottom: 0.4rem;
}
.trackers-label { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.trackers-dots { display: inline-flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.trackers-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: blink 1.6s infinite; }
.trackers-dots i:nth-child(2n) { animation-delay: 0.4s; }
.trackers-dots i:nth-child(3n) { animation-delay: 0.8s; }
@keyframes blink { 50% { opacity: 0.25; } }

.c-late .collapse-inner { padding: 0.4rem 0 0.9rem; }
.latead {
  height: 6.2rem;
  background: repeating-linear-gradient(135deg, #E4DCCB 0 6px, #EFE9DD 6px 12px);
  border: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.2rem;
}
.ad-word { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.latead-note { font-family: var(--serif); font-style: italic; font-size: 0.8rem; color: var(--ink-soft); }

.c-wall { margin: 0.5rem 0 0.9rem; }
.wall { min-height: 4.4rem; display: grid; place-items: center; text-align: center; }
.wall-off {
  grid-area: 1 / 1; width: 100%; border: 1.5px dashed var(--rule); padding: 0.7rem;
  font-size: 0.7rem; color: var(--ink-faint); transition: opacity var(--speed);
}
.wall-on {
  grid-area: 1 / 1; width: 100%; background: var(--ink); color: var(--paper-light);
  padding: 0.75rem 0.9rem; font-size: 0.74rem; line-height: 1.4;
  display: flex; flex-direction: column; gap: 0.3rem; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity var(--speed), visibility var(--speed);
}
.wall-on b { font-family: var(--serif); font-size: 0.95rem; }
.wall-on .fake-btns span { border-color: var(--paper-light); }
.wall-on .fake-btns span:first-child { background: var(--paper-light); color: var(--ink); }

.c-native { margin: 0.5rem 0 0.9rem; }
.native { border-top: 2px solid var(--ink); padding-top: 0.45rem; }
.native-head { display: flex; justify-content: space-between; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.45rem; }
.native-head em { font-style: normal; font-weight: 500; color: var(--ink-faint); }
.native-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.native-tiles > span { display: block; }
.native-tiles i { display: block; aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #D9D1C1 0 5px, #E7E0D2 5px 10px); margin-bottom: 0.35rem; }
.native-tiles b { display: block; height: 5px; background: var(--ink-faint); margin-bottom: 5px; }
.native-tiles b + b { width: 70%; background: var(--rule); }

.c-news { position: absolute; left: 1.4rem; bottom: 5.6rem; z-index: 4; width: min(15rem, 64%); }
.newsbox {
  background: #fff; border: 2px solid var(--ink); padding: 1rem 1rem 0.85rem;
  box-shadow: 0 10px 30px rgba(23, 21, 15, 0.28); font-size: 0.8rem;
}
.newsbox b { display: block; font-family: var(--serif); font-size: 1.02rem; margin-bottom: 0.55rem; padding-right: 1rem; }
.newsbox-x { position: absolute; top: 0.25rem; right: 0.5rem; font-size: 1.1rem; line-height: 1; }
.newsbox-field { display: block; height: 1.7rem; border: 1px solid var(--rule); margin-bottom: 0.5rem; }

.c-video { position: absolute; right: 0.9rem; bottom: 5.2rem; z-index: 5; width: min(13.5rem, 46%); }
.video {
  aspect-ratio: 16 / 9; background: var(--ink); color: var(--paper-light);
  border-radius: 4px; box-shadow: 0 8px 20px rgba(23, 21, 15, 0.3);
  display: grid; place-items: center;
}
.video-tag { position: absolute; top: 0.35rem; left: 0.45rem; font-size: 0.6rem; font-weight: 700; background: #F2C230; color: var(--ink); padding: 0.05rem 0.35rem; }
.video-bar { position: absolute; left: 0.45rem; right: 0.45rem; bottom: 0.4rem; height: 3px; background: rgba(251, 248, 242, 0.3); }
.video-bar i { display: block; width: 35%; height: 100%; background: var(--paper-light); }

.c-sticky { position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; }
.sticky {
  display: flex; align-items: center; gap: 0.8rem; height: 4.2rem; padding: 0 2.5rem 0 2.8rem;
  background: #E6DCC8; border-top: 1.5px solid var(--ink);
}
.sticky-art { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.sticky-art i { height: 8px; background: #C9BDA5; }
.sticky-art i + i { width: 55%; }
.sticky-x { position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; }

/* pins */
.pin {
  position: absolute; top: -0.8rem; left: -0.7rem; z-index: 10;
  display: grid; place-items: center; width: 1.85rem; height: 1.85rem;
  border-radius: 50%; background: var(--cobalt); color: #fff;
  border: 2px solid var(--paper-light); box-shadow: 0 0 0 1px var(--cobalt);
  font: 700 0.85rem/1 var(--sans); text-decoration: none;
  transition: background-color 160ms, transform 160ms, opacity var(--speed);
}
.pin::before { content: ""; position: absolute; inset: -0.45rem; border-radius: 50%; }
.pin:hover { background: var(--ink); color: #fff; box-shadow: 0 0 0 1px var(--ink); }
.pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.c-trackers .pin { top: 50%; left: -0.25rem; transform: translateY(-50%); }
.c-sticky .pin { top: 50%; left: 0.2rem; transform: translateY(-50%); }
.c-notify .pin { left: auto; right: -0.7rem; }
.c-late .pin { top: -0.4rem; }
.c-video .pin { left: auto; right: -0.7rem; }

.clutter.is-active .box { outline-color: var(--cobalt); }
.clutter.is-active .pin { background: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--cobalt-wash); }

/* collapsible in-flow pieces */
.collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--speed) ease, opacity var(--speed) ease; }
.collapse-inner { min-height: 0; position: relative; }
.c-trackers .collapse-inner, .c-late .collapse-inner { overflow: visible; }

/* blocking view */
.mock.is-blocking .clutter[data-gone] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--speed) ease, visibility 0s linear var(--speed), transform var(--speed) ease, grid-template-rows var(--speed) ease; }
.mock.is-blocking .clutter.collapse[data-gone] { grid-template-rows: 0fr; }
.mock.is-blocking .clutter.collapse[data-gone] .collapse-inner { overflow: hidden; }
.mock.is-blocking .c-video, .mock.is-blocking .c-notify { transform: scale(0.94); }
.mock.is-blocking .c-sticky { transform: translateY(100%); }
.mock .clutter[data-gone] { transition: opacity var(--speed) ease, visibility 0s, transform var(--speed) ease, grid-template-rows var(--speed) ease; }
.mock.is-blocking .wall-off { opacity: 0; }
.mock.is-blocking .wall-on { opacity: 1; visibility: visible; }

.plate-cap { margin-top: 1.4rem; border-bottom: 0; }
.plate-cap b { color: var(--cobalt); }

/* legend + readout */
.legend { list-style: none; margin: 0; padding: 0; counter-reset: none; border-top: 1px solid var(--ink); }
.part { border-bottom: var(--hair); padding: 0.9rem 0; }
.part-title { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; font-size: 1.12rem; font-weight: 600; margin-bottom: 0.45rem; }
.part-num {
  display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--cobalt); color: #fff; font: 700 0.82rem/1 var(--sans);
}
.part-body { font-size: 1rem; line-height: 1.55; }
.part-body p { margin-bottom: 0.6rem; }
.part-body p:last-child { margin-bottom: 0; }

.chip {
  font-family: var(--sans); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.22rem 0.5rem; border: 1.5px solid var(--cobalt); border-radius: 2px; white-space: nowrap; line-height: 1.2;
}
.chip-plus { background: var(--cobalt); color: #fff; }
.chip-split { color: var(--cobalt); }
.chip-maybe { border-color: var(--ink); border-style: dashed; color: var(--ink); }
.chip-no { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.legend-src { font-family: var(--sans); font-size: 0.75rem; color: var(--ink-soft); margin: 0.8rem 0 0; }

/* JS-enhanced legend: compact rows; text goes to the readout */
.js .legend .part { padding: 0; }
.js .legend .part-title { margin: 0; font-size: 1rem; }
.js .legend .part-body { display: none; }
.part-btn {
  display: flex; align-items: center; gap: 0.65rem; width: 100%; min-height: 3rem;
  padding: 0.45rem 0.4rem; background: none; border: 0; color: var(--ink);
  font: 600 1rem/1.25 var(--serif); text-align: left; cursor: pointer;
}
.part-btn .part-name { flex: 1; }
.part-btn:hover { background: var(--paper); }
.part-btn[aria-pressed="true"] { background: var(--paper-light); box-shadow: inset 4px 0 0 var(--cobalt); }
.part-btn[aria-pressed="true"] .part-num { background: var(--ink); }
.part.is-hidden-now .part-name { text-decoration: line-through; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; }

.readout {
  background: var(--paper-light); border: 1px solid var(--ink); padding: 1.1rem 1.2rem 1.2rem;
  margin-bottom: 1.2rem; position: relative;
}
.readout::after { content: ""; position: absolute; top: -1px; right: -1px; border-style: solid; border-width: 0 1.4rem 1.4rem 0; border-color: var(--paper-deep) var(--paper-deep) var(--cobalt) var(--cobalt); }
.readout-title { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; font-size: 1.3rem; font-weight: 600; margin: 0 1.2rem 0.7rem 0; }
.readout .part-body { font-size: 1rem; }
.readout-empty { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.readout-state { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--cobalt); margin: 0 0 0.6rem; }

/* ---------- Spec list ---------- */

.spec { margin: 1.8rem 0; border-top: 1px solid var(--ink); }
.spec div { display: grid; gap: 0.1rem 1.2rem; padding: 0.65rem 0; border-bottom: var(--hair); }
.spec dt { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2rem; }
.spec dd { margin: 0; font-size: 1rem; }

/* ---------- Plans table ---------- */

.table-scroll { margin: 1.4rem 0; }
.plans { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.plans caption { caption-side: top; text-align: left; font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); padding-bottom: 0.7rem; line-height: 1.45; }
.plans th, .plans td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: var(--hair); }
.plans thead th { font-family: var(--sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.plans thead th:first-child { width: 36%; }
.plans thead th:nth-child(2) { width: 22%; }
.plans thead .th-plus { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.plans tbody th { font-weight: 600; }
.plans .row-price th, .plans .row-price td { background: var(--cobalt-wash); font-weight: 600; }
.plans .row-price th { padding-left: 0.6rem; }

@media (max-width: 39.99rem) {
  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plans tr { display: block; border-bottom: 1px solid var(--ink); padding: 0.6rem 0; }
  .plans tbody th, .plans td { display: block; border: 0; padding: 0.2rem 0; }
  .plans tbody th { font-size: 1.02rem; margin-bottom: 0.2rem; }
  .plans td::before { content: attr(data-label) ": "; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
  .plans td + td::before { color: var(--cobalt); }
  .plans .row-price { padding-inline: 0.6rem; background: var(--cobalt-wash); }
  .plans .row-price th { padding-left: 0; }
}

/* ---------- Rating + quotes ---------- */

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; border-block: 1px solid var(--ink); padding: 1rem 0; margin-bottom: 1.4rem; }
.rating-num { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; }
.rating-num .big { font-size: 4rem; line-height: 1; font-weight: 600; color: var(--cobalt); letter-spacing: -0.03em; }
.rating-num .of { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; }
.rating-facts { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 0.88rem; line-height: 1.7; }

.quotes { display: grid; gap: 1.2rem; margin: 1.6rem 0; }
.quote { margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--ink); }
.quote p { font-size: 1.05rem; line-height: 1.5; margin-bottom: 0.6rem; }
.quote footer { font-family: var(--sans); font-size: 0.82rem; font-weight: 600; }
.quote footer span { display: block; font-weight: 500; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); margin-top: 0.15rem; }
.text-link { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; display: inline-block; padding: 0.6rem 0; }

/* ---------- Limitations + steps ---------- */

.limits, .steps { list-style: none; margin: 1.2rem 0; padding: 0; counter-reset: item; }
.limits li { counter-increment: item; position: relative; padding: 0.9rem 0 0.9rem 2.6rem; border-bottom: var(--hair); }
.limits li::before {
  content: counter(item); position: absolute; left: 0; top: 0.55rem;
  font-size: 2rem; font-weight: 600; line-height: 1; color: var(--cobalt);
}
.steps li { counter-increment: item; position: relative; padding: 0.55rem 0 0.9rem 3.2rem; min-height: 3.2rem; }
.steps li::before {
  content: counter(item); position: absolute; left: 0; top: 0.35rem;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border: 1.5px solid var(--cobalt); color: var(--cobalt); border-radius: 50%;
  font: 700 0.95rem/1 var(--sans);
}
.steps li + li::after { content: ""; position: absolute; left: 1.08rem; top: -0.6rem; height: 0.9rem; border-left: 1.5px dotted var(--cobalt); }

/* ---------- Mid CTA ---------- */

.cta-mid { padding-top: 3rem; }
.cta-card {
  position: relative; background: var(--paper-light); border: 2px solid var(--ink);
  padding: 1.6rem 1.5rem 1.7rem;
}
.cta-card::before {
  content: ""; position: absolute; top: -2px; right: -2px;
  border-style: solid; border-width: 0 2.2rem 2.2rem 0;
  border-color: var(--paper) var(--paper) var(--cobalt) var(--cobalt);
}
.cta-card-title { font-size: 1.6rem; font-weight: 600; line-height: 1.15; margin-bottom: 0.6rem; padding-right: 2rem; }

/* ---------- FAQ ---------- */

.faq-sec h2 { max-width: var(--measure); }
.faq { border-top: 1px solid var(--ink); margin-top: 1rem; }
.faq details { border-bottom: var(--hair); break-inside: avoid; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 0.8rem;
  min-height: 3rem; padding: 0.9rem 0; font-weight: 600; font-size: 1.08rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.05rem;
  display: grid; place-items: center; border: 1.5px solid var(--cobalt); color: var(--cobalt);
  font: 600 1rem/1 var(--sans); border-radius: 50%;
}
.faq details[open] summary::before { content: "−"; background: var(--cobalt); color: #fff; }
.faq summary:hover { color: var(--cobalt); }
.faq details p { padding: 0 0 1.1rem 2.2rem; font-size: 1rem; margin: 0; }

/* ---------- End CTA ---------- */

.end-cta { padding-top: clamp(3.5rem, 8vw, 5.5rem); }
.end-frame {
  text-align: center; border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 5px;
  padding: 2.2rem 1.3rem 2.4rem; margin: 6px;
}
.end-frame h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 600; margin-bottom: 0.8rem; }
.end-frame p { max-width: 34rem; margin-inline: auto; color: var(--ink-soft); }
.cta-logo { display: block; width: fit-content; max-width: 100%; margin: 0.6rem auto 1.4rem; padding: 0.4rem; }
.cta-logo img { display: block; width: 22rem; max-width: 100%; height: auto; }
.closing-disclaimer { font-family: var(--sans); font-size: 0.8rem; line-height: 1.6; color: var(--ink-soft); max-width: 50rem; margin: 2rem auto 0; }

/* ---------- Footer ---------- */

.site-foot { margin-top: 4rem; border-top: 3px double var(--ink); padding: 2.4rem 0 6rem; font-family: var(--sans); font-size: 0.85rem; }
.foot-grid { display: grid; gap: 1.2rem; }
.foot-brand img { width: 128px; height: auto; margin-bottom: 0.6rem; }
.foot-brand p { color: var(--ink-soft); margin: 0; max-width: 24rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
.foot-nav a { color: var(--ink); padding: 0.65rem 0; display: inline-block; }
.foot-nav a:hover { color: var(--cobalt); }
.foot-legal { color: var(--ink-soft); margin: 0; font-size: 0.8rem; }

/* ---------- Cookie notice ---------- */

.cookie {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 50;
  max-width: 44rem; margin-inline: auto;
  background: var(--ink); color: var(--paper);
  padding: 1rem 1.1rem; display: grid; gap: 0.8rem;
  font-family: var(--sans); font-size: 0.86rem; line-height: 1.5;
  box-shadow: 5px 5px 0 var(--cobalt);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: #fff; }
.cookie a:hover { color: var(--cobalt-wash); }
.cookie-btns { display: flex; gap: 0.6rem; }
.cookie .btn:focus-visible { outline-color: #fff; }
.btn-ghost { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Legal pages ---------- */

.legal { padding-top: clamp(2rem, 5vw, 3.5rem); }
.legal > * { max-width: var(--measure); }
.legal h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 600; padding-bottom: 0.9rem; border-bottom: 3px double var(--ink); margin-bottom: 0.9rem; }
.legal .updated { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 2rem; }
.legal h2 { font-size: 1.45rem; font-weight: 600; margin: 2.2rem 0 0.7rem; padding-top: 0.6rem; border-top: var(--hair); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .lead { font-size: 1.25rem; font-style: italic; line-height: 1.5; }
.mail-card { border: 2px solid var(--ink); background: var(--paper-light); padding: 1.3rem 1.4rem; margin: 1.6rem 0; position: relative; }
.mail-card::before { content: ""; position: absolute; top: -2px; right: -2px; border-style: solid; border-width: 0 1.8rem 1.8rem 0; border-color: var(--paper) var(--paper) var(--cobalt) var(--cobalt); }
.mail-card .label { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.3rem; }
.mail-card a { font-size: clamp(1.3rem, 5vw, 1.8rem); font-weight: 600; word-break: break-word; }
.mail-card p:last-child { margin: 0; }

.lost { padding-block: clamp(3rem, 10vw, 7rem); }
.lost .big { font-size: clamp(5rem, 22vw, 11rem); font-weight: 600; line-height: 0.9; color: var(--cobalt); margin: 0 0 1rem; letter-spacing: -0.04em; }

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

@media (min-width: 35rem) {
  .spec div { grid-template-columns: 10rem 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote-wide { grid-column: 1 / -1; }
  .cookie { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 48rem) {
  .mast-top { grid-template-columns: 1fr auto 1fr; }
  .mast-flag { justify-self: center; }
  .mast-domain { display: block; justify-self: end; }
  .sections {
    justify-content: center; gap: 2.2rem; margin-inline: 0; padding-inline: 0;
    -webkit-mask-image: none; mask-image: none;
  }
  .front { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.6rem 0; padding-top: 1.4rem; }
  .front-lede { display: block; grid-column: 1; grid-row: 1; padding-right: 1.5rem; }
  .front-lede .byline { margin: 1rem 0 1.1rem; }
  .cta-note { margin-top: 0.6rem; }
  .front-photo { order: 0; grid-column: 2; grid-row: 1; margin: 0; padding-left: 1.5rem; border-left: var(--hair); }
  .front-photo img { aspect-ratio: 3 / 2; }
  .cap-bar { padding: 0.6rem 0.8rem; }
  .rail { grid-column: 1 / -1; }
  .rail-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mock-screen { min-height: 38rem; }
  .foot-grid { grid-template-columns: 1fr auto; align-items: start; }
  .foot-legal { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .front { grid-template-columns: 16.5rem minmax(0, 1fr) 13.5rem; }
  .front-photo { padding-inline: 1.5rem; border-right: var(--hair); }
  .rail { grid-column: 3; grid-row: 1; border-top: 0; padding: 0 0 0 1.5rem; }
  .rail-list { grid-template-columns: minmax(0, 1fr); }
  .col { padding-right: calc(var(--margin-col) + 3.5rem + var(--gutter)); }
  .col > * { max-width: var(--measure); }
  .note {
    float: right; clear: right; width: var(--margin-col);
    margin: 0.35rem calc(-1 * (var(--margin-col) + 3.5rem)) 1rem 0;
    border-left: 0; border-top: 2px solid var(--cobalt); padding: 0.55rem 0 0;
  }
  .col .inline-photo, .col .table-scroll, .col .quotes, .col .rating { max-width: none; margin-right: calc(-1 * (var(--margin-col) + 3.5rem)); }
  .col .table-scroll, .col .quotes, .col .rating { clear: right; }
  .quotes { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row dense; column-gap: 2rem; }
  .quote-wide { grid-column: span 2; }
  .col .inline-photo img { aspect-ratio: 21 / 9; }
  .plate-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.6rem; align-items: start; }
  .plate-side { position: sticky; top: 1.2rem; }
  .readout { min-height: 9rem; }
  .faq { columns: 2; column-gap: 3rem; }
  .faq details:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .cookie, .plate-tools, .skip { display: none !important; }
}
