/* ============================================================= *
 *  Post-Quantum guide — visual system
 *  White background, slow-moving grey veins, modern/mysterious.
 * ============================================================= */

:root {
  --ink: #14161a;
  --ink-soft: #3a3f47;
  --ink-faint: #6b7280;
  --line: #e6e7ea;
  --line-strong: #d3d5da;
  --paper: #ffffff;
  --accent: #f6821f; /* Cloudflare-ish warm accent, used sparingly */
  --accent-ink: #b5560a;
  --ring-track: #ececee;
  --box-bg: #fafafa;
  --max: 720px;
  --toc-w: 260px;
  --rail-w: 150px;
  --font-ui: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-read: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
img, svg, video { max-width: 100%; }
.credit-mobile, .qday-mobile, .readtime, .box summary, .box__body {
  min-width: 0;
  overflow-wrap: break-word;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  /* IMPORTANT: no overflow-x here. Any overflow (hidden/auto/clip) on an
     ancestor silently breaks `position: sticky` on descendants — that is
     what stopped the left index and right rail from staying fixed while
     scrolling. Horizontal overflow is contained per-element instead
     (tables and <pre> live inside their own overflow-x:auto wrappers). */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-read);
  font-size: 19px;
  line-height: 1.68;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* no overflow-x here either — see note on html above. */
}

/* -------------------------------------------------------------- *
 * Animated grey veins
 * -------------------------------------------------------------- */
.veins {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #ffffff;
  /* iOS Safari can let transformed/animated children escape a fixed,
     overflow:hidden box and generate horizontal scroll. `contain` locks
     the veins' paint + layout strictly inside this box so they can never
     widen the page. */
  contain: strict;
  width: 100%;
  max-width: 100%;
}
.vein {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  will-change: transform;
}
.vein-1 {
  width: 60vw; height: 60vw;
  left: -18vw; top: -14vw;
  background: radial-gradient(circle at 30% 30%, rgba(120,124,132,0.20), rgba(120,124,132,0) 62%);
  animation: drift1 46s ease-in-out infinite alternate;
}
.vein-2 {
  width: 68vw; height: 68vw;
  right: -22vw; top: 24vh;
  background: radial-gradient(circle at 60% 40%, rgba(90,94,102,0.16), rgba(90,94,102,0) 60%);
  animation: drift2 62s ease-in-out infinite alternate;
}
.vein-3 {
  width: 52vw; height: 52vw;
  left: 22vw; bottom: -20vw;
  background: radial-gradient(circle at 50% 50%, rgba(150,153,160,0.16), rgba(150,153,160,0) 60%);
  animation: drift3 54s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  100% { transform: translate3d(8vw,6vh,0) scale(1.15) rotate(18deg); }
}
@keyframes drift2 {
  0%   { transform: translate3d(0,0,0) scale(1.05) rotate(0deg); }
  100% { transform: translate3d(-7vw,-5vh,0) scale(0.92) rotate(-14deg); }
}
@keyframes drift3 {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  100% { transform: translate3d(5vw,-7vh,0) scale(1.18) rotate(12deg); }
}
/* faint moving hairline texture on top of the blobs */
.veins::after {
  content: "";
  position: absolute; inset: -50%;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(20,22,26,0.020) 0px,
    rgba(20,22,26,0.020) 1px,
    transparent 1px,
    transparent 46px
  );
  animation: slideLines 90s linear infinite;
}
@keyframes slideLines {
  0% { transform: translate(0,0); }
  100% { transform: translate(46px, 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .vein, .veins::after { animation: none !important; }
}

/* -------------------------------------------------------------- *
 * Top progress bar (thin, always visible)
 * -------------------------------------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 40; background: transparent;
}
.topbar #topbar-fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-ink));
  transition: width .12s linear;
}

/* -------------------------------------------------------------- *
 * Layout shell
 * -------------------------------------------------------------- */
.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--toc-w) minmax(0, 1fr) var(--rail-w);
  gap: 0;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* LEFT TOC */
.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  /* max-height (not a fixed height:100vh) so a short TOC doesn't stretch,
     and a long one scrolls inside itself while the column stays pinned. */
  max-height: calc(100vh - 48px);
  padding: 40px 26px 40px 4px;
  overflow-y: auto;
}
.credit {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.credit__photo {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.credit__name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
  margin: 0 0 3px;
  line-height: 1.3;
}
.credit__role {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.3;
  letter-spacing: .01em;
}
.toc__brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
  text-decoration: none;
  cursor: pointer;
}
.toc__brand:hover .toc__brandtext { color: var(--ink); }
.toc__brand:hover .toc__dot { border-color: var(--accent-ink); }
.toc__dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--ink);
  position: relative;
}
.toc__dot::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  background: var(--accent);
}
.toc__brandtext {
  font-family: var(--font-ui);
  font-weight: 600; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.toc__list {
  list-style: none; margin: 0; padding: 0;
  counter-reset: toc;
}
.toc__list li { margin: 0 0 2px; }
.toc__link {
  display: block;
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink-faint);
  text-decoration: none;
  padding: 7px 10px 7px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color .18s, border-color .18s, background .18s;
}
.toc__link:hover { color: var(--ink); background: rgba(0,0,0,0.03); }
.toc__link.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
  background: rgba(246,130,31,0.06);
  font-weight: 500;
}

/* CENTER content */
.content {
  min-width: 0;
  /* Contain any wide child (tables, <pre>, long code) to this column only.
     Safe for the sticky side columns because .toc/.rail are SIBLINGS of
     .content in the grid, not descendants — so this overflow rule cannot
     break their position:sticky. This is what stops the right-edge text
     clipping on iOS Safari without disabling the pinned columns. */
  overflow-x: hidden;
  padding: 56px 40px 80px;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}

.hero { margin-bottom: 40px; }
.hero__kicker {
  font-family: var(--font-ui);
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 18px;
}
.hero__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero__subtitle {
  font-family: var(--font-read);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
.hero__rule {
  height: 1px; margin-top: 34px;
  background: linear-gradient(90deg, var(--ink), transparent);
  opacity: .5;
}

/* -------------------------------------------------------------- *
 * Reading time (three scopes)
 * -------------------------------------------------------------- */
.readtime {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 26px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--box-bg);
}
.readtime__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-family: var(--font-ui);
}
.readtime__label {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.readtime__value {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- *
 * Prose
 * -------------------------------------------------------------- */
.prose { max-width: var(--max); }
.prose > * { margin-inline: 0; }

.prose h2 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(27px, 3.4vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 3.2em 0 0.7em;
  padding-top: 0.4em;
  color: var(--ink);
  scroll-margin-top: 24px;
}
.prose h2::before {
  content: "";
  display: block;
  width: 42px; height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
  border-radius: 2px;
}
.prose h3 {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 24px);
  letter-spacing: -0.005em;
  margin: 2.2em 0 0.6em;
  color: var(--ink);
  scroll-margin-top: 24px;
}
.prose p { margin: 0 0 1.15em; }
.prose a {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(181,86,10,0.35);
  transition: border-color .15s, background .15s;
}
.prose a:hover { border-bottom-color: var(--accent-ink); background: rgba(246,130,31,0.08); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose em { }

.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin: 0 0 0.5em; }
.prose li > ul, .prose li > ol { margin-top: 0.5em; }

.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3em 0;
}

/* first paragraph after H2 gets a subtle lead style */
.prose h2 + p { color: var(--ink-soft); }

/* code / ASCII art (merkle tree) */
.prose pre {
  background: #0f1115;
  color: #e7e9ee;
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.5;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.prose :not(pre) > code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: #f0f0f2;
  padding: 1px 6px;
  border-radius: 5px;
  color: #b5560a;
}

/* -------------------------------------------------------------- *
 * Tables
 * -------------------------------------------------------------- */
.table-wrap {
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 14px;
  min-width: 520px;
}
.prose th, .prose td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}
.prose thead th {
  background: #f7f7f8;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td { background: #fafafa; }

/* -------------------------------------------------------------- *
 * Expandable boxes (from blockquotes)
 * -------------------------------------------------------------- */
.box {
  margin: 1.8em 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--box-bg);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.box[open] { box-shadow: 0 10px 30px -18px rgba(20,22,26,.35); border-color: var(--line-strong); }
.box summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  font-family: var(--font-ui);
  user-select: none;
}
.box summary::-webkit-details-marker { display: none; }
.box__tag {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 100%;
}
.box__title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
}
.box__chev {
  width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .22s ease;
  margin-right: 2px;
}
.box[open] .box__chev { transform: rotate(-135deg); }
.box__body {
  padding: 2px 22px 20px;
  font-family: var(--font-read);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 16px;
}
.box__body > *:first-child { margin-top: 0; }
.box__body > *:last-child { margin-bottom: 0; }
.box__body pre { font-size: 12.5px; }
.box__body table { min-width: 420px; }

/* colour accents per box kind */
.box--deep .box__tag { background: #e9edff; color: #3949ab; }
.box--deep { border-left: 3px solid #6979d8; }
.box--summary .box__tag { background: #fff0e0; color: #b5560a; }
.box--summary { border-left: 3px solid var(--accent); background: #fffdf9; }
.box--action .box__tag { background: #e3f6ec; color: #1c7a4b; }
.box--action { border-left: 3px solid #2fa96a; }

/* plain blockquotes that were not converted */
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 20px;
  border-left: 3px solid var(--line-strong);
  color: var(--ink-soft);
  font-style: italic;
}

/* -------------------------------------------------------------- *
 * Footer
 * -------------------------------------------------------------- */
.footer {
  margin-top: 90px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: .01em;
}
.footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  margin-left: 4px;
}
.footer a:hover { color: var(--accent-ink); }
.footer__updated {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
/* Name-under-photo LinkedIn link (sidebar + mobile credit) */
.credit__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color .15s, border-color .15s;
}
.credit__link:hover {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}

/* -------------------------------------------------------------- *
 * RIGHT reading ring
 * -------------------------------------------------------------- */
.rail {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.qday {
  text-align: center;
  cursor: help;
  padding-bottom: 14px;
  margin-bottom: 2px;
  border-bottom: 1px dashed var(--line-strong);
}
.qday__eyebrow {
  font-family: var(--font-ui);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 4px;
}
.qday__num {
  font-family: var(--font-ui); font-weight: 700;
  font-size: 25px; color: var(--accent-ink); margin: 0; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.qday__unit {
  font-family: var(--font-ui); font-size: 9.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin: 2px 0 7px;
}
.qday__target {
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 500;
  color: var(--ink-soft); margin: 0;
}

.ring { position: relative; width: 96px; height: 96px; }
.ring__svg { width: 100%; height: 100%; display: block; }
.ring__track {
  fill: none;
  stroke: var(--ring-track);
  stroke-width: 10;
}
.ring__fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7256; /* 2*pi*52 */
  stroke-dashoffset: 326.7256;
  transition: stroke-dashoffset .15s linear;
}
.ring__label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 600;
  font-size: 20px; color: var(--ink);
}
.ring__label em { font-style: normal; font-size: 12px; color: var(--ink-faint); margin-left: 1px; }
.rail__hint {
  font-family: var(--font-ui);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0;
}

/* -------------------------------------------------------------- *
 * Cloudflare Radar post-quantum test widget
 * (closing section, after the Sources, before the footer)
 * -------------------------------------------------------------- */
.pqwidget {
  margin-top: 3.2em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
}
.pqwidget__title {
  font-family: var(--font-ui);
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 6px;
}
.pqwidget__sub {
  font-family: var(--font-read);
  font-size: 15px; line-height: 1.6;
  color: var(--ink-soft); margin: 0 0 12px; max-width: 60ch;
}
.pqwidget__frame {
  width: 100%;
  height: 340px;               /* hug the embed's real content height: enough to
                                  show the full purple info panel without a big
                                  empty band below; also reserves space up-front
                                  so nothing shifts on load */
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  contain: layout paint;       /* isolate the iframe's reflow from the rest
                                  of the page (fixes the "fixes itself on
                                  scroll" layout shift) */
}
.pqwidget .cf-radar-embed {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}
@media (max-width: 560px) {
  /* narrower column -> the embed's text wraps taller, so give it more room */
  .pqwidget__frame { height: 420px; }
}

/* -------------------------------------------------------------- *
 * Mobile/tablet copy of the credit card + Q-Day countdown
 * (hidden on desktop; shown once the side columns disappear)
 * -------------------------------------------------------------- */
.mobile-side { display: none; }

.credit-mobile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.credit-mobile__photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.credit-mobile__name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
  margin: 0 0 3px;
  line-height: 1.3;
}
.credit-mobile__role {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.3;
}

.qday-mobile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  cursor: help;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--box-bg);
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
}
.qday-mobile__num {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.qday-mobile__target {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-soft);
  flex-basis: 100%;
}

/* -------------------------------------------------------------- *
 * Responsive
 * -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .shell { grid-template-columns: var(--toc-w) minmax(0,1fr); }
  .rail { display: none; }
  /* .toc (with the photo credit) is still visible in this band, so only
     reveal the Q-Day card here — the mobile credit card waits for 820px. */
  .mobile-side { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 8px; }
  .credit-mobile { display: none; }
}
@media (max-width: 820px) {
  /* Below 820px the sticky side columns are hidden anyway, so it's safe
     to clip horizontal overflow at the root. `clip` (not hidden/auto)
     does NOT create a scroll container, so it kills sideways page-scroll
     without the side effects hidden would have. */
  html, body { overflow-x: clip; }

  .shell { grid-template-columns: 1fr; padding: 0; }
  .toc { display: none; }
  .credit-mobile { display: flex; }
  /* THE fix: on desktop .content is max-width:800px and .prose is 720px,
     both centered. On a ~390px phone those fixed widths stayed put, so the
     text was laid out ~720px wide and clipped at the right edge. Force both
     to the real screen width here. */
  .content {
    max-width: 100%;
    width: 100%;
    padding: 40px 20px 64px;
    overflow-x: clip;   /* clip (not hidden) so it can't create side-scroll */
  }
  .prose { max-width: 100%; width: 100%; }

  /* --- Hard guarantee: nothing in the article may push the PAGE wider
     than the phone screen. Wide tables keep their OWN horizontal scroll
     inside .table-wrap; the table stays readable (not squashed) and only
     that little box scrolls, never the whole page. --- */
  .table-wrap { min-width: 0; max-width: 100%; width: 100%; }
  .prose pre { max-width: 100%; }
  .prose img, .prose blockquote { max-width: 100%; }
  /* Let long words / URLs wrap instead of pushing the line off-screen. */
  .content, .prose, .prose p, .prose li, .box__body {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  /* Mobile reading text stays at least as large as desktop, not smaller —
     phones are read at arm's length, shrinking text only hurts here. */
  body { font-size: 20px; line-height: 1.78; }
  /* Explicit heading sizes on mobile so the hierarchy is unmistakable:
     body 20px  <  h3 25px  <  h2 30px. (The clamp()s were collapsing to
     their minimum on narrow screens and looking smaller than body text.) */
  .prose h2 { font-size: 30px; line-height: 1.2; }
  .prose h3 { font-size: 25px; line-height: 1.25; }
  .credit-mobile__role { color: var(--ink-soft); }
  .readtime__label, .readtime__value { font-size: 15.5px; }
  .box__tag { font-size: 11px; padding: 4px 9px; }
  .box__title { font-size: 16.5px; }
  .box__body { font-size: 17.5px; }
  .prose th, .prose td { font-size: 14.5px; }

  /* Long tags like "Bottom line for decision-makers" must never push the
     row wider than the screen: let the row wrap, and always drop the
     title to its own full-width line below the tag + chevron. */
  .box summary { flex-wrap: wrap; }
  .box__title { flex: 1 1 100%; order: 3; margin-top: 2px; }
  .box__chev { order: 2; margin-left: auto; }
  .box__tag { order: 1; }
}
@media (max-width: 560px) {
  .content { padding: 32px 16px 56px; }
  body { font-size: 19.5px; line-height: 1.76; }
  .hero__title { font-size: clamp(32px, 9.5vw, 40px); }
  .hero__subtitle { font-size: 18px; }
  .readtime { padding: 16px 18px; gap: 10px; }
  .readtime__item { flex-direction: column; align-items: flex-start; gap: 2px; }
  .readtime__label, .readtime__value { font-size: 16px; }
  .mobile-side { gap: 14px; margin: 24px 0 6px; }
  .credit-mobile__photo { width: 52px; height: 52px; }
  .box summary { padding: 15px 16px; gap: 12px; }
  .box__body { padding: 2px 18px 18px; padding-top: 15px; }
  .prose h2 { margin-top: 2.4em; }
  .prose th, .prose td { padding: 10px 12px; font-size: 14px; }
  .footer { margin-top: 60px; }
}
@media (max-width: 380px) {
  body { font-size: 19px; }
  .hero__title { font-size: 30px; }
  .credit-mobile { gap: 12px; }
  .credit-mobile__photo { width: 48px; height: 48px; }
  .credit-mobile__name { font-size: 15.5px; }
  .credit-mobile__role { font-size: 13.5px; }
  .qday-mobile { padding: 11px 15px; }
  .qday-mobile__num { font-size: 16.5px; }
  .qday-mobile__target { font-size: 13.5px; }
}
