/* BreakingOnX component layer — ported from the approved home-v2 / jensen-v3
   mockups (source of truth for the look). Loaded after system.css, so these
   components win. Values are tokens only (tokens.css); see DESIGN.md › Components
   and /styleguide/. Do not add page-specific rules here or anywhere else. */

/* Page base from home-v2 (unlayered). Link and control resets sit in @layer base,
   the lowest layer, so every class rule in any layer wins over them. */
* { box-sizing: border-box;
}
html, body { margin: 0; padding: 0;
}
html { scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-15h);
  line-height: var(--leading-md);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { max-width: 100%; overflow-x: hidden;
}

@layer base {
  a { color: var(--gold-soft); text-decoration: none;
  }
  a:hover { text-decoration: underline;
  }
  button, input { font-family: inherit;
  }
}


/* ===== home-v2 components ===== */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  min-height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 0;
  color: var(--text); text-decoration: none;
  flex: none;
}
.brand svg.brand-lockup { display: block; width: auto; height: 22px; flex: none;
}
.brand:hover { text-decoration: none; color: var(--text);
}
.brand svg { display: block;
}
.search-box {
  flex: 1; min-width: 0; max-width: 420px; margin: 0 auto;
  position: relative;
}
.search-box svg {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; stroke: var(--text-3); fill: none; stroke-width: 1.7;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-full);
  padding: var(--space-8) var(--space-12) var(--space-8) var(--space-32);
  font-size: var(--fs-13h);
  outline: none;
}
.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.search-box input::placeholder { color: var(--text-3);
}
.header-meta {
  margin-left: auto; display: flex; align-items: center; gap: var(--space-10);
  font-size: var(--fs-11h); color: var(--text-3); letter-spacing: .04em;
  flex: none;
}
.icon-btn {
  appearance: none; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2);
  width: 32px; height: 32px; border-radius: var(--radius-8);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong);
}
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7;
}
.icon-btn:focus-visible, .chip:focus-visible, .follow-btn:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.ticker-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
}
.ticker {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 0 var(--space-20);
  display: flex; align-items: stretch; gap: var(--space-14);
  min-height: 40px;
}
.ticker-label {
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-family: var(--mono);
  font-size: var(--fs-10h); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft);
  flex: none;
  padding: var(--space-10) 0;
}
.ticker-label .dot {
  width: 7px; height: 7px; border-radius: var(--radius-circle);
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-a70);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--gold-a55); }
  70% { box-shadow: 0 0 0 7px var(--gold-a0); }
  100% { box-shadow: 0 0 0 0 var(--gold-a0); }
}
.ticker-track {
  flex: 1; min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, var(--black) 16px, var(--black) calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--black) 16px, var(--black) calc(100% - 16px), transparent);
}
.ticker-move {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker-wrap:hover .ticker-move, .ticker-wrap:focus-within .ticker-move { animation-play-state: paused;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: var(--space-8);
  padding: 0 var(--space-22) 0 0;
  font-size: var(--fs-13); color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}
.ticker-item:hover { text-decoration: none; color: var(--gold-soft);
}
.ticker-item + .ticker-item { border-left: 1px solid var(--line); padding-left: var(--space-22);
}
.sec {
  margin: var(--space-28) 0 0;
}
.sec-h {
  font-size: var(--fs-11h); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 650;
  margin: 0 0 var(--space-12);
  display: flex; align-items: baseline; gap: var(--space-10); flex-wrap: wrap;
}
.sec-h::after { content: ""; flex: 1; height: 1px; background: var(--line); min-width: 24px;
}
.sec-h .sub {
  font-size: var(--fs-12); letter-spacing: 0; text-transform: none; font-weight: 500;
  color: var(--text-3); margin-left: 0;
}
.catchup {
  margin: var(--space-18) 0 var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-tile);
}
.catchup h2 { margin: 0 0 var(--space-6);
}
.catchup .sec-h { margin-bottom: var(--space-8);
}
.catchup .sec-h::after { display: none;
}
.catchup p { margin: 0; font-size: var(--fs-13h); color: var(--text-2); line-height: var(--leading-md);
}
.catchup ul { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-8);
}
.catchup li {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-10); align-items: baseline;
  font-size: var(--fs-13h);
}
.catchup li a { color: var(--text); font-weight: 650;
}
.your-stories { margin: var(--space-20) 0 var(--space-4);
}
.your-stories[hidden] { display: none !important;
}
.your-row {
  display: flex; gap: var(--space-10);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) 0 var(--space-8);
  scroll-snap-type: x proximity;
}
.your-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: var(--radius);
  padding: var(--space-12) var(--space-14) var(--space-12);
  min-width: 0;
  display: flex; flex-direction: column; gap: var(--space-6);
}
.your-card h3 {
  margin: 0; font-size: var(--fs-14h); font-weight: 650; letter-spacing: -.015em; line-height: var(--leading-xl);
}
.your-card h3 a { color: var(--text);
}
.your-card h3 a:hover { color: var(--gold-soft); text-decoration: none;
}
.status {
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-family: var(--mono);
  font-size: var(--fs-11); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft);
  background: var(--gold-dim);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding: var(--pad-status); border-radius: var(--radius-full);
  white-space: nowrap;
}
.status .dot {
  width: 7px; height: 7px; border-radius: var(--radius-circle);
  background: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-a70);
  animation: pulse 2s ease-out infinite;
}
.status.confirmed {
  color: var(--teal);
  background: var(--teal-dim);
  border-color: color-mix(in srgb, var(--teal) 45%, transparent);
}
.status.confirmed .dot { background: var(--teal); box-shadow: none; animation: none;
}
.status.ended {
  color: var(--text-3);
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.status.ended .dot { background: var(--text-3); box-shadow: none; animation: none;
}
.cat-pill, .tag {
  display: inline-flex; align-items: center;
  font-size: var(--fs-10); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: var(--space-4) var(--space-8); border-radius: var(--radius-4);
  background: var(--surface-2); color: var(--text-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.tag.real {
  color: var(--teal);
  background: var(--teal-dim);
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
}
.follow-btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-6);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--fs-12); font-weight: 650;
  padding: var(--pad-pill);
  border-radius: var(--radius-full);
  white-space: nowrap;
  min-height: 32px;
}
.follow-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7;
}
.follow-btn:hover { color: var(--text); border-color: var(--gold);
}
.follow-btn[aria-pressed="true"] {
  color: var(--btn-on-gold);
  background: var(--gold);
  border-color: var(--gold);
}
.follow-btn[aria-pressed="true"] svg { fill: currentColor; stroke: currentColor;
}
[data-theme="light"] .follow-btn[aria-pressed="true"] { color: var(--btn-on-gold);
}
.heroes {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-12);
  margin: var(--space-16) 0 var(--space-8);
}
.hero-card {
  position: relative;
  background:
    radial-gradient(1200px 280px at 10% -20%, var(--gold-a09), transparent 50%),
    radial-gradient(800px 240px at 100% 0%, var(--teal-a06), transparent 45%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  padding: var(--pad-hero-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0;
}
.hero-card.primary {
  grid-row: 1 / span 2;
}
.hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, var(--black-a35), transparent 80%);
  pointer-events: none;
}
.hero-card > * { position: relative;
}
.hero-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-12);
  margin-bottom: var(--space-12);
}
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-8);
  min-width: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); flex: none;
}
.hero-card h2 {
  margin: 0 0 var(--space-10);
  font-size: var(--fs-title);
  line-height: var(--leading-3xl);
  letter-spacing: -.03em;
  font-weight: 680;
}
.hero-card.secondary h2 {
  font-size: var(--fs-subtitle);
  margin-bottom: var(--space-8);
}
.hero-card h2 a { color: var(--text); text-decoration: none;
}
.hero-card h2 a:hover { color: var(--gold-soft); text-decoration: none;
}
.hero-card .lede {
  margin: 0 0 var(--space-16);
  font-size: var(--fs-14h); color: var(--text-2); line-height: var(--leading-md);
}
.hero-card.secondary .lede { font-size: var(--fs-13h); margin-bottom: var(--space-12);
}
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: auto 0 var(--space-14);
}
.hero-metrics .metric {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: var(--pad-stat);
  min-width: 0;
}
.metric .label {
  font-size: var(--fs-10); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); font-weight: 650; margin: 0 0 var(--space-6);
}
.metric .value {
  font-family: var(--mono);
  font-size: var(--fs-16); font-weight: 650; letter-spacing: -.02em;
  color: var(--text); line-height: var(--leading-2xl);
  word-break: break-word;
}
.metric.gold .value { color: var(--gold-soft);
}
.metric .sub {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-11); color: var(--text-2); line-height: var(--leading-lg);
}
.metric a { color: inherit;
}
.metric a:hover { color: var(--gold);
}
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-10); flex-wrap: wrap;
  margin-top: auto;
}
.updated { font-size: var(--fs-12); color: var(--text-3);
}
.view {
  font-size: var(--fs-13); font-weight: 650; color: var(--gold-soft);
  letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: var(--space-4);
}
.view:hover { color: var(--gold);
}
.filters {
  display: flex; flex-wrap: nowrap; gap: var(--chip-gap);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-2) 0 var(--space-12);
  margin: var(--space-4) 0 var(--space-10);
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  mask-image: linear-gradient(90deg, var(--black) 0, var(--black) calc(100% - 18px), transparent 100%);
}
.chip {
  appearance: none; border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: var(--chip-fs); font-weight: 600;
  padding: var(--chip-py) var(--chip-px);
  border-radius: var(--chip-radius);
  cursor: pointer;
  white-space: nowrap;
}
.chip .c { font-family: var(--mono); font-weight: 500; color: var(--text-3); margin-left: var(--chip-count-gap);
}
.chip[aria-pressed="true"], .chip.on, .chip.is-on {
  background: var(--text); color: var(--bg);
  border-color: var(--text);
}
.chip[aria-pressed="true"] .c, .chip.on .c, .chip.is-on .c { color: inherit; opacity: .7;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12);
  list-style: none; margin: 0; padding: 0;
}
.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-tile);
  transition: border-color .15s;
  display: flex; flex-direction: column;
  min-width: 0;
}
.story-card:hover { border-color: var(--line-strong);
}
.card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.story-card h3 {
  margin: 0 0 var(--space-8);
  font-size: var(--fs-16h); font-weight: 650; letter-spacing: -.02em; line-height: var(--leading-xl);
}
.story-card h3 a { color: var(--text);
}
.story-card h3 a:hover { color: var(--gold-soft); text-decoration: none;
}
.story-card .lede {
  margin: 0 0 var(--space-12);
  font-size: var(--fs-13h); color: var(--text-2); line-height: var(--leading-md);
  flex: 1;
}
.card-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-10);
  margin-top: auto;
  font-size: var(--fs-12); color: var(--text-3);
}



.hub-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12);
}
.hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-hub);
  min-width: 0;
  position: relative;
}
.hub-card:hover { border-color: var(--line-strong);
}
.hub-card h3 {
  margin: var(--space-10) 0 var(--space-8);
  font-size: var(--fs-17); font-weight: 650; letter-spacing: -.02em; line-height: var(--leading-2xl);
}
.hub-card h3 a { color: var(--text);
}
.hub-card h3 a:hover { color: var(--gold-soft); text-decoration: none;
}
.hub-card p { margin: 0 0 var(--space-12); font-size: var(--fs-13h); color: var(--text-2); line-height: var(--leading-md);
}
.hub-card .card-foot { margin-top: 0;
}
.nl, .archive-card, .advertise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-box);
}
.nl h3, .archive-card h3, .advertise h3 {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-16); letter-spacing: -.01em; font-weight: 650;
}
.nl .lede, .archive-card p { margin: 0 0 var(--space-14); font-size: var(--fs-13h); color: var(--text-2); line-height: var(--leading-md);
}
.nl-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  padding: var(--space-4); gap: var(--space-4);
  margin: 0 0 var(--space-12);
}
.nl-toggle label {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: var(--fs-11h); font-weight: 600; color: var(--text-2);
  padding: var(--space-6) var(--space-6); border-radius: var(--radius-6); cursor: pointer;
  line-height: var(--leading-2xl);
}
.nl-toggle input { appearance: none; position: absolute; opacity: 0; width: 0; height: 0;
}
.nl-toggle label:has(input:checked) {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 1px 0 var(--white-a05);
  border: 1px solid var(--line);
}
.nl-toggle label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px;
}
.nl-row { display: flex; gap: var(--space-6);
}
.nl-row input[type="email"], .advertise input[type="email"], .advertise input[type="text"] {
  flex: 1; min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius-8);
  padding: var(--space-10) var(--space-12);
  font-size: var(--fs-13h);
  outline: none;
}
.nl-row input[type="email"]:focus, .advertise input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim);
}
.nl-row button, .advertise button {
  appearance: none; border: 0; cursor: pointer;
  background: var(--gold);
  color: var(--btn-on-gold);
  font-weight: 700; font-size: var(--fs-13);
  border-radius: var(--radius-8);
  padding: var(--pad-action);
  letter-spacing: .01em;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--space-6); text-decoration: none;
}
.nl-row button:hover, .advertise button:hover { filter: brightness(1.06); text-decoration: none;
}
.nl-fine { margin: var(--space-10) 0 0; font-size: var(--fs-11h); color: var(--text-3); line-height: var(--leading-lg);
}
.archive-card { margin: var(--space-16) 0;
}
.advertise { margin: var(--space-8) 0 var(--space-16);
}
.page-foot {
  margin: var(--space-28) auto var(--space-32);
  max-width: var(--max);
  padding: var(--space-24) var(--space-20) var(--space-8);
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: var(--fs-12h); line-height: var(--leading-md);
}
.page-foot h2 {
  margin: 0 0 var(--space-10);
  font-size: var(--fs-11); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); font-weight: 650;
}
.inclusion {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-16) var(--space-16) var(--space-14);
  margin: 0 0 var(--space-22);
  font-size: var(--fs-13); color: var(--text-2); line-height: var(--leading-md);
}
.inclusion h2 { margin: 0 0 var(--space-8);
}
.inclusion p { margin: 0 0 var(--space-8);
}
.inclusion p:last-child { margin: 0;
}
.foot-links {
  display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-16);
  margin: 0 0 var(--space-18);
  padding: 0; list-style: none;
}
.foot-links a { color: var(--text); font-weight: 600;
}
.page-foot .legal { color: var(--text-3); margin: 0 0 var(--space-8);
}
.page-foot .brand-foot {
  margin-top: var(--space-18);
  display: flex; align-items: center; gap: 0;
  color: var(--text-3);
}
.page-foot .brand-foot svg.brand-lockup { display: block; width: auto; height: 18px;
}
.empty {
  padding: var(--space-28) var(--space-18);
  text-align: center;
  color: var(--text-2);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-14); line-height: var(--leading-md);
  grid-column: 1 / -1;
}
.empty h3 { margin: 0 0 var(--space-6); color: var(--text); font-size: var(--fs-15);
}
.empty[hidden] { display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .status .dot, .ticker-label .dot { animation: none;
  }
  html { scroll-behavior: auto;
  }
  .ticker-move { animation: none;
  }
  .ticker-track { overflow-x: auto; mask-image: none; -webkit-mask-image: none;
  }
}
@media (max-width: 1000px) {
  .story-grid, .hub-row { grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-metrics { grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .heroes { grid-template-columns: 1fr;
  }
  .hero-card.primary { grid-row: auto;
  }
  .hero-card { padding: var(--pad-hero-card-sm);
  }
  .hero-metrics { grid-template-columns: 1fr 1fr;
  }
  .story-grid, .hub-row { grid-template-columns: 1fr;
  }
  .search-box { max-width: none; position: absolute; left: 14px; right: 14px; top: calc(var(--header-h) + 1px);
    max-width: none; width: auto; display: none; z-index: 41;
    background: var(--bg-elev); padding: var(--space-8) 0 var(--space-10);
    border-bottom: 1px solid var(--line);
  }
  .site-header.search-open .search-box { display: block;
  }
  .site-header.search-open { padding-bottom: var(--space-48);
  }
  .search-toggle { display: grid !important;
  }
  .ticker { padding: 0 var(--space-14);
  }
  .page-foot { padding: var(--space-20) var(--space-14) var(--space-8);
  }
  .filters { flex-wrap: wrap; mask-image: none; -webkit-mask-image: none; overflow: visible; row-gap: var(--space-6);
  }
  .hero-top { flex-direction: column;
  }
  .metric .value { font-size: var(--fs-15);
  }
  .catchup li { grid-template-columns: 1fr; gap: var(--space-2);
  }
}
.search-toggle { display: none;
}
@media (max-width: 420px) {
  .hero-metrics { grid-template-columns: 1fr 1fr;
  }
  .brand { letter-spacing: -0.02em;
  }
}
.auth-btn {
  appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-6);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-12); font-weight: 650;
  padding: var(--pad-auth);
  border-radius: var(--radius-full);
  white-space: nowrap;
  min-height: 32px;
  text-decoration: none;
}
.auth-btn:hover { text-decoration: none; border-color: var(--text-3);
}
.auth-btn.primary {
  background: var(--gold);
  color: var(--btn-on-gold);
  border-color: var(--gold);
}
.auth-btn.primary:hover { filter: brightness(1.06);
}
.auth-slot { display: flex; align-items: center; gap: var(--space-8);
}
.follow-btn svg { display: none;
}
.follow-btn[aria-pressed="true"] { letter-spacing: 0;
}
@media (max-width: 800px) {
  .search-box {
    position: static;
    left: auto; right: auto; top: auto;
    display: none;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
    margin: 0;
    background: transparent;
    padding: var(--space-4) 0 var(--space-2);
    border: 0;
  }
  .site-header.search-open .search-box { display: block;
  }
  .site-header.search-open { padding-bottom: 0;
  }
  .auth-btn { padding: var(--pad-auth-sm); font-size: var(--fs-11h);
  }
  .header-meta { gap: var(--space-6);
  }
}
.account-menu { position: relative;
}
.account-link, .account-logout {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none; background: none; border: 0;
  font-family: inherit;
  font-size: var(--fs-13); font-weight: 600;
  color: var(--text);
  padding: var(--space-8) var(--space-14);
  cursor: pointer;
  text-decoration: none;
}
.account-link:hover, .account-logout:hover { background: var(--surface-2); text-decoration: none;
}
.account-logout {
  font-weight: 700;
  border-top: 1px solid var(--line);
  margin-top: var(--space-4);
  padding-top: var(--space-10);
}
.toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: var(--fs-13); line-height: var(--leading-sm);
  padding: var(--space-10) var(--space-16);
  border-radius: var(--radius-8);
  box-shadow: var(--shadow);
  z-index: 80;
  max-width: min(420px, calc(100vw - 32px));
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none;
  }
}
.your-stories[hidden] { display: none !important;
}
.card-top { flex-wrap: nowrap;
}
.card-top .kicker { flex: 1; min-width: 0;
}
@media (max-width: 800px) {
  .hero-top { flex-direction: row; flex-wrap: wrap;
  }
  .hero-actions { margin-left: auto;
  }
}
.site-header {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transition: background var(--motion-med) var(--ease-out),
              box-shadow var(--motion-med) var(--ease-out);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 1px 0 var(--line), 0 8px 28px var(--black-a14);
}
html.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity var(--motion-slow) var(--ease-out) var(--reveal-delay),
    transform var(--motion-slow) var(--ease-out) var(--reveal-delay);
}
html.js .hero-enter:not(.is-in) {
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
}
html.js .hero-enter.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 560ms var(--ease-out) var(--reveal-delay),
    transform 560ms var(--ease-out) var(--reveal-delay);
}
.story-card, .hero-card, .hub-card, .your-card, .card, .panel, .nl, .archive-card, .advertise, .catchup {
  transition:
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    border-color 200ms ease,
    opacity var(--motion-med) var(--ease-out);
}
.story-card:hover, .hero-card:hover, .hub-card:hover, .your-card:hover, .card:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 10px 28px var(--black-a22);
  border-color: var(--line-strong);
}
html.js .reveal:not(.is-in):hover {
  
  transform: translate3d(0, 16px, 0);
  box-shadow: none;
}
.follow-btn {
  transition:
    transform 280ms var(--ease-spring),
    background-color 280ms var(--ease-out),
    color 280ms var(--ease-out),
    border-color 280ms var(--ease-out);
}
.follow-btn:active { transform: scale(0.94);
}
@keyframes follow-pop {
  0%   { transform: scale(0.92); }
  55%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
.status .dot, .ticker-label .dot, .status.live .dot, .status.developing .dot {
  animation: live-pulse 2.4s var(--ease-out) infinite;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 var(--gold-a40); }
  50%      { transform: scale(1.18); opacity: .8; box-shadow: 0 0 0 6px var(--gold-a0); }
}
.status.confirmed .dot, .status.ended .dot { animation: none;
}
.ticker-wrap { background: var(--bg-elev); position: relative;
}
.ticker {
  position: relative;
  display: block;
  padding: 0 var(--space-20);
  min-height: 44px;
  --ticker-inset: 7.5rem;
}
.ticker-label {
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  flex: none;
  margin: 0;
  padding: 0 var(--space-16) 0 0;
  background: var(--bg-elev);
  overflow: visible;
  
  box-shadow: 12px 0 16px 10px var(--bg-elev);
}
.ticker-label::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 100%;
  width: 52px;
  background: linear-gradient(90deg,
    var(--bg-elev) 0%,
    var(--bg-elev) 28%,
    color-mix(in srgb, var(--bg-elev) 65%, transparent) 62%,
    transparent 100%);
  pointer-events: none;
  z-index: 6;
}
.ticker-track {
  overflow: hidden;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(90deg, var(--black) 0, var(--black) calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, var(--black) 0, var(--black) calc(100% - 40px), transparent 100%);
}
.ticker-move {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker 56s linear infinite;
  position: relative;
  z-index: 1;
}
.ticker-wrap:hover .ticker-move, .ticker-wrap:focus-within .ticker-move { animation-play-state: paused;
}
@keyframes ticker {
  0%   { transform: translateX(var(--ticker-inset)); }
  100% { transform: translateX(calc(-50% + var(--ticker-inset))); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-10);
  padding: 0 var(--space-28) 0 0;
  margin: 0;
  font-size: var(--fs-13);
  line-height: var(--leading-2xl);
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
}
.ticker-item + .ticker-item {
  border-left: 1px solid var(--line);
  padding-left: var(--space-28);
}
.ticker-item > span {
  display: inline-flex;
  align-items: center;
  line-height: var(--leading-2xl);
  flex: none;
  min-width: 0;
}
#auth-modal {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--motion-fast) var(--ease-out), transform var(--motion-med) var(--ease-out);
}
#auth-modal[open] {
  opacity: 1;
  transform: scale(1);
  animation: modal-in 320ms var(--ease-out);
}
#auth-modal[open]::backdrop {
  animation: backdrop-in 280ms var(--ease-out);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.chip {
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out),
              border-color 220ms var(--ease-out), transform 200ms var(--ease-spring);
}
.chip:active { transform: scale(0.96);
}
.story-grid, #timeline, .heroes, .hub-row {
  transition: opacity 240ms var(--ease-out);
}
html.js .chart-svg:not(.is-in) .bar {
  transform: scaleY(0);
  transform-origin: center bottom;
  transform-box: fill-box;
}
html.js .chart-svg.is-in .bar {
  transform: scaleY(1);
  transition: transform 480ms var(--ease-out) var(--bar-delay);
}
html.js .chart-svg:not(.is-in) .event-line, html.js .chart-svg:not(.is-in) .event-label { opacity: 0;
}
html.js .chart-svg.is-in .event-line, html.js .chart-svg.is-in .event-label {
  opacity: .95;
  transition: opacity 480ms var(--ease-out) 280ms;
}
html.js .race-item .fill {
  transform: scaleX(0);
  transform-origin: left center;
}
html.js .race-item.is-in .fill {
  transform: scaleX(1);
  transition: transform 560ms var(--ease-out) var(--race-delay);
}
html.js .race-item .knob { opacity: 0;
}
html.js .race-item.is-in .knob {
  opacity: 1;
  transition: opacity 360ms var(--ease-out) calc(var(--race-delay) + 220ms);
}
.metric .value, .heat, .chip .c, .race-meta, .race-pos, .hero-metrics .value {
  font-variant-numeric: tabular-nums lining-nums;
}
.hero-card, .story-card, .hub-card, .card, .your-card, .metric, .who, .race-who, .race-item, .panel, .catchup, .kicker, .hero-top, .card-top, .hero-foot, .card-foot {
  min-width: 0;
}
h1, h2, h3, .lede, .excerpt, .know li, .catchup li a, .story-card h3, .hero-card h2, .hub-card h3, .your-card h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.page-foot a {
  overflow-wrap: anywhere;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal:not(.is-in), html.js .hero-enter:not(.is-in), html.js .chart-svg:not(.is-in) .bar, html.js .race-item .fill, html.js .race-item .knob, html.js .chart-svg:not(.is-in) .event-line, html.js .chart-svg:not(.is-in) .event-label {
    opacity: 1 !important;
    transform: none !important;
  }
  .ticker-move {
    animation: none !important;
    will-change: auto;
    transform: translateX(var(--ticker-inset));
  }
  .ticker-track { overflow-x: auto; mask-image: none; -webkit-mask-image: none;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 800px) {
  .ticker { padding: 0 var(--space-14); --ticker-inset: 6.5rem;
  }
  .ticker-label { left: 14px;
  }
}
.nl, .archive-card, .advertise, .nl-form, .nl-row, .nl-toggle {
  min-width: 0;
  max-width: 100%;
}
.nl-toggle label { min-width: 0; white-space: normal; overflow-wrap: break-word;
}
.nl-row { flex-wrap: wrap;
}
.story-grid, .hub-row, .heroes, .analytics, .hero-metrics, .layout {
  max-width: 100%;
}

/* home-v2: tag-us card, archive search, advertise offers */
.cta-btn:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin: var(--space-28) 0 var(--space-8);
}
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-box);
}
.cta {
  background:
    radial-gradient(400px 120px at 100% 0%, var(--gold-dim), transparent 60%),
    var(--surface);
}
.cta h3 {
  margin: 0 0 var(--space-6);
  font-size: var(--fs-16); letter-spacing: -.01em; font-weight: 650;
}
.cta p { margin: 0 0 var(--space-14); font-size: var(--fs-13h); color: var(--text-2); line-height: var(--leading-md); }
.search-archive input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim);
}
.cta-btn, .search-archive button {
  appearance: none; border: 0; cursor: pointer;
  background: var(--gold);
  color: var(--btn-on-gold);
  font-weight: 700; font-size: var(--fs-13);
  border-radius: var(--radius-8);
  padding: var(--pad-action);
  letter-spacing: .01em;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: var(--space-6); text-decoration: none;
}
.cta-btn:hover, .search-archive button:hover { filter: brightness(1.06); text-decoration: none; }
.handle-hl { color: var(--gold-soft); font-weight: 700; }
.search-archive { display: flex; gap: var(--space-6); }
.search-archive input {
  flex: 1; min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius-8);
  padding: var(--space-10) var(--space-12);
  font-size: var(--fs-13h);
  outline: none;
}
.advertise .offers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-10);
  margin: var(--space-12) 0 var(--space-14);
}
.offer {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-8);
  padding: var(--pad-offer);
}
.offer strong { display: block; font-size: var(--fs-13h); margin-bottom: var(--space-4); }
.offer span { font-size: var(--fs-12h); color: var(--text-2); line-height: var(--leading-sm); display: block; }
@media (max-width: 1000px) {
  .advertise .offers { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .duo { grid-template-columns: 1fr; }
}
.cta {
  transition:
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    border-color 200ms ease,
    opacity var(--motion-med) var(--ease-out);
}
.duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 100%; }
.cta, .duo, .search-archive {
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 800px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
}
.offers {
  max-width: 100%;
}

/* ===== jensen-v3 story components ===== */
.hero {
  position: relative;
  margin: var(--space-18) 0 var(--space-8);
  padding: var(--pad-story-hero);
  background:
    radial-gradient(1200px 280px at 10% -20%, var(--gold-a09), transparent 50%),
    radial-gradient(800px 240px at 100% 0%, var(--teal-a06), transparent 45%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, var(--black-a35), transparent 80%);
  pointer-events: none;
}
.hero > * { position: relative;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--gold-a55); }
  70% { box-shadow: 0 0 0 7px var(--gold-a0); }
  100% { box-shadow: 0 0 0 0 var(--gold-a0); }
}
.hero h1 {
  margin: 0 0 var(--space-18);
  font-size: var(--fs-display);
  line-height: var(--leading-3xl);
  letter-spacing: -.03em;
  font-weight: 680;
}
.know { margin: 0;
}
.know h2 {
  margin: 0 0 var(--space-10);
  font-size: var(--fs-11); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); font-weight: 650;
}
.know ol {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: var(--space-10);
}
.know li {
  display: grid; grid-template-columns: 22px 1fr; gap: var(--space-10);
  font-size: var(--fs-14h); line-height: var(--leading-md); color: var(--text);
}
.know .n {
  width: 22px; height: 22px; margin-top: 1px;
  border-radius: var(--radius-circle);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: var(--fs-11); font-weight: 700;
  color: var(--gold-soft); background: var(--gold-dim);
}
.silence {
  margin: var(--space-16) 0 0;
  padding: var(--space-10) var(--space-12);
  border-left: 2px solid var(--line-strong);
  font-size: var(--fs-12h); color: var(--text-2); line-height: var(--leading-md);
}
.analytics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: var(--space-16) 0;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: var(--space-28);
  align-items: start;
  margin-top: var(--space-8);
}
.sidebar { position: sticky; top: calc(var(--header-h) + 12px);
}
.side-stack { display: flex; flex-direction: column; gap: var(--space-16);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--pad-story-panel);
  margin: 0 0 var(--space-16);
}
.panel-h {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-12); flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.panel-h h2 {
  margin: 0;
  font-size: var(--fs-13); font-weight: 650; letter-spacing: -.01em;
}
.panel-h p {
  margin: 0;
  font-size: var(--fs-11h); color: var(--text-3); line-height: var(--leading-lg);
}
.chart-wrap { position: relative; overflow: hidden;
}
.chart-wrap svg { display: block; width: 100%; height: auto;
}
.legend {
  display: flex; flex-wrap: wrap; gap: var(--space-8) var(--space-14);
  margin-top: var(--space-8);
  font-size: var(--fs-11); color: var(--text-2);
}
.legend span { display: inline-flex; align-items: center; gap: var(--space-6);
}
.legend i {
  width: 8px; height: 8px; border-radius: var(--radius-circle);
  background: var(--gold); display: inline-block;
}
.legend i.peak { background: var(--teal);
}
.legend i.vol { background: var(--blue); border-radius: var(--radius-2);
}
.race-list { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: 0;
}
.race-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: var(--space-10);
  align-items: center;
  padding: var(--pad-race-row);
  border-top: 1px solid var(--line);
}
.race-item:first-child { border-top: 0;
}
.race-pos {
  font-family: var(--mono); font-size: var(--fs-12); font-weight: 700; color: var(--text-3);
  text-align: center;
}
.race-item.first .race-pos { color: var(--gold);
}
.race-who { min-width: 0;
}
.race-who .nm {
  font-weight: 650; font-size: var(--fs-13h);
  display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap;
}
.race-who .hd { font-size: var(--fs-12); color: var(--text-3);
}
.race-meta {
  text-align: right; font-family: var(--mono);
  font-size: var(--fs-11h); color: var(--text-2); white-space: nowrap;
}
.race-meta .gap { display: block; color: var(--text-3); margin-top: var(--space-2);
}
.race-item.first .race-meta { color: var(--gold-soft);
}
.broke-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-9h); font-weight: 750; letter-spacing: .1em;
  color: var(--btn-on-gold); background: var(--gold);
  padding: var(--space-2) var(--space-6); border-radius: var(--radius-2); vertical-align: 1px;
}
.track {
  grid-column: 2 / -1;
  height: 5px;
  background: var(--bg);
  border-radius: var(--radius-full);
  position: relative;
  margin: 0 0 var(--space-2);
}
.track .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: var(--radius-full);
}
.race-item:not(.first) .track .fill {
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 20%, transparent), var(--blue));
}
.track .knob {
  position: absolute; top: 50%; width: 9px; height: 9px;
  border-radius: var(--radius-circle); background: var(--gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.race-item:not(.first) .track .knob { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim);
}
.race-note { margin: var(--space-12) 0 0; font-size: var(--fs-11h); color: var(--text-3); line-height: var(--leading-md);
}
.avatar {
  width: 36px; height: 36px; border-radius: var(--radius-circle); flex: none;
  display: grid; place-items: center;
  font-weight: 750; font-size: var(--fs-14); letter-spacing: .02em;
  color: var(--white);
}
.who .nm {
  font-weight: 650; font-size: var(--fs-14);
  display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap;
}
.who .hd { font-size: var(--fs-12h); color: var(--text-3);
}
.who .hd a { color: inherit;
}
.verified {
  display: inline-grid; place-items: center;
  width: 14px; height: 14px; border-radius: var(--radius-circle);
  background: var(--blue); color: var(--white); flex: none;
}
.verified.biz { background: var(--gold-deep);
}
.verified svg { width: 9px; height: 9px; display: block;
}
.excerpt {
  margin: var(--space-10) 0 0;
  font-size: var(--fs-14h); line-height: var(--leading-md); color: var(--text);
}
.note {
  margin: var(--space-6) 0 0;
  font-size: var(--fs-12); color: var(--text-3); line-height: var(--leading-sm);
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr;
  }
  .sidebar { position: static; display: none;
  }
  .analytics { grid-template-columns: repeat(2, 1fr);
  }
  .hero { padding: var(--pad-hero-card-sm); margin-top: var(--space-12);
  }
  .know li { font-size: var(--fs-14);
  }
}
@media (max-width: 420px) {
  .analytics { grid-template-columns: 1fr 1fr;
  }
  .race-meta { font-size: var(--fs-10h);
  }
}
.qualify {
  display: inline-flex; align-items: center; gap: var(--space-4);
  font-size: var(--fs-9h); font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  padding: var(--space-4) var(--space-8); border-radius: var(--radius-4);
  border: 1px solid var(--line-strong);
  color: var(--text-2); background: var(--bg);
  cursor: help;
}
.qualify.outlet { color: var(--text-2);
}
.qualify.voice { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); background: var(--blue-dim);
}
.chart-svg .axis, .chart-svg .day-label { fill: var(--text-3); font-family: var(--mono); font-size: var(--fs-11);
}
.chart-svg .bar { fill: var(--blue); opacity: .78;
}
.chart-svg .bar.peak { fill: var(--teal); opacity: 1;
}
.chart-svg .bar.has-event { fill: var(--gold-soft); opacity: .95;
}
.chart-svg .event-line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7;
}
.chart-svg .event-label { fill: var(--gold-soft); font-family: var(--font); font-size: var(--fs-10h); font-weight: 650;
}
.chart-svg .grid { stroke: var(--line); stroke-width: 1;
}
.chart-svg .night { fill: var(--grey-a04);
}
[data-theme="light"] .chart-svg .night { fill: var(--ink-a035);
}
.analytics .metric.wide { grid-column: span 2;
}
@media (max-width: 900px) {
  .analytics { grid-template-columns: 1fr 1fr;
  }
  .analytics .metric.wide { grid-column: 1 / -1;
  }
}
@media (min-width: 901px) {
  .analytics { grid-template-columns: 1.6fr 0.8fr 1.1fr 0.9fr 1fr;
  }
  .analytics .metric.wide { grid-column: auto;
  }
}
.layout, .panel, .hero, .analytics { min-width: 0; max-width: 100%;
}
.chart-wrap { overflow: hidden; max-width: 100%;
}
.chart-wrap svg { max-width: 100%; overflow: hidden;
}
.race-item { min-width: 0;
}
.race-meta { white-space: nowrap;
}
@media (max-width: 420px) {
  .race-item { grid-template-columns: 18px minmax(0, 1fr) auto; gap: var(--space-8);
  }
  .race-meta { font-size: var(--fs-10);
  }
}
.panel {
  transition:
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    border-color 200ms ease,
    opacity var(--motion-med) var(--ease-out);
}
@keyframes follow-pop {
  0%   { transform: scale(0.92); }
  55%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 var(--gold-a40); }
  50%      { transform: scale(1.18); opacity: .8; box-shadow: 0 0 0 6px var(--gold-a0); }
}
@keyframes ticker {
  0%   { transform: translateX(var(--ticker-inset)); }
  100% { transform: translateX(calc(-50% + var(--ticker-inset))); }
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
html.js .chart-svg:not(.is-in) .bar {
  transform: scaleY(0);
  transform-origin: center bottom;
  transform-box: fill-box;
}
html.js .chart-svg.is-in .bar {
  transform: scaleY(1);
  transition: transform 480ms var(--ease-out) var(--bar-delay);
}
html.js .chart-svg:not(.is-in) .event-line, html.js .chart-svg:not(.is-in) .event-label { opacity: 0;
}
html.js .chart-svg.is-in .event-line, html.js .chart-svg.is-in .event-label {
  opacity: .95;
  transition: opacity 480ms var(--ease-out) 280ms;
}
html.js .race-item .fill {
  transform: scaleX(0);
  transform-origin: left center;
}
html.js .race-item.is-in .fill {
  transform: scaleX(1);
  transition: transform 560ms var(--ease-out) var(--race-delay);
}
html.js .race-item .knob { opacity: 0;
}
html.js .race-item.is-in .knob {
  opacity: 1;
  transition: opacity 360ms var(--ease-out) calc(var(--race-delay) + 220ms);
}
.race-meta, .race-pos {
  font-variant-numeric: tabular-nums lining-nums;
}
.race-who, .race-item, .panel {
  min-width: 0;
}
.excerpt, .know li {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (prefers-reduced-motion: reduce) {
  html.js .chart-svg:not(.is-in) .bar, html.js .race-item .fill, html.js .race-item .knob, html.js .chart-svg:not(.is-in) .event-line, html.js .chart-svg:not(.is-in) .event-label {
    opacity: 1 !important;
    transform: none !important;
  }
}
.analytics, .layout {
  max-width: 100%;
}

/* ======================================================================
   System extensions (BreakingOnX components not in the mockups, plus the
   saved layout rules). Tokens only. See DESIGN.md › Components.
   ====================================================================== */

/* ---- Follow button: label states (v2 pill, text only) ---- */
.follow-btn .lbl-on,
.follow-btn .lbl-unfollow { display: none; }
.follow-btn[aria-pressed="true"] .lbl-off { display: none; }
.follow-btn[aria-pressed="true"] .lbl-on { display: inline; }
.follow-btn[aria-pressed="true"]:hover .lbl-on { display: none; }
.follow-btn[aria-pressed="true"]:hover .lbl-unfollow { display: inline; }

/* ---- Chips: one row that scrolls sideways on phones (never wraps) ---- */
.filters,
.timeline-order {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
@media (max-width: 760px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    mask-image: linear-gradient(90deg, var(--black) 0, var(--black) calc(100% - var(--space-18)), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, var(--black) 0, var(--black) calc(100% - var(--space-18)), transparent 100%);
  }
}
.timeline-tools { display: flex; align-items: center; gap: var(--space-8); min-width: 0; }
.timeline-tools .filters { flex: 1 1 auto; margin: 0; padding-bottom: 0; min-width: 0; }
.timeline-tools .timeline-order { flex: none; margin: 0; padding-bottom: 0; mask-image: none; -webkit-mask-image: none; }

/* ---- Avatars (12-step palette, no inline styles) ---- */
.av-0 { background: var(--avatar-0); }  .av-1 { background: var(--avatar-1); }
.av-2 { background: var(--avatar-2); }  .av-3 { background: var(--avatar-3); }
.av-4 { background: var(--avatar-4); }  .av-5 { background: var(--avatar-5); }
.av-6 { background: var(--avatar-6); }  .av-7 { background: var(--avatar-7); }
.av-8 { background: var(--avatar-8); }  .av-9 { background: var(--avatar-9); }
.av-10 { background: var(--avatar-10); } .av-11 { background: var(--avatar-11); }

/* ---- Vertical rhythm: one gap token between blocks, no stray margins ---- */
#main > .container:not(.legal) {
  display: flex;
  flex-direction: column;
  gap: var(--rhythm-section);
}
#main > .container:not(.legal) > *,
.layout > .main-col > *,
.side-stack > * { margin-block: 0; }
.layout { gap: var(--layout-gap); align-items: start; margin: 0; }
.layout > .main-col { display: flex; flex-direction: column; gap: var(--rhythm-section); min-width: 0; }
.side-stack { display: flex; flex-direction: column; gap: var(--rhythm-section); }
.sidebar { position: sticky; top: calc(var(--header-h) + var(--rhythm-section)); align-self: start; }
.card-stack { display: flex; flex-direction: column; gap: var(--rhythm-section); }

/* ---- Story hero: two columns from tablet up. Text keeps a readable
   measure on the left; the stat grid (broke first, posts, reach, peak hour)
   fills the right. One column below --bp-hero. No blank half-card. ---- */
.article.hero .hero-body { display: flex; flex-direction: column; gap: var(--space-18); min-width: 0; }
.article.hero .hero-main { min-width: 0; }
.article.hero .hero-main > :last-child { margin-bottom: 0; }
.article.hero .lede,
.article.hero .silence,
.article.hero .know,
.article.hero .know ol,
.article.hero .know li > div { max-width: none; }
.article.hero h1 { max-width: none; }
.hero-stats.analytics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  margin: 0;
}
.hero-stats .metric { margin: 0; min-width: 0; }
.hero-stats .metric.wide { grid-column: 1 / -1; }
.hero-stats .metric:last-child:nth-child(even) { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .article.hero .hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--hero-aside-w);
    gap: var(--space-32);
    align-items: start;
  }
}
@media (max-width: 420px) {
  .hero-stats.analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Sidebar: More live stories ---- */
.side-more { display: flex; flex-direction: column; gap: var(--rhythm-block); }
.side-more .card-title { margin: 0; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-item + .side-item { border-top: 1px solid var(--line); }
.side-item a {
  display: flex; flex-direction: column; gap: var(--rhythm-hair);
  padding-block: var(--space-10);
  color: var(--text); text-decoration: none;
}
.side-item:first-child a { padding-top: 0; }
.side-item:last-child a { padding-bottom: 0; }
.side-kicker { display: flex; align-items: center; gap: var(--space-6); }
.side-title { font-size: var(--fs-13h); font-weight: 650; line-height: var(--leading-xs); letter-spacing: -0.01em; }
.side-item a:hover .side-title { color: var(--gold-soft); }
.side-time { font-size: var(--fs-11); color: var(--text-3); }

/* ---- Your stories ---- */
.your-card { display: flex; flex-direction: column; gap: var(--rhythm-hair); }
.your-card h3 { margin: 0; }
.your-card .sub { margin: 0; font-size: var(--fs-11h); color: var(--text-3); }

/* ---- Modals (auth, follow, settings) ---- */
.auth-card {
  display: flex; flex-direction: column; gap: var(--rhythm-block);
  padding: var(--pad-modal);
  width: min(var(--modal-w), 100%);
}
.auth-card > * { margin: 0; }
.auth-card h2 { font-size: var(--fs-18); line-height: var(--leading-xl); }
.auth-card form,
.settings-form { display: flex; flex-direction: column; gap: var(--rhythm-block); margin: 0; }
.auth-card .hint { margin: 0; font-size: var(--fs-12h); color: var(--text-3); line-height: var(--leading-sm); }
.auth-card label[hidden] { display: none; }
.set-field { display: flex; flex-direction: column; gap: var(--space-6); }
.set-label { font-size: var(--fs-12); font-weight: 600; color: var(--text-2); }
.set-check,
.auth-card label:has(> input[type="checkbox"]) {
  display: flex; align-items: center; gap: var(--space-8);
  min-height: var(--btn-h-sm);
  font-size: var(--fs-13h); color: var(--text-2); cursor: pointer;
}
.auth-card input[type="checkbox"] {
  appearance: auto;
  width: var(--icon-sm); height: var(--icon-sm);
  margin: 0; padding: 0; flex: none;
  accent-color: var(--gold);
}
.set-actions {
  display: flex; justify-content: flex-end; gap: var(--space-8);
  padding-top: var(--space-4);
}
@media (max-width: 480px) {
  .auth-card { padding: var(--pad-modal-sm); }
}

/* ---- Toast ---- */
.box-toast {
  position: fixed; bottom: var(--space-24); left: 50%; transform: translateX(-50%);
  z-index: 90;
  max-width: min(440px, calc(100vw - 2 * var(--space-16)));
  padding: var(--space-10) var(--space-16);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-8);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: var(--fs-13h);
  text-align: center;
}
.box-toast[hidden] { display: none; }

/* ---- Style guide helpers ---- */
.sg-field-narrow { max-width: 16rem; }
.sg-field-wide { max-width: 32rem; }
.sg-scroll { overflow-x: auto; }
.styleguide > .sec { display: flex; flex-direction: column; gap: var(--rhythm-block); }
.styleguide > .sec > * { margin: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-12h); }
.spec-table th,
.spec-table td { padding: var(--space-6) var(--space-8); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { color: var(--text-3); font-weight: 650; font-size: var(--fs-11); letter-spacing: .08em; text-transform: uppercase; }
.spec-table code { font-family: var(--mono); font-size: var(--fs-11h); color: var(--text-2); }

/* ---- Global: the hidden attribute always hides (beats component display) ---- */
[hidden] { display: none !important; }

/* ---- Grids fill their row: no empty columns beside the last card ---- */
.story-grid,
.hub-row,
.your-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* ---- Legacy resets: properties v2 leaves at their defaults ----
   site.css/system.css sit in lower layers; where they set a property v2
   never sets, put it back to the v2 default here. */
.filters,
.timeline-order {
  background: none;
  border: 0;
  border-radius: 0;
}
.chip { display: block; gap: normal; line-height: normal; letter-spacing: normal; height: auto; min-height: 0; }
.chip .c { display: inline; line-height: normal; }
.status,
.cat-pill { line-height: var(--leading-md); }
.status { height: auto; }
.ticker-item { line-height: var(--leading-snug); }
.metric { display: block; gap: normal; }
.auth-btn,
.follow-btn,
.icon-btn,
.search-box input,
.nl-row input { line-height: normal; letter-spacing: normal; }
.icon-btn { padding: 0; font-weight: 400; }
.catchup,
.hub-card,
.archive-card,
.advertise,
.nl,
.cta { display: block; gap: normal; }
.story-card,
.hero-card { gap: normal; }
.sec-h { line-height: var(--leading-md); }
.cat-pill,
.tag { padding: var(--tag-py) var(--tag-px); }
.nl-row input[type="email"] { padding: var(--field-py) var(--field-px); height: auto; min-height: 0; }
.archive-card .search-archive { margin: var(--space-12) 0 var(--space-14); }
.duo > .nl,
.duo > .cta { margin: 0; height: 100%; }

/* ---- Saved decisions on top of v2: one gutter for header, ticker, main
   and footer; ticker 40/36; header lockup 30/28 (mark-only on phones) ---- */
.ticker.container {
  padding-inline: var(--gutter);
  height: var(--ticker-h);
  min-height: var(--ticker-h);
}
.ticker-label { left: var(--gutter); top: 0; bottom: 0; padding-block: 0; line-height: var(--leading-none); }
.ticker-track,
.ticker-move { height: 100%; min-height: 0; }
.ticker-track { display: flex; align-items: center; }
.ticker-item { height: 100%; }
.page-foot { max-width: none; margin: var(--space-28) 0 0; padding: 0; }
.page-foot > .container { padding: var(--space-24) var(--gutter) var(--space-8); }
.site-header .brand svg.brand-lockup { height: var(--lockup-h); }

/* ---- Baseline detailing: header controls and input icons ----
   One control height (--ctl-h 36) across the header; glyphs sized per control;
   the field icon sits at a fixed inset and text starts after it; everything
   vertically centred. The search toggle exists only where the bar is hidden. */
.icon-btn {
  width: var(--ctl-h); height: var(--ctl-h);
  display: inline-grid; place-items: center;
  flex: none;
}
.icon-btn svg { width: var(--icon-glyph-md); height: var(--icon-glyph-md); }
.site-header .auth-btn { min-height: var(--ctl-h); height: var(--ctl-h); }
.account-btn .account-ava {
  display: inline-grid; place-items: center;
  width: var(--icon-glyph-lg); height: var(--icon-glyph-lg);
  font-size: var(--fs-12); font-weight: 700; line-height: var(--leading-none);
}
.search-box svg {
  left: var(--input-icon-inset);
  width: var(--input-icon); height: var(--input-icon);
  top: 50%; transform: translateY(-50%);
}
.search-box input {
  height: var(--ctl-h);
  padding-block: 0;
  padding-left: var(--input-icon-pad);
  line-height: normal;
}

/* ---- Story hero stat grid: values and notes wrap, never clip ---- */
.hero-stats .metric .sub,
.hero-stats .metric .value { white-space: normal; overflow-wrap: anywhere; }

/* ---- Your stories strip (home). One row, ~46px, inside the catch-up
   section; only rendered when signed in with at least one follow. ---- */
.catchup.is-following {
  display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: var(--space-12);
  padding: var(--space-6) var(--space-12) var(--space-6) var(--space-14);
  min-width: 0;
}
.catchup.is-following .sec-h { margin: 0; flex: none; width: auto; white-space: nowrap; }
.catchup.is-following .sec-h::after { display: none; }
.follow-strip { display: flex; align-items: center; gap: var(--space-8); flex: 1 1 0; min-width: 0; }
.follow-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--chip-gap); flex: 1 1 0; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  mask-image: linear-gradient(90deg, var(--black) 0, var(--black) calc(100% - var(--space-18)), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, var(--black) 0, var(--black) calc(100% - var(--space-18)), transparent 100%);
}
.follow-chips::-webkit-scrollbar { display: none; }
.follow-chips li { flex: none; }
.follow-chip {
  display: inline-flex; align-items: center; gap: var(--space-6);
  max-width: var(--strip-chip-max);
  height: var(--btn-h-sm);
  padding: 0 var(--chip-px);
  border: 1px solid var(--line); border-radius: var(--chip-radius);
  background: var(--surface);
  color: var(--text); font-size: var(--chip-fs); font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.follow-chip:hover { border-color: var(--line-strong); background: var(--surface-2); text-decoration: none; }
.fc-dot { width: var(--dot); height: var(--dot); border-radius: var(--radius-circle); background: var(--text-3); flex: none; }
.fc-dot.live { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.fc-dot.developing { background: var(--gold-soft); }
.fc-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fc-time { flex: none; font-family: var(--mono); font-weight: 500; font-size: var(--fs-11); color: var(--text-3); }
.fc-new {
  flex: none; padding: 0 var(--space-6); border-radius: var(--radius-full);
  background: var(--gold); color: var(--btn-on-gold);
  font-size: var(--fs-10h); font-weight: 700; line-height: var(--leading-md);
}
.see-all { flex: none; font-size: var(--fs-12); font-weight: 650; white-space: nowrap; padding: 0 var(--space-6); }
@media (max-width: 480px) {
  .catchup.is-following { padding-left: var(--space-12); gap: var(--space-8); }
  .catchup.is-following .sec-h { display: none; }
  .fc-time { display: none; }
}

/* ---- Account menu (v2): compact items, token padding, hover ---- */
.account-wrap { position: relative; }
.account-btn { border-radius: var(--radius-circle); background: var(--gold-dim); border-color: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--gold-soft); }
.account-btn:hover { border-color: var(--gold); color: var(--gold-soft); }
.account-menu {
  position: absolute; right: 0; top: calc(100% + var(--space-8)); z-index: 80;
  width: var(--menu-w);
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-6);
  background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: var(--radius-12);
  box-shadow: var(--shadow);
}
.account-email {
  margin: 0; padding: var(--space-6) var(--space-10) var(--space-8);
  font-size: var(--fs-12); color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-item {
  appearance: none; display: flex; align-items: center; width: 100%;
  min-height: var(--menu-item-h); padding: 0 var(--space-10);
  border: 0; border-radius: var(--radius-8); background: none;
  color: var(--text-2); font-size: var(--fs-13); font-weight: 500; line-height: var(--leading-md);
  text-align: left; text-decoration: none; cursor: pointer;
}
.account-item:hover, .account-item:focus-visible { background: var(--surface-2); color: var(--text); text-decoration: none; outline: none; }
.account-item.danger { color: var(--rose); }
.account-item.danger:hover, .account-item.danger:focus-visible { background: var(--rose-dim); color: var(--rose); }
.account-sep { margin: var(--space-4) var(--space-6); border: 0; border-top: 1px solid var(--line); }

/* ---- Danger button and confirm dialog ---- */
.btn-danger { background: var(--rose); border-color: var(--rose); color: var(--btn-on-gold); }
.btn-danger:hover { filter: brightness(1.06); color: var(--btn-on-gold); text-decoration: none; }
.btn-danger:disabled { opacity: .45; cursor: not-allowed; }
.confirm-modal .error, .auth-card .error { margin: 0; color: var(--rose); font-size: var(--fs-12h); }

/* ---- Account page: Your stories ---- */
.account-page .page-head { display: flex; flex-direction: column; gap: var(--space-6); }
.account-page .page-head h1 { margin: 0; font-size: var(--fs-title); line-height: var(--leading-2xl); }
.account-page .page-head .lede { margin: 0; color: var(--text-2); font-size: var(--fs-14h); }
.account-stories { padding: var(--pad-box); }
.follow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.follow-row {
  display: flex; align-items: center; gap: var(--space-12);
  padding-block: var(--space-12);
}
.follow-row + .follow-row { border-top: 1px solid var(--line); }
.follow-row:first-child { padding-top: 0; }
.follow-row:last-child { padding-bottom: 0; }
.follow-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.follow-title { color: var(--text); font-size: var(--fs-15); font-weight: 650; line-height: var(--leading-xl); }
.follow-title:hover { color: var(--gold-soft); text-decoration: none; }
.follow-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); font-size: var(--fs-12); color: var(--text-3); }
.follow-row .btn { flex: none; }
.empty-block { display: flex; flex-direction: column; gap: var(--space-8); align-items: flex-start; }
.empty-block h2 { margin: 0; font-size: var(--fs-16); }
.empty-block p { margin: 0; color: var(--text-2); font-size: var(--fs-13h); }
.empty-block .card-actions { margin-top: var(--space-4); display: flex; gap: var(--space-8); flex-wrap: wrap; }

/* Overrides of v2 list/grid defaults for the strip (v2 .catchup ul/li are a news list) */
.catchup .follow-chips { display: flex; flex-direction: row; margin: 0; gap: var(--chip-gap); }
.catchup .follow-chips li { display: block; padding: 0; border: 0; margin: 0; }
.catchup .follow-chips li a { font-weight: 600; }

/* No duplicate controls: the search toggle exists only where the search bar is hidden (<=800px) */
.site-header .search-toggle { display: none; }
@media (max-width: 800px) {
  .site-header .search-toggle { display: inline-grid; }
}

/* Saved decision over v2: Follow stays top-right on phones (v2 stacks it) */
.hero-top { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; }
.hero-top > .kicker { flex: 1 1 auto; min-width: 0; }

/* ---- Page inset: the first block never touches the header or ticker ---- */
#main > .container { padding-top: var(--rhythm-section); padding-bottom: var(--space-8); }

/* ---- Hub card: text + action. A lone hub at desktop is one row, action on
   the right edge, so the full-width card never has a blank right half. ---- */
.hub-card { display: flex; flex-direction: column; gap: var(--space-12); }
.hub-card .hub-text p:last-child { margin-bottom: 0; }
.hub-card .hub-open { align-self: flex-start; }
@media (min-width: 900px) {
  .hub-row > .hub-card:only-child { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-32); }
  .hub-row > .hub-card:only-child .hub-open { align-self: center; flex: none; }
}

/* Styleguide: static specimen of the account menu */
.account-menu.sg-static { position: static; display: block; }
.sg-row.sg-top { align-items: flex-start; }

/* Times inside stat cells may wrap; a nowrap time must never spill out of its cell */
.metric time, .hero-stats time, .hero-metrics time { white-space: normal; min-width: 0; }

/* ==== Contributors ==================================================== */
.x-tick { color: var(--gold); vertical-align: middle; margin-left: var(--space-4); flex: none; }
.badge-first, .badge-early {
  display: inline-flex; align-items: center; padding: var(--tag-py) var(--tag-px);
  border-radius: var(--radius-full); font: 700 var(--fs-10)/var(--leading-none) var(--mono);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.badge-first { color: var(--btn-on-gold); background: var(--gold); }
.badge-early { color: var(--teal); background: var(--teal-dim); }

/* Story hero: Tipped by (last cell of the stat grid, so it never shifts the text) */
.tip-credits .tc-row { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-6); }
.tip-credit {
  display: inline-flex; align-items: center; gap: var(--space-6); min-height: var(--space-28);
  padding: var(--space-4) var(--space-10); border: 1px solid var(--line); border-radius: var(--radius-full);
  background: var(--surface-2); color: var(--text); font-size: var(--fs-12h); font-weight: 600; text-decoration: none;
}
.tip-credit:hover { border-color: var(--gold-a55); color: var(--text); text-decoration: none; }
.tip-credit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tc-more { align-self: center; color: var(--text-3); font-size: var(--fs-12); }

/* Home: Top tipsters inside the Tag us card */
.tipsters { margin-top: var(--space-16); padding-top: var(--space-14); border-top: 1px solid var(--line); }
.tipsters-h { margin: 0 0 var(--space-8); font: 700 var(--fs-10h)/var(--leading-none) var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.tipsters-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.tipster {
  display: grid; grid-template-columns: var(--space-20) minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-10);
  min-height: var(--menu-item-h); padding: 0 var(--space-8); border-radius: var(--radius-8); color: var(--text); text-decoration: none; font-size: var(--fs-13h);
}
.tipster:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.tipster:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.t-rank { font: 700 var(--fs-12)/var(--leading-none) var(--mono); color: var(--gold); }
.t-name { display: inline-flex; align-items: center; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-level { color: var(--text-3); font-size: var(--fs-12); }
.t-pts { font: 600 var(--fs-12)/var(--leading-none) var(--mono); color: var(--text-2); }

/* Profile and Contributions */
.contrib-page { min-height: 60vh; }
.contrib-page.is-loading::before { content: ""; display: block; height: var(--space-96); border-radius: var(--radius-12); background: var(--surface); }
.contrib-head { display: flex; align-items: center; gap: var(--space-16); }
.contrib-head h1, .contrib-own-head h2 { display: flex; align-items: center; margin: 0; }
.contrib-head .lede { margin: var(--space-6) 0 0; }
.c-ava {
  flex: none; display: grid; place-items: center; width: var(--ava-lg); height: var(--ava-lg); border-radius: var(--radius-full);
  background: var(--gold-dim); border: 1px solid var(--gold-a40); color: var(--gold); font-size: var(--fs-24); font-weight: 700;
}
.contrib-own-head .c-ava { width: var(--ctl-h); height: var(--ctl-h); font-size: var(--fs-16); }
.contrib-own-head { display: flex; align-items: center; gap: var(--space-12); }
.contrib-own-head .c-id { flex: 1 1 auto; min-width: 0; }
.contrib-own-head .c-id p { margin: var(--space-4) 0 0; }
.lvl-chip {
  display: inline-flex; align-items: center; padding: var(--tag-py) var(--space-10); border-radius: var(--radius-full);
  border: 1px solid var(--gold-a55); background: var(--gold-dim); color: var(--gold); font: 700 var(--fs-11)/var(--leading-none) var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
}
.contrib-summary, .contrib-tips, .contrib-share, .claim-card, .contributions { padding: var(--pad-box); display: flex; flex-direction: column; gap: var(--space-14); }
.c-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--stat-min), 1fr)); gap: var(--space-8); margin: 0; }
.c-stat { padding: var(--pad-stat); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--surface-2); }
.c-stat dt { font: 700 var(--fs-10)/var(--leading-none) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.c-stat dd { margin: var(--space-6) 0 0; font: 700 var(--fs-20)/var(--leading-none) var(--mono); color: var(--text); }
.lvl-progress { display: flex; flex-direction: column; gap: var(--space-6); }
.lvl-row { display: flex; justify-content: space-between; gap: var(--space-12); font-size: var(--fs-13h); font-weight: 650; }
.lvl-row .muted, .muted { color: var(--text-3); font-weight: 500; }
.bar { position: relative; height: var(--bar-h); border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--radius-full); background: var(--gold); }
.c-badges { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-6); margin: 0; padding: 0; }
.c-badge {
  padding: var(--space-4) var(--space-10); border-radius: var(--radius-full); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text-2); font-size: var(--fs-12); font-weight: 600;
}
.c-badge.b-first { color: var(--btn-on-gold); background: var(--gold); border-color: var(--gold); }
.c-badge.b-verified { color: var(--gold); border-color: var(--gold-a55); }
.tip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tip-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: var(--space-12) 0; border-top: 1px solid var(--line); }
.tip-row:first-child { border-top: 0; padding-top: 0; }
.tip-info { min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.tip-title { color: var(--text); font-size: var(--fs-14); font-weight: 650; line-height: var(--leading-snug); }
.tip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); font-size: var(--fs-12); color: var(--text-3); }
.tip-status { font: 700 var(--fs-10h)/var(--leading-none) var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.tip-status.s-verified { color: var(--gold); }
.tip-status.s-pending { color: var(--text-2); }
.tip-status.s-rejected { color: var(--text-3); }
.tip-status.s-debunked { color: var(--rose); }
.tip-reason { color: var(--text-2); }
.tip-pts { flex: none; font: 700 var(--fs-13)/var(--leading-none) var(--mono); color: var(--text-2); }
.share-card { display: flex; flex-direction: column; gap: var(--space-12); align-items: flex-start; }
.badge-img { display: block; width: 100%; max-width: var(--share-w); height: auto; border-radius: var(--radius-12); border: 1px solid var(--line); }
.claim-card { border-color: var(--gold-a40); background: var(--surface); }
.claim-card h2 { margin: 0; font-size: var(--fs-18); }
.claim-card p { margin: 0; color: var(--text-2); }
.claim-card.is-step { box-shadow: 0 0 0 1px var(--gold-a40); }
.step-k { font: 700 var(--fs-10h)/var(--leading-none) var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold) !important; }
.empty-tip { margin: 0; color: var(--text-2); }
.account-tabs { margin: 0; }
.mock-x { max-width: var(--panel-w); margin: var(--space-48) auto; padding: var(--pad-modal); display: flex; flex-direction: column; gap: var(--space-12); }
.mock-x-form { display: flex; flex-direction: column; gap: var(--space-8); }
@media (max-width: 640px) {
  .contrib-head { align-items: flex-start; }
  .tipster { grid-template-columns: var(--space-20) minmax(0, 1fr) auto; }
  .t-level { display: none; }
  .tip-row { align-items: flex-start; }
}
.contrib-own-head { flex-wrap: wrap; }
.contrib-own-head .c-id p { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); }
.contrib-own-head #x-disconnect { margin-left: auto; }
@media (max-width: 480px) {
  .contrib-own-head #x-disconnect { order: 3; margin-left: 0; }
  .contrib-own-head .c-id { flex-basis: calc(100% - var(--ctl-h) - var(--space-12)); }
}

/* ==== Sponsored units ===================================================
   Every unit says Sponsored, has a fixed size when filled and takes no space
   when empty ([hidden]). Density rules live in DESIGN.md and contrib.js. */
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-12); min-width: 0; }
.title-row > h2 { min-width: 0; }
.sp-line {
  flex: 0 1 auto; max-width: var(--sponsor-line-max); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-3); font-size: var(--fs-12); line-height: var(--leading-none);
}
.sp-line a { color: var(--text-2); font-weight: 650; text-decoration: none; }
.sp-line a:hover { color: var(--text); text-decoration: underline; }
.sp-line a:focus-visible, .sponsor-unit a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-4); }
.sp-flag {
  display: inline-block; margin-right: var(--space-6); font: 700 var(--fs-10)/var(--leading-none) var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.sponsor-unit {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8);
  height: var(--sponsor-h); padding: var(--pad-box); overflow: hidden; box-sizing: border-box;
}
.sponsor-unit[hidden] { display: none; }
.sponsor-unit .sp-head { display: flex; align-items: center; gap: var(--space-10); min-width: 0; }
.sponsor-unit .sp-logo {
  flex: none; display: grid; place-items: center; width: var(--ctl-h); height: var(--ctl-h); border-radius: var(--radius-8);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--gold); font-weight: 700; font-size: var(--fs-16); object-fit: contain;
}
.sponsor-unit .sp-brand { margin: 0; font-size: var(--fs-15); font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-unit .sp-tag {
  margin: 0; color: var(--text-2); font-size: var(--fs-13h); line-height: var(--leading-snug);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sponsor-unit .sp-cta { align-self: flex-start; }
.sponsor-native { border-style: dashed; }
/* in the grid the row height is set by the story cards, so filling it never moves them */
.story-grid > .sponsor-native { height: auto; min-height: var(--sponsor-h); }
.title-row > .sp-line { flex: none; }
.share-sponsor { max-width: none; }
@media (max-width: 600px) { .title-row .sp-label { display: none; } }

/* Advertise: rate card and enquiry form */
.table-wrap { overflow-x: auto; }
.rate-card { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.rate-card th, .rate-card td { padding: var(--space-10) var(--space-12); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rate-card thead th { font: 700 var(--fs-10h)/var(--leading-none) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.rate-card td.num { white-space: nowrap; font-family: var(--mono); color: var(--text); }
.rate-card .sub { color: var(--text-3); font-family: inherit; font-size: var(--fs-12); }
.adv-form { display: flex; flex-direction: column; gap: var(--space-14); padding: var(--pad-box); }
.adv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--stat-min), 1fr)); gap: var(--space-14); }
.adv-field { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; font-size: var(--fs-13h); font-weight: 650; color: var(--text-2); }
.adv-field small { font-weight: 400; color: var(--text-3); }
.adv-field textarea.field { height: auto; min-height: var(--space-96); padding: var(--space-10) var(--space-12); line-height: var(--leading-snug); resize: vertical; }
.hp { display: none; }
.form-msg { margin: 0; min-height: var(--space-20); font-size: var(--fs-13h); color: var(--text-2); }
.form-msg.is-error { color: var(--rose); }
.form-msg.is-ok { color: var(--teal); }
@media (max-width: 600px) {
  .rate-card thead { display: none; }
  .rate-card tr { display: block; padding: var(--space-10) 0; border-bottom: 1px solid var(--line); }
  .rate-card th, .rate-card td { display: block; padding: var(--space-2) 0; border: 0; }
  .adv-row { grid-template-columns: minmax(0, 1fr); }
}

/* Admin */
.adm-list { display: flex; flex-direction: column; gap: var(--space-10); }
.adm-item { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--pad-stat); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--surface-2); }
.adm-item p { margin: 0; font-size: var(--fs-13h); color: var(--text-2); overflow-wrap: anywhere; }
.adm-item .card-actions { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0; }
.adm-status { font: 700 var(--fs-10)/var(--leading-none) var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
/* Story side column: the sticky sidebar travels inside .side-track only, so it
   never overlaps the sponsor card, which sits at the column foot and scrolls
   with the page (no sticky ads, no shift above it). On phones the sidebar is
   hidden and the card follows the main column. */
.layout > .side-col { display: flex; flex-direction: column; gap: var(--rhythm-section); align-self: stretch; min-width: 0; }
.side-track { flex: 1 1 auto; min-width: 0; }

/* Styled selects get a drawn chevron (appearance: none removes the native one). */
select.field, .settings-modal select {
  padding-right: var(--space-32);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - var(--space-18)) 50%, calc(100% - var(--space-12)) 50%;
  background-size: var(--space-6) var(--space-6), var(--space-6) var(--space-6);
  background-repeat: no-repeat;
}
.adv-form .field { background-color: var(--surface); border-color: var(--line); }


/* Self-serve catalog, checkout and sponsor dashboard */
.sp-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-14); margin: 0 0 var(--space-16); }
.sp-start { max-width: var(--menu-w); }
.sp-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--sp-pick-min), 1fr)); gap: var(--space-10); margin: 0 0 var(--space-16); }
.sp-pick {
  display: flex; align-items: flex-start; gap: var(--space-10);
  margin: 0; padding: var(--pad-offer); border: 1px solid var(--line); border-radius: var(--radius-8);
  background: var(--surface-2); cursor: pointer;
}
.sp-pick.is-on { border-color: var(--gold); background: var(--surface); }
.sp-pick.is-full { cursor: not-allowed; color: var(--text-3); }
.sp-pick input { flex: none; margin: var(--space-4) 0 0; }
.sp-pick-body { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; flex: 1; }
.sp-pick-kicker { font: 700 var(--fs-10)/var(--leading-none) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.sp-pick strong { font-size: var(--fs-14); font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.sp-pick-meta { font-size: var(--fs-12); color: var(--text-3); overflow-wrap: anywhere; }
.sp-pick-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-8); margin-top: var(--space-6); }
.sp-pick-price { font-family: var(--mono); font-size: var(--fs-14); color: var(--text); }
.sp-pick-price .sub { color: var(--text-3); font-size: var(--fs-12); }
.sp-avail { font-size: var(--fs-12); color: var(--text-2); }
.sp-total { margin: 0; font-size: var(--fs-15); font-weight: 650; color: var(--text); }
.sp-booking { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--pad-stat); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--surface-2); }
.sp-booking p { margin: 0; font-size: var(--fs-13h); color: var(--text-2); overflow-wrap: anywhere; }
.sp-signin { padding: var(--pad-box); display: flex; flex-direction: column; gap: var(--space-12); }
.sp-signin h3 { margin: 0; font-size: var(--fs-16); font-weight: 650; }
.sp-rev { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--stat-min), 1fr)); gap: var(--space-10); margin: 0 0 var(--space-16); }
.sp-rev p { margin: 0; padding: var(--pad-stat); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--surface-2); font-size: var(--fs-13h); color: var(--text-2); }
.sp-rev strong { display: block; font: 700 var(--fs-10)/var(--leading-none) var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--space-6); }
@media (max-width: 600px) {
  .sp-toolbar { flex-direction: column; align-items: stretch; }
  .sp-start { max-width: none; }
}

/* Crowd updates: one quiet ghost button under the timeline, a modal reusing
   .auth-card, and a gold "Tipped by" chip on accepted crowd finds. */
.tip-cta { display: flex; justify-content: center; margin: var(--space-12) 0 0; }
.tip-cta .tip-open { color: var(--text-3); }
.tip-cta .tip-open:hover, .tip-cta .tip-open:focus-visible { color: var(--text); }
.tip-modal .auth-form .set-label { font-size: var(--fs-12); color: var(--text-2); }
.badge-tip { background: var(--gold-dim); color: var(--gold-soft); text-decoration: none; }
.badge-tip:hover, .badge-tip:focus-visible { text-decoration: underline; }

/* Countries: home chips (links to static /country/<slug>/ pages, shown only for countries with
   3+ live stories), linked country pills in the story meta, and the country page head. */
.country-chips { margin-top: calc(-1 * var(--space-4)); }
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
a.chip:focus-visible, a.country-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a.country-pill { text-decoration: none; color: var(--text-2); transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
a.country-pill:hover { color: var(--text); border-color: var(--line-strong); }
.country-page .page-head { display: flex; flex-direction: column; gap: var(--space-6); margin: 0 0 var(--space-12); }
.country-page .page-head h1 { margin: 0; font-size: var(--fs-title); line-height: var(--leading-2xl); }
.country-page .page-head .lede { margin: 0; color: var(--text-2); font-size: var(--fs-14h); max-width: 62ch; }
.country-page .page-head .kicker a { text-decoration: none; }

/* Admin discovery queue: one card per candidate with the evidence, editable title and dek,
   and approve / merge / reject. Private; never rendered for non-admins. */
.disc-item .disc-meta { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
.disc-item .disc-why { color: var(--text); font-weight: 600; }
.disc-src { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.disc-src li { font-size: var(--fs-12h); line-height: var(--leading-snug); color: var(--text-2); overflow-wrap: anywhere; }
.disc-src li strong { color: var(--text); font-weight: 650; }
.disc-src .dim { color: var(--text-3); }
.disc-edit { display: grid; gap: var(--space-6); }
.disc-edit label { display: grid; gap: var(--space-4); font-size: var(--fs-11h); font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.disc-edit .field { width: 100%; min-width: 0; font-size: var(--fs-13h); text-transform: none; letter-spacing: normal; font-weight: 500; color: var(--text); }
.disc-edit textarea.field { min-height: var(--space-64); resize: vertical; line-height: var(--leading-snug); padding: var(--space-8) var(--space-10); height: auto; }
.disc-merge { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: center; min-width: 0; }
.disc-merge select.field { flex: 1 1 var(--space-96); min-width: 0; max-width: 100%; }
.disc-recent p { font-size: var(--fs-12h); }

/* Banner units: exact IAB/custom boxes only when a slot is filled. Unfilled hooks are removed. */
.sp-banner { display: block; margin: 0; max-width: 100%; }
.sp-banner .sp-flag {
  display: inline-block; margin: 0 0 var(--space-6);
  font: 700 var(--fs-10)/var(--leading-none) var(--mono);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3);
}
.sp-banner-link { display: block; line-height: var(--lh-flush); width: fit-content; max-width: 100%; }
.sp-banner img { display: block; max-width: 100%; height: auto; background: var(--surface-2); }
.sp-banner .sp-mob { display: none; }
.sp-banner.sp-d-300-250 { width: var(--sp-300-250-w); }
.sp-banner.sp-d-300-250 .sp-desk { width: var(--sp-300-250-w); height: var(--sp-300-250-h); }
.sp-banner.sp-d-336-280 { width: var(--sp-336-280-w); }
.sp-banner.sp-d-336-280 .sp-desk { width: var(--sp-336-280-w); height: var(--sp-336-280-h); }
.sp-banner.sp-d-970-90 { width: var(--sp-970-90-w); max-width: 100%; }
.sp-banner.sp-d-970-90 .sp-desk { width: var(--sp-970-90-w); height: var(--sp-970-90-h); max-width: 100%; }
.sp-banner.sp-d-728-90 { width: var(--sp-728-90-w); max-width: 100%; }
.sp-banner.sp-d-728-90 .sp-desk { width: var(--sp-728-90-w); height: var(--sp-728-90-h); max-width: 100%; }
.sp-banner.sp-d-234-60 { width: var(--sp-234-60-w); }
.sp-banner.sp-d-234-60 .sp-desk { width: var(--sp-234-60-w); height: var(--sp-234-60-h); }
.sp-banner.sp-d-600-100 { width: var(--sp-600-100-w); max-width: 100%; }
.sp-banner.sp-d-600-100 .sp-desk { width: var(--sp-600-100-w); height: var(--sp-600-100-h); max-width: 100%; }
.sp-banner.sp-d-320-100 { width: var(--sp-320-100-w); }
.sp-banner.sp-d-320-100 .sp-desk { width: var(--sp-320-100-w); height: var(--sp-320-100-h); }
.sp-banner.sp-d-320-50 { width: var(--sp-320-50-w); }
.sp-banner.sp-d-320-50 .sp-desk { width: var(--sp-320-50-w); height: var(--sp-320-50-h); }
@media (max-width: 900px) {
  .sp-banner .sp-desk { display: none; }
  .sp-banner .sp-mob { display: block; }
  .sp-banner.sp-m-320-100 { width: var(--sp-320-100-w); }
  .sp-banner.sp-m-320-100 .sp-mob { width: var(--sp-320-100-w); height: var(--sp-320-100-h); }
  .sp-banner.sp-m-320-50 { width: var(--sp-320-50-w); }
  .sp-banner.sp-m-320-50 .sp-mob { width: var(--sp-320-50-w); height: var(--sp-320-50-h); }
  .sp-banner.sp-m-300-250 { width: var(--sp-300-250-w); }
  .sp-banner.sp-m-300-250 .sp-mob { width: var(--sp-300-250-w); height: var(--sp-300-250-h); }
  .sp-banner.sp-m-600-100 { width: var(--sp-600-100-w); max-width: 100%; }
  .sp-banner.sp-m-600-100 .sp-mob { width: var(--sp-600-100-w); height: var(--sp-600-100-h); max-width: 100%; }
  .sp-banner.sp-m-234-60 { width: var(--sp-234-60-w); }
  .sp-banner.sp-m-234-60 .sp-mob { width: var(--sp-234-60-w); height: var(--sp-234-60-h); }
}
.title-row > .sp-banner { flex: none; }
@media (max-width: 900px) {
  .title-row { flex-wrap: wrap; }
  .title-row > .sp-banner { width: 100%; }
}

/* Booking form: specs, uploads and live previews in both themes */
.sp-creative { margin: 0 0 var(--space-16); padding: var(--pad-box); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--surface-2); }
.sp-creative h4 { margin: 0 0 var(--space-8); font-size: var(--fs-14); font-weight: 650; }
.sp-previews { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--stat-min), 1fr)); gap: var(--space-10); margin: var(--space-12) 0 0; }
.sp-preview { margin: 0; padding: var(--pad-stat); border: 1px solid var(--line); border-radius: var(--radius-8); background: var(--bg); color: var(--text); }
.sp-preview[data-theme="light"] { background: var(--preview-light-bg); color: var(--preview-light-fg); }
.sp-preview .sp-flag { color: inherit; opacity: 0.7; }
.sp-preview img { max-width: 100%; height: auto; display: block; background: transparent; }
.sp-file { display: flex; flex-direction: column; gap: var(--space-4); margin: 0 0 var(--space-10); font-size: var(--fs-13h); }


/* ---- Trending level on story cards: flame icon + plain word (Hot / Rising / Steady / Cooling).
   Replaces the old "Heat" bar; level comes from heat_pct in build.py. ---- */
.heat {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: var(--space-4);
  font-family: var(--font); font-size: var(--fs-12); font-weight: 650; letter-spacing: 0;
  line-height: var(--leading-none); white-space: nowrap;
  color: var(--text-3);
}
.heat-icon { flex: none; width: var(--space-12); height: var(--space-12); }
.heat-hot { color: var(--rose); }
.heat-rising { color: var(--amber); }
.heat-steady { color: var(--gold); }
.heat-cooling { color: var(--text-3); }
.heat .heat-label { color: var(--text-2); }
.card-foot .view { margin-left: auto; }
.card-foot .heat + .view { margin-left: var(--space-10); }

/* ---- Back link at the top of inner pages ---- */
.back-link {
  display: inline-flex; align-items: center; gap: var(--space-4);
  margin: var(--space-4) 0 var(--space-12);
  font-size: var(--fs-13); font-weight: 650; color: var(--text-2); text-decoration: none;
}
.back-link:hover, .back-link:focus-visible { color: var(--text); text-decoration: underline; }
.container > .back-link + * { margin-top: 0; }

/* ---- Catch-up strip (signed out or no follows): one row like "Your stories", no blank right area ---- */
.catchup {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: var(--space-12);
  padding: var(--space-6) var(--space-12) var(--space-6) var(--space-14);
  min-width: 0;
}
.catchup[hidden] { display: none; }
.catchup .sec-h { margin: 0; flex: none; width: auto; white-space: nowrap; }
.catchup > p { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) {
  .catchup { flex-wrap: wrap; padding-left: var(--space-12); gap: var(--space-4) var(--space-8); }
  .catchup:not(.is-following) .sec-h { width: 100%; }
}

/* Admin discovery: auto-publish checks and the auto-published list */
.disc-checks { list-style: none; margin: var(--space-6) 0 var(--space-8); padding: 0; display: grid; gap: var(--space-2); font-size: var(--fs-12h); }
.disc-checks li.ok strong { color: var(--teal); }
.disc-checks li.no strong { color: var(--rose); }
.disc-auto { font-size: var(--fs-12h); color: var(--text-2); }
.disc-auto-list { margin-top: var(--space-16); }

/* ---- Chip row: categories | countries on one line, overflow behind "+N more" ----
   No JS: a natural wrap. With JS (html.js, set in <head>) the row is clamped to one line from first
   paint (no layout shift); site.js hides chips that don't fit and shows "+N more", which wraps the row
   and turns into "Less". The active chip never hides. */
.filters.chip-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--chip-gap); row-gap: var(--space-6);
  overflow: visible; mask-image: none; -webkit-mask-image: none;
  padding: var(--space-2) 0; margin: var(--space-4) 0 var(--space-12);
  min-height: var(--chip-row-h);
}
.js .filters.chip-bar:not(.is-open) {
  flex-wrap: nowrap; overflow: hidden;
  height: calc(var(--chip-row-h) + var(--space-4)); padding: var(--space-2) var(--space-2);
  margin-left: calc(-1 * var(--space-2)); margin-right: calc(-1 * var(--space-2));
}
.filters.chip-bar > .chip { flex: none; white-space: nowrap; }
.filters.chip-bar > [data-chip-hidden] { display: none; }
.chip-sep { flex: none; width: 1px; height: var(--space-18); background: var(--line-strong); margin: 0 var(--space-4); }
.chip-sep[data-chip-hidden] { display: none; }
.chip.chip-more { color: var(--text-2); border-style: dashed; }
.chip.chip-more[aria-expanded="true"] { border-style: solid; }
.chip.chip-more:focus-visible, .filters.chip-bar > .chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip.chip-more .n { font-family: inherit; }

/* Cards in a row share its height (the foot sits at the bottom), so no ragged gaps between rows */
.story-grid { align-items: stretch; }
