/* =================================================================
   SnapsDispatch — styles.css
   Editorial news design. Light/dark via [data-theme].
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --accent: #d62828;          /* dispatch red */
  --accent-deep: #a51d1d;
  --accent-soft: #fdecec;
  --ink: #0f1115;             /* near-black ink */
  --ink-2: #2a2f38;
  --muted: #6b7280;
  --line: #e6e8ec;
  --line-2: #eef0f3;
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #f0f2f5;
  --gold: #c9a227;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(15,17,21,.04), 0 1px 3px rgba(15,17,21,.06);
  --shadow-md: 0 6px 18px rgba(15,17,21,.08);
  --shadow-lg: 0 18px 50px rgba(15,17,21,.14);

  --speed: .22s;
}

[data-theme="dark"] {
  --accent: #ff4d4d;
  --accent-deep: #ff7676;
  --accent-soft: #2a1416;
  --ink: #f3f4f6;
  --ink-2: #c7ccd4;
  --muted: #9aa3af;
  --line: #2a2f38;
  --line-2: #232830;
  --paper: #14171c;
  --paper-2: #1a1e24;
  --paper-3: #20252d;
  --gold: #e0b94a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 18px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--speed), color var(--speed);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; padding: 0; }
input { font: inherit; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 760px); }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .8rem; }
.topbar__inner {
  display: flex; align-items: center; gap: 1rem; height: 38px;
}
.topbar__date { color: rgba(255,255,255,.78); letter-spacing: .02em; }
.topbar__updated {
  color: rgba(255,255,255,.92); font-size: .78rem; padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,.18); margin-left: .2rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.topbar__updated::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #38d39f;
  box-shadow: 0 0 0 0 rgba(56,211,159,.7); animation: pulse 2s infinite;
}
@media (max-width: 640px) { .topbar__updated { display: none; } }
.topbar__back { color: rgba(255,255,255,.85); }
.topbar__back:hover { color: #fff; }
.topbar__spacer { flex: 1; }
.topbar__nav { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.7); }
.topbar__nav a { color: rgba(255,255,255,.85); }
.topbar__nav a:hover { color: #fff; }
.topbar__nav .sep { opacity: .4; }
.theme-toggle {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; color: rgba(255,255,255,.9);
  transition: background var(--speed);
}
.theme-toggle:hover { background: rgba(255,255,255,.12); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (max-width: 640px) { .topbar__nav { display: none; } }

/* ---------- Breaking ticker ---------- */
.ticker {
  display: flex; align-items: stretch;
  background: var(--accent); color: #fff; font-size: .82rem; font-weight: 500;
  overflow: hidden;
}
.ticker__label {
  display: flex; align-items: center; gap: .45rem;
  padding: .5rem .9rem; background: var(--accent-deep);
  font-weight: 700; letter-spacing: .06em; white-space: nowrap; flex-shrink: 0;
}
.ticker__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.6);} 70%{box-shadow:0 0 0 8px rgba(255,255,255,0);} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0);} }
.ticker__viewport { flex: 1; overflow: hidden; position: relative; }
.ticker__viewport::before, .ticker__viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40px; z-index: 2; pointer-events: none;
}
.ticker__viewport::before { left: 0; background: linear-gradient(90deg, var(--accent), transparent); }
.ticker__viewport::after { right: 0; background: linear-gradient(270deg, var(--accent), transparent); }
.ticker__track {
  display: inline-flex; gap: 2.5rem; white-space: nowrap;
  padding: .5rem 0; padding-left: 1rem;
  animation: marquee 38s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }
.ticker__track span::before { content: "◆"; margin-right: .6rem; opacity: .7; }
@keyframes marquee { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.masthead--article { position: static; }
.masthead__inner {
  display: flex; align-items: center; gap: 1.25rem; height: 76px;
}
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--speed); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.logo__mark { color: var(--accent); display: grid; place-items: center; }
.logo__text {
  font-family: var(--serif); font-weight: 800; font-size: 1.55rem; letter-spacing: -.01em;
}
.logo__accent { color: var(--accent); }
.logo--light { color: #fff; }
.logo--light .logo__accent { color: var(--accent); }

.search {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: .42rem .9rem; width: 240px;
  transition: border var(--speed), box-shadow var(--speed);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search__icon { color: var(--muted); flex-shrink: 0; }
.search input { border: none; outline: none; background: none; color: var(--ink); width: 100%; }
.search input::placeholder { color: var(--muted); }
.search--mobile { width: 100%; margin-top: 1rem; }
@media (max-width: 760px) {
  .search { display: none; }
  .hamburger { display: flex; }
  .logo__text { font-size: 1.35rem; }
  .masthead__inner { height: 64px; }
}

/* ---------- Primary nav ---------- */
.primary-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.primary-nav__list {
  display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
}
.primary-nav__list::-webkit-scrollbar { display: none; }
.primary-nav__list a {
  display: block; padding: .8rem .85rem; font-weight: 600; font-size: .9rem;
  color: var(--ink-2); white-space: nowrap; position: relative;
  border-bottom: 2px solid transparent; transition: var(--speed);
}
.primary-nav__list a:hover { color: var(--accent); }
.primary-nav__list a.active { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 760px) { .primary-nav { display: none; } }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); z-index: 100;
  background: var(--paper); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform var(--speed);
  padding: 1.25rem; overflow-y: auto;
}
.mobile-menu[hidden] { display: block !important; transform: translateX(100%); pointer-events: none; }
.mobile-menu__inner { display: flex; flex-direction: column; }
.mobile-menu ul li a {
  display: block; padding: .85rem .25rem; font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid var(--line-2); color: var(--ink);
}
.mobile-menu ul li a:hover { color: var(--accent); }
.menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; opacity: 0; visibility: hidden; transition: var(--speed);
}
.menu-overlay.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.75rem; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 1.25rem; } }

/* Lead story */
.hero__lead { display: flex; flex-direction: column; }
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16 / 9; margin-bottom: 1rem; box-shadow: var(--shadow-md);
}
.hero__lead .hero-media { aspect-ratio: 16 / 10; }
.kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .55rem;
}
.hero__lead .hero-title {
  font-family: var(--serif); font-weight: 800; line-height: 1.08;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.015em;
}
.hero__lead .hero-title a:hover { color: var(--accent); }
.hero__lead .hero-excerpt { margin-top: .7rem; color: var(--ink-2); font-size: 1.06rem; }
.byline-mini { margin-top: .9rem; font-size: .82rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
.byline-mini b { color: var(--ink-2); font-weight: 600; }
.byline-mini .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* Side stories */
.hero__side { display: flex; flex-direction: column; gap: 1.1rem; }
.hero-side-item { display: flex; gap: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-item .hero-title { font-family: var(--serif); font-weight: 700; font-size: 1.06rem; line-height: 1.25; }
.hero-side-item .hero-title a:hover { color: var(--accent); }
.hero-side-item .byline-mini { margin-top: .35rem; font-size: .76rem; }

/* ---------- Media (real images w/ gradient fallback) ---------- */
.thumb, .hero-media {
  background: linear-gradient(135deg, #d9dde3, #b9c0ca);
  position: relative;
}
[data-theme="dark"] .thumb,
[data-theme="dark"] .hero-media { background: linear-gradient(135deg, #2a2f38, #20252d); }
.thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.thumb img, .hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s ease;
}
a.thumb:hover img, a.hero-media:hover img, .cat-card .thumb:hover img { transform: scale(1.045); }
/* keep the small side-thumb sized */
.hero-side-item .thumb { width: 110px; flex-shrink: 0; }
@media (max-width: 560px) { .hero-side-item .thumb { width: 92px; } }

/* ---------- Main grid (feed + sidebar) ---------- */
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; padding: 2.25rem 0; }
@media (max-width: 900px) { .main-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

.section-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.4rem; }
.section-title {
  font-family: var(--serif); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em;
  position: relative; padding-left: .85rem;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px;
  background: var(--accent); border-radius: 2px;
}
.section-sub { font-size: .82rem; color: var(--muted); }

/* Feed list */
.feed__list { display: flex; flex-direction: column; }
.feed-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.1rem;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.feed-item:first-child { padding-top: 0; }
.feed-item .thumb { width: 200px; }
.feed-item .feed-title {
  font-family: var(--serif); font-weight: 700; font-size: 1.28rem; line-height: 1.2; letter-spacing: -.005em;
}
.feed-item .feed-title a:hover { color: var(--accent); }
.feed-item .feed-excerpt { margin-top: .5rem; color: var(--ink-2); font-size: .95rem; }
.feed-item .byline-mini { margin-top: .7rem; }
@media (max-width: 640px) {
  .feed-item { grid-template-columns: 100px 1fr; gap: .85rem; }
  .feed-item .thumb { width: 100px; }
  .feed-item .feed-title { font-size: 1.05rem; }
  .feed-item .feed-excerpt { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  transition: var(--speed); cursor: pointer; border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn--ghost { background: var(--paper-2); color: var(--ink); border-color: var(--line); margin-top: 1.5rem; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); }
.btn--outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem; }
.sidebar__card { background: var(--paper-2); }
.card__title {
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.trending { counter-reset: trend; display: flex; flex-direction: column; gap: .9rem; }
.trending li { counter-increment: trend; display: flex; gap: .8rem; align-items: flex-start; }
.trending li::before {
  content: counter(trend, decimal-leading-zero);
  font-family: var(--serif); font-weight: 800; font-size: 1.2rem; color: var(--accent);
  line-height: 1; min-width: 1.8rem;
}
.trending li a { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.trending li a:hover { color: var(--accent); }
.trending li .trend-cat { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: .2rem; text-transform: uppercase; letter-spacing: .06em; }

/* Newsletter card */
.newsletter-card { background: linear-gradient(160deg, var(--accent), var(--accent-deep)); color: #fff; border: none; }
.newsletter-card .card__title { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.2); }
.newsletter-card__text { font-size: .92rem; opacity: .95; margin-bottom: 1rem; }
.newsletter { display: flex; flex-direction: column; gap: .6rem; }
.newsletter input {
  border: none; border-radius: 999px; padding: .65rem 1rem; outline: none;
}
.newsletter input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.newsletter-card__note { font-size: .82rem; opacity: .95; }

/* Editor's pick */
.editors-pick .feed-title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.25; margin-top: .55rem; }
.editors-pick .feed-title a:hover { color: var(--accent); }
.editors-pick .byline-mini { margin-top: .5rem; font-size: .76rem; }

/* ---------- Category band ---------- */
.band { background: var(--paper-2); padding: 2.5rem 0; margin-top: 1rem; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card { display: flex; flex-direction: column; }
.cat-card .thumb { aspect-ratio: 4 / 3; margin-bottom: .8rem; }
.cat-card .cat-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cat-card .feed-title { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; line-height: 1.25; margin-top: .35rem; }
.cat-card .feed-title a:hover { color: var(--accent); }
.cat-card .byline-mini { margin-top: .5rem; font-size: .76rem; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: #fff; padding: 3rem 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta__title { font-family: var(--serif); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
.cta__text { color: rgba(255,255,255,.78); margin-top: .4rem; max-width: 46ch; }
.cta__actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--paper-3); color: var(--ink-2); padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.footer__tagline { font-family: var(--serif); font-weight: 700; color: var(--ink); margin: .8rem 0 .3rem; }
.footer__copy { font-size: .88rem; color: var(--muted); max-width: 38ch; }
.footer__col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.footer__col ul li { margin-bottom: .5rem; }
.footer__col a { font-size: .9rem; color: var(--ink-2); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted);
}
.footer__demo { font-style: italic; }

/* ---------- Article page ---------- */
.article { padding: 2.2rem 0 2.5rem; }
.masthead--article + .article { padding-top: 1.5rem; }
.article .kicker { margin-bottom: .7rem; }
.article__title {
  font-family: var(--serif); font-weight: 900; line-height: 1.05;
  font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.02em;
}
.article__excerpt { margin-top: 1rem; font-size: 1.2rem; color: var(--ink-2); font-family: var(--serif); font-style: italic; line-height: 1.45; }
.article__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin: 1.6rem 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.byline { display: flex; align-items: center; gap: .7rem; }
.byline__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-family: var(--serif);
}
.byline__name { font-weight: 700; font-size: .95rem; }
.byline__role { font-size: .8rem; color: var(--muted); }
.article__meta-r { text-align: right; font-size: .82rem; color: var(--muted); }
.article__hero { margin: 1.5rem 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow-md); }
.article__share { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; font-size: .82rem; color: var(--muted); }
.share-btn {
  padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; font-weight: 600; transition: var(--speed);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.article__body { font-size: 1.12rem; line-height: 1.8; color: var(--ink-2); }
.article__body p { margin-bottom: 1.25rem; }
.article__body p:first-of-type::first-letter {
  font-family: var(--serif); font-weight: 800; font-size: 3.6rem; float: left;
  line-height: .85; padding: .15rem .55rem 0 0; color: var(--accent);
}
.article__body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin: 1.8rem 0 .8rem; }
.article__body blockquote {
  border-left: 4px solid var(--accent); padding: .4rem 0 .4rem 1.3rem; margin: 1.6rem 0;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); line-height: 1.4;
}
.article__body figure { margin: 1.6rem 0; }
.article__body figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; text-align: center; }
.article__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.tag { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line); padding: .35rem .8rem; border-radius: 999px; }
.tag:hover { border-color: var(--accent); color: var(--accent); }
.article__author-box {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; margin-top: 1rem;
  background: var(--paper-2); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.article__author-box .byline__avatar { width: 56px; height: 56px; font-size: 1.3rem; }
.article__author-box .ab-name { font-weight: 700; font-size: 1.05rem; }
.article__author-box .ab-role { font-size: .82rem; color: var(--muted); }
.article__author-box .ab-bio { font-size: .92rem; color: var(--ink-2); margin-top: .5rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: .9rem 0 .2rem; }
.breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; padding: 0; margin: 0; }
.breadcrumb__item { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--muted); }
.breadcrumb__item a { color: var(--muted); transition: var(--speed); }
.breadcrumb__item a:hover { color: var(--accent); }
.breadcrumb__item span { color: var(--ink-2); font-weight: 500; }
.breadcrumb__sep { color: var(--muted); opacity: .5; margin: 0 .15rem; }
.container--narrow .breadcrumb { padding-top: 0; }

/* ---------- Hot Now strip ---------- */
.hotnow {
  background: var(--paper); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hotnow__inner {
  display: flex; align-items: center; gap: 1rem; height: 52px;
}
.hotnow__label {
  display: flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap; flex-shrink: 0;
}
.hotnow__track {
  display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hotnow__track::-webkit-scrollbar { display: none; }
.hotnow__item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; transition: var(--speed); padding: .2rem 0;
}
.hotnow__item:hover { color: var(--accent); }
.hotnow__rank {
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .68rem; font-weight: 800; flex-shrink: 0;
}
.hotnow__item:hover .hotnow__rank { background: var(--accent); color: #fff; }
.hotnow__cat {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); flex-shrink: 0;
}
@media (max-width: 640px) { .hotnow__cat { display: none; } .hotnow__label { display: none; } }

/* ---------- Most Read (sidebar) ---------- */
.trending--most-read li::before { color: var(--gold); }

/* ---------- Category page ---------- */
.cat-header {
  padding: 1.5rem 0 1.25rem; border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.cat-header__title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.02em; line-height: 1.05; margin: .3rem 0 .5rem;
}
.cat-header__blurb { font-size: 1.05rem; color: var(--ink-2); max-width: 60ch; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.chip {
  display: inline-block; padding: .4rem .9rem; border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line); transition: var(--speed);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip--active { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip--active:hover { background: var(--accent-deep); color: #fff; }

.cat-page-grid { padding: 2rem 0 3rem; }
.cat-grid--page { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .cat-grid--page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cat-grid--page { grid-template-columns: 1fr; } }
.cat-grid--page .cat-card .feed-excerpt { font-size: .88rem; color: var(--muted); margin-top: .4rem; }

/* ---------- In-body internal links ---------- */
.intlink {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-decoration-color: rgba(214,40,40,.28); text-underline-offset: 3px; text-decoration-thickness: 1.5px;
  transition: var(--speed);
}
.intlink:hover { text-decoration-color: var(--accent); background: var(--accent-soft); border-radius: 2px; }
[data-theme="dark"] .intlink { text-decoration-color: rgba(255,77,77,.3); }

/* ---------- Tag cloud ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-cloud__item {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .65rem; border-radius: 6px;
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line);
  transition: var(--speed);
}
.tag-cloud__item:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.tag-cloud__item.lg { font-size: .88rem; font-weight: 700; padding: .35rem .8rem; }
.tag-cloud__item.md { font-size: .82rem; font-weight: 600; }
.tag-cloud__count {
  font-size: .65rem; font-weight: 700; color: var(--muted);
  background: var(--paper); border-radius: 4px; padding: .05rem .3rem;
}
.tag-cloud__item:hover .tag-cloud__count { color: var(--accent); }

/* ---------- Sources / Citations ---------- */
.article__sources {
  margin: 2.5rem 0 0; padding: 1.5rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--paper-2); border: 1px solid var(--line);
}
.sources__title {
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.sources__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.source-item { display: flex; align-items: flex-start; gap: .7rem; font-size: .9rem; }
.source-item__num {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted);
  font-size: .72rem; font-weight: 700; flex-shrink: 0; margin-top: .05rem;
}
.source-item__text { color: var(--ink-2); line-height: 1.5; flex: 1; }
.source-item__badge {
  font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 4px; white-space: nowrap; flex-shrink: 0; margin-top: .15rem;
}
.src--official { background: #e8f4fd; color: #1a6cb8; }
.src--media { background: #fef3e8; color: #b8731a; }
.src--report { background: #eef8ef; color: #2a7a3a; }
.src--analysis { background: #f0eef8; color: #5a3a9a; }
[data-theme="dark"] .src--official { background: #1a2838; color: #6cb3f0; }
[data-theme="dark"] .src--media { background: #382a1a; color: #f0a850; }
[data-theme="dark"] .src--report { background: #1a2a1e; color: #5ac46a; }
[data-theme="dark"] .src--analysis { background: #28203a; color: #9a7ad0; }

/* ---------- Article Footer (Published + Updated + Source) ---------- */
.article__footer {
  margin: 2rem 0 0; padding: 1.5rem 1.5rem 1.5rem;
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--paper-2);
}
.article-footer__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem 2rem; margin-bottom: 1.5rem;
}
.af-meta-item {
  display: flex; flex-direction: column; gap: .25rem;
}
.af-meta-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.af-meta-item time, .af-meta-item span, .af-meta-item a {
  font-size: .9rem; color: var(--ink); font-weight: 600; text-decoration: none;
}
.af-meta-item a:hover { color: var(--accent); }
.article-footer__sources {
  padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.af-sources-title {
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .7rem 0;
}
.af-sources-list {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.af-source {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--ink-2);
  padding: .25rem .6rem; border-radius: 6px; background: var(--paper);
  border: 1px solid var(--line);
}
.af-source__badge {
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .12rem .35rem; border-radius: 3px;
}
.af-disclaimer {
  font-size: .76rem; color: var(--muted); line-height: 1.5; margin: .9rem 0 0;
  font-style: italic;
}

/* ---------- Enhanced author box ---------- */
.author-box__body { flex: 1; }
.author-box__links { display: flex; align-items: center; gap: 1rem; margin-top: .85rem; flex-wrap: wrap; }
.author-social {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 600; color: var(--muted); transition: var(--speed);
}
.author-social:hover { color: var(--accent); }
.author-social svg { color: var(--accent); }
.author-more {
  font-size: .82rem; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid rgba(214,40,40,.3); padding-bottom: 1px; transition: var(--speed);
}
.author-more:hover { border-bottom-color: var(--accent); }
.article__author-box { flex-wrap: nowrap; }
@media (max-width: 540px) { .article__author-box { flex-wrap: wrap; } }

/* ---------- Cookie consent banner ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  transform: translateY(100%); transition: transform .35s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-banner--show { transform: translateY(0); }
.cookie-banner__text { flex: 1; min-width: 280px; font-size: .85rem; line-height: 1.5; }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-shrink: 0; }
.cookie-banner__actions .btn { font-size: .82rem; padding: .5rem 1rem; }
.cookie-banner__actions .btn--ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.cookie-banner__actions .btn--ghost:hover { border-color: #fff; }
@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* ---------- FAQ Section (People Also Ask) ---------- */
.article__faq { margin: 2rem 0; }
.faq__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.faq__list { display: flex; flex-direction: column; gap: .5rem; }
.faq__item {
  border: 1px solid var(--line); border-radius: .6rem; overflow: hidden;
  background: var(--surface); transition: var(--speed);
}
.faq__item[open] { border-color: var(--accent); }
.faq__question {
  font-weight: 600; font-size: .95rem; color: var(--ink); padding: .9rem 1.1rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; font-size: 1.2rem; color: var(--muted); transition: var(--speed); }
.faq__item[open] .faq__question::after { transform: rotate(45deg); color: var(--accent); }
.faq__answer {
  padding: 0 1.1rem .9rem; font-size: .9rem; line-height: 1.7; color: var(--ink-2);
}

/* ---------- Share buttons enhanced ---------- */
.share-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .article__share { flex-wrap: wrap; }
}

/* ---------- Legal / static pages ---------- */
.legal__title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.02em; line-height: 1.05;
  margin: .3rem 0 .3rem;
}
.legal__updated {
  font-size: .88rem; color: var(--muted); font-style: italic; margin-bottom: 2rem;
}
.legal__body { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); padding-bottom: 2rem; }
.legal__body h2 { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: var(--ink); margin: 2.2rem 0 .8rem; line-height: 1.2; }
.legal__body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.18rem; color: var(--ink); margin: 1.6rem 0 .5rem; }
.legal__body p { margin-bottom: 1rem; }
.legal__body strong { color: var(--ink); font-weight: 700; }
.legal__list { list-style: none; padding: 0; margin: .5rem 0 1.2rem; }
.legal__list li {
  position: relative; padding-left: 1.4rem; margin-bottom: .55rem; line-height: 1.6;
}
.legal__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.legal__link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(214,40,40,.3); text-underline-offset: 2px; transition: var(--speed); }
.legal__link:hover { text-decoration-color: var(--accent); }
#legalContent { padding: 2.2rem 0 3rem; }
.masthead--article + #legalContent { padding-top: 1.5rem; }

/* ---------- About page team ---------- */
.about__team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 1.5rem 0; }
@media (max-width: 640px) { .about__team { grid-template-columns: 1fr; } }
.about__member {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; background: var(--paper-2); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.about__member .byline__avatar { width: 48px; height: 48px; font-size: 1.1rem; flex-shrink: 0; }
.about__name { font-weight: 700; font-size: 1rem; }
.about__role { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.about__bio { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Contact form ---------- */
.contact__channels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.5rem 0 2rem;
}
@media (max-width: 640px) { .contact__channels { grid-template-columns: 1fr; } }
.contact__channel {
  padding: 1.2rem; background: var(--paper-2); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.contact__channel h3 { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; margin-bottom: .4rem; color: var(--ink); }
.contact__channel p { font-size: .9rem; color: var(--muted); line-height: 1.5; margin: 0; }

.contact__form {
  display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.5rem;
  max-width: 640px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 540px) { .form__row { grid-template-columns: 1fr; } }
.form__group { display: flex; flex-direction: column; gap: .4rem; }
.form__group label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.form__req { color: var(--accent); }
.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--sans); font-size: .95rem;
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); outline: none;
  transition: border var(--speed), box-shadow var(--speed);
  width: 100%;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group select { cursor: pointer; }
.form__error { font-size: .8rem; color: var(--accent); font-weight: 500; min-height: 1em; }
.form__counter { font-size: .75rem; color: var(--muted); text-align: right; }
.form__consent { margin-top: .5rem; }
.form__check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.form__check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.contact__submit { align-self: flex-start; margin-top: .5rem; }
.contact__success {
  padding: 1rem 1.2rem; background: #eef8ef; border: 1px solid #c5e6c9; border-radius: var(--radius-lg);
  color: #1e6b2a; font-size: .92rem; line-height: 1.5;
}
[data-theme="dark"] .contact__success { background: #1a2a1e; border-color: #2a4a32; color: #5ac46a; }

/* ---------- Utilities ---------- */
.hide { display: none !important; }
[hidden] { }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__dot { animation: none; }
  * { transition: none !important; }
}
