/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #000000;
  --white: #ffffff;
  --brand-red: #C8102E;
  --brand-blue: #162850;
  --accent: #C8102E;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --bg-light: #F8F7F5;
  --bg-dark: #162850;
  --live-green: #C8102E;
  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --max-width: 1280px;

  /* Standardized design tokens */
  --text: #111827;
  --primary-100: #d8e4f0;
  --primary-500: #162850;
  --primary-700: #1e3a6e;
  --primary-800: #0d1d38;
  --accent-400: #C8102E;
  --accent-500: #a8001b;
  --gray-300: #E5E7EB;
  --gray-600: #4B5563;
  --background: #F8F7F5;
  --surface-100: #f0f4f9;
  --box-shadow-sm: 0 1px 3px 0 rgba(34, 40, 42, 0.1);
  --box-shadow-md: 0 4px 20px 0 rgba(33, 37, 41, 0.05);
  --box-shadow-lg: 0 4px 20px 0 rgba(33, 37, 41, 0.15);
}

/* iOS Safari fix: NEVER put overflow-x:hidden on html or body (Bug 4) */
html { font-size: 10px; width: 100%; background: #f2f2f2; font-family: var(--font-sans); }

body {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  color: var(--text-primary);
  background: var(--white);
  width: 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* overflow-x containment on inner wrapper ONLY — never on html or body */
.pg-wrap { width: 100%; max-width: 100%; overflow-x: hidden; display: flex; flex-direction: column; flex: 1; }

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; }

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #222;
  /* needed so the mobile dropdown is positioned relative to the header */
  overflow: visible;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Hamburger — desktop hidden, mobile only */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  color: var(--white);
}
.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

/* Logo */
.logo {
  max-width: 150px;
}

.logo a {
  display: flex;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.nav-item {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  white-space: nowrap;
  transition: color 0.15s;
  border-bottom: 2px solid transparent;
}
.nav-item:hover { color: #ccc; }
.nav-item.active { color: var(--white); }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.icon-btn {
  color: var(--white);
  padding: 6px;
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.icon-btn:hover { opacity: 1; }

.btn-signin {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 3px;
  transition: background 0.15s;
}
.btn-signin:hover { background: rgba(255,255,255,0.1); }

.btn-donate {
  background: var(--accent);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 3px;
  border: 1px solid var(--accent);
  transition: background 0.15s;
}
.btn-donate:hover { background: var(--accent-500); }

/* Nav CTA button */
.nav-cta {
  flex-shrink: 0;
  margin-left: 12px;
  white-space: nowrap;
  font-size: 1.2rem;
  padding: 8px 16px;
  border-radius: 6px;
}

/* ===== TICKER BAR ===== */
.ticker-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ticker-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 38px;
  overflow: hidden;
}

.ticker-label {
  background: var(--brand-red);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-track-wrap {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-scroll 65s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  color: #d1d5db;
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0 20px;
  white-space: nowrap;
  transition: color 0.15s;
  position: relative;
}
.ticker-item:hover { color: var(--white); }
.ticker-item::after {
  content: "·";
  position: absolute;
  right: -2px;
  color: #4b5563;
  font-size: 1.8rem;
  line-height: 0;
  top: 50%;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== STORY SECTIONS ===== */
.hero-section {
  padding: 20px 0 0;
}
.story-block {
  padding: 20px 0 0;
  margin-top: 0;
}

/* Section head */
.section-head {
  border-top: 2px solid var(--border);
  position: relative;
  padding-top: 12px;
  margin-bottom: 16px;
}
.section-head::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.section-head-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-head-title:hover { color: var(--accent); }
.section-head-arrow { font-weight: 400; }

/* Topic strip */
.topic-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.topic-strip::-webkit-scrollbar { display: none; }

.topic-link {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.15s;
}
.topic-link:first-child { padding-left: 0; }
.topic-link.active {
  color: var(--text-primary);
  font-weight: 800;
}
.topic-link:hover { color: var(--text-primary); }

/* Hero grid: 3 columns */
.hero-grid {
  display: grid;
  grid-template-columns: 260px 1fr 290px;
  gap: 24px;
  align-items: start;
  padding-bottom: 28px;
}

/* ===== LEFT: HEADLINE ===== */
.hero-headline {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: block;
}
.hero-headline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-main-link:hover .hero-headline { color: var(--accent); }
.hero-center:has(.hero-main-link:hover) .hero-headline { color: var(--accent); }

.story-block .hero-headline {
  font-size: 1.9rem;
}

.hero-secondary {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 14px;
}
.hero-secondary h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.hero-secondary h2 a:hover { text-decoration: underline; }
.hero-secondary p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* More coverage */
.more-coverage { padding-top: 4px; }

.coverage-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.coverage-list { display: flex; flex-direction: column; gap: 12px; padding-left: 0; }
.coverage-list li { display: block; }
.coverage-list li .live-badge { display: inline-flex; width: fit-content; margin-bottom: 4px; }
.coverage-list li a {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.15s;
}
.coverage-list li a:hover { color: var(--accent); text-decoration: underline; }

/* Live headline indicator */
.live-headline-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.live-time {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ===== CENTER: CAROUSEL ===== */
.hero-center {
  align-self: start;
}

.hero-center .carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

.hero-center .carousel-img {
  flex: 1;
  min-height: 380px;
  object-fit: cover;
  display: block;
  width: 100%;
  height: auto;
}

.carousel {
  position: relative;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  background: rgba(0,0,0,0.72);
  color: #ddd;
  padding: 10px 14px;
  font-size: 1.2rem;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}
.caption-text { font-style: italic; color: #ccc; }
.caption-count {
  color: #aaa;
  flex-shrink: 0;
  font-weight: 600;
}
.caption-text { flex: 1; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
  padding-bottom: 2px;
}
.carousel-btn:hover { background: rgba(0,0,0,0.75); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-expand {
  position: absolute;
  bottom: 46px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.carousel-expand:hover { background: rgba(0,0,0,0.8); }

/* ===== RIGHT: SIDEBAR ===== */
.sidebar-module {
  margin-bottom: 20px;
}

.module-header {
  border-top: 2px solid var(--border);
  position: relative;
  padding-top: 12px;
  margin-bottom: 12px;
}
.module-header::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.module-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.module-title .arrow { font-weight: 400; margin-left: 2px; }
.module-title:hover { color: var(--accent); }

.sidebar-feature { display: block; }
.sidebar-feature .img-wrap {
  height: 190px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.sidebar-feature .img-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.sidebar-feature:hover .img-wrap img { transform: scale(1.04); }
.sidebar-feature h3 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.sidebar-feature:hover h3 { color: var(--accent); }
.sidebar-feature p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 4px;
}

.sidebar-timestamp {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* Sidebar list items */
.sidebar-list { display: flex; flex-direction: column; }

.sidebar-list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.sidebar-list-item:last-child { border-bottom: none; }
.sidebar-list-item:hover .sli-text h4 { color: var(--accent); }

.sli-text { flex: 1; }
.sli-text h4 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.15s;
}
.sidebar-list-item img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

/* Right-only list (no left img) */
.story-right-list .sidebar-list-item img { display: none; }

/* ===== HERO: LEFT ARTICLE LIST ===== */
.hero-article-list { display: flex; flex-direction: column; padding-left: 0; }
.hal-item {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hero-article-list li:first-child .hal-item { border-top: 1px solid var(--border); }
.hal-item h4,
.hal-item span {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.15s;
  display: block;
}
.hal-item:hover h4,
.hal-item:hover span { color: var(--accent); }
.hal-time {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
}

/* ===== HERO: CENTER IMAGE-FIRST ===== */
.hero-main-link { display: block; }
.hero-main-img {
  display: block;
  width: 100%;
  height: 340px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hero-main-link:hover .hero-main-img img { transform: scale(1.04); }
.hero-photo-credit {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
  line-height: 1.4;
  display: block;
}
.hero-center .hero-headline {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 12px;
  display: block;
}
.hero-deck {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: block;
}

/* ===== HERO: RIGHT LATEST LIST ===== */
.latest-list { display: flex; flex-direction: column; padding-left: 0; }
.latest-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.latest-item:first-child { border-top: 1px solid var(--border); }
.latest-item a {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: block;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.latest-item a:hover { color: var(--accent); }
.latest-time {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 500;
}
.latest-view-more {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 10px 0 4px;
  transition: color 0.15s;
}
.latest-view-more:hover { color: var(--accent); }
.sponsored-module {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.sponsored-label {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.sponsored-link {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color 0.15s;
  display: block;
}
.sponsored-link:hover { color: var(--accent); }

/* ===== SECTION 2: FLIP LAYOUT ===== */
.flip-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
  padding-bottom: 28px;
}

.flip-image .carousel-img.flip-img {
  height: 440px;
}

.topic-strip--inline {
  padding: 0;
  margin-bottom: 12px;
  border-bottom: none;
}

.flip-headline {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.flip-sidebar-list {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ===== SECTION 3: LIVE BLOCK ===== */
.live-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.live-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.live-topics { margin-bottom: 0; }
.live-topics .topic-link { font-size: 1.2rem; }

.live-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 28px;
}

.live-headline {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.live-excerpt {
  font-size: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.live-image .carousel-img.live-img {
  height: 440px;
}

/* ===== 4-COLUMN CATEGORY GRID ===== */
.cat-grid-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 16px 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 0;
  padding-bottom: 28px;
}

.cat-col {
  padding: 0 24px 0 0;
  border-right: 1px solid var(--border);
  margin-right: 24px;
}
.cat-col:last-child {
  padding-right: 0;
  border-right: none;
  margin-right: 0;
}

.cat-header {
  border-top: 2px solid var(--border);
  position: relative;
  padding-top: 12px;
  margin-bottom: 14px;
}
.cat-header::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.cat-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cat-title:hover { color: var(--accent); }
.cat-arrow { font-weight: 400; font-size: 1.4rem; }

.cat-feature {
  display: block;
  margin-bottom: 14px;
}
.cat-feature img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 10px;
}
.cat-feature h3,
.cat-feature span {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color 0.15s;
  display: block;
}
.cat-feature:hover h3,
.cat-feature:hover span { color: var(--accent); }
.cat-feature.no-img { padding-top: 4px; }
.cat-feature.no-img h3,
.cat-feature.no-img span { font-size: 1.5rem; }

.cat-time {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-top: 4px;
}
.cat-comments {
  display: inline-flex;
  margin-top: 6px;
  font-size: 1.2rem;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.cat-item {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-primary);
  padding: 10px 0 10px 10px;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: color 0.15s, border-left-color 0.2s;
}
.cat-item:last-child { border-bottom: none; }
.cat-item:hover { color: var(--accent); border-left-color: var(--accent); }

/* ===== SHORT STORIES VIDEO CAROUSEL ===== */
.short-stories-section {
  background: var(--black);
  margin-top: 28px;
  padding: 28px 0 32px;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.short-stories-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.ss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ss-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ss-accent {
  display: block;
  width: 32px;
  height: 4px;
  background: var(--accent);
  flex-shrink: 0;
}

.ss-title,
.short-stories-section h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.02em;
}

.ss-nav {
  display: flex;
  gap: 6px;
}
.ss-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #333;
  color: var(--white);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 2px;
  transition: background 0.15s;
}
.ss-btn.active { background: var(--accent); }
.ss-btn:hover { background: var(--accent); }

.ss-carousel {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ss-card {
  display: block;
  cursor: pointer;
}

.ss-img-wrap {
  display: block;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.ss-img-wrap img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.ss-card:hover .ss-img-wrap img { transform: scale(1.04); }

.ss-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.ss-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 2px;
  transition: background 0.15s;
}
.ss-card:hover .ss-play { background: var(--accent); }

.ss-duration {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 2px;
}

.ss-caption {
  font-size: 1.3rem;
  font-weight: 600;
  color: #999;
  line-height: 1.4;
  transition: color 0.2s;
  display: block;
}
.ss-card:hover .ss-caption { color: var(--white); }

/* ===== BE WELL + MOST COMMENTED ===== */
.bewell-section {
  padding: 28px 0 32px;
}

.bewell-inner {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 40px;
}

.bewell-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  margin-top: 16px;
}

.bewell-feature {
  display: block;
}
.bewell-feature .img-wrap {
  display: block;
  width: 100%;
  height: 260px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.bewell-feature .img-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.bewell-feature:hover .img-wrap img { transform: scale(1.04); }
.bewell-feature h3,
.bewell-feature .bewell-feature-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.15s;
  display: block;
}
.bewell-feature:hover h3,
.bewell-feature:hover .bewell-feature-title { color: var(--accent); }
.bewell-feature p,
.bewell-feature .bewell-feature-body {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: block;
}

.bewell-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bewell-mini-card {
  display: block;
}
.bewell-mini-card .img-wrap {
  display: block;
  width: 100%;
  height: 130px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.bewell-mini-card .img-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.bewell-mini-card:hover .img-wrap img { transform: scale(1.04); }
.bewell-mini-card p,
.bewell-mini-card span {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.15s;
  display: block;
}
.bewell-mini-card:hover p,
.bewell-mini-card:hover span { color: var(--accent); }

/* Most Commented */
.most-commented {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.mc-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  border-top: 2px solid var(--border);
  position: relative;
  padding-top: 12px;
  margin-bottom: 14px;
}
.mc-title::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
}
.mc-list {
  display: flex;
  flex-direction: column;
}

.mc-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mc-item:last-child { border-bottom: none; }
.mc-item img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.mc-text { flex: 1; }
.mc-text p,
.mc-text span {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 5px;
  transition: color 0.15s;
  display: block;
}
.mc-item:hover .mc-text p,
.mc-item:hover .mc-text span { color: var(--accent); }
.mc-count {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.mc-item:hover .mc-count { color: var(--text-secondary); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  color: var(--white);
  margin-top: 40px;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-logo {
  display: block;
  max-width: 210px;
  margin-bottom: 20px;
}


.footer-donate {
  display: inline-block;
}

.footer-disclaimer {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.65;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding-top: 0;
}

.footer-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.footer-col h5 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-col a {
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  padding: 5px 16px;
  border-right: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
  transition: color 0.15s;
}
.footer-col:last-child a:last-child { border-right: none; }
.footer-col a:hover { color: #ffffff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.footer-bottom p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.site-disclaimer {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  margin-top: 8px;
  width: 100%;
}

/* ===== AD ZONE CONTAINMENT (Bug 9) ===== */
.ad_code {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.ad_code iframe {
  max-width: 100%;
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .nav-cta { display: none; }

  .menu-btn {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--black);
    flex-direction: column;
    padding: 4px 0 12px;
    z-index: 99;
    border-top: 1px solid #222;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .nav-item {
    padding: 12px 20px;
    font-size: 1.4rem;
    border-bottom: 1px solid #1a1a1a;
    width: 100%;
  }

  .nav-item.active {
    /* no border indicator */
  }

  .menu-btn.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-btn.is-open span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .menu-btn span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* ── Mobile footer ── */
  .footer-inner {
    gap: 20px;
    padding: 32px 24px 24px;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-col {
    justify-content: center;
  }

  .footer-col a {
    padding: 5px 12px;
    font-size: 1.3rem;
  }


  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 24px;
  }

  .site-disclaimer {
    text-align: center;
  }
}

/* ===== POLISH & REFINEMENTS ===== */

/* MC numbered counter */
.mc-list { counter-reset: mc-counter; }
.mc-item { counter-increment: mc-counter; }
.mc-item::before {
  content: "0" counter(mc-counter);
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--brand-red);
  flex-shrink: 0;
  line-height: 1.15;
  min-width: 38px;
  letter-spacing: -0.02em;
}

/* Coverage list — underline on hover */
.coverage-list li a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sidebar list item subtle hover bg */
.sidebar-list-item {
  transition: background 0.15s;
  border-radius: 2px;
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
}
.sidebar-list-item:hover { background: rgba(0,0,0,0.03); }

/* Coverage list — live badge inline fix */
.coverage-list li { display: flex; flex-direction: column; gap: 4px; }

/* Live excerpt readability */
.live-excerpt {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Section head — slightly wider accent */
.section-head::before,
.module-header::before,
.cat-header::before,
.mc-title::before { width: 40px; }

/* Keyboard focus rings */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Sidebar timestamp — breathing room */
.sidebar-timestamp { margin-top: 6px; letter-spacing: 0.02em; }

/* Live headline */
.live-headline { letter-spacing: -0.5px; font-weight: 800; }

/* LAYOUT RESET */
.home .container.main {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.container.layout {
  max-width: 100%;
  padding: 0;
}

.container.layout .row.layout {
  margin: 0;
}

.container.layout .row.layout > .cols {
  overflow-x: hidden;
}

.home .container.layout .row.layout > .cols {
  padding: 0;
}

.pages .main-wrapper .container.main {
  padding: 24px 16px;
}

/* FONTS RESET */
.main-paragraph h1,
.main-paragraph h2,
.item-paragraph h1,
.item-paragraph h2,
.item-paragraph h3,
.layout h1,
.layout h2,
.layout h3 {
  font-weight: 700;
  color: var(--text);
}

.main-paragraph h1,
.main-paragraph h2,
.main-paragraph h3,
.main-paragraph p,
.main-paragraph strong {
  color: var(--text);
}

.main-paragraph h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.main-paragraph h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 40px 0 18px;
}

.main-paragraph h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 24px 0 10px;
}

.main-paragraph p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.main-paragraph strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .main-paragraph h1 {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .main-paragraph h2 {
    font-size: 25px;
    margin: 32px 0 16px;
  }

  .main-paragraph h3 {
    font-size: 20px;
    margin: 22px 0 8px;
  }

  .main-paragraph p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 14px;
  }
}

table { margin: 32px 0; }

table th, table td {
  border-color: var(--border) !important;
  padding: 8px 16px !important;
}

table td {
  color: var(--text) !important;
}

table th {
  background: var(--primary-500) !important;
  color: var(--white) !important;
  font-size: 13px !important;
  font-weight: bold !important;
}

table tbody tr:nth-child(even) td {
  background: var(--surface-100) !important;
}

@media (max-width: 992px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    border: 0 !important;
  }
}

/* CONTACT US FORM */
#contact-form {
  margin: 45px auto 0;
  max-width: 500px;
}

#contact-form input,
#contact-form textarea {
  flex: 1;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  outline: 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  min-width: 100%;
}

#contact-form input:active,
#contact-form input:focus,
#contact-form textarea:active,
#contact-form textarea:focus {
  border: 2px solid var(--primary-500);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--gray-600);
}

#contact-form button {
  background: var(--primary-500);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
  white-space: nowrap;
  width: 100%;
}

#contact-form button:hover {
  background: var(--accent-500);
}

/* ═══════════════════════════════════
           WIDGETS
═══════════════════════════════════ */

/* IMAGE STYLE RESET */
.item-current-image img {
  box-shadow: none !important;
  border-radius: 4px !important;
  border-color: var(--gray-300) !important;
}

/* SUBLIST */
.item-sublist a {
  width: 100%;
  height: 100%;
}

.item.item-bubbles {
  margin-bottom: 32px;
}

.item-bubbles .row {
  margin: 0;
}

.bubbles-chip {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  display: flex;
  font-weight: 500;
  height: 100%;
  padding: 16px 48px 16px 24px;
  position: relative;
  transition: padding 0.2s ease-in-out;
}

.bubbles-chip:hover {
  color: var(--primary-800);
  background: var(--surface-100);
  border-color: var(--primary-100);
  padding-left: 20px;
}

.bubbles-chip:active,
.bubbles-chip:focus {
  background: var(--accent-500);
  color: var(--white);
}

.bubbles-link {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
}

.bubbles-link .bubbles-outer {
  height: 100%;
  padding: 5px;
  max-width: 100%;
}

.sibling.link-button .bubbles-link .bubbles-outer,
.sibling.link-button .bubbles-chip {
  height: auto;
}

/* ── SIBLING: Most Discussed style ── */

/* Título */
.sibling.link-button > h2,
.sibling.link-button > h3,
.sibling.link-button > h4 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  border-top: 2px solid var(--border);
  position: relative;
  padding-top: 12px;
  margin-bottom: 14px;
}
.sibling.link-button > h2::before,
.sibling.link-button > h3::before,
.sibling.link-button > h4::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

/* Normalizar <repeat> de Lasso — es inline por defecto */
.sibling.link-button repeat {
  display: block;
}

/* Contador en el contenedor */
.sibling.link-button {
  counter-reset: sibling-counter;
}

/* Cada artículo (dentro de <repeat>) */
.sibling.link-button .bubbles-link {
  counter-increment: sibling-counter;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-decoration: none;
}
.sibling.link-button .bubbles-link:last-child {
  border-bottom: none;
}

/* Número */
.sibling.link-button .bubbles-link::before {
  content: "0" counter(sibling-counter);
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--brand-red);
  flex-shrink: 0;
  line-height: 1.15;
  min-width: 38px;
  letter-spacing: -0.02em;
}

/* Reset chip */
.sibling.link-button .bubbles-outer {
  padding: 0;
  height: auto;
  flex: 1;
}
.sibling.link-button .bubbles-chip {
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  padding: 0 !important;
  height: auto !important;
  display: block;
}
.sibling.link-button .bubbles-chip::after {
  display: none !important;
}
.sibling.link-button .bubbles-chip:hover {
  background: transparent !important;
  border: none !important;
  padding-left: 0 !important;
}

/* Texto del artículo */
.sibling.link-button .bubbles-chip-text {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  transition: color 0.15s;
  display: block;
}
.sibling.link-button .bubbles-link:hover .bubbles-chip-text {
  color: var(--accent);
}

.col-gap:has(> .item-bubbles)::before {
  display: none !important;
}

.bubbles-chip::after {
  content: url("data:image/svg+xml,%3Csvg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.87771 7.01782H1.02042C0.737361 7.01782 0.496528 6.91886 0.297917 6.72094C0.0993056 6.52317 0 6.2833 0 6.00136C0 5.71942 0.0993056 5.4781 0.297917 5.2774C0.496528 5.07657 0.737361 4.97615 1.02042 4.97615H8.87771L5.66583 1.76428C5.46111 1.55955 5.35681 1.31719 5.35292 1.03719C5.34889 0.757332 5.45076 0.510249 5.65854 0.295943C5.86632 0.0948319 6.11014 -0.00377823 6.39 0.000110661C6.66986 0.00399955 6.91236 0.108583 7.1175 0.313861L12.0713 5.27407C12.1699 5.37282 12.2464 5.4856 12.3008 5.6124C12.3551 5.73935 12.3823 5.86865 12.3823 6.00032C12.3823 6.13199 12.3551 6.26122 12.3008 6.38803C12.2464 6.51497 12.1727 6.62497 12.0798 6.71803L7.10958 11.688C6.89403 11.9037 6.65368 12.0081 6.38854 12.0012C6.12354 11.9942 5.88715 11.8862 5.67938 11.6772C5.4716 11.4629 5.36771 11.2166 5.36771 10.9382C5.36771 10.6599 5.4716 10.4192 5.67938 10.2162L8.87771 7.01782Z' fill='%23C8102E'/%3E%3C/svg%3E%0A");
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: 0.2s ease-in-out;
}

.bubbles-chip:hover::after {
  right: 10px;
}

/* SUBLIST CARDS */
.item-sublist:has(.sublist.card) .row > div {
  padding: 5px !important;
}

.sublist.card {
  border: none;
  border-radius: 6px;
  box-shadow: var(--box-shadow-md);
  transition: 0.2s ease-in;
}

.sublist.card:hover {
  box-shadow: var(--box-shadow-lg);
  color: var(--primary-500);
  transform: translateY(-4px);
}

.sublist.card h5 {
  margin-bottom: 0;
  font-weight: 500;
}

.sublist.card .card-body {
  padding: 16px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

/* ── Fix: Bootstrap overflow-auto en .main-wrapper rompe el
   full-bleed de .short-stories-section ── */
.main-wrapper { overflow: visible !important; }

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {

  /* Hero: ocultar columna izquierda de noticias locales */
  .hero-grid {
    grid-template-columns: 1fr 260px;
  }
  .hero-left { display: none; }

  /* Cat grid: 2×2 */
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-col {
    padding-right: 20px;
    margin-right: 20px;
  }
  .cat-col:nth-child(even) {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .cat-col:nth-child(3),
  .cat-col:nth-child(4) {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 4px;
  }

  /* SS Carousel: 3 columnas */
  .ss-carousel {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto auto;
  }
  .ss-carousel .ss-img-wrap:nth-child(7) { grid-column: 1; grid-row: 3; }
  .ss-carousel .ss-card:nth-child(8)     { grid-column: 1; grid-row: 4; }
  .ss-carousel .ss-img-wrap:nth-child(9) { grid-column: 2; grid-row: 3; }
  .ss-carousel .ss-card:nth-child(10)    { grid-column: 2; grid-row: 4; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* Hero: columna única */
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-left { display: none; }
  .hero-center { order: 1; }
  .hero-right  { order: 2; }
  .hero-center .hero-main-img,
  .hero-main-img { height: 200px; }
  .hero-center .hero-headline { font-size: 1.8rem; letter-spacing: -0.5px; }
  .hero-deck { font-size: 1.4rem; }

  /* Live/Politics: columna única, imagen arriba */
  .live-grid {
    grid-template-columns: 1fr;
  }
  .live-image { order: -1; }
  .live-image .carousel-img.live-img { height: 200px; }
  .live-headline { font-size: 1.9rem; }
  .live-excerpt  { font-size: 1.4rem; }

  /* Flip layout: columna única */
  .flip-grid { grid-template-columns: 1fr; }
  .flip-image .carousel-img.flip-img { height: 200px; }
  .flip-headline { font-size: 1.9rem; }

  /* Lifestyle: columna única */
  .bewell-inner {
    grid-template-columns: 1fr;
  }
  .most-commented {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 20px;
    margin-top: 4px;
  }

  /* Bewell grid: columna única (img → feature → mini-grid) */
  .bewell-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .bewell-grid > .img-wrap    { grid-column: 1; grid-row: 1; height: 200px; }
  .bewell-grid > .bewell-feature { grid-column: 1; grid-row: 2; }
  .bewell-grid > .bewell-mini-grid { grid-column: 1; grid-row: 3; }

  /* SS Carousel: 2 columnas */
  .ss-carousel {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto auto auto auto;
  }
  .ss-carousel .ss-img-wrap:nth-child(1)  { grid-column: 1; grid-row: 1; }
  .ss-carousel .ss-card:nth-child(2)      { grid-column: 1; grid-row: 2; }
  .ss-carousel .ss-img-wrap:nth-child(3)  { grid-column: 2; grid-row: 1; }
  .ss-carousel .ss-card:nth-child(4)      { grid-column: 2; grid-row: 2; }
  .ss-carousel .ss-img-wrap:nth-child(5)  { grid-column: 1; grid-row: 3; }
  .ss-carousel .ss-card:nth-child(6)      { grid-column: 1; grid-row: 4; }
  .ss-carousel .ss-img-wrap:nth-child(7)  { grid-column: 2; grid-row: 3; }
  .ss-carousel .ss-card:nth-child(8)      { grid-column: 2; grid-row: 4; }
  .ss-carousel .ss-img-wrap:nth-child(9)  { grid-column: 1; grid-row: 5; }
  .ss-carousel .ss-card:nth-child(10)     { grid-column: 1; grid-row: 6; }

  /* Cat grid: columna única */
  .cat-grid { grid-template-columns: 1fr; }
  .cat-col {
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 0;
  }
  .cat-col:first-child { border-top: none; padding-top: 0; }

  /* Sidebar list: ajuste de foto */
  .sidebar-list-item img { width: 64px; height: 46px; }

  /* Section spacing */
  .story-block { padding: 16px 0 0; }
  .hero-section { padding: 12px 0 0; }
  .bewell-section { padding: 20px 0 24px; }
  .short-stories-section { padding: 20px 0 24px; }
  .cat-grid-section { padding: 20px 16px 0; }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {

  /* Mini cards: columna única */
  .bewell-mini-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, auto);
  }
  .bewell-mini-grid > .img-wrap:nth-child(1)       { grid-column: 1; grid-row: 1; }
  .bewell-mini-grid > .bewell-mini-card:nth-child(2) { grid-column: 1; grid-row: 2; }
  .bewell-mini-grid > .img-wrap:nth-child(3)       { grid-column: 1; grid-row: 3; }
  .bewell-mini-grid > .bewell-mini-card:nth-child(4) { grid-column: 1; grid-row: 4; }
  .bewell-mini-grid > .img-wrap:nth-child(5)       { grid-column: 1; grid-row: 5; }
  .bewell-mini-grid > .bewell-mini-card:nth-child(6) { grid-column: 1; grid-row: 6; }
  .bewell-mini-grid > .img-wrap:nth-child(7)       { grid-column: 1; grid-row: 7; }
  .bewell-mini-grid > .bewell-mini-card:nth-child(8) { grid-column: 1; grid-row: 8; }

  /* SS Carousel: columna única */
  .ss-carousel {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(10, auto);
  }
  .ss-carousel .ss-img-wrap:nth-child(1)  { grid-column: 1; grid-row: 1; }
  .ss-carousel .ss-card:nth-child(2)      { grid-column: 1; grid-row: 2; }
  .ss-carousel .ss-img-wrap:nth-child(3)  { grid-column: 1; grid-row: 3; }
  .ss-carousel .ss-card:nth-child(4)      { grid-column: 1; grid-row: 4; }
  .ss-carousel .ss-img-wrap:nth-child(5)  { grid-column: 1; grid-row: 5; }
  .ss-carousel .ss-card:nth-child(6)      { grid-column: 1; grid-row: 6; }
  .ss-carousel .ss-img-wrap:nth-child(7)  { grid-column: 1; grid-row: 7; }
  .ss-carousel .ss-card:nth-child(8)      { grid-column: 1; grid-row: 8; }
  .ss-carousel .ss-img-wrap:nth-child(9)  { grid-column: 1; grid-row: 9; }
  .ss-carousel .ss-card:nth-child(10)     { grid-column: 1; grid-row: 10; }

  /* Tipografía */
  .hero-center .hero-headline { font-size: 1.6rem; }
  .hero-deck { font-size: 1.3rem; }
  .live-headline { font-size: 1.7rem; }
  .cat-title { font-size: 1.4rem; }
  .mc-text::before { font-size: 1.8rem; min-width: 30px; }
}

/* ═══════════════════════════════════════════════════════════
   CMS COMPATIBILITY — el CMS separa las imágenes de sus
   enlaces padre, sacándolas como hermanos previos en lugar
   de anidarlas dentro del <a>. Estos overrides corrigen el
   layout y los efectos hover para esa estructura real.
═══════════════════════════════════════════════════════════ */

/* ── Hero center: la imagen queda fuera de .hero-main-link ── */
.hero-center .hero-main-img {
  width: 100%;
  height: 340px;
  overflow: hidden;
  margin-bottom: 8px;
}
.hero-center .hero-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hero-center:has(.hero-main-link:hover) .hero-main-img img { transform: scale(1.04); }

/* ── Lifestyle featured: img-wrap → bewell-feature → bewell-mini-grid ── */
.bewell-grid {
  grid-template-rows: auto 1fr;
}
.bewell-grid > .img-wrap {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 260px;
  border-radius: 2px;
  overflow: hidden;
}
.bewell-grid > .img-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.bewell-grid > .bewell-feature {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}
.bewell-grid > .bewell-mini-grid {
  grid-column: 2;
  grid-row: 1 / 3;
}
.bewell-grid:has(> .bewell-feature:hover) > .img-wrap img { transform: scale(1.04); }

/* ── Mini cards: [img-wrap][mini-card] alternados en grid 2 col ── */
.bewell-mini-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto auto;
}
.bewell-mini-grid > .img-wrap {
  width: 100%;
  height: 130px;
  border-radius: 2px;
  overflow: hidden;
}
.bewell-mini-grid > .img-wrap img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.bewell-mini-grid > .img-wrap:nth-child(1) { grid-column: 1; grid-row: 1; }
.bewell-mini-grid > .bewell-mini-card:nth-child(2) { grid-column: 1; grid-row: 2; align-self: start; }
.bewell-mini-grid > .img-wrap:nth-child(3) { grid-column: 2; grid-row: 1; }
.bewell-mini-grid > .bewell-mini-card:nth-child(4) { grid-column: 2; grid-row: 2; align-self: start; }
.bewell-mini-grid > .img-wrap:nth-child(5) { grid-column: 1; grid-row: 3; }
.bewell-mini-grid > .bewell-mini-card:nth-child(6) { grid-column: 1; grid-row: 4; align-self: start; }
.bewell-mini-grid > .img-wrap:nth-child(7) { grid-column: 2; grid-row: 3; }
.bewell-mini-grid > .bewell-mini-card:nth-child(8) { grid-column: 2; grid-row: 4; align-self: start; }
.bewell-mini-grid > .img-wrap:has(+ .bewell-mini-card:hover) img { transform: scale(1.04); }

/* ── DC Stories carousel: [ss-img-wrap][ss-card] alternados en 5 col ── */
.ss-carousel {
  grid-template-rows: auto auto;
}
.ss-carousel .ss-img-wrap { margin-bottom: 0; grid-row: 1; }
.ss-carousel .ss-card     { grid-row: 2; align-self: start; padding-top: 8px; }
.ss-carousel .ss-img-wrap:nth-child(1)  { grid-column: 1; }
.ss-carousel .ss-card:nth-child(2)      { grid-column: 1; }
.ss-carousel .ss-img-wrap:nth-child(3)  { grid-column: 2; }
.ss-carousel .ss-card:nth-child(4)      { grid-column: 2; }
.ss-carousel .ss-img-wrap:nth-child(5)  { grid-column: 3; }
.ss-carousel .ss-card:nth-child(6)      { grid-column: 3; }
.ss-carousel .ss-img-wrap:nth-child(7)  { grid-column: 4; }
.ss-carousel .ss-card:nth-child(8)      { grid-column: 4; }
.ss-carousel .ss-img-wrap:nth-child(9)  { grid-column: 5; }
.ss-carousel .ss-card:nth-child(10)     { grid-column: 5; }
.ss-carousel .ss-img-wrap:has(+ .ss-card:hover) img { transform: scale(1.04); }

/* ── Most Discussed: modo A — .mc-text directo en .mc-list (sin mc-item) ── */
.mc-list { counter-reset: mc-counter; }

.mc-list > .mc-text {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: mc-counter;
  flex: unset;
}
.mc-list > .mc-text:last-child { border-bottom: none; }
.mc-list > .mc-text::before {
  content: "0" counter(mc-counter);
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: var(--brand-red);
  flex-shrink: 0;
  line-height: 1.15;
  min-width: 38px;
  letter-spacing: -0.02em;
  display: block;
}
.mc-list > .mc-text > span {
  flex: 1;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
  transition: color 0.15s;
  display: block;
}
.mc-list > .mc-text:hover > span { color: var(--accent); }

/* ── Most Discussed: modo B — .mc-item existe, suprimir contador duplicado ── */
.mc-item .mc-text::before { content: none; display: none; }
.mc-item .mc-text { display: block; flex: 1; }

@media (max-width: 767.98px) {
  .row div:has(> .sublist.card) {
    padding: 0 !important;
  }

  .row:has(> div .sublist.card) {
    margin: 0;
    gap: 10px;
  }

  .sublist.card {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .sublist.card .card-img-top {
    border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));
    width: 120px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .sublist.card .card-body {
    flex: 1;
    padding: 1rem;
  }

  .sublist.card .card-body * {
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .sublist.card .card-body h5 {
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESET — HTML corregido: imágenes dentro de sus links.
   Las reglas de grid-row/col del CMS compat asumían que las
   imágenes estaban fuera de los <a>; ahora ya no aplican.
   Los <span> wrapper necesitan display:block para height/overflow.
═══════════════════════════════════════════════════════════ */

/* Span wrappers: necesitan display block para respetar height y overflow */
.hero-main-img,
.bewell-feature .img-wrap,
.bewell-mini-card .img-wrap,
.ss-img-wrap { display: block; }

/* ss-carousel: 5 ss-cards directos → flujo natural de 5 columnas */
.ss-carousel { grid-template-rows: auto; }
.ss-carousel .ss-card,
.ss-carousel .ss-card:nth-child(2),
.ss-carousel .ss-card:nth-child(4),
.ss-carousel .ss-card:nth-child(6),
.ss-carousel .ss-card:nth-child(8),
.ss-carousel .ss-card:nth-child(10) {
  grid-row: auto;
  grid-column: auto;
  padding-top: 0;
}
.ss-carousel .ss-img-wrap { grid-row: auto; grid-column: auto; margin-bottom: 10px; }

/* bewell-grid: 2 hijos directos (bewell-feature + bewell-mini-grid) */
.bewell-grid { grid-template-rows: auto; }
.bewell-grid > .bewell-feature { grid-row: auto; grid-column: auto; }
.bewell-grid > .bewell-mini-grid { grid-row: auto; grid-column: auto; }

/* bewell-mini-grid: 4 bewell-mini-cards en grid 2x2 natural */
.bewell-mini-grid { grid-template-rows: auto; }
.bewell-mini-grid > .bewell-mini-card,
.bewell-mini-grid > .bewell-mini-card:nth-child(2),
.bewell-mini-grid > .bewell-mini-card:nth-child(4),
.bewell-mini-grid > .bewell-mini-card:nth-child(6),
.bewell-mini-grid > .bewell-mini-card:nth-child(8) {
  grid-row: auto;
  grid-column: auto;
}

/* ===== ACCESSIBILITY — REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-play-state: paused; }
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-red);
  color: var(--white);
  padding: 8px 16px;
  font-size: 1.4rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }
