/* The Warmup — original styles. Brand tokens live here; rename via site.config.json. */
:root {
  --paper: #f3efe4;
  --paper-2: #e7e1d1;
  --ink: #142017;
  --ink-soft: #2c382f;
  --muted: #5c675e;
  --line: rgba(20, 32, 23, 0.14);
  --line-strong: rgba(20, 32, 23, 0.28);
  --lime: #d8f34a;
  --lime-deep: #c4e234;
  --forest: #1f6b43;
  --ember: #e25a1a;
  --card: #fffaf0;
  --header: #142017;
  --header-text: #f3efe4;
  --chip: #142017;
  --shadow: 0 12px 32px -18px rgba(20, 32, 23, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1160px;
  --narrow: 720px;
  --header-h: 72px;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --c-wearables: #0e7c7b;
  --c-gear: #e25a1a;
  --c-training: #1f6b43;
  --c-supplements: #8a4b08;
  --c-research: #1e3a5f;
  --c-athletes: #9b1d20;
}

[data-theme="dark"] {
  --paper: #101612;
  --paper-2: #171e19;
  --ink: #f3efe4;
  --ink-soft: #d4cfc2;
  --muted: #9aa394;
  --line: rgba(243, 239, 228, 0.12);
  --line-strong: rgba(243, 239, 228, 0.24);
  --card: #1a221c;
  --header: #0c100d;
  --header-text: #f3efe4;
  --chip: #d8f34a;
  --shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.7);
  --c-wearables: #3ecfc8;
  --c-gear: #ff8a4c;
  --c-training: #8ee08a;
  --c-supplements: #e8b15a;
  --c-research: #8bb4e0;
  --c-athletes: #f07a7d;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.03em; margin: 0; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--lime);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(var(--narrow), calc(100% - 40px)); margin-inline: auto; }

/* Header — always ink, both themes */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  color: var(--header-text);
  border-bottom: 1px solid rgba(216, 243, 74, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--header-text);
  line-height: 1;
}
.brand-name span { color: var(--lime); }

.nav { flex: 1; min-width: 0; }
.nav ul { display: flex; gap: 2px; list-style: none; flex-wrap: wrap; }
.nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  font: 650 0.92rem/1 var(--font-display);
  color: rgba(243, 239, 228, 0.78);
  letter-spacing: -0.01em;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--header-text);
  background: rgba(216, 243, 74, 0.12);
}
.nav a[aria-current="page"] { color: var(--lime); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--header-text);
  border: 1px solid transparent;
}
.icon-btn:hover { background: rgba(216, 243, 74, 0.12); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font: 700 0.9rem/1 var(--font-display);
  background: var(--lime);
  color: #142017;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #e7ff73; }
.btn-ghost {
  background: transparent;
  color: var(--header-text);
  border-color: rgba(243, 239, 228, 0.25);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); background: transparent; }
.btn-ink { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .btn-ink { background: var(--lime); color: #142017; }

.menu-btn { display: none; }

/* Ticker */
.ticker {
  background: var(--lime);
  color: #142017;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
}
.ticker-label {
  flex-shrink: 0;
  font: 800 0.72rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #142017;
  color: var(--lime);
  padding: 6px 8px;
  border-radius: 4px;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-list {
  display: flex;
  gap: 36px;
  list-style: none;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker-list a { font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.ticker-list a:hover { text-decoration: underline; }
.ticker-list time { font-family: var(--font-mono); font-size: 0.75rem; margin-right: 8px; opacity: 0.7; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-title {
  font-size: 1.55rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--lime);
  box-shadow: 3px 3px 0 var(--ink);
}
[data-theme="dark"] .section-title::before { box-shadow: 3px 3px 0 var(--lime-deep); }
.section-link { font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.section-link:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.lead { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 48px; padding: 44px 0 20px; align-items: start; }
.hero-media {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  aspect-ratio: 16 / 11;
}
.hero-media img, .hero-media svg { width: 100%; height: 100%; object-fit: cover; }
.kicker {
  font: 800 0.75rem/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
}
[data-theme="dark"] .kicker { color: var(--lime); }
.hero-title { font-size: clamp(2rem, 3.6vw, 3.15rem); margin-bottom: 14px; }
.hero-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-dek { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 18px; max-width: 40rem; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 0.88rem; color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font: 700 0.75rem/1.2 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--lime);
}
.pill-wearables { background: var(--c-wearables); color: #fff; }
.pill-gear { background: var(--c-gear); color: #fff; }
.pill-training { background: var(--c-training); color: #fff; }
.pill-supplements { background: var(--c-supplements); color: #fff; }
.pill-research { background: var(--c-research); color: #fff; }
.pill-athletes { background: var(--c-athletes); color: #fff; }
[data-theme="dark"] .pill-wearables,
[data-theme="dark"] .pill-gear,
[data-theme="dark"] .pill-training,
[data-theme="dark"] .pill-supplements,
[data-theme="dark"] .pill-research,
[data-theme="dark"] .pill-athletes { color: #102014; }
.rt { font-family: var(--font-mono); font-size: 0.78rem; }

/* Top stories rail */
.board { padding-bottom: 8px; }
.board-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.board-item { display: grid; grid-template-columns: auto 88px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.board-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--muted);
  width: 1.4rem;
}
.board-media {
  width: 88px;
  height: 66px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.board-media img, .board-media svg { width: 100%; height: 100%; object-fit: cover; }
.board-title { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.02em; margin: 6px 0 0; }
.board-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Videos */
.videos { background: var(--paper-2); border-block: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.video-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #142017;
  color: var(--lime);
  display: grid;
  place-items: center;
}
.video-thumb iframe { width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.video-placeholder-label {
  text-align: center;
  padding: 16px;
  font-family: var(--font-display);
  font-weight: 700;
}
.video-placeholder-label small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  color: #cfd8c8;
  font-size: 0.8rem;
}
.play-icon { width: 52px; height: 52px; border: 2px solid var(--lime); border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; }
.play-icon svg { width: 20px; height: 20px; fill: var(--lime); margin-left: 2px; }
.video-body { padding: 14px 14px 16px; }
.video-topic { font: 700 0.72rem/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest); }
[data-theme="dark"] .video-topic { color: var(--lime); }
.video-card h3 { font-size: 1.02rem; margin: 8px 0 6px; }
.video-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.placeholder-flag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid var(--ember);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Story cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.15rem; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-dek { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* Category browse */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lane {
  display: block;
  padding: 20px 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-top: 4px solid var(--ink);
}
.lane-wearables { border-top-color: var(--c-wearables); }
.lane-gear { border-top-color: var(--c-gear); }
.lane-training { border-top-color: var(--c-training); }
.lane-supplements { border-top-color: var(--c-supplements); }
.lane-research { border-top-color: var(--c-research); }
.lane-athletes { border-top-color: var(--c-athletes); }
.lane h3 { font-size: 1.2rem; margin-bottom: 6px; }
.lane p { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.lane:hover { border-color: var(--line-strong); }
.lane strong { font-size: 0.85rem; }

/* Newsletter */
.signup {
  margin: 10px 0 56px;
  background: #142017;
  color: #f3efe4;
  border-radius: 16px;
  padding: 42px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  position: relative;
}
.signup h2 { font-size: 2rem; margin-bottom: 10px; color: var(--lime); }
.signup p { color: rgba(243, 239, 228, 0.82); margin: 0; }
.signup-form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 228, 0.2);
  background: #1c261e;
  color: #f3efe4;
  font: inherit;
}
.signup-note {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #cfe08a;
}
.form-msg { margin-top: 10px; font-weight: 600; color: var(--lime); }

/* Footer */
.site-footer {
  background: var(--header);
  color: var(--header-text);
  padding: 48px 0 28px;
  margin-top: 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; }
.footer-brand span { color: var(--lime); }
.footer-col h3 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin: 0 0 8px; }
.footer-col a { color: rgba(243, 239, 228, 0.8); }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 239, 228, 0.12);
  color: rgba(243, 239, 228, 0.55);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Article */
.article-head { padding: 36px 0 10px; }
.article-title { font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 16px; }
.article-dek { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 16px; }
.article-cover {
  margin: 24px auto 10px;
  width: min(960px, calc(100% - 40px));
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--ink);
  aspect-ratio: 16 / 8;
  background: var(--paper-2);
}
.article-cover img, .article-cover svg { width: 100%; height: 100%; object-fit: cover; }
.cover-caption { width: min(var(--narrow), calc(100% - 40px)); margin: 8px auto 28px; color: var(--muted); font-size: 0.85rem; }

.tldr {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--lime);
  border-radius: var(--radius);
  padding: 20px 22px 10px;
  margin: 0 0 32px;
}
.tldr h2 { font-size: 1.1rem; margin-bottom: 12px; }
.tldr dl { margin: 0; }
.tldr dt { font-family: var(--font-display); font-weight: 800; font-size: 0.88rem; margin-top: 10px; }
.tldr dd { margin: 4px 0 10px; color: var(--ink-soft); }

.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.45rem; margin: 2rem 0 0.8rem; }
.prose p { margin: 0 0 1.05rem; }
.prose a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .prose a { color: var(--lime); }
.prose ul, .prose ol { margin: 0 0 1.05rem 1.2rem; }
.prose li { margin: 0 0 0.4rem; }
.prose strong { font-weight: 650; }

.sources {
  margin: 36px 0 16px;
  padding: 20px 22px;
  background: var(--paper-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.sources h2 { font-size: 1.05rem; margin-bottom: 10px; }
.sources ol { margin: 0 0 0 1.2rem; }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
.sources .date-note { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }

.related { padding: 10px 0 40px; }
.related .grid { grid-template-columns: repeat(3, 1fr); }

/* Pages */
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 8px 0 12px; }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }
.placeholder-banner {
  margin: 8px 0 28px;
  padding: 12px 14px;
  border: 1px dashed var(--ember);
  background: color-mix(in srgb, var(--ember) 8%, var(--card));
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.placeholder-banner strong { color: var(--ember); }

.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; padding-bottom: 48px; }
.about-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.about-card h2 { font-size: 1.2rem; margin-bottom: 10px; }
.about-card ul { margin: 0 0 0 1.1rem; }
.about-card li { margin: 0 0 8px; }

/* Category page */
.cat-list { display: grid; gap: 0; }
.cat-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cat-row .card-media, .cat-row-media {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.cat-row h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.cat-row h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Mobile nav */
.nav-overlay { display: none; }

@media (max-width: 980px) {
  .lead { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .lanes { grid-template-columns: 1fr 1fr; }
  .signup { grid-template-columns: 1fr; padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .cat-row { grid-template-columns: 140px 1fr; gap: 16px; }
}

@media (max-width: 760px) {
  .wrap, .wrap-narrow, .article-cover, .cover-caption { width: calc(100% - 32px); }
  .header-inner { gap: 12px; }
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: grid; }
  .nav.is-open {
    display: block;
    position: absolute;
    left: 0; right: 0; top: var(--header-h);
    background: var(--header);
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(216, 243, 74, 0.18);
  }
  .nav.is-open ul { flex-direction: column; }
  .nav.is-open a { padding: 12px 10px; font-size: 1.05rem; }
  .video-grid, .grid, .lanes, .related .grid { grid-template-columns: 1fr; }
  .board-item { grid-template-columns: auto 72px 1fr; }
  .cat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title, .article-title { font-size: 1.85rem; }
  .section { padding: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-list { animation: none; }
  .card { transition: none; }
}

/* Brand wordmark for a longer name */
.brand-name { font-size: 1.12rem; letter-spacing: -0.03em; }
.brand-name span { color: var(--lime); }

/* New section colors */
.pill-training { background: var(--c-training); color: #fff; }
.pill-nutrition { background: var(--c-supplements); color: #fff; }
.pill-gear { background: var(--c-gear); color: #fff; }
.pill-sports { background: var(--c-athletes); color: #fff; }
.pill-research { background: var(--c-research); color: #fff; }
.pill-recovery { background: var(--c-wearables); color: #fff; }
.pill-sponsored { background: #5b4a00; color: #f5e7a0; }
[data-theme="dark"] .pill-training,
[data-theme="dark"] .pill-nutrition,
[data-theme="dark"] .pill-gear,
[data-theme="dark"] .pill-sports,
[data-theme="dark"] .pill-research,
[data-theme="dark"] .pill-recovery { color: #102014; }

.lane-training { border-top-color: var(--c-training); }
.lane-nutrition { border-top-color: var(--c-supplements); }
.lane-gear { border-top-color: var(--c-gear); }
.lane-sports { border-top-color: var(--c-athletes); }
.lane-research { border-top-color: var(--c-research); }
.lane-recovery { border-top-color: var(--c-wearables); }

.source-name { font-weight: 600; color: var(--ink-soft); }
.source-link {
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--forest);
  margin-top: auto;
}
.source-link:hover { text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .source-link { color: var(--lime); }
.byline { color: var(--muted); font-size: 0.95rem; }
.section-intro { color: var(--muted); margin: -8px 0 20px; max-width: 46rem; }
.footer-tag { color: rgba(243, 239, 228, 0.7); font-size: 0.92rem; margin: 10px 0 0; max-width: 22rem; }

/* Media fallbacks */
.card-media, .hero-media, .board-media, .cat-row-media, .article-cover, .hero-media-inner {
  position: relative;
  background: var(--paper-2);
}
.cover-fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media img, .hero-media img, .board-media img, .cat-row-media img, .article-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 1;
}
.card-media img + .cover-fallback,
.hero-media img + .cover-fallback,
.board-media img + .cover-fallback,
.cat-row-media img + .cover-fallback,
.article-cover img + .cover-fallback,
.hero-media-inner img + .cover-fallback { display: none; }

/* Display ad placeholders */
.ad-slot {
  margin: 28px auto;
  width: min(var(--wrap), calc(100% - 40px));
  min-height: 90px;
  border: 2px dashed color-mix(in srgb, var(--muted) 50%, transparent);
  background: repeating-linear-gradient(-45deg, transparent, transparent 8px, color-mix(in srgb, var(--muted) 8%, transparent) 8px, color-mix(in srgb, var(--muted) 8%, transparent) 16px);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 16px;
  color: var(--muted);
}
.ad-slot p { margin: 6px 0 0; font-size: 0.88rem; max-width: 36rem; }
.ad-label {
  font: 700 0.7rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 3px;
}
.ad-slot-grid { margin: 0; min-height: 160px; width: 100%; }
.ad-slot-article { width: 100%; margin: 28px 0; }

.sponsored-card { border-style: dashed; background: color-mix(in srgb, #5b4a00 6%, var(--card)); }

/* Affiliate picks + shop placeholders */
.picks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pick-card {
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 150px;
}
.pick-card h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.pick-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.yt-promo {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #142017;
  color: #f3efe4;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}
.yt-promo h2 { font-size: 1.4rem; margin-bottom: 8px; }
.yt-promo p { color: rgba(243, 239, 228, 0.8); margin: 0 0 14px; max-width: 42rem; }
.yt-promo .kicker { color: var(--lime); }

code { font-family: var(--font-mono); font-size: 0.86em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 980px) {
  .picks-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 760px) {
  .picks-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1rem; }
  .yt-promo { flex-direction: column; align-items: flex-start; }
}
