/**
 * TDN Pop — main stylesheet
 * Design tokens + magazine components
 */

/* -------------------------------------------------------------------------- */
/* Tokens                                                                     */
/* -------------------------------------------------------------------------- */
:root {
  --tdn-red: #e51a3e;
  --tdn-red-deep: #b0102d;
  --tdn-gold: #c8922a;
  --ink: #0c0c0c;
  --paper: #ffffff;
  --muted: #5d5d67;
  --rule: #e4e4e9;
  --sunken: #f6f6f8;
  --header-stripe: linear-gradient(90deg, #e51a3e, #c8922a);

  --bg: var(--paper);
  --fg: var(--ink);
  --surface: var(--paper);
  --surface-sunken: var(--sunken);
  --text-muted: var(--muted);
  --border: var(--rule);
  --accent: var(--tdn-red);
  --accent-deep: var(--tdn-red-deep);
  --gold: var(--tdn-gold);

  --font-display: "DM Serif Display", Georgia, serif;
  --font-condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: Inter, system-ui, -apple-system, sans-serif;

  --max-w: 1200px;
  --header-h: 72px;
  --radius: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 20px rgba(12, 12, 12, 0.08);
  --shadow-lift: 0 12px 32px rgba(12, 12, 12, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(229, 26, 62, 0.45);
}

[data-theme="dark"] {
  --bg: #0a0a0c;
  --fg: #f4f4f6;
  --surface: #131316;
  --surface-sunken: #121215;
  --text-muted: #a0a0aa;
  --border: #2b2b32;
  --accent: #ff4463;
  --accent-deep: #e51a3e;
  --gold: #c8922a;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  box-shadow: var(--focus-ring);
}

.container {
  width: min(100% - 2rem, var(--max-w));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* WP admin bar offset for sticky header */
body.admin-bar .site-header {
  top: 32px;
}

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

.header-stripe {
  height: 4px;
  background: var(--header-stripe);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-width: 0;
  width: 100%;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.site-branding {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.site-title {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.site-title a {
  color: var(--fg);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--fg);
}

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

.custom-logo-link {
  display: block;
}

.custom-logo-link img,
.custom-logo {
  display: block;
  max-height: 42px;
  width: auto !important;
  height: auto !important;
  max-width: min(200px, 46vw);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--fg);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-sunken);
  color: var(--accent);
}

.icon-btn[aria-expanded="true"] {
  color: var(--accent);
  background: var(--surface-sunken);
}

.nav-primary {
  display: none;
}

@media (min-width: 900px) {
  .nav-primary {
    display: block;
    flex: 1;
  }

  .nav-primary .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem 1.25rem;
    list-style: none;
  }

  .nav-primary a {
    font-family: var(--font-condensed);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg);
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

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

  .menu-toggle {
    display: none;
  }
}

.menu-toggle {
  display: inline-flex;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 0 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

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

.mobile-nav a {
  font-family: var(--font-condensed);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0;
}

.mobile-nav a:hover {
  color: var(--accent);
}

.search-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  padding: 1rem 0;
}

.search-panel.is-open {
  display: block;
}

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

.search-panel input[type="search"] {
  flex: 1;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-size: 1rem;
}

.search-panel .search-submit {
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-panel .search-submit:hover {
  background: var(--accent-deep);
}

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

@media (min-width: 1100px) {
  .header-actions .social-links {
    display: flex;
  }
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-muted);
  border-radius: var(--radius);
}

.social-link:hover {
  color: var(--accent);
  background: var(--surface-sunken);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 3px solid var(--fg);
}

.section-title {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

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

.section-link {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cat-badge {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.28rem 0.65rem;
  border-radius: 3px;
  line-height: 1.2;
  transform: rotate(-1.5deg);
  box-shadow: 2px 2px 0 rgba(12, 12, 12, 0.15);
  transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}

.cat-badge:hover {
  color: #fff;
  background: var(--accent-deep);
  transform: rotate(0deg) scale(1.04);
}

[data-theme="dark"] .cat-badge {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.byline a {
  color: var(--fg);
  font-weight: 600;
}

.byline a:hover {
  color: var(--accent);
}

.byline__sep {
  opacity: 0.5;
}

.must-see {
  padding: 2rem 0 1.5rem;
}

.must-see__lead {
  display: grid;
  gap: 1.5rem;
  background: var(--surface-sunken);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
}

@media (min-width: 800px) {
  .must-see__lead {
    grid-template-columns: 1fr 1.15fr;
    min-height: 420px;
  }

  /* Text left / image right (media is first in DOM) */
  .must-see__body {
    order: 1;
  }

  .must-see__media {
    order: 2;
  }
}

.must-see__media {
  position: relative;
  background: var(--ink);
  min-height: 240px;
}

.must-see__media a {
  display: block;
  height: 100%;
}

.must-see__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

@media (min-width: 800px) {
  .must-see__media img {
    min-height: 100%;
    position: absolute;
    inset: 0;
  }
}

.must-see__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.5rem 2rem;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .must-see__body {
    padding: 2rem 1rem 2.25rem 2rem;
  }
}

.must-see__kicker {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.must-see__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.must-see__title a {
  color: var(--fg);
  display: inline;
  transition: color 0.15s var(--ease);
}

.must-see__title a:hover {
  color: var(--tdn-red);
}

.must-see__excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36em;
}

.must-see__excerpt p {
  margin: 0;
}

.must-see__secondary {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .must-see__secondary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .must-see__secondary {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ms-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.ms-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.ms-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-sunken);
}

.ms-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.ms-card:hover .ms-card__media img {
  transform: scale(1.04);
}

.ms-card__body {
  padding: 0 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ms-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
}

.ms-card__title a {
  color: var(--fg);
}

.ms-card__title a:hover {
  color: var(--accent);
}

.magazine-section {
  padding: 2.5rem 0;
}

.magazine-section + .magazine-section {
  border-top: 1px solid var(--border);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-sunken);
  position: relative;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.05);
}

.post-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}

.post-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.post-card__title a {
  color: var(--fg);
}

.post-card__title a:hover {
  color: var(--accent);
}

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.post-card__excerpt p {
  margin: 0;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.post-list-item {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .post-list-item {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

.post-list-item__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-sunken);
}

.post-list-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list-item__title {
  margin: 0.4rem 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}

.post-list-item__title a {
  color: var(--fg);
}

.post-list-item__title a:hover {
  color: var(--accent);
}

.empty-state {
  padding: 2rem;
  text-align: center;
  background: var(--surface-sunken);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.empty-state p {
  margin: 0;
}

.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(135deg, var(--surface-sunken), var(--border));
  color: var(--text-muted);
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-main {
  padding: 2rem 0 3rem;
  min-height: 50vh;
}

.entry-header {
  margin-bottom: 1.75rem;
  max-width: 720px;
}

.entry-header--wide {
  max-width: none;
}

.entry-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0.5rem 0 0.75rem;
  line-height: 1.08;
}

.entry-featured {
  margin: 0 0 2rem;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: var(--surface-sunken);
}

.entry-featured img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.entry-content,
.entry-summary {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

.entry-content h2,
.entry-content h3 {
  margin-top: 1.75em;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content img {
  border-radius: var(--radius);
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-sunken);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
}

.entry-footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  max-width: 720px;
  font-size: 0.9rem;
  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: 36px;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.entry-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.post-nav {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 720px;
}

@media (min-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.post-nav a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.post-nav a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  color: var(--fg);
}

.post-nav__label {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.comments-area {
  max-width: 720px;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--fg);
}

.comments-title {
  font-family: var(--font-condensed);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.5rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.comment-form textarea {
  min-height: 120px;
}

.comment-form .submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.5rem;
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  cursor: pointer;
}

.comment-form .submit:hover {
  background: var(--accent-deep);
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--fg);
}

.page-title {
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0;
}

.archive-description {
  margin-top: 0.75rem;
  color: var(--text-muted);
  max-width: 40em;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-condensed);
  font-weight: 700;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.error-404 {
  text-align: center;
  padding: 4rem 1rem;
}

.error-404 .page-title {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--accent);
}

.error-404 .search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}

.error-404 input[type="search"] {
  flex: 1;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
}

.error-404 .search-submit {
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 700;
  text-transform: uppercase;
}

.content-with-sidebar {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.widget {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.widget-title {
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--fg);
}

.widget a:hover {
  color: var(--accent);
}

.site-footer {
  background: var(--sunken);
  color: var(--fg);
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 6px solid var(--ink);
}

[data-theme="dark"] .site-footer {
  background: #121215;
  color: #f4f4f6;
  border-top: 6px solid #f4f4f6;
}

.footer-stripe {
  height: 4px;
  background: var(--header-stripe);
  margin-top: -3rem;
  margin-bottom: 3rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

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

.footer-brand .site-title a {
  color: var(--fg);
}

.footer-brand .site-title .accent {
  color: var(--tdn-red);
}

.footer-tagline {
  color: #a0a0aa;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.95rem;
}

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

.footer-nav a {
  color: inherit;
  font-family: var(--font-condensed);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--tdn-gold);
}

.footer-heading {
  font-family: var(--font-condensed);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--tdn-gold);
  margin: 0 0 0.75rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2b2b32;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6e6e79;
}

.site-footer .social-links .social-link {
  color: #a0a0aa;
}

.site-footer .social-links .social-link:hover {
  color: var(--tdn-red);
  background: rgba(255, 255, 255, 0.06);
}

.alignwide {
  max-width: var(--max-w);
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.wp-block-image figcaption,
.wp-caption-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}


/* ========================================================================== */
/* Live-site fold-ins: utility, ticker, rail, river, cat modules, single       */
/* ========================================================================== */

:root {
  --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);
}

/* Utility strip */
.utility-strip {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.utility-strip__date {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

.utility-strip__nav a {
  color: var(--text-muted);
  font-weight: 600;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.utility-strip__nav a:hover,
.utility-strip__nav .utility-tip {
  color: var(--accent);
}

.utility-strip .social-links {
  gap: 0;
}

.utility-strip .social-link {
  min-width: 36px;
  min-height: 36px;
}

@media (max-width: 640px) {
  .utility-strip__social {
    display: none;
  }
}

/* Newswire ticker */
.newswire {
  background: var(--ink);
  color: #f4f4f6;
  border-bottom: 1px solid #2b2b32;
  overflow: hidden;
}

[data-theme="dark"] .newswire {
  background: #050506;
}

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

.newswire__label {
  flex-shrink: 0;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--tdn-red);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(229, 26, 62, 0.35);
}

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

.newswire__list {
  display: flex;
  gap: 2rem;
  list-style: none;
  white-space: nowrap;
  animation: tdn-ticker 40s linear infinite;
}

.newswire__list a {
  color: #f4f4f6;
  font-size: 0.9rem;
  font-weight: 500;
}

.newswire__list a:hover {
  color: var(--tdn-gold);
}

.newswire__list li::after {
  content: "•";
  margin-left: 2rem;
  color: var(--tdn-gold);
  opacity: 0.7;
}

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

@media (prefers-reduced-motion: reduce) {
  .newswire__list {
    animation: none;
    flex-wrap: wrap;
    white-space: normal;
  }
  .newswire__track {
    mask-image: none;
  }
}

/* Front layout: main + rail */
.front-layout,
.single-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .front-layout,
  .single-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.5rem;
    align-items: start;
  }
}

.site-main--front {
  padding-top: 0;
}

.front-main .must-see {
  padding-top: 1.5rem;
}

/* Section markers */
.section-marker {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-right: 0.45rem;
  vertical-align: -0.1em;
  background: var(--cat-accent, var(--tdn-red));
  border-radius: 1px;
}

.section-marker--red {
  background: var(--tdn-red);
}

.section-head--cat {
  border-bottom-color: var(--cat-accent, var(--fg));
  border-bottom-width: 3px;
}

.must-see__marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.4rem;
  background: var(--tdn-red);
  vertical-align: middle;
}

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

.must-see__title--red a {
  color: var(--tdn-red);
}

.must-see__title--red a:hover {
  color: var(--tdn-red-deep);
}

.cat-badge--sm {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  transform: rotate(-1deg);
}

/* River / The Rundown */
.river {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.river-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

@media (min-width: 600px) {
  .river-item {
    grid-template-columns: 120px 1fr;
  }
}

.river-item__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-sunken);
}

.river-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.river-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.river-item__title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.25;
}

.river-item__title a {
  color: var(--fg);
}

.river-item__title a:hover {
  color: var(--accent);
}

.no-thumb--sm {
  min-height: 60px;
  font-size: 0.7rem;
}

.no-thumb--hero {
  min-height: 280px;
  font-size: 1.1rem;
}

/* Category modules */
.cat-modules {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.cat-module__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 760px) {
  .cat-module__grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.cat-lead {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cat-lead:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.cat-lead__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-sunken);
}

.cat-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.cat-lead:hover .cat-lead__media img {
  transform: scale(1.04);
}

.cat-lead__body {
  padding: 0 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cat-lead__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.cat-lead__title a {
  color: var(--fg);
}

.cat-lead__title a:hover {
  color: var(--cat-accent, var(--accent));
}

.cat-lead__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cat-lead__excerpt p {
  margin: 0;
}

.cat-list {
  list-style: none;
  border-top: 2px solid var(--cat-accent, var(--tdn-red));
  padding-top: 0.25rem;
}

.cat-list li {
  border-bottom: 1px solid var(--border);
}

.cat-list a,
.cat-list__link,
.cat-list a:visited,
.cat-list__link:visited {
  color: var(--fg);
}

.cat-list__link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  min-height: 44px;
}

.cat-list__link:hover,
.cat-list a:hover {
  color: var(--cat-accent, var(--accent));
}

.cat-list__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.cat-list time {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Rail */
.rail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.rail-widget {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.25rem;
}

.rail-widget__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-condensed);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--tdn-red);
}

.most-read {
  list-style: none;
  counter-reset: most-read;
}

.most-read__item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.most-read__item:last-child {
  border-bottom: none;
}

.most-read__num {
  font-family: var(--font-condensed);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--tdn-red);
}

.most-read__link {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.most-read__link:hover {
  color: var(--accent);
}

.rail-list {
  list-style: none;
}

.rail-list li + li {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.rail-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.65rem;
  align-items: center;
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.rail-list a:hover {
  color: var(--accent);
}

.rail-list img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
}

.rail-empty {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
}

.breadcrumbs__list li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.5;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

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

.entry-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

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

.share-row__label {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg);
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Readable prose + drop cap */
.entry-content--prose {
  font-size: 1.1875rem; /* ~19px */
  line-height: 1.75;
  max-width: 44rem;
}

.has-drop-cap-style .entry-content--prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 4.25rem;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  color: var(--tdn-red);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .has-drop-cap-style .entry-content--prose > p:first-of-type::first-letter {
    /* still fine — static */
  }
}

.page-header--cat .page-title {
  display: flex;
  align-items: center;
}

.page-header--cat {
  border-bottom-color: var(--cat-accent, var(--fg));
}

/* Footer — sunken, thick top border */
.site-footer {
  background: var(--sunken);
  color: var(--ink);
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 6px solid var(--ink);
}

[data-theme="dark"] .site-footer {
  background: #121215;
  color: #f4f4f6;
  border-top-color: #f4f4f6;
}

.site-footer .site-title,
.site-footer .site-title a {
  color: var(--fg);
}

.site-footer .site-title .accent {
  color: var(--tdn-red);
}

/* Custom logo in footer: keep natural colors on light sunken footer */
.site-footer .custom-logo-link img,
.site-footer .custom-logo {
  filter: none;
  max-height: 40px;
  max-width: min(200px, 70vw);
}

[data-theme="dark"] .site-footer .site-title,
[data-theme="dark"] .site-footer .site-title a {
  color: var(--fg);
}

[data-theme="dark"] .site-footer .custom-logo-link img,
[data-theme="dark"] .site-footer .custom-logo {
  /* only brighten if a dark logo asset needs help; no forced invert */
  filter: none;
}

.site-footer .footer-tagline {
  color: var(--muted);
}

[data-theme="dark"] .site-footer .footer-tagline {
  color: #a0a0aa;
}

.site-footer .footer-heading {
  color: var(--tdn-gold);
}

.site-footer .footer-nav a {
  color: inherit;
  min-height: 40px;
}

.site-footer .footer-nav a:hover {
  color: var(--tdn-red);
}

.footer-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-cat-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  font-family: var(--font-condensed);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 40px;
}

.footer-cat-list a:hover {
  color: var(--tdn-red);
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #2b2b32;
  color: #6e6e79;
}

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

.site-footer .social-link:hover {
  color: var(--tdn-red);
  background: rgba(229, 26, 62, 0.08);
}

/* Remove old footer stripe if present in markup leftovers */
.footer-stripe {
  display: none;
}

/* Pagination class from WP */
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* -------------------------------------------------------------------------- */
/* 1.0.1 polish — dark mode coverage, a11y panels, defensive resets           */
/* -------------------------------------------------------------------------- */

[data-theme="dark"] .site-header,
[data-theme="dark"] .utility-strip,
[data-theme="dark"] .mobile-nav,
[data-theme="dark"] .search-panel {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .utility-strip {
  background: var(--surface-sunken);
  color: var(--text-muted);
}

[data-theme="dark"] .rail,
[data-theme="dark"] .rail-widget {
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg);
}

[data-theme="dark"] .newswire__label {
  background: var(--tdn-red);
  color: #fff;
}

/* Share buttons stay visible */
.share-row {
  visibility: visible;
}

.share-btn {
  background: var(--surface);
}

/* Mobile nav + search panel open states (explicit for a11y) */
.mobile-nav.is-open,
.search-panel.is-open {
  visibility: visible;
}

/* Defensive: contain plugin leaks inside theme shells without !important wars */
.site-main .container,
.front-layout,
.single-layout,
.magazine-section,
.cat-module,
.must-see {
  max-width: 100%;
}

.site-main img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------------------- */
/* 1.0.2 polish — mobile overflow, footer contrast, cat visited, eeb hide     */
/* -------------------------------------------------------------------------- */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

.container {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.front-layout,
.single-layout,
.front-main,
.rail,
.must-see,
.must-see__lead,
.must-see__body,
.must-see__title,
.newswire,
.newswire__inner,
.newswire__track,
.magazine-section,
.cat-module,
.site-main {
  min-width: 0;
  max-width: 100%;
}

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

img {
  max-width: 100%;
}

/* Prevent classic 100vw scrollbar overflow */
.alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

.newswire__inner {
  min-width: 0;
  width: 100%;
}

.newswire__list {
  max-width: none; /* ticker scrolls inside clipped track */
}

/* Narrow header: keep actions on-canvas */
@media (max-width: 480px) {
  .site-title {
    font-size: clamp(1.05rem, 5.2vw, 1.35rem);
  }

  .custom-logo-link img,
  .custom-logo {
    max-height: 36px;
    max-width: min(160px, 42vw);
  }

  .icon-btn {
    min-width: 40px;
    min-height: 40px;
  }

  .header-inner {
    gap: 0.35rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--max-w));
  }
}

/* Email Encoder Bundle padlock next to mailto share — hide icon only */
.share-row .eeb-icon,
.share-row .eeb-protected-icon,
.share-btn .eeb-icon,
.entry-meta .eeb-icon {
  display: none !important;
}
