/* Daily AI Bites — Design System v2
   Fonts: DM Sans (body) · DM Mono (labels) · Playfair Display (headlines)
   Self-hosted woff2 in /assets/fonts/
*/

/* ─── FONTS ──────────────────────────────────────────────── */
@font-face {
  font-family: 'DM Sans';
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/dm-sans.woff2') format('woff2'),
       local('DM Sans'), local('system-ui');
}

@font-face {
  font-family: 'DM Mono';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-400.woff2') format('woff2'),
       local('DM Mono'), local('Courier New');
}

@font-face {
  font-family: 'DM Mono';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/dm-mono-500.woff2') format('woff2'),
       local('DM Mono Medium'), local('Courier New');
}

@font-face {
  font-family: 'Playfair Display';
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/playfair-display.woff2') format('woff2'),
       local('Playfair Display'), local('Georgia');
}

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --ink:     #0A0A0F;
  --ink2:    #2a2a35;
  --muted:   #6e6e80;
  --surface: #f5f4f0;
  --bg:      #F7F6F2;
  --accent:  #C8371A;
  --accent2: #1A6EC8;
  --accent3: #2A8C4A;
  --border:  rgba(10,10,15,0.12);
  --tag-bg:  rgba(200,55,26,0.08);

  --sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:    'DM Mono', 'Fira Code', 'Courier New', monospace;
  --serif:   'Playfair Display', Georgia, 'Times New Roman', serif;

  /* legacy aliases used by article pages */
  --c-text:     var(--ink);
  --c-text-2:   var(--muted);
  --c-text-3:   var(--muted);
  --c-accent:   var(--accent);
  --c-accent-h: #a82d14;
  --c-bg:       var(--bg);
  --c-bg-alt:   var(--surface);
  --c-surface:  #fff;
  --c-border:   var(--border);
  --c-border-2: rgba(10,10,15,0.2);
  --font-display: var(--serif);
  --font-sans:    var(--sans);
  --font-mono:    var(--mono);
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 40px; --s-6: 48px; --s-8: 64px; --s-10: 80px;
  --t-xs: 0.64rem; --t-sm: 0.8rem; --t-base: 1rem;
  --t-lg: 1.25rem; --t-xl: 1.563rem; --t-2xl: 1.953rem;
  --t-3xl: 2.441rem;
  --radius: 2px;
  --dur: 160ms;
  --ease: cubic-bezier(0.16,1,0.3,1);
}

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

/* ─── UTILITIES ──────────────────────────────────────────── */
.container { max-width: 1280px; margin-inline: auto; padding-inline: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
  position: fixed; top: 16px; left: 16px; z-index: 9999;
  padding: 8px 16px; background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(-200%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: none; }

/* ─── READING PROGRESS ───────────────────────────────────── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); transform-origin: 0 0;
  transform: scaleX(0); z-index: 999; width: 100%; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress-bar { transform: none; animation: rp linear both; animation-timeline: scroll(root block); }
  @keyframes rp { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ─── FOCUS ──────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── PULSE ANIMATION ────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ─── NAV ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 18px 48px; gap: 32px;
}

.logo {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.logo-icon { display: none; } /* hide old ◆ icon */

.nav-links {
  display: flex; gap: 28px; align-items: center;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); transition: color var(--dur) var(--ease);
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-right {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}

.live-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 5px 10px; display: flex; align-items: center; gap: 5px;
}

.live-dot {
  width: 5px; height: 5px; background: var(--accent); border-radius: 50%;
  animation: pulse 1.2s ease-in-out infinite;
}

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: 14px; transition: background var(--dur), color var(--dur);
}
.theme-toggle:hover { background: var(--surface); color: var(--ink); }

.mobile-menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: 14px;
}

/* ─── MOBILE NAV ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header nav { padding: 14px 20px; }
  .nav-links {
    position: fixed; inset: 0; background: var(--bg); z-index: 200;
    flex-direction: column; align-items: flex-start; justify-content: center;
    padding: 48px 24px; gap: 32px; margin-left: 0;
    transform: translateX(100%); transition: transform var(--dur) var(--ease);
    pointer-events: none;
  }
  .nav-links.is-open { transform: translateX(0); pointer-events: auto; }
  .nav-links a { font-size: 18px; letter-spacing: 0.08em; }
  .nav-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: var(--muted);
    cursor: pointer; font-size: 20px; padding: 8px;
  }
  .mobile-menu-toggle { display: flex; }
  .live-badge { display: none; }
}

/* ─── NEWS TICKER ────────────────────────────────────────── */
.ticker {
  background: var(--ink); color: var(--bg);
  padding: 10px 0; overflow: hidden;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}

.ticker-static {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  padding: 0 20px 0 16px; border-right: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}

.ticker-subscribe-cta {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  border: 1px solid var(--accent); padding: 2px 8px;
  text-decoration: none; letter-spacing: 0.08em; flex-shrink: 0;
  transition: background var(--dur), color var(--dur);
}
.ticker-subscribe-cta:hover { background: var(--accent); color: #fff; }

.ticker-scroll-area { overflow: hidden; flex: 1; display: flex; }

.ticker-inner {
  display: flex; gap: 60px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap; width: max-content;
}

.ticker-inner:hover { animation-play-state: paused; }

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

.ticker-item {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 12px;
}

.ticker-sep { color: var(--accent); font-size: 14px; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 380px;
  border-bottom: 1px solid var(--border);
}

.hero-main {
  padding: 56px 48px;
  border-right: 1px solid var(--border);
}

.category-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

.category-tag::before {
  content: ''; width: 20px; height: 1px;
  background: var(--accent); display: inline-block;
}

.hero-headline {
  font-family: var(--serif); font-size: 52px; font-weight: 900;
  line-height: 1.05; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 24px; cursor: pointer;
  transition: opacity var(--dur) var(--ease);
}
.hero-headline:hover { opacity: 0.8; }
.hero-headline em { font-style: italic; color: var(--accent); }

.hero-excerpt {
  font-size: 15px; font-weight: 300; line-height: 1.7;
  color: var(--muted); max-width: 580px; margin-bottom: 32px;
}

.hero-meta {
  display: flex; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.05em;
}

.read-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--ink);
  padding: 10px 20px; background: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.read-btn:hover { background: var(--ink); color: var(--bg); }
.read-btn .arrow { transition: transform var(--dur); display: inline-block; }
.read-btn:hover .arrow { transform: translateX(4px); }

/* ─── HERO SIDEBAR ───────────────────────────────────────── */
.hero-sidebar { display: flex; flex-direction: column; }

.sidebar-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}

.sidebar-item {
  padding: 20px 28px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--dur) var(--ease);
  display: block; color: var(--ink);
}
.sidebar-item:hover { background: rgba(0,0,0,0.03); }

.sidebar-num {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  margin-bottom: 6px; letter-spacing: 0.1em;
}

.sidebar-title {
  font-family: var(--serif); font-size: 15px; font-weight: 700;
  line-height: 1.35; color: var(--ink); margin-bottom: 8px;
}

.sidebar-cat {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 36px 48px 24px;
  border-bottom: 1px solid var(--border);
}

.section-header h2, .section-title {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  border: none; padding: 0;
}

.section-title::after {
  content: ''; width: 40px; height: 1px; background: var(--border);
}

.view-all, .section-view-all {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.view-all:hover, .section-view-all:hover { color: var(--ink); }

/* ─── CARDS GRID ─────────────────────────────────────────── */
.cards-grid, .articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}

.card, .article-card {
  padding: 28px 32px; border-right: 1px solid var(--border);
  cursor: pointer; transition: background var(--dur) var(--ease);
  position: relative; overflow: hidden;
  border-bottom: none;
}

.card:last-child, .articles-grid .article-card:nth-child(3n) { border-right: none; }
.card:hover, .article-card:hover { background: rgba(0,0,0,0.02); }

.card::before, .article-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover::before, .article-card:hover::before { transform: scaleX(1); }

/* Category accent colors */
.card.openai::before, .article-card.cat-openai::before   { background: #0a7a5f; }
.card.anthropic::before, .article-card.cat-anthropic::before { background: var(--accent); }
.card.google::before, .article-card.cat-google::before   { background: var(--accent2); }
.card.agents::before, .article-card.cat-agents::before   { background: #6d28d9; }
.card.regulation::before, .article-card.cat-regulation::before { background: var(--accent); }
.card.security::before, .article-card.cat-security::before { background: var(--accent2); }
.card.jobs::before, .article-card.cat-jobs::before       { background: var(--accent3); }
.card.enterprise::before, .article-card.cat-enterprise::before { background: #0e7490; }
.card.hardware::before, .article-card.cat-hardware::before { background: #4338ca; }
.card.default::before, .article-card::before              { background: var(--accent); }

.card-label, .article-card-category {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px; display: flex; align-items: center; gap: 6px;
}

/* label colors by category */
.card.regulation .card-label, .article-card.cat-regulation .article-card-category { color: var(--accent); }
.card.anthropic .card-label, .article-card.cat-anthropic .article-card-category   { color: var(--accent); }
.card.security .card-label, .article-card.cat-security .article-card-category     { color: var(--accent2); }
.card.google .card-label, .article-card.cat-google .article-card-category         { color: var(--accent2); }
.card.jobs .card-label, .article-card.cat-jobs .article-card-category             { color: var(--accent3); }
.card.enterprise .card-label, .article-card.cat-enterprise .article-card-category { color: #0e7490; }
.article-card-category { color: var(--accent); }

.card-title, .article-card h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 700;
  line-height: 1.35; color: var(--ink); margin-bottom: 14px;
}

/* card link wrapper */
.article-card-link { display: block; color: var(--ink); }

.card-excerpt, .article-card-excerpt {
  font-size: 13px; font-weight: 300; line-height: 1.65;
  color: var(--muted); margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.card-meta, .article-card-meta {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.05em; display: flex; justify-content: space-between;
}

/* Hide colored image placeholders — new design uses no images on cards */
.article-card-image { display: none; }

/* ─── CATEGORY ROW ───────────────────────────────────────── */
.cat-row, .categories { padding: 24px 48px; border-bottom: 1px solid var(--border); }
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; background: none; margin: 0; }
.categories { background: none; margin: 0; border-top: none; }

.cat-chip, .category-card {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink2);
  border: 1px solid var(--border); padding: 7px 14px;
  cursor: pointer; transition: all var(--dur) var(--ease);
  background: none; border-radius: 0;
  display: inline-flex; align-items: center; gap: 6px;
  flex-direction: row;
}
.cat-chip:hover, .cat-chip.active,
.category-card:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.category-icon { display: none; }
.category-name { font-size: 11px; }

/* ─── LOAD MORE ──────────────────────────────────────────── */
.load-more-container { padding: 32px 48px; border-bottom: 1px solid var(--border); text-align: center; }
.load-more-btn {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); padding: 10px 24px;
  display: inline-block; transition: all var(--dur) var(--ease);
}
.load-more-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ─── NEWSLETTER ─────────────────────────────────────────── */
.newsletter-section, .newsletter { border-bottom: 1px solid var(--border); }
.newsletter-section .container { padding: 0; }

.newsletter {
  display: grid; grid-template-columns: 1fr 1fr;
}

.newsletter-left, .newsletter-signup-text {
  padding: 56px 48px; border-right: 1px solid var(--border);
}

.newsletter-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}

.newsletter-heading {
  font-family: var(--serif); font-size: 38px; font-weight: 900;
  line-height: 1.1; margin-bottom: 20px; color: var(--ink);
}

.newsletter-sub {
  font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 360px;
}

.newsletter-right, .newsletter-form-wrap {
  padding: 56px 48px; display: flex; flex-direction: column;
  justify-content: center; gap: 12px;
}

.email-input, .newsletter-form input[type="email"] {
  width: 100%; padding: 14px 18px; background: none;
  border: 1px solid var(--border); font-family: var(--sans);
  font-size: 14px; color: var(--ink); outline: none;
  transition: border-color var(--dur); border-radius: 0;
}
.email-input:focus, .newsletter-form input[type="email"]:focus { border-color: var(--ink); }
.email-input::placeholder { color: var(--muted); }

.subscribe-btn, .newsletter-form button {
  padding: 14px 24px; background: var(--ink); color: var(--bg);
  border: none; font-family: var(--mono); font-size: 12px;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: opacity var(--dur);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 0; width: 100%;
}
.subscribe-btn:hover, .newsletter-form button:hover { opacity: 0.85; }

.email-note, .newsletter-privacy {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.06em;
}

.newsletter-section-wrap { padding: 0; }

/* ─── DARK NEWSLETTER BLOCKS (mid-page + end-of-article) ─── */
.nl-dark {
  background: #0A0A0F; padding: 56px 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nl-dark-social-proof {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

.nl-dark-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}

.nl-dark-headline {
  font-family: var(--serif); font-size: 36px; font-weight: 700;
  color: #ffffff; line-height: 1.1; margin-bottom: 12px;
}

.nl-dark-sub {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.6);
  margin-bottom: 28px; max-width: 480px;
}

.nl-dark-form {
  display: flex; gap: 0; max-width: 520px;
}

.nl-dark-input {
  flex: 1; padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2); border-right: none;
  font-family: var(--sans); font-size: 14px;
  color: #fff; outline: none; border-radius: 0;
  transition: border-color var(--dur);
}
.nl-dark-input::placeholder { color: rgba(255,255,255,0.35); }
.nl-dark-input:focus { border-color: rgba(255,255,255,0.45); }

.nl-dark-btn {
  padding: 14px 28px; background: var(--accent); color: #fff;
  border: none; font-family: var(--mono); font-size: 12px;
  font-weight: 500; letter-spacing: 0.1em; cursor: pointer;
  text-transform: uppercase; white-space: nowrap; border-radius: 0;
  transition: opacity var(--dur);
}
.nl-dark-btn:hover { opacity: 0.85; }
.nl-dark-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.nl-dark-fine {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.06em; margin-top: 12px;
}

.nl-article-inline { margin: 40px 0; }

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  margin-top: 0;
  background: var(--bg);
}

.site-footer .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0; max-width: none;
}

.site-footer p {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.06em; margin: 0;
}

.footer-links {
  display: flex; gap: 20px;
}

.footer-links a {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em; transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: var(--ink); }

/* ─── ARTICLE PAGE ────────────────────────────────────────── */
.article-header {
  padding: 56px 48px 40px; border-bottom: 1px solid var(--border);
}

.article-header .content-wrapper { max-width: 720px; margin-inline: auto; }

.article-category {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.article-category::before {
  content: ''; width: 20px; height: 1px; background: var(--accent);
}

.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 28px;
}

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.05em; padding-top: 24px;
  border-top: 1px solid var(--border);
}

.author-info { display: flex; align-items: center; gap: 8px; }
.author-name { font-weight: 500; color: var(--ink2); }
.author-role { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.article-meta time { color: var(--muted); }

/* ─── ARTICLE BODY ────────────────────────────────────────── */
.article-content { padding: 48px 0 80px; }
.content-wrapper { max-width: 720px; margin-inline: auto; padding: 0 48px; }

.article-body {
  font-family: var(--sans); font-size: 17px; font-weight: 300;
  line-height: 1.75; color: var(--ink); max-width: 680px;
}

.article-body > h1:first-child { display: none; }

.article-body p { margin-bottom: 24px; }

.article-body h2 {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  margin-top: 56px; margin-bottom: 20px;
  padding-top: 32px; border-top: 1px solid var(--border);
  color: var(--ink); letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  margin-top: 36px; margin-bottom: 16px; color: var(--ink);
}

.article-body ul, .article-body ol { margin-bottom: 24px; padding-left: 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; font-size: 17px; }

.article-body li > h2, .article-body li > h3 {
  font-size: 22px; margin: 32px 0 16px calc(-1 * 24px);
  padding-top: 24px; border-top: 1px solid var(--border);
}

.article-body strong { font-weight: 500; color: var(--ink); }
.article-body em { font-style: italic; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #a82d14; }

.article-body hr {
  border: none; border-top: 1px solid var(--border);
  margin: 48px 0;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px; margin: 36px 0;
  font-size: 20px; font-style: italic;
  font-family: var(--serif); line-height: 1.5;
  color: var(--ink2); background: var(--surface);
}

.article-body code {
  font-family: var(--mono); font-size: 0.875em;
  background: var(--surface); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 2px;
}

.article-body pre {
  background: var(--ink); color: var(--bg); padding: 24px;
  overflow-x: auto; margin-bottom: 24px;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
}
.article-body pre code { background: none; border: none; padding: 0; color: inherit; }

/* ─── TABLE OF CONTENTS ──────────────────────────────────── */
.toc {
  padding: 24px; border: 1px solid var(--border);
  background: var(--surface); margin-bottom: 40px;
}

.toc-title {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted);
  margin-bottom: 16px;
}

.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.toc li { margin: 0; }
.toc a { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.toc a:hover { color: var(--accent); }
.toc .toc-h3 { padding-left: 20px; }
.toc .toc-h3 a { font-size: 11px; }

@media (min-width: 1200px) {
  .article-with-toc {
    display: grid; grid-template-columns: 1fr 200px;
    gap: 0 64px; align-items: start; max-width: 1000px; margin-inline: auto;
  }
  .article-with-toc .toc {
    position: sticky; top: calc(64px + 16px); order: 2;
    max-height: calc(100vh - 120px); overflow-y: auto; margin-bottom: 0;
  }
  .article-with-toc .article-body { order: 1; }
}

/* ─── ARTICLE FOOTER COMPONENTS ──────────────────────────── */
.editorial-trust {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border-left: 2px solid var(--accent);
  background: var(--surface); font-size: 13px; color: var(--muted);
  margin: 40px 0; line-height: 1.6;
}
.editorial-trust > span:first-child { display: none; }
.editorial-trust::before { content: '✓'; color: var(--accent); font-weight: 500; flex-shrink: 0; }

.category-nav { margin: 32px 0; padding: 20px; background: var(--surface); border-left: 2px solid var(--border); }
.category-nav p { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 12px; letter-spacing: 0.06em; }
.category-nav a { color: var(--accent); font-weight: 500; }
.category-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; border: 1px solid var(--border);
  padding: 5px 12px; color: var(--ink2); transition: all var(--dur) var(--ease);
  display: inline-block;
}
.tag-link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.faq-section { margin: 40px 0; padding: 32px; background: var(--surface); border: 1px solid var(--border); }
.faq-section h2 {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 24px;
}
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { padding: 20px; background: #fff; border: 1px solid var(--border); }
.faq-item h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--ink); line-height: 1.4; letter-spacing: 0; }
.faq-item [itemprop="text"] { font-size: 13px; color: var(--muted); line-height: 1.65; }

.related-articles { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--ink); }
.related-articles h2 {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 32px;
}
.related-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.related-article-card { border-top: 1px solid var(--border); padding-top: 20px; }
.related-article-link { display: block; }
.related-tag-match, .related-category-match {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 3px 8px; margin-bottom: 8px;
  display: inline-block; border-radius: 0;
}
.related-tag-match { background: var(--accent); color: #fff; }
.related-category-match { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.related-article-card h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--ink); }
.related-article-card:hover h3 { color: var(--accent); }
.related-article-excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-article-card time { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.05em; }
.no-related { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; padding: 32px; grid-column: 1/-1; letter-spacing: 0.06em; }

.article-footer { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }
.copyright, .article-meta-footer { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; }
.article-meta-footer a { color: var(--muted); }
.article-meta-footer a:hover { color: var(--ink); }

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0 6px; list-style: none; padding: 16px 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--muted); }
.breadcrumb a, .breadcrumb li { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.breadcrumb a:hover { color: var(--ink); }

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination { margin: 40px 0; padding-top: 24px; border-top: 1px solid var(--border); }
.pagination-info { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.pagination-links { display: flex; justify-content: center; align-items: center; gap: 8px; }
.pagination-numbers { display: flex; gap: 4px; }
.pagination-link, .pagination-current {
  font-family: var(--mono); font-size: 11px; min-width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border: 1px solid var(--border);
}
.pagination-link { color: var(--ink); background: none; }
.pagination-link:hover { background: var(--surface); }
.pagination-current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination-prev, .pagination-next { font-family: var(--mono); font-size: 11px; padding: 8px 12px; color: var(--muted); }
.pagination-prev:hover, .pagination-next:hover { color: var(--ink); }
.pagination-disabled { font-family: var(--mono); font-size: 11px; padding: 8px 12px; color: var(--muted); cursor: not-allowed; }

/* ─── 404 ────────────────────────────────────────────────── */
.page-404 { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; text-align: center; padding: 80px 24px; }
.page-404-num { font-family: var(--serif); font-size: 120px; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 24px; letter-spacing: -0.04em; }
.page-404 h1 { font-family: var(--serif); font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.page-404 > p { font-size: 15px; font-weight: 300; color: var(--muted); max-width: 40ch; margin-bottom: 40px; line-height: 1.7; }
.page-404 a { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 24px; background: var(--ink); color: var(--bg); display: inline-block; transition: opacity var(--dur); }
.page-404 a:hover { opacity: 0.8; }

/* ─── INLINE CROSSLINKS ───────────────────────────────────── */
.inline-crosslinks { margin: 32px 0; padding: 24px; border: 1px solid var(--border); background: var(--surface); }
.inline-crosslinks h4 { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.inline-crosslinks ul { list-style: disc; padding-left: 20px; }
.inline-crosslinks li { margin-bottom: 8px; }
.inline-crosslinks a { color: var(--accent); font-size: 14px; text-decoration: underline; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 320px; }
  .hero-headline { font-size: 40px; }
  .cards-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid .card:nth-child(2n), .articles-grid .article-card:nth-child(2n) { border-right: none; }
  .related-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header nav { padding: 14px 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-main { padding: 32px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-headline { font-size: 30px; }
  .hero-sidebar { display: none; }
  .section-header { padding: 24px 20px 16px; }
  .cards-grid, .articles-grid { grid-template-columns: 1fr; }
  .card, .article-card { border-right: none !important; }
  .cat-row { padding: 16px 20px; }
  .ticker-static { font-size: 10px; padding: 0 10px 0 10px; }
  .ticker-label { display: none; }
  .newsletter { grid-template-columns: 1fr; }
  .newsletter-left { padding: 32px 20px; border-right: none; border-bottom: 1px solid var(--border); }
  .newsletter-right, .newsletter-form-wrap { padding: 32px 20px; }
  .newsletter-heading { font-size: 28px; }
  .nl-dark { padding: 40px 20px; }
  .nl-dark-headline { font-size: 26px; }
  .nl-dark-form { flex-direction: column; }
  .nl-dark-input { border-right: 1px solid rgba(255,255,255,0.2); border-bottom: none; }
  .nl-dark-btn { width: 100%; }
  .site-footer { padding: 20px; }
  .site-footer .container { flex-direction: column; gap: 12px; align-items: flex-start; }
  .article-header { padding: 32px 20px 24px; }
  .content-wrapper { padding: 0 20px; }
  .related-articles-grid { grid-template-columns: 1fr; }
  .load-more-container, .cat-row { padding: 20px; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ticker-inner { animation: none; }
  .progress-bar { display: none; }
}

/* ─── ARTICLE REDESIGN v2 ────────────────────────────────── */

/* Remove old content-wrapper padding from article content area */
.article-content { padding: 0; }

/* Body text: 16 px / 1.85 / 1.5 em spacing */
.article-body { font-size: 16px; line-height: 1.85; max-width: none; }
.article-body p { margin-bottom: 1.5em; }

/* Blockquote — red left accent + surface background */
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 20px 28px; margin: 2em 0;
  background: var(--surface);
  font-family: var(--serif); font-size: 18px;
  font-style: italic; line-height: 1.55;
  color: var(--ink2);
}

/* Large inline stat */
.key-stat {
  display: inline-block;
  font-family: var(--serif); font-size: 36px;
  font-weight: 900; color: var(--accent); line-height: 1;
}

/* Article deck / standfirst */
.article-deck {
  font-size: 17px; font-weight: 300; line-height: 1.65;
  color: var(--muted); margin-bottom: 28px; max-width: 640px;
}

/* Byline avatar circle */
.byline-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--muted); flex-shrink: 0;
}

/* Two-column article layout */
.article-layout-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  align-items: start;
}

.article-main-col {
  padding: 48px 60px 48px 0;
  min-width: 0;
}

.article-sidebar-col {
  padding: 40px 0 40px 32px;
  border-left: 1px solid var(--border);
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

/* ── Sidebar TOC ── */
.toc-sidebar {
  background: var(--surface);
  padding: 20px;
  margin-bottom: 24px;
}
.toc-sidebar-label {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.toc-sidebar ul { list-style: none; padding: 0; }
.toc-sidebar li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.toc-sidebar li:last-child { border-bottom: none; }
.toc-sidebar a {
  font-size: 12px; line-height: 1.4; color: var(--muted);
  text-decoration: none; display: block; transition: color var(--dur);
}
.toc-sidebar a:hover { color: var(--ink); }
.toc-sidebar a.active { color: var(--accent); font-weight: 500; }
.toc-sidebar .toc-h3 { padding-left: 12px; }
.toc-sidebar .toc-h3 a { font-size: 11px; }

/* ── Share sidebar ── */
.share-sidebar { margin-bottom: 24px; }
.share-sidebar-label {
  font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.share-btns { display: flex; gap: 8px; }
.share-btn {
  flex: 1; padding: 8px 4px;
  background: none; border: 1px solid var(--border);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; text-align: center;
  transition: all var(--dur);
}
.share-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ── Newsletter sidebar (dark box) ── */
.nl-sidebar { background: var(--ink); padding: 20px; color: var(--bg); }
.nl-sidebar-eyebrow {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.nl-sidebar h3 {
  font-family: var(--serif); font-size: 18px;
  font-weight: 700; line-height: 1.2;
  color: var(--bg); margin-bottom: 8px;
}
.nl-sidebar p {
  font-size: 12px; font-weight: 300; line-height: 1.6;
  color: rgba(247,246,242,0.55); margin-bottom: 14px;
}
.nl-sidebar-form input {
  width: 100%; padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--sans); font-size: 13px;
  color: var(--bg); outline: none;
  margin-bottom: 8px; border-radius: 0;
}
.nl-sidebar-form input::placeholder { color: rgba(247,246,242,0.35); }
.nl-sidebar-form button {
  width: 100%; padding: 10px;
  background: var(--accent); border: none;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; cursor: pointer;
  transition: opacity var(--dur); border-radius: 0;
}
.nl-sidebar-form button:hover { opacity: 0.85; }

/* ── FAQ collapsible ── */
.faq-section { background: none; border: none; padding: 32px 0; margin: 0; }
.faq-list { gap: 8px; }
.faq-item { padding: 0; background: none; border: 1px solid var(--border); margin-bottom: 0; }
button.faq-q {
  width: 100%; padding: 16px 20px;
  background: none; border: none;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink); cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background var(--dur);
}
button.faq-q:hover { background: var(--surface); }
.faq-icon {
  font-size: 20px; color: var(--muted);
  flex-shrink: 0; font-style: normal; line-height: 1;
}
.faq-a {
  padding: 0 20px 16px;
  font-size: 13px; font-weight: 300;
  line-height: 1.7; color: var(--muted);
}

/* ── Related articles — borderless grid with red hover bar ── */
.related-articles {
  margin-top: 0; padding: 0;
  border-top: 2px solid var(--ink);
}
.related-section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 28px 0 20px;
}
.related-section-header h2 {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); border: none; margin: 0; padding: 0;
}
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.related-article-card {
  background: var(--bg); padding: 24px;
  border-top: none; padding-top: 24px;
  position: relative; overflow: hidden;
  cursor: pointer; transition: background var(--dur);
}
.related-article-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.related-article-card:hover { background: var(--surface); }
.related-article-card:hover::before { transform: scaleX(1); }
.related-article-card h3 { font-size: 15px; margin-bottom: 10px; }
.related-article-card:hover h3 { color: var(--ink); }

/* ── Responsive: collapse sidebar ── */
@media (max-width: 1024px) {
  .article-layout-grid { grid-template-columns: 1fr; }
  .article-main-col { padding: 40px 0; }
  .article-sidebar-col {
    position: static; padding: 24px 0 0;
    border-left: none; border-top: 1px solid var(--border);
    max-height: none; overflow-y: visible;
  }
  .toc-sidebar { display: none; }
  .related-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .article-sidebar-col { display: none; }
  .related-articles-grid { grid-template-columns: 1fr; }
}
