/**
 * TDN Marquee — main stylesheet
 *
 * A modern editorial design layer for Trevor Decker News.
 * Brand DNA (red / gold / ink / paper, DM Serif Display + Barlow Condensed + Inter)
 * is carried over from TDN Pop; everything around it is rebuilt.
 *
 * Contents
 *   01  Tokens
 *   02  Reset + base
 *   03  Typography primitives
 *   04  Layout primitives
 *   05  Kickers, badges, section heads
 *   06  Utility strip
 *   07  Header + navigation
 *   08  Newswire ticker
 *   09  Must See hero
 *   10  Cards
 *   11  Rundown river
 *   12  Category modules
 *   13  Rail
 *   14  Single post
 *   15  Archives, pagination, search, 404
 *   16  Comments
 *   17  Footer
 *   18  Motion + reveal
 *   19  Print
 */

/* ========================================================================== */
/* 01  Tokens                                                                 */
/* ========================================================================== */

:root {
  /* Brand */
  --tdn-red: #e51a3e;
  --tdn-red-deep: #b0102d;
  --tdn-red-bright: #ff3355;
  --tdn-gold: #c8922a;
  --tdn-gold-lt: #e2b153;

  /* Neutrals — light */
  --ink: #0b0b0d;
  --ink-2: #1d1d23;
  --paper: #ffffff;
  --muted: #5a5a66;
  --muted-2: #7c7c88;
  --rule: #e6e6ec;
  --sunken: #f7f7f9;
  --sunken-2: #eeeef3;

  /* Semantic (remapped wholesale in dark mode) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-2);
  --surface: var(--paper);
  --surface-raised: var(--paper);
  --surface-sunken: var(--sunken);
  --surface-sunken-2: var(--sunken-2);
  --text-muted: var(--muted);
  --text-faint: var(--muted-2);
  --border: var(--rule);
  --hairline: rgba(11, 11, 13, 0.09);
  --accent: var(--tdn-red);
  --accent-deep: var(--tdn-red-deep);
  --gold: var(--tdn-gold);
  --scrim: linear-gradient(180deg, rgba(8, 8, 10, 0) 28%, rgba(8, 8, 10, 0.78) 100%);
  --brand-rule: linear-gradient(90deg, var(--tdn-red) 0%, var(--tdn-red) 38%, var(--tdn-gold) 100%);
  --header-stripe: var(--brand-rule);

  /* Category accents (overridden inline per module by tdn_pop_accent_style) */
  --cat-tv: #0b62c4;
  --cat-film: #7b2d8b;
  --cat-music: #007850;
  --cat-streaming: #b8431f;
  --cat-animation: #6a4bd0;
  --cat-theatre: #a3175a;
  --cat-sports: #16606b;
  --cat-accent: var(--tdn-red);

  /* Type */
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-3xs: 0.6875rem;
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.0625rem, 0.35vw + 0.98rem, 1.2rem);
  --fs-xl: clamp(1.25rem, 0.9vw + 1rem, 1.55rem);
  --fs-2xl: clamp(1.55rem, 1.6vw + 1rem, 2.15rem);
  --fs-3xl: clamp(1.95rem, 2.5vw + 1rem, 3rem);
  --fs-4xl: clamp(2.3rem, 3.8vw + 1rem, 3.9rem);

  --lh-tight: 1.06;
  --lh-snug: 1.18;
  --lh-normal: 1.5;
  --lh-prose: 1.72;

  --tracking-label: 0.13em;
  --tracking-nav: 0.07em;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.35rem;
  --sp-6: 1.75rem;
  --sp-7: 2.25rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5.5rem;

  --section-y: clamp(2.25rem, 4.2vw, 3.75rem);
  --section-y-sm: clamp(1.5rem, 2.6vw, 2.25rem);

  /* Shape */
  --max-w: 1240px;
  --measure: 45rem;
  --gutter: clamp(1rem, 3.2vw, 2rem);
  --header-h: 68px;
  --header-h-compact: 54px;
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(11, 11, 13, 0.05), 0 2px 8px rgba(11, 11, 13, 0.04);
  --sh-2: 0 2px 6px rgba(11, 11, 13, 0.06), 0 12px 28px rgba(11, 11, 13, 0.09);
  --sh-3: 0 6px 14px rgba(11, 11, 13, 0.08), 0 26px 60px rgba(11, 11, 13, 0.14);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* Motion */
  --dur-1: 0.16s;
  --dur-2: 0.3s;
  --dur-3: 0.55s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --img-zoom: 1.055;
}

:root[data-theme="dark"],
[data-theme="dark"] {
  --bg: #08080a;
  --fg: #f3f3f6;
  --fg-soft: #dcdce2;
  --surface: #121216;
  --surface-raised: #17171c;
  --surface-sunken: #0f0f13;
  --surface-sunken-2: #1a1a20;
  --text-muted: #9c9ca8;
  --text-faint: #7b7b88;
  --border: #26262e;
  --hairline: rgba(255, 255, 255, 0.08);
  --accent: #ff4a66;
  --accent-deep: #e51a3e;
  --gold: #d9a63f;
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.5);
  --sh-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 12px 28px rgba(0, 0, 0, 0.45);
  --sh-3: 0 6px 14px rgba(0, 0, 0, 0.5), 0 26px 60px rgba(0, 0, 0, 0.6);
  --scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.85) 100%);
  color-scheme: dark;
}

/* ========================================================================== */
/* 02  Reset + base                                                           */
/* ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.admin-bar { scroll-padding-top: calc(var(--header-h) + 1.25rem + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar { scroll-padding-top: calc(var(--header-h) + 1.25rem + 46px); }
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-1) var(--ease-soft);
}
a:hover { color: var(--accent-deep); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1em; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

::selection { background: var(--accent); color: #fff; }

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ========================================================================== */
/* 03  Typography primitives                                                  */
/* ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.45em;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-snug);
  letter-spacing: -0.012em;
  color: var(--fg);
  text-wrap: balance;
}

.u-condensed {
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.u-label {
  font-family: var(--font-condensed);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  line-height: 1;
}

/* Link-underline reveal used across headline links */
.u-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur-2) var(--ease), color var(--dur-1) var(--ease-soft);
}
.u-underline:hover,
.u-underline:focus-visible { background-size: 100% 1px; }

/* ========================================================================== */
/* 04  Layout primitives                                                      */
/* ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

.site-main { padding: var(--sp-6) 0 var(--sp-9); min-height: 48vh; }
.site-main--front { padding-top: var(--sp-5); }

.front-layout,
.single-layout,
.content-with-sidebar {
  display: grid;
  gap: var(--sp-8);
  min-width: 0;
}

@media (min-width: 1040px) {
  .front-layout,
  .single-layout,
  .content-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(2rem, 3.4vw, 3.25rem);
    align-items: start;
  }
}

.front-main { min-width: 0; }

.magazine-section { padding-block: var(--section-y); }
.magazine-section + .magazine-section { border-top: 1px solid var(--hairline); }
.front-main > .magazine-section:last-of-type { padding-bottom: var(--section-y-sm); }

/* ========================================================================== */
/* 05  Kickers, badges, section heads                                         */
/* ========================================================================== */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  position: relative;
  border-bottom: 1px solid var(--hairline);
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(56px, 12%, 110px);
  height: 3px;
  border-radius: 2px;
  background: var(--cat-accent, var(--tdn-red));
}

.section-head--cat::after { background: var(--cat-accent, var(--tdn-red)); }

.section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-condensed);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--fg);
}

.section-title--accent { color: var(--fg); }

.section-marker {
  display: inline-block;
  width: 6px;
  height: 0.95em;
  border-radius: 1px;
  background: var(--cat-accent, var(--tdn-red));
}
.section-marker--red { background: var(--tdn-red); }

.section-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-condensed);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur-1) var(--ease-soft), gap var(--dur-1) var(--ease-soft);
}
.section-link::after { content: "\2192"; }
.section-link:hover { color: var(--accent); gap: 0.55rem; }

/* Category sticker */
.cat-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-condensed);
  font-size: var(--fs-3xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  background: var(--cat-accent, var(--accent));
  padding: 0.34rem 0.6rem 0.3rem;
  border-radius: var(--r-xs);
  transition: transform var(--dur-1) var(--ease), filter var(--dur-1) var(--ease-soft);
}
.cat-badge:hover { color: #fff; transform: translateY(-1px); filter: saturate(1.15); }
.cat-badge--sm { font-size: 0.66rem; padding: 0.26rem 0.48rem 0.23rem; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.byline a { color: var(--fg-soft); font-weight: 600; }
.byline a:hover { color: var(--accent); }
.byline__sep { opacity: 0.45; }
.byline__date { font-variant-numeric: tabular-nums; }

.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background:
    repeating-linear-gradient(135deg, var(--surface-sunken-2) 0 10px, var(--surface-sunken) 10px 20px);
  color: var(--text-faint);
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--fs-2xs);
}
.no-thumb--sm { min-height: 54px; font-size: 0.62rem; }
.no-thumb--hero { min-height: 260px; font-size: var(--fs-sm); }

.empty-state {
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  color: var(--text-muted);
}
.empty-state p { margin: 0 0 0.75rem; color: var(--fg-soft); }
.empty-state p:last-child { margin-bottom: 0; }
.empty-state__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  margin-top: 1.1rem;
}

/* ========================================================================== */
/* 06  Utility strip                                                          */
/* ========================================================================== */

.utility-strip {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}

.utility-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  min-height: 34px;
  padding-block: 0.3rem;
}

.utility-strip__date {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.utility-strip__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
}

.utility-strip__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--text-muted);
  font-family: var(--font-condensed);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.utility-strip__nav a:hover { color: var(--accent); }

.utility-strip__nav .utility-tip { color: var(--accent); }
.utility-strip__nav .utility-tip::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  animation: tdn-pulse 2.6s var(--ease-soft) infinite;
}

@keyframes tdn-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.utility-strip .social-links { gap: 0; }
.utility-strip .social-link { min-width: 32px; min-height: 32px; }

@media (max-width: 680px) {
  .utility-strip__social { display: none; }
  .utility-strip__inner { justify-content: center; }
}

.social-links { display: flex; list-style: none; gap: 0.15rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  transition: color var(--dur-1) var(--ease-soft), background var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease);
}
.social-link:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-1px);
}

/* ========================================================================== */
/* 07  Header + navigation                                                    */
/* ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--dur-2) var(--ease-soft), background var(--dur-2) var(--ease-soft);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--surface); }
}

body.is-scrolled .site-header { box-shadow: var(--sh-1); }

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

.header-stripe {
  height: 3px;
  background: var(--brand-rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.4rem;
  transition: min-height var(--dur-2) var(--ease-soft);
}

body.is-scrolled .header-inner { min-height: var(--header-h-compact); }

.site-branding { flex: 0 0 auto; display: flex; align-items: center; min-width: 0; }

@media (max-width: 1099px) {
  .site-branding { flex: 1 1 auto; overflow: hidden; }
}

.site-title {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1;
}
.site-title a { color: var(--fg); }
.site-title a:hover { color: var(--fg); }
.site-title .accent { color: var(--accent); }

.custom-logo-link { display: flex; align-items: center; line-height: 0; }
.custom-logo-link img,
.custom-logo {
  max-height: 46px;
  width: auto !important;
  height: auto !important;
  max-width: min(230px, 46vw);
  transition: max-height var(--dur-2) var(--ease-soft);
}
body.is-scrolled .custom-logo-link img,
body.is-scrolled .custom-logo { max-height: 36px; }

.custom-logo-link .custom-logo--dark { display: none; }
[data-theme="dark"] .custom-logo-link .custom-logo--light { display: none; }
[data-theme="dark"] .custom-logo-link .custom-logo--dark { display: block; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
  margin-left: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--r-md);
  color: var(--fg);
  transition: background var(--dur-1) var(--ease-soft), color var(--dur-1) var(--ease-soft);
}
.icon-btn:hover { background: var(--surface-sunken-2); color: var(--accent); }
.icon-btn[aria-expanded="true"] { background: var(--surface-sunken-2); color: var(--accent); }

/* Desktop primary nav */
.nav-primary { display: none; }
.menu-toggle { display: inline-flex; }

@media (min-width: 1100px) {
  :root { --header-h: 106px; --header-h-compact: 88px; }

  .menu-toggle { display: none !important; }

  /* Masthead row, then a full-width section bar underneath it. */
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0;
    min-height: 0;
    padding-block: 0;
  }

  .site-branding,
  .header-actions {
    min-height: 60px;
    transition: min-height var(--dur-2) var(--ease-soft);
  }

  body.is-scrolled .site-branding,
  body.is-scrolled .header-actions { min-height: 48px; }

  .nav-primary {
    display: block;
    flex: 0 0 100%;
    order: 3;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--hairline);
  }
  .nav-primary::-webkit-scrollbar { display: none; }

  .nav-primary .menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0 0.25rem;
    list-style: none;
  }

  .nav-primary .menu > li { position: relative; flex-shrink: 0; }

  .nav-primary a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.35rem 0.7rem;
    font-family: var(--font-condensed);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: var(--tracking-nav);
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--fg);
  }

  .nav-primary .menu > li > a::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 5px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-2) var(--ease);
  }

  .nav-primary .menu > li > a:hover::after,
  .nav-primary .menu > li > a:focus-visible::after,
  .nav-primary .current-menu-item > a::after,
  .nav-primary .current-menu-parent > a::after,
  .nav-primary .current_page_item > a::after { transform: scaleX(1); }

  .nav-primary a:hover,
  .nav-primary .current-menu-item > a { color: var(--accent); }

  /* Dropdowns */
  .nav-primary .sub-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    z-index: 1100;
    min-width: 13rem;
    padding: 0.35rem 0;
    list-style: none;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 var(--r-md) var(--r-md);
    box-shadow: var(--sh-2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
  }

  .nav-primary .menu > li:hover > .sub-menu,
  .nav-primary .menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-primary .sub-menu a {
    display: flex;
    width: 100%;
    min-height: 38px;
    padding: 0.45rem 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.045em;
  }
  .nav-primary .sub-menu a::after { display: none; }
  .nav-primary .sub-menu a:hover { background: var(--surface-sunken); color: var(--accent); }
}

/* Mobile nav — full-height panel */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
  padding: var(--sp-5) 0 var(--sp-7);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav.is-open { display: block; animation: tdn-slide-down var(--dur-2) var(--ease) both; }
body.nav-open { overflow: hidden; }

@keyframes tdn-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.mobile-nav .menu { list-style: none; display: flex; flex-direction: column; }

.mobile-nav .menu > li + li { border-top: 1px solid var(--hairline); }

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0;
  font-family: var(--font-condensed);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--fg);
}
.mobile-nav a:hover,
.mobile-nav .current-menu-item > a { color: var(--accent); }

.mobile-nav .sub-menu {
  list-style: none;
  margin: 0 0 0.4rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}
.mobile-nav .sub-menu a { font-size: 1.05rem; min-height: 40px; }

.menu-toggle [data-icon="close"] { display: none; }
.menu-toggle[aria-expanded="true"] [data-icon="menu"] { display: none; }
.menu-toggle[aria-expanded="true"] [data-icon="close"] { display: block; }

[hidden] { display: none !important; }
[data-theme-toggle] svg { display: block; }
[data-theme="dark"] [data-theme-toggle] [data-icon="moon"] { display: none !important; }
[data-theme="dark"] [data-theme-toggle] [data-icon="sun"] { display: block !important; }
html:not([data-theme="dark"]) [data-theme-toggle] [data-icon="sun"] { display: none !important; }
html:not([data-theme="dark"]) [data-theme-toggle] [data-icon="moon"] { display: block !important; }

/* Search panel */
.search-panel {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--surface-sunken);
  padding: var(--sp-5) 0;
}
.search-panel.is-open { display: block; animation: tdn-slide-down var(--dur-2) var(--ease) both; }

.search-form { display: flex; gap: 0.5rem; }
.search-panel .search-form { max-width: 620px; margin-inline: auto; }

.search-field,
input[type="search"] {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  transition: border-color var(--dur-1) var(--ease-soft), box-shadow var(--dur-1) var(--ease-soft);
}
.search-field:focus { border-color: var(--accent); }

.search-submit {
  min-height: 46px;
  padding: 0 1.4rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  transition: background var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease);
}
.search-submit:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand-rule);
  pointer-events: none;
  will-change: transform;
}
body.admin-bar .reading-progress { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .reading-progress { top: 46px; }
}

/* ========================================================================== */
/* 08  Newswire ticker                                                        */
/* ========================================================================== */

.newswire {
  background: var(--ink);
  color: #f3f3f6;
  border-bottom: 1px solid transparent;
  overflow: hidden;
}
[data-theme="dark"] .newswire { background: #050507; border-bottom-color: var(--border); }

/* Paper variant (the default): a light band with ink text, the way TDN Pop
   shipped it. Text is a notch heavier here than on the ink variant, because dark
   type on a light band needs less weight to read but more to hold together at
   this size. Dark mode is unchanged either way. */
.newswire--paper {
  background: var(--surface-sunken);
  color: var(--fg);
  border-top: 1px solid var(--hairline);
  border-bottom-color: var(--hairline);
}
.newswire--paper .newswire__list a {
  color: var(--fg);
  font-weight: 600;
}
.newswire--paper .newswire__list a:hover { color: var(--accent); }
.newswire--paper .newswire__list li::after { color: var(--tdn-gold); opacity: 0.85; }
[data-theme="dark"] .newswire--paper { background: #050507; color: #f3f3f6; }
[data-theme="dark"] .newswire--paper .newswire__list a { color: #eaeaef; }
[data-theme="dark"] .newswire--paper .newswire__list a:hover { color: var(--tdn-gold-lt); }

.newswire__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 40px;
  padding-block: 0.35rem;
  min-width: 0;
}

.newswire__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-condensed);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  background: var(--tdn-red);
  color: #fff;
  padding: 0.3rem 0.65rem 0.26rem;
  border-radius: var(--r-xs);
}
.newswire__label::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: tdn-pulse 2s var(--ease-soft) infinite;
}

.newswire__track {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 93%, transparent);
}

.newswire__list {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  white-space: nowrap;
  animation: tdn-ticker 64s linear infinite;
}
.newswire:hover .newswire__list { animation-play-state: paused; }

.newswire__list a { color: #eaeaef; font-size: 0.9375rem; font-weight: 500; }
.newswire__list a:hover { color: var(--tdn-gold-lt); }

.newswire__list li::after {
  content: "\2022";
  margin-left: 2.25rem;
  color: var(--tdn-gold);
  opacity: 0.75;
}

@keyframes tdn-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================================================== */
/* 09  Must See hero                                                          */
/* ========================================================================== */

.must-see { padding-block: var(--section-y-sm) 0; }

.must-see__lead {
  display: grid;
  gap: var(--sp-5);
  position: relative;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--hairline);
}

.must-see__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-sunken-2);
}

.must-see__media a { position: absolute; inset: 0; display: block; }

.must-see__media img,
.must-see__media img.wp-post-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  transition: transform var(--dur-3) var(--ease);
}
.must-see__lead:hover .must-see__media img { transform: scale(1.03); }

/* Gold hairline accent along the media edge */
.must-see__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--brand-rule);
}

.must-see__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
  min-width: 0;
}

.must-see__kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
}

.must-see__marker {
  display: inline-block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-rule);
}

.must-see__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: -0.022em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.must-see__title a { color: var(--fg); }
.must-see__title a:hover { color: var(--accent); }
.must-see__title--red a { color: var(--tdn-red); }
.must-see__title--red a:hover { color: var(--tdn-red-deep); }

.must-see__excerpt {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.must-see__excerpt p { margin: 0; }

@media (min-width: 880px) {
  .must-see__lead {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: center;
  }
  .must-see__body { order: 1; }
  .must-see__media { order: 2; }
  .must-see__title {
    font-size: clamp(1.75rem, 2.6vw, 2.75rem);
    -webkit-line-clamp: 5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (min-width: 1240px) {
  .must-see__lead { grid-template-columns: minmax(0, 1fr) 500px; }
}

/* Secondary pins band */
.must-see__secondary {
  display: grid;
  gap: var(--sp-5) var(--sp-5);
  margin-top: var(--sp-6);
}

@media (min-width: 620px) {
  .must-see__secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .must-see__secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.ms-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.ms-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface-sunken-2);
}
.ms-card__media a { position: absolute; inset: 0; display: block; }
.ms-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  transition: transform var(--dur-3) var(--ease);
}
.ms-card:hover .ms-card__media img { transform: scale(var(--img-zoom)); }

.ms-card__body { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }

.ms-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.22;
  letter-spacing: -0.008em;
}
.ms-card__title a { color: var(--fg); }
.ms-card__title a:hover { color: var(--accent); }

/* ========================================================================== */
/* 10  Cards                                                                  */
/* ========================================================================== */

.card-grid { display: grid; gap: var(--sp-6) var(--sp-5); }

@media (min-width: 600px)  { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--surface-sunken-2);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform var(--dur-3) var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(var(--img-zoom)); }

.post-card__badge { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 2; }

.post-card__body {
  padding: 0.85rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.post-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.post-card__title a { color: var(--fg); }
.post-card__title a:hover { color: var(--accent); }

.post-card__excerpt {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-card__excerpt p { margin: 0; }

/* Horizontal list item (archives, search) */
.post-list { display: flex; flex-direction: column; }

.post-list-item {
  display: grid;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--hairline);
  min-width: 0;
}
.post-list-item:first-child { padding-top: 0; }

@media (min-width: 660px) {
  .post-list-item { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
}

.post-list-item__media {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-sunken-2);
}
.post-list-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform var(--dur-3) var(--ease);
}
.post-list-item:hover .post-list-item__media img { transform: scale(var(--img-zoom)); }

.post-list-item__title {
  margin: 0.4rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1.16;
}
.post-list-item__title a { color: var(--fg); }
.post-list-item__title a:hover { color: var(--accent); }

.post-list-item .post-list-item__title + p,
.post-list-item p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================================================== */
/* 11  Rundown river                                                          */
/* ========================================================================== */

.river { display: flex; flex-direction: column; }

.river-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-4) 0 var(--sp-4) var(--sp-4);
  border-bottom: 1px solid var(--hairline);
  align-items: center;
  min-width: 0;
  transition: background var(--dur-2) var(--ease-soft);
}
.river-item:first-child { padding-top: 0; }

.river-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--cat-accent, var(--accent));
  transition: height var(--dur-2) var(--ease);
}
.river-item:hover::before { height: 62%; }

@media (min-width: 640px) { .river-item { grid-template-columns: 148px minmax(0, 1fr); } }

.river-item__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-sunken-2);
}
.river-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform var(--dur-3) var(--ease);
}
.river-item:hover .river-item__thumb img { transform: scale(var(--img-zoom)); }

.river-item__body { min-width: 0; }

.river-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: var(--fs-2xs);
  color: var(--text-faint);
}
.river-item__meta time {
  font-family: var(--font-condensed);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.river-item__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.24;
}
.river-item__title a { color: var(--fg); }
.river-item__title a:hover { color: var(--accent); }

/* ========================================================================== */
/* 12  Category modules                                                       */
/* ========================================================================== */

.cat-modules { display: flex; flex-direction: column; gap: var(--section-y); padding: 0; }

.cat-module { min-width: 0; }

.cat-module__grid { display: grid; gap: var(--sp-6); }

@media (min-width: 800px) {
  .cat-module__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }
}

.cat-lead { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }

.cat-lead__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-sunken-2);
  position: relative;
}
.cat-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform var(--dur-3) var(--ease);
}
.cat-lead:hover .cat-lead__media img { transform: scale(var(--img-zoom)); }

.cat-lead__body { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }

.cat-lead__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1.16;
  letter-spacing: -0.012em;
}
.cat-lead__title a { color: var(--fg); }
.cat-lead__title a:hover { color: var(--cat-accent, var(--accent)); }

.cat-lead__excerpt {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.cat-lead__excerpt p { margin: 0; }

.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--hairline); }
.cat-list li:first-child { border-top: 2px solid var(--cat-accent, var(--tdn-red)); }

.cat-list__link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.8rem 0;
  min-height: 44px;
  color: var(--fg);
}
.cat-list__link:hover { color: var(--cat-accent, var(--accent)); }

.cat-list__title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.26;
}

.cat-list time {
  flex-shrink: 0;
  font-family: var(--font-condensed);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ========================================================================== */
/* 13  Rail                                                                   */
/* ========================================================================== */

.rail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  min-width: 0;
}

/* Pinned only when the whole rail fits on screen. theme.js measures it and adds
   .is-sticky; a rail taller than the viewport scrolls with the page instead, so
   its last item can never be stranded below the pin where nothing can reach it.
   With JS off nothing is pinned, which is the safe direction to fail. */
@media (min-width: 1040px) {
  .rail.is-sticky { position: sticky; top: calc(var(--header-h) + 1rem); }
  body.admin-bar .rail.is-sticky { top: calc(var(--header-h) + 1rem + 32px); }
}

.rail-widget {
  position: relative;
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-5) var(--sp-5);
}
.rail-widget::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  background: var(--brand-rule);
}

.rail-widget__title {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--fg);
}

.rail-widget__kicker {
  margin: -0.85rem 0 var(--sp-4);
  font-family: var(--font-condensed);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rail-widget__kicker a { color: var(--accent); }
.rail-widget__kicker a:hover { text-decoration: underline; }

/* Most Read — oversized outline numerals */
.most-read { list-style: none; }

.most-read__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.most-read__item:last-child { border-bottom: none; padding-bottom: 0; }
.most-read__item:first-child { padding-top: 0; }

.most-read__num {
  font-family: var(--font-condensed);
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
@supports not (-webkit-text-stroke: 1px red) {
  .most-read__num { color: var(--accent); }
}

.most-read__link {
  color: var(--fg);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.35;
}
.most-read__link:hover { color: var(--accent); }

/* Thumb lists */
.rail-list { list-style: none; }
.rail-list li + li { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--hairline); }

.rail-list a {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  color: var(--fg);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.32;
}
.rail-list a:hover { color: var(--accent); }

.rail-list img {
  width: 82px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
  border-radius: var(--r-sm);
}

.rail-list--labeled a { align-items: start; }
.rail-list__text { display: block; min-width: 0; }
.rail-list__kicker {
  display: block;
  margin-bottom: 0.18rem;
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.rail-list__title { display: block; }
.rail-list__placeholder {
  display: block;
  width: 82px;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-sm);
  background: repeating-linear-gradient(135deg, var(--surface-sunken-2) 0 8px, var(--surface-sunken) 8px 16px);
}

.rail-empty { margin: 0; font-size: var(--fs-sm); color: var(--text-faint); }

/* Continuing Coverage timeline */
.beat-track { list-style: none; position: relative; padding-left: 0.95rem; }

.beat-track::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  bottom: 0.7rem;
  width: 2px;
  background: linear-gradient(180deg, var(--border), color-mix(in srgb, var(--accent) 45%, transparent));
}

.beat-track__item { position: relative; padding: 0.5rem 0 0.5rem 0.85rem; }

.beat-track__item::before {
  content: "";
  position: absolute;
  left: -0.62rem;
  top: 0.78rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-sunken);
  border: 2px solid var(--border);
}
.beat-track__item:last-child::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.beat-track__date {
  display: block;
  margin-bottom: 0.14rem;
  font-family: var(--font-condensed);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.beat-track__link { color: var(--fg); font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; }
.beat-track__link:hover { color: var(--accent); }

/* Classic widgets inside the rail */
.widget { margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--hairline); }
.widget:last-child { border-bottom: none; }
.widget-title {
  font-family: var(--font-condensed);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}
.widget ul { list-style: none; }
.widget li { padding: 0.4rem 0; border-bottom: 1px solid var(--hairline); }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--fg); }
.widget a:hover { color: var(--accent); }

/* ========================================================================== */
/* 14  Single post                                                            */
/* ========================================================================== */

.breadcrumbs { margin-bottom: var(--sp-3); font-size: var(--fs-2xs); color: var(--text-faint); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; list-style: none; }
.breadcrumbs__list li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; opacity: 0.45; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.entry-header { margin-bottom: var(--sp-6); max-width: 52rem; }
.entry-header--wide { max-width: none; }

.entry-kicker { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.7rem; }

.entry-title {
  margin: 0.35rem 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 0.6rem, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 32ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) { .entry-title { max-width: none; } }

.entry-standfirst {
  max-width: var(--measure);
  margin: 0 0 1.1rem;
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--text-muted);
}

.entry-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--hairline);
}

.entry-meta-row .byline { font-size: var(--fs-sm); }

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-condensed);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.read-time::before { content: "\2022"; color: var(--accent); }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; row-gap: 0.5rem; }

.share-row__label {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: var(--fs-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 0.15rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-condensed);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
  transition: border-color var(--dur-1) var(--ease-soft), color var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

@media (max-width: 520px) {
  .share-row__label { width: 100%; margin-right: 0; }
}

/* Featured image */
.entry-featured { margin: 0 0 var(--sp-7); overflow: visible; }

.entry-featured__media {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
}
.entry-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.entry-featured .wp-caption-text,
.entry-featured figcaption,
.tdn-article-caption {
  display: block;
  margin-top: 0.7rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
  font-size: var(--fs-xs);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: var(--measure);
}

/* Prose */
.entry-content,
.entry-summary { max-width: var(--measure); }

.entry-content--prose {
  font-size: 1.1875rem;
  line-height: var(--lh-prose);
  color: var(--fg-soft);
  letter-spacing: -0.003em;
}

.entry-content > *:first-child { margin-top: 0; }

.entry-content h2,
.entry-content h3 {
  margin-top: 1.9em;
  margin-bottom: 0.5em;
  letter-spacing: -0.014em;
}
.entry-content h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.entry-content h3 {
  font-family: var(--font-condensed);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: text-decoration-color var(--dur-1) var(--ease-soft), color var(--dur-1) var(--ease-soft);
}
.entry-content a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }

.entry-content img,
.entry-content .wp-block-image img { border-radius: var(--r-md); }
.entry-content .wp-block-image { overflow: visible; }

.entry-content figcaption,
.wp-block-image figcaption,
.wp-caption-text {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  margin-top: 0.55rem;
  line-height: 1.5;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.34;
  color: var(--fg);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-condensed);
  font-size: var(--fs-xs);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.entry-content ul,
.entry-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.entry-content li { margin: 0.4em 0; }

.entry-content hr {
  margin: 2.5em auto;
  width: 60px;
  border: none;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-rule);
}

/* Drop cap */
.has-drop-cap-style .entry-content--prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.1rem;
  line-height: 0.8;
  padding: 0.09em 0.12em 0 0;
  color: var(--accent);
}

/* Static pages */
.page .entry-content h2,
.page-template-default .entry-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.012em;
  margin-top: 1.8em;
}
.page .entry-content h3,
.page-template-default .entry-content h3 {
  font-family: var(--font-condensed);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-footer {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
  max-width: var(--measure);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin-top: 0.75rem; }
.entry-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
}
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

.single .entry-tags,
.single-post .entry-tags,
.entry-footer .entry-tags { display: none !important; }

/* Post navigation as cards */
.post-nav {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline);
  max-width: var(--measure);
}

@media (min-width: 640px) {
  .post-nav { grid-template-columns: 1fr 1fr; }
  .post-nav > :only-child { grid-column: 1 / -1; max-width: 100%; }
}

.post-nav a {
  display: block;
  padding: var(--sp-4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  line-height: 1.3;
  transition: border-color var(--dur-1) var(--ease-soft), transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.post-nav a:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
  color: var(--fg);
}

.post-nav__label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-condensed);
  font-size: var(--fs-2xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
}

.page-links { margin-top: 1.5rem; font-family: var(--font-condensed); font-weight: 700; }

/* ========================================================================== */
/* 15  Archives, pagination, search, 404                                      */
/* ========================================================================== */

.page-header {
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-3);
  position: relative;
  border-bottom: 1px solid var(--hairline);
}
.page-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(56px, 12%, 110px);
  height: 3px;
  border-radius: 2px;
  background: var(--cat-accent, var(--tdn-red));
}

.page-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.archive-description { margin-top: var(--sp-3); color: var(--text-muted); max-width: 42em; font-size: var(--fs-sm); }

.pagination,
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: var(--sp-8);
  justify-content: center;
}

.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--fg);
  font-family: var(--font-condensed);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--dur-1) var(--ease-soft), border-color var(--dur-1) var(--ease-soft), color var(--dur-1) var(--ease-soft);
}
.pagination .page-numbers:hover,
.nav-links .page-numbers:hover,
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination .page-numbers.dots:hover { background: transparent; border-color: var(--border); color: var(--fg); }

.error-404 { text-align: center; padding: var(--sp-9) 1rem; }
.error-404 .page-title {
  justify-content: center;
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
@supports not (-webkit-text-stroke: 1px red) {
  .error-404 .page-title { color: var(--accent); }
}
.error-404 .search-form { max-width: 420px; margin: var(--sp-5) auto 0; }
.error-404__home { margin-top: var(--sp-5); }

/* ========================================================================== */
/* 16  Comments                                                               */
/* ========================================================================== */

.comments-area {
  max-width: var(--measure);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--hairline);
}

.comments-title,
.comment-reply-title {
  font-family: var(--font-condensed);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.4rem;
}

.comment-list { list-style: none; }
.comment-list li { padding: var(--sp-4) 0; border-bottom: 1px solid var(--hairline); }
.comment-list .children { list-style: none; padding-left: var(--sp-5); border-left: 2px solid var(--border); }

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  margin-bottom: 0.75rem;
}
.comment-form textarea { min-height: 130px; }

.comment-form .submit {
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 0.7rem 1.6rem;
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  min-height: 44px;
  transition: background var(--dur-1) var(--ease-soft);
}
.comment-form .submit:hover { background: var(--accent-deep); }

/* ========================================================================== */
/* 17  Footer                                                                 */
/* ========================================================================== */

.site-footer {
  position: relative;
  margin-top: var(--sp-8);
  padding: var(--sp-9) 0 var(--sp-5);
  background: var(--surface-sunken);
  color: var(--fg);
  border-top: 1px solid var(--hairline);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-rule);
}

[data-theme="dark"] .site-footer { background: #0c0c10; }

.footer-grid { display: grid; gap: var(--sp-7); }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-8); }
}

.footer-brand .site-title { font-size: 1.5rem; }
.site-footer .site-title a { color: var(--fg); }
.site-footer .site-title .accent { color: var(--accent); }

.site-footer .custom-logo-link img,
.site-footer .custom-logo { max-height: 40px; max-width: min(210px, 70vw); filter: none; }

.footer-tagline {
  margin: 0.85rem 0 1.25rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 34em;
}

.footer-heading {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-size: var(--fs-2xs);
  color: var(--gold);
}

.footer-nav .menu,
.footer-cat-list { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }

.footer-nav a,
.footer-cat-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 38px;
  color: var(--fg-soft);
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}
.footer-nav a:hover,
.footer-cat-list a:hover { color: var(--accent); }

.cat-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

.footer-cta {
  margin-top: var(--sp-8);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  text-align: center;
  background: var(--surface);
  background-image: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 62%);
}

.footer-cta__text {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--fg);
}

.footer-cta__link { margin: 0; }
.footer-cta__link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.5rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  font-size: var(--fs-sm);
  transition: background var(--dur-1) var(--ease-soft), transform var(--dur-1) var(--ease);
}
.footer-cta__link a:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }

.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-2xs);
  color: var(--text-faint);
}
.footer-bottom p { margin: 0; }

.site-footer .social-link { color: var(--text-muted); }
.site-footer .social-link:hover { color: var(--accent); }

/* ========================================================================== */
/* 18  Motion + reveal                                                        */
/* ========================================================================== */

.alignwide { max-width: var(--max-w); }
.alignfull { width: 100%; max-width: 100%; margin-left: 0; }
.wp-caption { max-width: 100%; }

/* Hidden only once the inline head script has confirmed JS is running, and
   released again by a failsafe if theme.js never arrives. Without JS, or with a
   blocked script, everything renders visible. */
.tdn-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-3) var(--ease-soft), transform var(--dur-3) var(--ease);
}
.tdn-js [data-reveal].is-revealed,
.tdn-no-reveal [data-reveal] { opacity: 1; transform: none; }

/* Hide Email Encoder Bundle padlock artifacts near share/email */
.eeb-icon,
.eeb-protected,
.eeb-protected-icon,
.share-row img[src*="lock"],
.share-btn img[src*="lock"],
img[alt*="Protected"],
img[alt*="padlock"] { display: none !important; }

/* Defensive containment against plugin CSS */
.site-main,
.rail,
.container,
.front-layout,
.single-layout,
.magazine-section,
.cat-module,
.must-see { min-width: 0; max-width: 100%; box-sizing: border-box; }

.must-see__title,
.entry-title,
.cat-list__title,
.ms-card__title,
.post-card__title,
.river-item__title,
.post-list-item__title,
.rail-list a { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .newswire__list { animation: none; flex-wrap: wrap; white-space: normal; }
  .newswire__track { mask-image: none; -webkit-mask-image: none; }
  .tdn-js [data-reveal] { opacity: 1; transform: none; }
  .must-see__lead:hover .must-see__media img,
  .ms-card:hover .ms-card__media img,
  .post-card:hover .post-card__media img,
  .cat-lead:hover .cat-lead__media img,
  .river-item:hover .river-item__thumb img,
  .post-list-item:hover .post-list-item__media img { transform: none; }
}

/* ========================================================================== */
/* 19  Print                                                                  */
/* ========================================================================== */

@media print {
  .utility-strip,
  .site-header,
  .newswire,
  .rail,
  .share-row,
  .post-nav,
  .comments-area,
  .site-footer,
  .reading-progress { display: none !important; }

  body { background: #fff; color: #000; font-size: 12pt; }
  .entry-content, .entry-content--prose { max-width: none; font-size: 12pt; line-height: 1.55; }
  .entry-content a { text-decoration: underline; color: #000; }
  .entry-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
