/* ========================================================
   Example Headless — design tokens
   ======================================================== */
:root {
  --brand: #a8262c;
  --brand-dark: #7f1c21;
  --brand-bright: #f2555c; /* same hue, brightened — for text sitting directly on dark backgrounds (~6.5:1 vs var(--ink)) */
  --brand-light: #f2f2f2;
  --ink: #0a0a0a;
  --ink-soft: #55565a;
  --border: #e2e2e2;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --danger: #d42828;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1240px;
  --radius: 2px;
  --radius-lg: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ========================================================
   Top utility bar
   ======================================================== */
.top-bar {
  background: var(--ink);
  color: #8b909b;
  font-size: 0.76rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: 24px;
}
.top-bar-left { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.top-bar-left .edition { color: #c6cad2; font-weight: 600; letter-spacing: 0.03em; }
.top-bar-left .divider { color: #4a4d53; }
.top-bar .date { letter-spacing: 0.02em; }
.weather-chip {
  display: flex; align-items: center; gap: 5px;
  color: #c6cad2; white-space: nowrap; cursor: help;
}
.weather-chip svg { width: 13px; height: 13px; flex-shrink: 0; }

.top-bar-live {
  display: flex; align-items: center; gap: 6px;
  color: var(--brand-bright);
  font-weight: 700; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  flex-shrink: 0;
}
.top-bar-live .pulse-dot { background: var(--brand-bright); width: 6px; height: 6px; }

.top-bar-trend {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}
.top-bar-trend .trend-label {
  flex-shrink: 0;
  color: var(--brand-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}
.top-bar-trend .trend-text {
  color: #c6cad2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.top-bar-trend .trend-text a { color: inherit; }
.top-bar-trend .trend-text a:hover { color: #fff; }

.top-bar-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.top-bar-right .top-link { font-weight: 600; letter-spacing: 0.02em; }
.top-bar-right .top-link:hover { color: #fff; }
.top-bar .social { display: flex; gap: 16px; }
.top-bar .social a {
  color: #8b909b;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.top-bar .social a svg { width: 14px; height: 14px; }
.top-bar .social a:hover { color: #fff; }

@media (max-width: 980px) {
  .top-bar-trend { display: none; }
}
@media (max-width: 760px) {
  .top-bar-weather-divider, .weather-chip { display: none; }
}
@media (max-width: 600px) {
  .top-bar-right .top-link { display: none; }
}

/* ========================================================
   Header
   ======================================================== */
/* ========================================================
   Reading progress bar (article pages only)
   ======================================================== */
.reading-progress {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 3px;
  z-index: 300;
  background: rgba(0,0,0,0.06);
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%; width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 18px rgba(20,22,26,0.06); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 0;
  gap: 40px;
}
.logo-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.05rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.logo span { color: var(--brand); }
.logo-kicker {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-top: 2px;
}
.logo-image { display: block; width: 180px; height: 48px; object-fit: contain; object-position: left center; }
.logo-tagline { max-width: 280px; margin-top: 5px; color: var(--ink-soft); font-size: 0.67rem; line-height: 1.25; }
.footer-tagline { color: rgba(255,255,255,0.72); font-size: 0.78rem; line-height: 1.45; margin: 0 0 8px; }
.footer-brand .logo { font-size: 2.1rem; } /* size set once; color overridden in footer section below */

.main-nav { display: flex; align-items: center; flex: 1; justify-content: center; min-width: 0; }
.main-nav > ul { display: flex; gap: 34px; flex-wrap: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 0;
  display: block;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--brand);
  transition: width 0.2s ease;
}
.main-nav > ul > li > a:hover { color: var(--brand); }
.main-nav > ul > li > a:hover::after { width: 100%; }

.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: -14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(20,22,26,0.09);
  min-width: 210px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.15s ease;
}
.main-nav li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.main-nav .dropdown a:hover { background: var(--bg-alt); color: var(--brand); }

/* Approved reference mega-menu: three compact columns with no duplicated overflow column. */
.main-nav .mega-menu {
  left: auto;
  right: -14px;
  display: flex;
  gap: 32px;
  width: 740px;
  min-width: 740px;
  padding: 26px;
}
.mega-col { flex: 1; min-width: 0; }
.mega-col:first-child { flex: 1.15; }
.mega-col h5 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.mega-col a { padding: 7px 0; }
.mega-col a:hover { background: none; }
.mega-latest { flex: 1.05; }
.mega-latest a {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.mega-latest a:last-child { border-bottom: none; }
.mega-latest a:hover { color: var(--brand); }
.mega-cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 3px;
}
.mega-latest .mega-meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
}

/* Featured Story column — the visual anchor used by the approved reference menu. */
.mega-featured { flex: 1.15; }
.mega-featured-link { display: block; padding: 0; }
.mega-featured-link:hover { background: none; }
.mega-featured-link img { width: 100%; height: 132px; object-fit: cover; border-radius: 2px; }
.mega-featured-link h6 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 10px 0 6px;
}
.mega-featured-link:hover h6 { color: var(--brand); }
.mega-featured-link .mega-meta { display: block; font-size: 0.7rem; color: var(--ink-soft); }

/* More disclosure: semantic button trigger, static build-time panel, no hover-only access. */
.main-nav .more-nav-item { position: relative; }
.main-nav .nav-more-trigger {
  appearance: none;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav .nav-more-trigger span { color: var(--brand); font-size: 0.82em; margin-left: 2px; }
.main-nav .nav-more-trigger:hover,
.main-nav .nav-more-trigger:focus-visible { color: var(--brand); }
.main-nav .nav-more-trigger:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.main-nav .more-nav-item .mega-menu {
  display: none;
  pointer-events: none;
  right: -14px;
  left: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
}
.main-nav .more-nav-item[data-open] .mega-menu {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .mega-menu > .mega-col,
.main-nav .mega-menu > .mega-featured { min-width: 0; }
.main-nav .mega-menu ul { display: flex; flex-direction: column; gap: 0; }
.main-nav .mega-menu .mega-col > ul > li > a { display: block; }
.main-nav .mega-menu .mega-featured h5 { margin-bottom: 10px; }



.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  cursor: pointer;
  background: none;
  color: var(--ink);
  padding: 0;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.menu-toggle { display: none; }
.reading-list-btn.active { border-color: var(--brand); color: var(--brand); background: rgba(168,38,44,0.06); }
.reading-list-btn.active svg { fill: var(--brand); }

/* ========================================================
   Full-screen search overlay
   ======================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
}
.search-overlay.active { opacity: 1; visibility: visible; }
.search-overlay-close {
  position: absolute;
  top: 28px; right: 28px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.search-overlay-close:hover { border-color: var(--brand-bright); color: var(--brand-bright); }
.search-overlay-close svg { width: 18px; height: 18px; }
.search-overlay-inner { width: 100%; max-width: 720px; }
.search-overlay-eyebrow {
  color: var(--brand-bright);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; text-align: center; margin-bottom: 18px;
}
.search-overlay form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  padding-bottom: 18px;
  transition: border-color 0.15s ease;
}
.search-overlay form:focus-within { border-color: var(--brand-bright); }
.search-overlay input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.search-overlay input::placeholder { color: #5f6570; }
.search-overlay button[type="submit"] {
  background: none; border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.search-overlay button[type="submit"] svg { width: 26px; height: 26px; }
.search-overlay-suggest { margin-top: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.search-overlay-suggest span { font-size: 0.76rem; color: #5f6570; text-transform: uppercase; letter-spacing: 0.06em; }
.search-overlay-suggest a {
  font-size: 0.78rem; color: #c6cad2;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px; padding: 6px 14px;
}
.search-overlay-suggest a:hover { color: #fff; border-color: var(--brand-bright); }
body.search-open { overflow: hidden; }
.btn-subscribe {
  background: var(--ink);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 11px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-subscribe:hover { background: var(--brand); }

/* Breaking news ticker — solid label block, generous spacing, fade-out edge */
.ticker-bar {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ticker-bar .container { padding: 0; max-width: var(--container); }
.ticker-inner {
  display: flex;
  align-items: stretch;
  height: 46px;
}
.ticker-label {
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  white-space: nowrap;
  position: relative;
}
.ticker-label::after {
  content: '';
  position: absolute;
  right: -1px; top: 0; bottom: 0;
  width: 14px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.ticker-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 24px;
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-track a {
  font-size: 0.81rem;
  font-weight: 400;
  color: #c6cad2;
  letter-spacing: 0.01em;
}
.ticker-track a:hover { color: #fff; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================================
   Hero
   ======================================================== */
.hero {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; display: block; }
.hero-main img { width: 100%; height: 580px; object-fit: cover; transition: transform 0.6s ease; }
.hero-main:hover img { transform: scale(1.02); }
.editors-pick-badge {
  position: absolute; top: 20px; left: 20px;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border-radius: 2px;
}
.editors-pick-badge svg { width: 12px; height: 12px; fill: var(--brand); }
.hero-main-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.35) 65%, rgba(0,0,0,0) 100%);
  color: #fff;
  padding: 110px 36px 32px;
}
.hero-main-caption .eyebrow { color: #ffffff; opacity: 0.9; }
.hero-main-caption h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
  max-width: 14ch;
}
.hero-main-caption .meta { font-size: 0.85rem; opacity: 0.9; }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-item { display: flex; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-item img { width: 96px; height: 72px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.hero-side-item h2 { font-size: 0.98rem; font-weight: 700; line-height: 1.35; margin: 2px 0 4px; font-family: var(--font-body); }
.hero-side-item .meta { font-size: 0.72rem; color: var(--ink-soft); }

/* ========================================================
   The Daily Brief — compact editorial roundup
   ======================================================== */
.daily-brief {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--border);
}
.brief-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.brief-head h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brief-head .brief-sub {
  font-size: 0.74rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brief-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.brief-list li {
  border-left: 1px solid var(--border);
  padding: 2px 20px;
}
.brief-list li:first-child { border-left: none; padding-left: 0; }
.brief-list a { display: block; }
.brief-cat {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand);
  margin-bottom: 6px;
}
.brief-list h3 {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}
.brief-list a:hover h3 { color: var(--brand); }

/* ========================================================
   Section heading
   ======================================================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-head::before {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 46px; height: 2px;
  background: var(--brand);
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head a.view-all {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-head a.view-all:hover { color: var(--brand); }

/* ========================================================
   Content layout: main + sidebar
   ======================================================== */
.page-body { padding: 48px 0; }
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
}

/* Category block (homepage section) */
.category-block { margin-bottom: 56px; }
.category-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
}
.card { display: flex; flex-direction: column; transition: transform 0.2s ease; }
.card-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; position: relative; box-shadow: 0 1px 3px rgba(20,22,26,0.06); }
.card-thumb img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-thumb img { transform: scale(1.06); }
.card:hover .card-thumb { box-shadow: 0 14px 28px rgba(20,22,26,0.14); }
.card-thumb .cat-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--brand); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 4px 9px; border-radius: 3px;
}
.card h2, .card h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 6px; }
.card h2 a:hover, .card h3 a:hover { color: var(--brand); }
.card .excerpt { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; }
.card .meta { font-size: 0.72rem; color: var(--ink-soft); }
.card .meta a { color: var(--ink-soft); font-weight: 600; }
.card .meta a:hover { color: var(--brand); }

.category-block.featured-left .category-grid { grid-template-columns: 1.3fr 1fr; }
.category-block.featured-left .card:first-child .card-thumb img { height: 300px; }
.category-block.featured-left .card:first-child h3 { font-size: 1.25rem; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-list .card { flex-direction: row; gap: 12px; }
.side-list .card-thumb { width: 96px; height: 72px; flex-shrink: 0; margin-bottom: 0; }
.side-list .card-thumb img { height: 72px; }
.side-list .card h3 { font-size: 0.88rem; margin-bottom: 4px; }

/* Latest grid (with load more) */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.load-more-wrap { text-align: center; margin-top: 30px; }
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand); }
.btn.outline { background: none; border: 1.5px solid var(--ink); color: var(--ink); }
.btn.outline:hover { border-color: var(--brand); color: var(--brand); }
.hidden-card { display: none; }

/* ========================================================
   Sidebar widgets
   ======================================================== */
.widget {
  margin-bottom: 34px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: none;
}
.widget.widget-plain { border: none; padding: 0; box-shadow: none; background: none; }
.widget-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.widget-title::before {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 32px; height: 2px;
  background: var(--brand);
}
.trending-list { display: flex; flex-direction: column; gap: 16px; }
.trending-item { display: flex; gap: 14px; align-items: flex-start; }
.trending-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--ink);
  line-height: 1;
  flex-shrink: 0;
  width: 38px;
  opacity: 0.7;
}
.trending-item h4 { font-size: 0.86rem; line-height: 1.4; margin-bottom: 4px; font-weight: 600; }
.trending-item .meta { font-size: 0.68rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.most-read-divider {
  margin: 22px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.most-read-list { display: flex; flex-direction: column; gap: 12px; }
.most-read-list li { display: flex; gap: 10px; align-items: baseline; font-size: 0.84rem; font-weight: 600; line-height: 1.4; }
.most-read-list li span { flex-shrink: 0; color: var(--brand); font-weight: 800; font-size: 0.72rem; }
.most-read-list li a:hover { color: var(--brand); }

.editors-picks-list { display: flex; flex-direction: column; gap: 16px; }
.editors-pick-item { display: flex; gap: 12px; align-items: flex-start; }
.editors-pick-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.editors-pick-item h4 { font-size: 0.86rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.editors-pick-item:hover h4 { color: var(--brand); }
.editors-pick-item .meta { font-size: 0.68rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

.newsletter-box {
  background: var(--ink);
  color: #fff;
  padding: 28px 24px;
  border-radius: var(--radius);
}
.newsletter-box h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.newsletter-box p { font-size: 0.8rem; color: #b8bcc4; margin-bottom: 18px; }
.newsletter-box form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-box input {
  padding: 12px 13px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.85rem;
}
.newsletter-box input::placeholder { color: #7c818c; }
.newsletter-box .btn { background: var(--brand); }
.newsletter-box .btn:hover { background: var(--brand-dark); }
.newsletter-box .fine-print { font-size: 0.68rem; color: #9a9ea6; margin-top: 4px; }

.ad-slot {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.category-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.category-pills a {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--ink-soft);
}
.category-pills a:hover { border-color: var(--brand); color: var(--brand); }

/* ========================================================
   Author byline / single post
   ======================================================== */
.article-header { max-width: 800px; margin: 0 auto 26px; text-align: center; }
.article-header .eyebrow { display: block; margin-bottom: 10px; }
.article-header h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 14px;
}
.article-header .dek { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 16px; }
.byline { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.85rem; }
.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.byline a { font-weight: 700; }
.byline a:hover { color: var(--brand); }
.byline .sep { color: var(--border); }

.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

.article-body { max-width: 760px; margin: 0 auto; font-size: 1.02rem; }
.article-body a, .faq-answer a { color: var(--link); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: 2px; }
.article-body a:hover, .faq-answer a:hover { color: var(--brand-dark); }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-family: var(--font-head); font-size: 1.4rem; margin: 30px 0 14px; }
.article-body ul, .article-body ol {
  margin: 0 0 22px 0;
  padding-left: 22px;
}
.article-body ul { list-style: none; }
.article-body ul li {
  position: relative;
  padding-left: 8px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 0.6em;
  width: 6px; height: 6px;
  background: var(--accent);
}
.article-body ol { list-style: none; counter-reset: article-ol; }
.article-body ol li {
  position: relative;
  padding-left: 8px;
  margin-bottom: 10px;
  line-height: 1.6;
  counter-increment: article-ol;
}
.article-body ol li::before {
  content: counter(article-ol) '.';
  position: absolute;
  left: -26px;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--accent);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 26px;
  font-size: 0.9rem;
}
.article-body caption {
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.article-body thead th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  padding: 10px 14px;
  border-bottom: 2px solid var(--ink);
}
.article-body tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}
.article-body tbody tr:nth-child(even) { background: var(--bg-alt); }
.article-body tbody tr td:first-child { color: var(--ink); font-weight: 600; }
.article-body blockquote {
  border-left: 4px solid var(--brand);
  padding: 6px 0 6px 20px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 24px 0;
}
.article-faq { max-width: 900px; margin: 44px 0 0; padding-top: 8px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 42px 18px 0; position: relative; font-family: var(--font-head); font-size: 1.08rem; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 13px; color: var(--brand); font-family: var(--font-body); font-size: 1.5rem; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { color: var(--ink-soft); padding: 0 42px 18px 0; font-size: .95rem; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.share-row { display: flex; gap: 10px; margin: 26px 0; }
.share-row a, .share-row button {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--bg-alt); color: inherit;
  font: inherit; cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}
.share-row a:hover, .share-row button:hover { background: var(--brand); color: #fff; }
.share-row svg { width: 18px; height: 18px; }
.share-status { align-self: center; color: var(--ink-soft); font-size: .78rem; min-width: 70px; }

.author-card {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.author-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-card h3 { font-size: 1rem; margin-bottom: 4px; }
.author-card p { font-size: 0.85rem; color: var(--ink-soft); }

.related-block { max-width: 900px; margin: 50px auto 0; }

/* Breadcrumbs */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 6px; color: #c3c8d0; }

/* Alternating tinted section wrapper */
.section-tint {
  background: var(--bg-alt);
  padding: 40px 0;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Article page: main + sidebar variant (article-body no longer centered alone) */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.article-layout .article-header,
.article-layout .article-cover,
.article-layout .article-body,
.article-layout .share-row,
.article-layout .author-card {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.article-layout .article-header { text-align: left; }
.article-layout .byline { justify-content: flex-start; }
.article-layout .article-cover img { height: auto; aspect-ratio: auto; object-fit: contain; }

.toc-widget ul { display: flex; flex-direction: column; gap: 8px; }
.toc-widget a { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.toc-widget a:hover { color: var(--brand); }
.author-hero {
  text-align: center;
  padding: 44px 0;
  background: var(--bg-alt);
  margin-bottom: 36px;
}
.author-hero img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.author-hero h1 { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 8px; }
.author-hero p { max-width: 520px; margin: 0 auto; color: var(--ink-soft); font-size: 0.92rem; }
.author-hero .stats { margin-top: 14px; font-size: 0.78rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* ========================================================
   Archive / category page
   ======================================================== */
.archive-header { margin-bottom: 30px; }
.archive-header h1 { font-family: var(--font-head); font-size: 1.8rem; text-transform: uppercase; }
.archive-header p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 6px; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ========================================================
   Footer newsletter CTA band (light, sits above the dark footer)
   ======================================================== */
.footer-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 70px;
  overflow: hidden;
}
.brief-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 320px;
}
.brief-cta-copy {
  padding: 70px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 460px;
}
.brief-cta-copy .eyebrow { margin-bottom: 14px; }
.brief-cta-copy h2 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.brief-cta-copy p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 26px; }
.brief-cta-copy form {
  display: flex;
  gap: 10px;
  max-width: 420px;
}
.brief-cta-copy input {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--bg);
}
.brief-cta-copy .btn { padding: 14px 28px; white-space: nowrap; }
.brief-cta-copy .fine-print { font-size: 0.74rem; color: var(--ink-soft); margin-top: 12px; }

/* CSS-drawn editorial visual — avoids an extra network image request while
   still giving the newsletter band real visual weight */
.brief-cta-visual {
  position: relative;
  background: linear-gradient(155deg, #17181b 0%, var(--ink) 55%, #1d1416 100%);
  overflow: hidden;
}
.brief-cta-visual::before {
  content: 'N°01';
  position: absolute;
  right: 28px; top: 24px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}
.brief-cta-visual::after {
  content: 'I';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22rem;
  line-height: 1;
  color: rgba(255,255,255,0.045);
}
.brief-cta-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 34px);
}

@media (max-width: 980px) {
  .brief-cta-grid { grid-template-columns: 1fr; }
  .brief-cta-copy { padding: 50px 0 40px; max-width: none; }
  .brief-cta-visual { min-height: 200px; }
}

/* ========================================================
   Footer
   ======================================================== */
.site-footer {
  background: linear-gradient(180deg, #111214 0%, var(--ink) 45%, #050505 100%);
  color: #9198a3;
  margin-top: 0;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 8%, transparent 8%);
}
/* Large, subtle background watermark of the masthead name.
   This is a real element (not a ::after) because it needs to render the
   site's actual name from the CMS, not a hardcoded string. */
.footer-watermark {
  position: absolute;
  left: 50%; bottom: -34px;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 8.5rem;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.035);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.site-footer > .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.95fr 1.15fr 0.85fr;
  gap: 48px;
  padding: 70px 0 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col { padding-left: 44px; border-left: 1px solid rgba(255,255,255,0.08); }
.footer-brand { padding-left: 0; border-left: none; }
.footer-brand .logo { color: #fff; font-size: 2.1rem; }
.footer-brand .footer-kicker {
  display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: #5f6570; margin-top: 6px;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.8; margin: 18px 0 26px; color: #767c87; max-width: 300px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  color: #9198a3;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover { transform: translateY(-2px); }
/* Micro-interaction: each icon takes on its brand color on hover */
.footer-social a[aria-label="Facebook"]:hover { border-color: #1877F2; color: #1877F2; }
.footer-social a[aria-label="Twitter"]:hover { border-color: #fff; color: #fff; }
.footer-social a[aria-label="Instagram"]:hover {
  border-color: transparent;
  color: #fff;
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.footer-social a[aria-label="YouTube"]:hover { border-color: #FF0000; color: #FF0000; }

.footer-col h3 {
  color: #fff; font-size: 0.76rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 24px; font-weight: 700;
}
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a { font-size: 0.84rem; color: #868c96; display: flex; align-items: center; gap: 8px; }
.footer-col a::before {
  content: '';
  width: 5px; height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}
.footer-col a:hover { color: #fff; }

/* Most Read — numbered headline list, dark-background variant of the sidebar's most-read-list */
.footer-most-read { display: flex; flex-direction: column; gap: 15px; }
.footer-most-read li { display: flex; gap: 10px; align-items: baseline; }
.footer-most-read li span { flex-shrink: 0; color: var(--brand-bright); font-weight: 800; font-size: 0.7rem; font-family: var(--font-head); }
.footer-most-read li a { font-size: 0.82rem; font-weight: 600; line-height: 1.45; color: #c6cad2; }
.footer-most-read li a::before { content: none; }
.footer-most-read li a:hover { color: #fff; }

/* Latest Posts — small thumbnail + title + date, reuses the site's existing image */
.footer-latest { display: flex; flex-direction: column; gap: 18px; }
.footer-latest-item { display: flex; gap: 12px; align-items: flex-start; }
.footer-latest-item::before { display: none !important; }
.footer-latest-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.footer-latest-item h4, .footer-latest-title { font-size: 0.8rem; font-weight: 600; line-height: 1.4; color: #d8dade; margin-bottom: 5px; }
.footer-latest-item:hover h4, .footer-latest-item:hover .footer-latest-title { color: #fff; }
.footer-latest-title { display: block; }
.footer-latest-item .footer-latest-date { display: block; font-size: 0.68rem; color: #5f6570; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-more-link { display: inline-block; margin-top: 16px; font-size: 0.72rem !important; color: var(--brand-bright) !important; }
.footer-more-link::before { display: none !important; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; font-size: 0.76rem; color: #5f6570;
  gap: 20px; flex-wrap: wrap;
}
.footer-bottom a { color: #868c96; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; }

/* ========================================================
   Search page
   ======================================================== */
.search-hero {
  text-align: center;
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}
.search-hero h1 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 22px;
}
.search-hero form {
  max-width: 560px;
  margin: 0 auto 26px;
  position: relative;
}
.search-hero input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg);
}
.search-hero input:focus { outline: none; border-color: var(--accent); }
.search-hero .search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-soft);
  pointer-events: none;
}
.search-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.search-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: none;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--font-body);
}
.search-pill:hover { border-color: var(--accent); color: var(--accent); }

.search-results-area { padding: 40px 0 60px; }
.search-summary { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 24px; }
#searchResults.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.search-empty h2 { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }

/* ========================================================
   404 page
   ======================================================== */
.error-page {
  text-align: center;
  padding: 90px 20px 100px;
  max-width: 560px;
  margin: 0 auto;
}
.error-page .error-code {
  font-family: var(--font-head);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  opacity: 0.08;
  margin-bottom: -1.6rem;
}
.error-page h1 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.error-page p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 30px; }
.error-page form { position: relative; max-width: 420px; margin: 0 auto 30px; }
.error-page input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.error-page .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-soft); }
.error-page-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.error-page-links a { font-size: 0.86rem; font-weight: 600; }
.error-page-links a:hover { color: var(--accent); }
.mobile-drawer {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100%;
  background: #fff; box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  z-index: 100; transition: right 0.25s ease; padding: 24px; overflow-y: auto;
}
.mobile-drawer.open { right: 0; }
.mobile-drawer .close-drawer { margin-bottom: 20px; }
.mobile-drawer .drawer-search-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin-bottom: 18px; padding: 12px 14px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.86rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.mobile-drawer .drawer-search-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--border); }
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 99; display: none;
}
.drawer-backdrop.open { display: block; }



/* Native WordPress child menus -------------------------------------------------
   Astro used custom .dropdown/.mega-menu markup. WordPress outputs .sub-menu,
   so give native menu children the same polished desktop behaviour instead of
   falling back to an unstyled list. */
.main-nav .menu-item-has-children > a { padding-right: 16px; }
.main-nav .menu-item-has-children > a::before {
  content: '▾';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-52%);
  color: var(--brand);
  font-size: 0.72em;
  line-height: 1;
}
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -16px;
  z-index: 140;
  min-width: 220px;
  margin: 0;
  padding: 9px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(20,22,26,0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.main-nav .sub-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -11px;
  height: 11px;
}
.main-nav .sub-menu li { display: block; width: 100%; }
.main-nav .sub-menu a {
  display: block;
  width: 100%;
  padding: 9px 16px;
  color: var(--ink);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.main-nav .sub-menu a::after,
.main-nav .sub-menu a::before { content: none; }
.main-nav .sub-menu a:hover,
.main-nav .sub-menu a:focus-visible {
  color: var(--brand);
  background: var(--bg-alt);
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* In the mobile drawer, child items are intentionally expanded and indented;
   no hover-only interaction is required on touch devices. */
.mobile-drawer .sub-menu {
  position: static;
  display: block;
  margin: 0 0 4px 12px;
  padding: 0 0 0 12px;
  border-left: 1px solid var(--border);
}
.mobile-drawer .sub-menu a {
  padding: 9px 4px;
  font-size: .9rem;
  font-weight: 500;
}

/* ========================================================
   Responsive
   ======================================================== */
/* Nav switches to the hamburger menu earlier than the rest of the layout,
   since the category list is CMS-driven (up to 5 + Home + More) and can
   otherwise get squeezed/wrap depending on name lengths. Matching this to
   the container's own max-width guarantees nav only ever renders with its
   full intended room, never in a squeezed in-between state. */
@media (max-width: 1240px) {
  .main-nav, .header-actions .icon-btn.search-desktop { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 980px) {
  .main-nav .more-nav-item .mega-menu {
    position: fixed;
    top: var(--header-panel-top, 96px);
    left: 16px;
    right: 16px;
    min-width: 0;
    max-height: calc(100vh - var(--header-panel-top, 96px) - 18px);
    overflow-y: auto;
    flex-wrap: wrap;
  }
  .main-nav .mega-col, .main-nav .mega-featured { flex: 1 1 45%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main img { height: 400px; }
  .hero-main-caption h1 { font-size: 2rem; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-layout .article-cover img { height: auto; aspect-ratio: auto; object-fit: contain; }
  .category-grid, .latest-grid, .archive-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .brief-list { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .brief-list li { border-left: none; padding: 14px 0 0; border-top: 1px solid var(--border); }
  .brief-list li:nth-child(odd) { padding-right: 16px; }
  .brief-list li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
  .logo { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .main-nav .more-nav-item .mega-menu { left: 16px; right: 16px; padding: 20px; }
  .main-nav .mega-col, .main-nav .mega-featured { flex-basis: 100%; }
  .category-grid, .latest-grid, .archive-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; }
  .footer-brand { border-top: none; padding-top: 0; }
  .hero-main img { height: 280px; }
  .hero-main-caption { padding: 60px 20px 24px; }
  .hero-main-caption h1 { font-size: 1.6rem; }
  .brief-list { grid-template-columns: 1fr; }
  .brief-list li, .brief-list li:nth-child(even) { border-left: none; padding: 14px 0 0; }
}


/* ========================================================
   Mobile and tablet refinements
   Keeps the editorial desktop theme while preventing header
   compression and horizontal overflow at narrow widths.
   ======================================================== */
@media (max-width: 1100px) {
  .top-bar .container { gap: 12px; }
  .top-bar-trend { display: none; }
  .header-inner { gap: 20px; }
  .logo { font-size: 1.6rem; }
}

@media (max-width: 980px) {
  .header-inner { padding: 20px 0; }
  .header-actions { gap: 10px; }
  .logo-wrap { min-width: 0; }
  .logo { white-space: nowrap; }
  .hero { padding-top: 26px; }
  .article-header { max-width: none; }
}

@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }

  .top-bar .container {
    height: 34px;
    gap: 10px;
  }
  .top-bar-left { gap: 7px; font-size: 0.68rem; }
  .top-bar-left .date {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .top-bar-right { gap: 9px; }
  .top-bar .social { gap: 9px; }

  .site-header { z-index: 80; }
  .header-inner {
    padding: 14px 0;
    gap: 10px;
  }
  .logo { font-size: 1.35rem; }
  .logo-kicker {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }
  .header-actions { gap: 8px; }
  .header-actions .btn-subscribe { display: none; }
  .header-actions .icon-btn,
  .menu-toggle { width: 36px; height: 36px; }

  .hero { padding: 20px 0 28px; }
  .hero-main img { height: auto; aspect-ratio: auto; object-fit: contain; display: block; }
  .hero-main-caption { padding: 80px 18px 20px; }
  .hero-main-caption h1 {
    max-width: none;
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }
  .hero-side { gap: 12px; }
  .hero-side-item { gap: 10px; padding-bottom: 12px; }
  .hero-side-item img { width: 80px; height: 60px; }

  .daily-brief { padding: 24px 0 28px; }
  .brief-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
  }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 1.25rem; }
  .page-body { padding: 32px 0; }
  .category-block { margin-bottom: 38px; }
  .category-grid, .latest-grid, .archive-grid { gap: 20px; }
  .card-thumb img,
  .category-block.featured-left .card:first-child .card-thumb img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .article-header { text-align: left; }
  .article-header h1 { font-size: 1.7rem; }
  .article-header .dek { font-size: 0.95rem; }
  .byline {
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .article-layout .article-cover img,
  .article-cover img { height: auto; aspect-ratio: auto; object-fit: contain; }
  .article-body { font-size: 0.98rem; }
  .article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  .author-card { padding: 16px; gap: 12px; }
  .article-faq { margin-top: 34px; }
  .faq-item summary { font-size: 1rem; }

  .brief-cta-copy { padding: 40px 0 32px; }
  .brief-cta-copy h2 { font-size: 1.9rem; }
  .brief-cta-copy form {
    flex-direction: column;
    max-width: none;
  }
  .brief-cta-copy .btn { width: 100%; }
  .brief-cta-visual { min-height: 150px; }

  .footer-grid { gap: 0; }
  .footer-watermark {
    font-size: 3.8rem;
    bottom: -12px;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }

  .search-hero { padding: 42px 0 28px; }
  .search-hero h1 { font-size: 1.8rem; }
  #searchResults.latest-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* Prevent closed off-canvas UI and full-bleed mobile sections from widening the document. */
@media (max-width: 1240px) {
  html,
  body {
    overflow-x: clip;
  }

  .mobile-drawer {
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .mobile-drawer.open {
    right: 0;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
}

@media (max-width: 600px) {
  .section-tint {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* Compound section rules above reset `.container` padding with `padding: ... 0`.
   Re-apply the phone gutter so content never touches the viewport edge. */
@media (max-width: 600px) {
  .container,
  .header-inner,
  .daily-brief,
  .page-body,
  .search-results-area {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .ticker-bar .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


@media (max-width: 360px) {
  .top-bar .container { justify-content: flex-start; }
  .top-bar-right .top-bar-live,
  .top-bar-right .social { display: none; }
  .top-bar-left { max-width: 100%; overflow: hidden; }
  .top-bar-left .date { flex: 1; }
}


/* Long-form articles can contain wide tables. Allow the one-column grid to
   shrink before the table establishes its own horizontally scrollable area. */
@media (max-width: 980px) {
  .article-layout > main,
  .article-layout > aside,
  .article-layout .article-body {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .article-body table {
    min-width: 0;
  }
}
/* Native WordPress compatibility layer */
.wp-block-image img,.article-body img{max-width:100%;height:auto}.navigation.pagination{margin:40px 0}.nav-links{display:flex;gap:10px;flex-wrap:wrap}.page-numbers{padding:8px 12px;border:1px solid var(--border,#ddd);text-decoration:none}.page-numbers.current{background:var(--brand);color:#fff}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.search-form{display:flex;gap:10px}.search-form input{flex:1}.notice-success,.notice-error{padding:12px 16px;border-radius:4px;margin:18px 0}.notice-success{background:#e9f8ef}.notice-error{background:#fdecec}.mobile-drawer .menu{list-style:none;padding:0}.main-nav>.menu{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}.main-nav li{position:relative}.article-body iframe{max-width:100%}
