/* ══════════════════════════════════════════════════════
   NewsHub — Editorial Stylesheet
   Premium editorial design. Content-first. Mobile-first.
   ══════════════════════════════════════════════════════ */

:root {
  --primary: #1a56db;
  --primary-dark: #1239a8;
  --accent: #c0392b;
  --text: #1a1a2e;
  --text-muted: #5a6378;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --border: #e2e4ea;
  --radius: 8px;
  --shadow: 0 1px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.10);
  --greece: #0d63c9;
  --europe: #003399;
  --world: #16a34a;
  --politics: #7c3aed;
  --economy: #b45309;
  --conflict: #dc2626;
  --technology: #0891b2;
  --environment: #16a34a;
  --health: #db2777;
  --sports: #ea580c;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

body.theme-molistora {
  --primary: #f97316;
  --primary-dark: #c2410c;
  --accent: #ef4444;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --bg: #080f1c;
  --surface: #0f1a2e;
  --border: #1e3354;
  --shadow: 0 1px 12px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.65);
}

/* ── molistora: dramatic header with gradient accent line ── */
body.theme-molistora .site-header {
  background: #0a1628;
  border-bottom: 3px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 3px 0 0 #f97316, 0 4px 20px rgba(0,0,0,0.6);
}
body.theme-molistora .logo-text { color: #f97316; letter-spacing: -0.5px; }
body.theme-molistora .logo-sub  { color: #60a5fa; font-weight: 700; }

/* ── molistora: ticker gets Greek-flag blue stripe ── */
body.theme-molistora .ticker-bar { background: #0d2255; }
body.theme-molistora .ticker-label { background: #f97316; }

/* ── molistora: category pills darker ── */
body.theme-molistora .pill {
  background: #0f1a2e;
  border-color: #1e3354;
  color: #9ca3af;
}
body.theme-molistora .pill:hover { border-color: #f97316; color: #f97316; }
body.theme-molistora .pill.active { background: #f97316; border-color: #f97316; color: white; }
body.theme-molistora .category-bar { background: #080f1c; border-bottom-color: #1e3354; }

/* ── molistora: article cards with subtle accent on hover ── */
body.theme-molistora .article-card { border-color: #1e3354; }
body.theme-molistora .article-card:hover { border-color: #f97316; box-shadow: 0 4px 20px rgba(249,115,22,0.15); }

/* ── molistora: section headers with orange left rule ── */
body.theme-molistora .section-header h2 {
  padding-left: 12px;
  border-left: 4px solid #f97316;
}

/* ── molistora: nav links ── */
body.theme-molistora .nav-link { color: #9ca3af; }
body.theme-molistora .nav-link:hover { background: #1e3354; color: #f97316; }
body.theme-molistora .nav-link.active { background: #f97316; color: white; }
body.theme-molistora .nav-editorial { color: #fb923c !important; }
body.theme-molistora .nav-editorial:hover { background: #431407 !important; color: #fed7aa !important; }
body.theme-molistora .nav-editorial.active { background: #ea580c !important; color: white !important; }

/* ── molistora: seo-intro box ── */
body.theme-molistora .seo-intro { background: #0f1a2e; border-color: #1e3354; }

/* ── molisegine: subtle top-border accent on article cards ── */
body.theme-molisegine .article-card:hover { border-color: #1a56db; box-shadow: 0 4px 20px rgba(26,86,219,0.1); }
body.theme-molisegine .section-header h2 { padding-left: 12px; border-left: 4px solid #1a56db; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.legal-page {
  padding: 36px 0 56px;
}

.legal-shell {
  max-width: 860px;
}

.legal-breadcrumb {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.legal-breadcrumb a:hover {
  color: var(--primary);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.legal-kicker {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.legal-card h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.legal-section + .legal-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.legal-section p + p {
  margin-top: 10px;
}

body.theme-molistora .legal-card {
  background: #0f1a2e;
  border-color: #1e3354;
}

body.theme-molistora .legal-breadcrumb a:hover,
body.theme-molistora .legal-kicker {
  color: #f97316;
}

@media (max-width: 640px) {
  .legal-page {
    padding: 24px 0 40px;
  }

  .legal-card {
    padding: 20px;
    border-radius: 14px;
  }

  .legal-card h1 {
    font-size: 1.6rem;
  }
}

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

body.theme-molistora .site-header {
  border-bottom-color: #f97316;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.logo-text { color: var(--primary); }
.logo-sub { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; }

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover { background: var(--bg); color: var(--primary); }
.nav-link.active { background: var(--primary); color: white; }
.nav-editorial { border: none; background: none; cursor: pointer; color: #92400e; }
.nav-editorial:hover { background: #fef3c7 !important; color: #78350f !important; }
.nav-editorial.active { background: #92400e !important; color: white !important; }

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4px 4px 4px 14px;
  flex: 1;
  max-width: 280px;
}

body.theme-molistora .header-search input {
  color: var(--text);
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font);
  font-size: 0.875rem;
  width: 100%;
}
.header-search button {
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  cursor: pointer;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: background 0.2s;
}
.header-search button:hover { background: var(--primary-dark); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ── TICKER ─────────────────────────────────────────────────────────────── */
.ticker-bar {
  background: var(--primary);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 60px;
  animation: ticker 60s linear infinite;
  padding-left: 100%;
}
.ticker-item {
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.ticker-item:hover { opacity: 0.8; }
.ticker-label {
  background: var(--accent);
  padding: 1px 7px;
  border-radius: 3px;
  margin-right: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── CATEGORY BAR ────────────────────────────────────────────────────────── */
.category-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.category-pills {
  display: flex;
  gap: 8px;
  min-width: max-content;
  padding: 0 16px;
}
.pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: white;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.active { background: var(--primary); border-color: var(--primary); color: white; }
.pill-editorial { border-color: #92400e; color: #92400e; }
.pill-editorial:hover { border-color: #78350f; color: #78350f; background: #fef3c7; }
.pill-editorial.active { background: #92400e; border-color: #92400e; color: white; }

/* ── MAIN LAYOUT ─────────────────────────────────────────────────────────── */
.site-main { padding: 24px 16px; }

.content-layout, .article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  margin-top: 24px;
}

/* ── ADS ─────────────────────────────────────────────────────────────────── */
.ad-unit {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  min-height: 90px;
}
body.theme-molistora .ad-unit { background: #0f172a; border-color: #1e3354; }
.ad-leaderboard { margin-bottom: 24px; min-height: 90px; }
.ad-infeed { margin: 24px 0; min-height: 280px; }
.ad-rectangle { min-height: 250px; margin-bottom: 24px; }
.sticky-ad { position: sticky; top: 80px; }

/* ── SEO INTRO ───────────────────────────────────────────────────────────── */

.seo-intro { display: none; }

/* title shown inline in the section-header row */
.seo-intro-inline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  padding: 0 10px;
  display: block;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0 10px;
}

.article-breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ── ARTICLES SECTION ────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-header h2 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 800; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-count { color: var(--text-muted); font-size: 0.82rem; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ── FEATURED FIRST CARD ─────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .articles-grid .article-card:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 220px;
  }
  .articles-grid .article-card:first-child .card-image {
    width: 42%;
    max-width: 380px;
    aspect-ratio: unset;
    align-self: stretch;
    flex-shrink: 0;
  }
  .articles-grid .article-card:first-child .card-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  .articles-grid .article-card:first-child .card-summary {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.article-ad-card {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 140px;
  padding: 12px;
}

body.theme-molistora .article-body {
  color: #d1d5db;
}

body.theme-molistora .source-credit {
  background: #0f172a;
}
.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
a.article-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 140px; /* fallback for Safari 14 / iOS 14 which lack aspect-ratio support */
  object-fit: cover;
  background: #1e2433;
}
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.card-opinion-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(146,64,14,0.10);
  color: #92400e;
  border: 1px solid rgba(146,64,14,0.22);
  letter-spacing: 0.02em;
}
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.badge-region-greece { background: #dbeafe; color: var(--greece); }
.badge-region-europe { background: #e0e7ff; color: var(--europe); }
.badge-region-world  { background: #dcfce7; color: var(--world); }
.badge-cat-politics    { background: #ede9fe; color: var(--politics); }
.badge-cat-economy     { background: #fef3c7; color: var(--economy); }
.badge-cat-defense     { background: #fee2e2; color: #dc2626; }
.badge-cat-technology  { background: #cffafe; color: var(--technology); }
.badge-cat-mobility    { background: #dcfce7; color: #16a34a; }
.badge-cat-energy      { background: #fef9c3; color: #ca8a04; }
.badge-cat-health      { background: #fce7f3; color: var(--health); }
.badge-cat-sports      { background: #ffedd5; color: var(--sports); }
.badge-cat-misc        { background: #f1f5f9; color: var(--text-muted); }
.badge-cat-general     { background: #f1f5f9; color: var(--text-muted); }
.badge-editorial {
  background: #92400e;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ── molistora: region + category badge overrides ─────────────────────────── */
body.theme-molistora .badge-region-greece { background: #1e3a5f; color: #93c5fd; }
body.theme-molistora .badge-region-europe { background: #1e1b4b; color: #a5b4fc; }
body.theme-molistora .badge-region-world  { background: #14532d; color: #86efac; }
body.theme-molistora .badge-cat-politics    { background: #2e1065; color: #c4b5fd; }
body.theme-molistora .badge-cat-economy     { background: #451a03; color: #fcd34d; }
body.theme-molistora .badge-cat-defense     { background: #450a0a; color: #fca5a5; }
body.theme-molistora .badge-cat-technology  { background: #083344; color: #67e8f9; }
body.theme-molistora .badge-cat-mobility    { background: #052e16; color: #86efac; }
body.theme-molistora .badge-cat-energy      { background: #3b2200; color: #fde047; }
body.theme-molistora .badge-cat-health      { background: #500724; color: #fbcfe8; }
body.theme-molistora .badge-cat-sports      { background: #431407; color: #fdba74; }
body.theme-molistora .badge-cat-misc        { background: #1e293b; color: #9ca3af; }
body.theme-molistora .badge-cat-general     { background: #1e293b; color: #9ca3af; }
body.theme-molistora .badge-editorial       { background: #7c2d12; color: #fdba74; }

/* ── Editorial article cards ──────────────────────────────────────────────── */
.editorial-card {
  grid-column: 1 / -1;               /* span full grid width */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 240px;
  border-top-width: 4px !important;
}
@media (max-width: 640px) {
  .editorial-card { grid-template-columns: 1fr; }
}
.editorial-card-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
  max-height: 320px;
}
.editorial-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 640px) {
  .editorial-card-img-wrap {
    border-radius: 6px 6px 0 0;
    max-height: 200px;
  }
}
.editorial-title {
  font-family: var(--font-serif);
  font-size: 1.25rem !important;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: opacity 0.18s ease;
}
.editorial-summary {
  -webkit-line-clamp: 4 !important;
  line-clamp: 4 !important;
  font-size: 0.88rem !important;
  color: var(--text-secondary, var(--text-muted));
  transition: opacity 0.18s ease;
}
.editorial-title.lang-fade,
.editorial-summary.lang-fade { opacity: 0; }

/* ── Bilingual language toggle ─────────────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 2px 8px;
  border: 1.5px solid #92400e;
  border-radius: 20px;
  background: transparent;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  line-height: 1.6;
  transition: background 0.15s, color 0.15s;
  -webkit-user-select: none;
  user-select: none;
  white-space: nowrap;
}
.lang-toggle:hover { background: #fef3c7; }
.lt-sep { opacity: 0.4; margin: 0 1px; }
.lt-flag { font-size: 0.9em; }
/* Highlight the active language code */
.lang-toggle .lt-el { opacity: 1; font-weight: 900; }
.lang-toggle .lt-en { opacity: 0.45; }
.lang-toggle.lang-active-en .lt-el { opacity: 0.45; font-weight: 400; }
.lang-toggle.lang-active-en .lt-en { opacity: 1; font-weight: 900; }
body.theme-molistora .lang-toggle { border-color: #fdba74; color: #fdba74; }
body.theme-molistora .lang-toggle:hover { background: rgba(253,186,116,0.1); }

.card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  flex: 1;
}
.card-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.card-source { font-weight: 600; }
.card-views { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.card-opinion-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(146, 64, 14, 0.12);
  border: 1px solid rgba(146, 64, 14, 0.3);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
  cursor: default;
  letter-spacing: 0.01em;
}
.card-unique-views { opacity: 0.7; }
.article-view-count { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.article-opinion-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(146, 64, 14, 0.12);
  border: 1px solid rgba(146, 64, 14, 0.3);
  border-radius: 4px;
  padding: 2px 7px;
  white-space: nowrap;
  cursor: default;
}

.source-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.source-stats-summary {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 700;
}

.source-stats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pulse-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.pulse-kpi {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.pulse-kpi-num {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
}

.pulse-kpi-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pulse-region-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pulse-region-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 9px;
  cursor: pointer;
}

.pulse-region-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pulse-subtitle {
  margin: 8px 0 6px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 800;
}

.pulse-momentum-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pulse-momentum-item {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 7px;
}

.pulse-momentum-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pulse-momentum-link {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: var(--text);
  text-decoration: none;
}

.pulse-momentum-rank {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.pulse-momentum-title {
  font-size: 0.8rem;
  line-height: 1.4;
}

.pulse-momentum-link:hover .pulse-momentum-title {
  color: var(--primary);
  text-decoration: underline;
}

.source-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.source-name {
  color: var(--text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-count {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.audience-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
}

.audience-summary {
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #166534;
  font-weight: 800;
}

.audience-meta {
  color: var(--text-muted);
  font-weight: 600;
}

body.theme-molistora .audience-summary {
  background: #172554;
  color: #bfdbfe;
}
body.theme-molistora .source-stats-summary { background: #0f172a; color: #94a3b8; }

.topics-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topics-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.topics-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.topics-group-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.topics-group-title-social {
  margin-top: 2px;
}

.topics-col-title {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--primary);
}

.topic-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.topic-row-head,
.topic-social-head {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: start;
}

.topic-rank {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.topic-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.topic-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.topics-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.topic-preview-list {
  display: grid;
  gap: 6px;
  margin: 6px 0 0 22px;
}

.topic-preview-item {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.42;
  white-space: normal;
  overflow-wrap: anywhere;
}

.topic-preview-item:hover {
  color: var(--primary);
  text-decoration: underline;
}

.topic-preview-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.topic-social-row {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.topic-social-head {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: baseline;
}

.topic-social-snippet {
  margin: 5px 0 0 22px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .topics-columns {
    grid-template-columns: 1fr;
  }
}

/* ── PLACEHOLDER CARD ────────────────────────────────────────────────────── */
.card-placeholder .card-image-ph {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.card-placeholder .ph-line {
  height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  margin-bottom: 8px;
}
.card-placeholder .ph-line.short { width: 60%; }
body.theme-molistora .card-placeholder .card-image-ph,
body.theme-molistora .card-placeholder .ph-line {
  background: linear-gradient(90deg, #0f1a2e 25%, #1e3354 50%, #0f1a2e 75%);
  background-size: 200% 100%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── LOAD MORE ───────────────────────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 24px; }
.load-more-btn {
  padding: 12px 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.load-more-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 20px;
}
.widget-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.ad-slot .ad-slot-inner {
  min-height: 280px;
}

.ad-slot .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 280px;
}

/* ── Cookie consent banner (GDPR / ePrivacy) ─────────────────────────────── */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.consent-banner[hidden] { display: none; }
.consent-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
}
.consent-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.consent-text a { color: var(--primary); text-decoration: underline; }
.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.consent-btn {
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font);
}
.consent-reject {
  background: transparent;
  color: var(--text);
}
.consent-reject:hover { background: var(--bg); }
.consent-accept {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.consent-accept:hover { background: var(--primary-dark); }

@media (max-width: 600px) {
  .consent-inner { padding: 12px 14px; }
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1 1 0; }
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.2s;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { color: var(--primary); }
.trending-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  width: 24px;
  opacity: 0.5;
}
.trending-title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.trending-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

.region-links { display: flex; flex-direction: column; gap: 8px; }
.region-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg);
  transition: all 0.2s;
}
.region-link:hover { background: var(--primary); color: white; }

/* ── ARTICLE FULL ────────────────────────────────────────────────────────── */
.article-full { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
  cursor: pointer;
}
.article-back:hover { text-decoration: underline; }

.article-badges { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.article-full h1 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.article-meta-bar strong { color: var(--text); }
.article-opinion-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 4px;
  background: rgba(146,64,14,0.10);
  color: #92400e;
  border: 1px solid rgba(146,64,14,0.22);
}

.article-hero-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  max-height: 420px;
  object-fit: cover;
}

/* AD inside article */
.ad-in-article {
  margin: 24px 0;
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #2d3748;
  max-width: 680px;
}
.article-body p { margin-bottom: 1.4em; }

/* ── Key Takeaways Box ──────────────────────────────────────────────────── */
.article-takeaways {
  margin: 24px 0 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid var(--accent, #2563eb);
  border-radius: 8px;
  max-width: 680px;
}
.article-audio-player {
  margin: 20px 0 28px;
  max-width: 680px;
}
.article-audio-player audio {
  width: 100%;
  border-radius: 6px;
}
.takeaways-header {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 12px;
}
.takeaways-icon {
  margin-right: 6px;
}
.takeaways-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.takeaways-list li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.97rem;
  line-height: 1.55;
  color: #1e3a5f;
}
.takeaways-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent, #2563eb);
  font-weight: 700;
}
.takeaways-list li + li {
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}
body.theme-molistora .article-takeaways {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-left-color: var(--accent, #f59e0b);
}
body.theme-molistora .takeaways-header { color: #f1f5f9; }
body.theme-molistora .takeaways-list li { color: #cbd5e1; }
body.theme-molistora .takeaways-list li::before { color: var(--accent, #f59e0b); }
body.theme-molistora .takeaways-list li + li { border-top-color: rgba(245, 158, 11, 0.15); }

.article-opinion-section {
  margin-top: 36px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border-left: 4px solid #d97706;
  border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.article-opinion-section .opinion-header {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-opinion-section .opinion-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #78350f;
}
.article-opinion-section .opinion-content p {
  margin-bottom: 0.9em;
}
.article-opinion-section .opinion-content p:last-child {
  margin-bottom: 0;
}
.opinion-author {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 119, 6, 0.2);
  font-size: 0.85rem;
  color: #92400e;
  font-weight: 600;
  font-style: italic;
}

/* Second-persona reply block — threaded reply beneath the main opinion */
.opinion-reply {
  margin-top: 16px;
  padding: 12px 14px 12px 16px;
  border-left: 3px solid rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.05);
  border-radius: 0 6px 6px 0;
}
.opinion-reply-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.8;
}
.opinion-reply-content {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.55;
}
.opinion-reply-content p { margin: 0; }

body.theme-molistora .article-opinion-section {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.04));
  border-left-color: #f97316;
}
body.theme-molistora .article-opinion-section .opinion-header {
  color: #ea580c;
}
body.theme-molistora .article-opinion-section .opinion-content {
  color: #fed7aa;
}
body.theme-molistora .opinion-author {
  color: #fb923c;
  border-top-color: rgba(249, 115, 22, 0.2);
}

.article-tags {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.tag-chip:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* old source-credit styles removed — see editorial section below */

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer { background: #1e293b; color: #94a3b8; margin-top: 48px; padding: 40px 0 0; }
body.theme-molistora .site-footer { background: #020617; color: #9ca3af; }
body.theme-molistora .footer-links a:hover { color: #f97316; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand { color: white; }
.footer-brand p { margin-top: 8px; font-size: 0.85rem; color: #94a3b8; line-height: 1.5; }
.footer-links h4 { color: white; font-size: 0.9rem; margin-bottom: 12px; }
.footer-links a {
  display: block;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid #334155;
  padding: 16px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ── LOADING ─────────────────────────────────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.loading-overlay.active { display: flex; }
body.theme-molistora .loading-overlay { background: rgba(8,15,28,0.85); }
.spinner {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ─────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* ── EDITORIAL WIDGETS ───────────────────────────────────────────────────── */
.editorial-widget .widget-text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.editorial-widget .widget-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
}
.editorial-widget .widget-link:hover {
  text-decoration: underline;
}

/* ── AUTHOR BYLINE (article page) ───────────────────────────────────────── */
.author-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  margin-top: 28px;
  border-top: 1px solid var(--border);
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── SOURCE CREDIT (article page) ────────────────────────────────────────── */
.source-credit {
  margin-top: 24px;
  padding: 16px 20px;
  background: #f0f4ff;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.source-credit a { color: var(--primary); font-weight: 600; }
.source-credit a:hover { text-decoration: underline; }

body.theme-molistora .source-credit {
  background: #0f172a;
  border-left-color: #f97316;
}

/* ── Share Bar ─────────────────────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.share-btn:hover { transform: scale(1.12); opacity: 0.85; }
.share-twitter { background: #1d9bf0; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-copy { background: var(--text-muted); font-size: 1.05rem; }

/* ── Vote Bar (Thumbs Up / Down) ───────────────────────────────────────── */
.vote-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.vote-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
}
.vote-btn:hover {
  transform: scale(1.06);
}
.vote-btn .vote-icon {
  font-size: 1.2rem;
}
.vote-btn .vote-count {
  font-size: 0.82rem;
  opacity: 0.8;
}
.vote-up:hover, .vote-up.vote-active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}
.vote-down:hover, .vote-down.vote-active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* molistora dark theme vote overrides */
.theme-molistora .vote-btn {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #e0e0e0;
}
.theme-molistora .vote-up:hover,
.theme-molistora .vote-up.vote-active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.theme-molistora .vote-down:hover,
.theme-molistora .vote-down.vote-active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ── Related Articles ──────────────────────────────────────────────────── */
.related-section {
  margin-top: 36px;
}
.related-header {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.related-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.related-card-img {
  width: 100%; height: 120px;
  object-fit: cover;
}
.related-card-body {
  padding: 10px 12px;
}
.related-card-title {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 6px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}
body.theme-molistora .related-card {
  border-color: #334155;
  background: #1e293b;
}
body.theme-molistora .related-header {
  border-bottom-color: var(--accent, #f59e0b);
}

/* ── Reading Progress Bar ──────────────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  z-index: 10000;
  transition: width 0.1s linear;
}
body.theme-molistora .reading-progress {
  background: var(--accent, #f59e0b);
}

/* ── READING TIME BADGE ──────────────────────────────────────────────────── */
.reading-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── SKIP LINK (accessibility) ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 10001;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── FOCUS STYLES (accessibility) ────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
body.theme-molistora :focus-visible {
  outline-color: #f97316;
}
.nav-link:focus-visible,
.pill:focus-visible,
.load-more-btn:focus-visible,
.region-link:focus-visible,
.share-btn:focus-visible,
.vote-btn:focus-visible,
.tag-chip:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(26, 86, 219, 0.15);
}
body.theme-molistora .nav-link:focus-visible,
body.theme-molistora .pill:focus-visible,
body.theme-molistora .load-more-btn:focus-visible,
body.theme-molistora .region-link:focus-visible,
body.theme-molistora .share-btn:focus-visible,
body.theme-molistora .vote-btn:focus-visible,
body.theme-molistora .tag-chip:focus-visible {
  outline-color: #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.2);
}

/* ── TOUCH TARGETS (WCAG 2.5.5 — 44px minimum) ──────────────────────── */
.header-search button {
  width: 44px;
  height: 44px;
}
.mobile-menu-btn {
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.share-btn {
  width: 44px;
  height: 44px;
}
.region-link {
  min-height: 44px;
}

/* ── ACCESSIBILITY TOOLBAR ───────────────────────────────────────────── */
.a11y-toolbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}
.a11y-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.15s;
}
.a11y-toggle-btn:hover { transform: scale(1.1); }
.a11y-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 200px;
}
.a11y-panel.open { display: block; }
.a11y-panel-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: var(--text);
}
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}
.a11y-row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.a11y-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.a11y-btn:hover { background: var(--primary); color: white; }
.a11y-btn.active { background: var(--primary); color: white; }
body.a11y-high-contrast {
  --text: #000000 !important;
  --text-muted: #333333 !important;
  --bg: #ffffff !important;
  --surface: #ffffff !important;
  --border: #000000 !important;
}
body.a11y-high-contrast.theme-molistora {
  --text: #ffffff !important;
  --text-muted: #dddddd !important;
  --bg: #000000 !important;
  --surface: #111111 !important;
  --border: #ffffff !important;
}
body.a11y-large-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23000' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") 16 16, auto;
}
body.a11y-dyslexia-font {
  --font: 'OpenDyslexic', 'Comic Sans MS', 'Inter', sans-serif !important;
}
body.a11y-line-height .article-body,
body.a11y-line-height .article-opinion-section .opinion-content,
body.a11y-line-height .takeaways-list li {
  line-height: 2.2 !important;
}

/* ── REDUCED MOTION ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-inner { animation: none !important; }
  .card-placeholder .card-image-ph,
  .card-placeholder .ph-line { animation: none !important; }
  .article-card:hover,
  .related-card:hover { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   DARK MODE — molisegine only (not molistora — molistora is always dark)
   Design target: WCAG AA (≥4.5:1 text, ≥3:1 UI) on deep-navy surface.
   Primary text #e2e8f0 on #1e293b ≈ 11.7:1  ✓
   Muted text  #94a3b8 on #1e293b ≈  5.2:1  ✓
   ══════════════════════════════════════════════════════════════════════ */
body.dark-mode:not(.theme-molistora) {
  --primary:      #60a5fa;   /* brighter blue — stands out on dark surface */
  --primary-dark: #3b82f6;
  --accent:       #f87171;
  --text:         #e2e8f0;   /* warm off-white — less eyestrain than pure white */
  --text-muted:   #94a3b8;
  --bg:           #0b1120;   /* deepest background */
  --surface:      #1e293b;   /* card / widget surface */
  --border:       #2d3f55;   /* slightly open borders — visible but not harsh */
  --shadow:       0 1px 8px rgba(0,0,0,0.45);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.65);
}

/* ── Header ─────────────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .site-header {
  background: #111827;
  border-bottom-color: #3b82f6;
}
body.dark-mode:not(.theme-molistora) .nav-link          { color: #cbd5e1; }
body.dark-mode:not(.theme-molistora) .nav-link:hover    { background: #1e293b; color: #60a5fa; }
body.dark-mode:not(.theme-molistora) .nav-link.active   { background: #3b82f6; color: #fff; }
body.dark-mode:not(.theme-molistora) .nav-editorial          { color: #fbbf24 !important; }
body.dark-mode:not(.theme-molistora) .nav-editorial:hover    { background: #451a03 !important; color: #fde68a !important; }
body.dark-mode:not(.theme-molistora) .nav-editorial.active   { background: #b45309 !important; color: white !important; }
body.dark-mode:not(.theme-molistora) .logo-text         { color: #60a5fa; }
body.dark-mode:not(.theme-molistora) .logo-sub          { color: #94a3b8; }

/* ── Search ─────────────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .header-search {
  background: #1e293b;
  border-color: #334155;
}
body.dark-mode:not(.theme-molistora) .header-search input,
body.dark-mode:not(.theme-molistora) input {
  background: transparent;
  color: #e2e8f0;
  border-color: #334155;
}

/* ── Category bar + pills ───────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .category-bar  { background: #0b1120; border-bottom-color: #2d3f55; }
body.dark-mode:not(.theme-molistora) .pill          { background: #1e293b; border-color: #334155; color: #94a3b8; }
body.dark-mode:not(.theme-molistora) .pill:hover    { border-color: #60a5fa; color: #60a5fa; }
body.dark-mode:not(.theme-molistora) .pill.active   { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* ── Cards ──────────────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .article-card {
  background: #1e293b;
  border-color: #2d3f55;
}
body.dark-mode:not(.theme-molistora) .article-card:hover {
  border-color: #60a5fa;
  box-shadow: 0 4px 20px rgba(96,165,250,0.12);
}

/* ── Region badges ──────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .badge-region-greece { background: #1e3a5f; color: #93c5fd; }
body.dark-mode:not(.theme-molistora) .badge-region-europe { background: #1e1b4b; color: #a5b4fc; }
body.dark-mode:not(.theme-molistora) .badge-region-world  { background: #14532d; color: #86efac; }

/* ── Category badges ────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .badge-cat-politics    { background: #2e1065; color: #c4b5fd; }
body.dark-mode:not(.theme-molistora) .badge-cat-economy     { background: #451a03; color: #fcd34d; }
body.dark-mode:not(.theme-molistora) .badge-cat-defense     { background: #450a0a; color: #fca5a5; }
body.dark-mode:not(.theme-molistora) .badge-cat-technology  { background: #083344; color: #67e8f9; }
body.dark-mode:not(.theme-molistora) .badge-cat-mobility    { background: #052e16; color: #86efac; }
body.dark-mode:not(.theme-molistora) .badge-cat-energy      { background: #3b2200; color: #fde047; }
body.dark-mode:not(.theme-molistora) .badge-cat-health      { background: #500724; color: #fbcfe8; }
body.dark-mode:not(.theme-molistora) .badge-cat-sports      { background: #431407; color: #fdba74; }
body.dark-mode:not(.theme-molistora) .badge-cat-misc        { background: #1e293b; color: #94a3b8; }
body.dark-mode:not(.theme-molistora) .badge-cat-general     { background: #1e293b; color: #94a3b8; }

/* ── Sidebar ────────────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .sidebar-widget {
  background: #1e293b;
  border-color: #2d3f55;
}

/* ── Article body — was hardcoded #2d3748, nearly invisible on dark ─── */
body.dark-mode:not(.theme-molistora) .article-body { color: #d1d5db; }

/* ── Key takeaways — was hardcoded light-blue gradient + dark navy text */
body.dark-mode:not(.theme-molistora) .article-takeaways {
  background: #172554;
  border-left-color: #60a5fa;
}
body.dark-mode:not(.theme-molistora) .takeaways-header       { color: #bfdbfe; }
body.dark-mode:not(.theme-molistora) .takeaways-list li      { color: #cbd5e1; }
body.dark-mode:not(.theme-molistora) .takeaways-list li::before { color: #60a5fa; }
body.dark-mode:not(.theme-molistora) .takeaways-list li + li { border-top-color: rgba(96,165,250,0.12); }

/* ── Opinion section — was hardcoded yellow gradient + near-black text ─ */
body.dark-mode:not(.theme-molistora) .article-opinion-section {
  background: linear-gradient(135deg, rgba(146,64,14,0.18), rgba(120,53,15,0.10));
  border-left-color: #d97706;
}
body.dark-mode:not(.theme-molistora) .article-opinion-section .opinion-header { color: #fbbf24; }
body.dark-mode:not(.theme-molistora) .article-opinion-section .opinion-content { color: #fde68a; }
body.dark-mode:not(.theme-molistora) .opinion-author {
  color: #f59e0b;
  border-top-color: rgba(217,119,6,0.2);
}
body.dark-mode:not(.theme-molistora) .opinion-reply {
  background: rgba(146, 64, 14, 0.12);
  border-left-color: rgba(217, 119, 6, 0.4);
}
body.dark-mode:not(.theme-molistora) .opinion-reply-header { color: #fbbf24; }
body.dark-mode:not(.theme-molistora) .opinion-reply-content { color: #fde68a; }

/* ── Source credit — was hardcoded #f0f4ff (very light blue) ─────────── */
body.dark-mode:not(.theme-molistora) .source-credit {
  background: #1e293b;
  border-left-color: #3b82f6;
  color: #94a3b8;
}

/* ── Stats widgets — hardcoded light pastel backgrounds ─────────────── */
body.dark-mode:not(.theme-molistora) .audience-summary  { background: #172554; color: #bfdbfe; }
body.dark-mode:not(.theme-molistora) .source-stats-summary { background: #1e1b4b; color: #c7d2fe; }

/* ── Card placeholder shimmer ───────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .card-placeholder .card-image-ph,
body.dark-mode:not(.theme-molistora) .card-placeholder .ph-line {
  background: linear-gradient(90deg, #1e293b 25%, #2d3f55 50%, #1e293b 75%);
  background-size: 200% 100%;
}

/* ── Loading overlay ────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .loading-overlay { background: rgba(11,17,32,0.8); }

/* ── Related cards ──────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .related-card {
  background: #1e293b;
  border-color: #2d3f55;
}

/* ── Ad units ───────────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .ad-unit {
  background: #1e293b;
  border-color: #334155;
}

/* ── Vote buttons ───────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .vote-btn {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
}
body.dark-mode:not(.theme-molistora) .vote-up:hover,
body.dark-mode:not(.theme-molistora) .vote-up.vote-active {
  border-color: #22c55e; background: rgba(34,197,94,0.12); color: #4ade80;
}
body.dark-mode:not(.theme-molistora) .vote-down:hover,
body.dark-mode:not(.theme-molistora) .vote-down.vote-active {
  border-color: #ef4444; background: rgba(239,68,68,0.12); color: #f87171;
}

/* ── Tag chips ──────────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .tag-chip {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

/* ── SEO intro ──────────────────────────────────────────────────────── */
body.dark-mode:not(.theme-molistora) .seo-intro {
  background: #1a2640;
  border-color: #2d3f55;
  border-left-color: #3b82f6;
}

/* dark-mode toggle button */
.dark-mode-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.dark-mode-toggle:hover { background: var(--surface); color: var(--text); }
@media (max-width: 600px) {
  .dark-mode-toggle { display: none; }
}

/* ── PUSH BELL BUTTON ─────────────────────────────────────────────────── */
.push-bell-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.push-bell-btn:hover { background: var(--surface); color: var(--text); }
.push-bell-btn.push-active { border-color: #1a56db; color: #1a56db; }
@media (max-width: 600px) { .push-bell-btn { display: none; } }

/* ── TOAST NOTIFICATION ──────────────────────────────────────────────── */
#site-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e293b;
  color: #f1f5f9;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
}
#site-toast.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ── PAGINATION BAR ──────────────────────────────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.page-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.page-btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-indicator {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── HIGH CONTRAST PREFERENCE ────────────────────────────────────────── */
@media (prefers-contrast: more) {
  :root {
    --border: #999999;
    --text-muted: #444444;
    --shadow: 0 1px 4px rgba(0,0,0,0.2);
  }
  .badge, .ticker-label {
    border: 1px solid currentColor;
  }
}

/* ── TABLET (1024px) ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-layout, .article-layout {
    grid-template-columns: 1fr 240px;
    gap: 20px;
  }
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* on mobile hide the inline label — too cramped next to section title */
  .seo-intro-inline { display: none; }

  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface, white);
    padding: 12px;
    box-shadow: var(--shadow, 0 8px 20px rgba(0,0,0,0.1));
    z-index: 999;
  }
  .mobile-menu-btn { display: block; }
  .header-search { display: none; }

  .topics-columns { grid-template-columns: 1fr; }

  .content-layout, .article-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }

  .articles-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .article-full h1 { font-size: 1.35rem; }
  .share-bar { justify-content: center; }
  .vote-bar { justify-content: center; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Persona discussion (cross-persona threaded comments) ─────────────────── */
.persona-comments-section { margin: 28px 0; }
.persona-comments-header {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border, #e5e7eb);
}
.persona-comment {
  border-left: 3px solid var(--accent, #1a56db);
  padding: 8px 0 8px 12px; margin: 10px 0;
}
.persona-comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.persona-comment-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent, #1a56db); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.persona-comment-name { font-weight: 600; font-size: 0.92rem; }
.persona-comment-body p { margin: 4px 0; line-height: 1.55; }
