
:root {
  --red: #b91c1c;
  --red-dark: #991b1b;
  --ink: #0f1419;
  --ink-mid: #374151;
  --ink-soft: #6b7280;
  --surface: #ffffff;
  --surface-alt: #f6f4ef;
  --surface-border: #e5e2da;
  --nav: #101722;
  --header: #0b1018;
  --gold: #b45309;
  --gold-light: #fef3c7;
  --shadow: 0 10px 30px rgba(15,20,25,0.08);
  --radius: 12px;
  --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-alt);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  background: var(--red);
  color: #fff;
  font-size: 0.84rem;
  overflow: hidden;
  white-space: nowrap;
}
.topbar-inner, .header-inner, .nav-inner, .page, .footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.topbar-inner { display: flex; gap: 18px; padding-top: 9px; padding-bottom: 9px; }
.topbar-label { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; background: rgba(255,255,255,.16); padding: 2px 8px; border-radius: 999px; }
.site-header { background: var(--header); color: #fff; border-bottom: 2px solid var(--red); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand a { display:block; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.brand-name span { color: #f87171; }
.brand-tag { font-size: .82rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .12em; }
.header-actions { display:flex; gap:12px; align-items:center; }
.header-pill, .button {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: .92rem;
}
.header-pill { background: rgba(255,255,255,.08); color:#fff; border: 1px solid rgba(255,255,255,.16); }
.button { background: var(--red); color:#fff; display:inline-block; }
.button:hover { background: var(--red-dark); }
.site-nav { background: var(--nav); color: #fff; }
.nav-inner { display:flex; gap: 18px; align-items:center; overflow:auto; }
.nav-link { padding: 12px 0; font-size:.9rem; font-weight:700; color: rgba(255,255,255,.76); border-bottom: 2px solid transparent; }
.nav-link.active, .nav-link:hover { color: #fff; border-color: var(--red); }
.page { width:100%; }
.hero-grid { display:grid; grid-template-columns: 1.7fr .95fr; gap: 24px; padding-top: 28px; }
.hero-card, .stack-card, .card, .sidebar-card, .article-shell, .explainer-band, .section-block, .newsletter-banner { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { overflow:hidden; }
.hero-media, .card-media, .stack-media, .article-media {
  min-height: 240px;
  background: linear-gradient(135deg,#16314b,#1f4462 40%,#4b1d1d);
}
.ph-1 { background: linear-gradient(135deg,#11273b,#30557a 45%,#7b2d2d); }
.ph-2 { background: linear-gradient(135deg,#2f1b1b,#702828 48%,#191c3d); }
.ph-3 { background: linear-gradient(135deg,#1b2c1f,#2f6d4f 45%,#23334f); }
.ph-4 { background: linear-gradient(135deg,#544115,#a66a12 40%,#4b2e12); }
.ph-5 { background: linear-gradient(135deg,#261f43,#463b85 45%,#1e5177); }
.hero-copy { padding: 26px; }
.kicker { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }
.hero-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; margin: 10px 0 12px; }
.lede, .card-summary, .meta, .article-summary { color: var(--ink-mid); }
.meta { font-size: .92rem; display:flex; gap: 8px; flex-wrap: wrap; }
.hero-stack { display:grid; gap: 18px; }
.stack-card { padding: 18px; display:grid; grid-template-columns: 1fr 110px; gap: 16px; align-items:center; }
.stack-media { min-height: 86px; border-radius: 10px; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:12px; margin: 34px 0 16px; }
.section-title { font-family: Georgia, serif; font-size: 1.6rem; margin:0; }
.section-deck { color: var(--ink-soft); font-size: .96rem; }
.grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-main { display:grid; grid-template-columns: 1.6fr .84fr; gap: 26px; padding-bottom: 44px; }
.card { overflow:hidden; }
.card-copy { padding: 18px; }
.card-title { font-family: Georgia, serif; font-size: 1.36rem; line-height: 1.2; margin: 8px 0; }
.sidebar { display:grid; gap: 20px; align-content:start; }
.sidebar-card { padding: 18px; }
.sidebar-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight:800; color: var(--red); margin-bottom: 10px; }
.trending-list { display:grid; gap: 14px; }
.trending-item { display:grid; grid-template-columns: 28px 1fr; gap: 12px; }
.trending-rank { font-family: Georgia, serif; font-size: 1.4rem; color: #c9c4b8; font-weight:800; }
.explainer-band { background: linear-gradient(180deg,var(--gold-light),#fff); padding: 20px; }
.newsletter-banner { padding: 28px; margin: 30px 0; background: linear-gradient(135deg,#101722,#172233); color: #fff; }
.newsletter-banner p { color: rgba(255,255,255,.76); }
.footer { margin-top:auto; background: #0b1018; color: rgba(255,255,255,.72); }
.footer-inner { padding-top: 36px; padding-bottom: 36px; display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer h3, .footer h4 { color:#fff; margin-top:0; }
.footer ul { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.article-shell { padding: 28px; margin-top: 28px; }
.article-title { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; margin: 8px 0 12px; }
.article-summary { font-size: 1.18rem; border-left: 4px solid var(--red); padding-left: 16px; margin-bottom: 18px; }
.article-body p { margin: 0 0 20px; font-size: 1.08rem; color: var(--ink-mid); }
.breadcrumbs { font-size: .92rem; color: var(--ink-soft); margin-top: 20px; }
.article-grid { display:grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; }
.table-list { display:grid; gap: 14px; }
.table-list a { padding: 12px 0; border-bottom: 1px solid var(--surface-border); font-weight: 700; }
.data-note { font-size: .92rem; color: var(--ink-soft); background: #faf8f3; border: 1px solid var(--surface-border); border-radius: 10px; padding: 14px; }
.cms-panel { background:#f8fafc; border:1px solid #dbe4ef; padding: 18px; border-radius: 12px; }
.cms-panel code, pre { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 980px) {
  .hero-grid, .grid-main, .article-grid, .footer-inner { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .header-inner { flex-direction: column; align-items:flex-start; }
  .grid-3 { grid-template-columns: 1fr; }
  .stack-card { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.7rem; }
}

[data-theme="dark"] {
  --ink: #eef2f7;
  --ink-mid: #cbd5e1;
  --ink-soft: #94a3b8;
  --surface: #121926;
  --surface-alt: #0b1018;
  --surface-border: #223046;
  --nav: #0a0f17;
  --header: #070b12;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.header-search { display:flex; align-items:center; gap:8px; min-width: 320px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); padding: 10px 12px; border-radius: 999px; }
.header-search input { background: transparent; border: none; outline: none; color: #fff; width: 100%; font: inherit; }
.header-search input::placeholder { color: rgba(255,255,255,.6); }
.nav-weather { margin-left:auto; padding: 12px 0; color: rgba(255,255,255,.75); font-size: .9rem; display:flex; gap:8px; white-space:nowrap; }
.ticker-bar { background: var(--red); color:#fff; overflow:hidden; }
.ticker-inner { max-width: var(--max); margin:0 auto; display:flex; align-items:center; gap:16px; padding:8px 20px; }
.ticker-label { font-weight:800; text-transform:uppercase; letter-spacing:.12em; background:rgba(255,255,255,.16); padding:2px 8px; border-radius:999px; font-size:.72rem; }
.ticker-track { overflow:hidden; flex:1; }
.ticker-content { display:inline-flex; gap:32px; min-width:max-content; animation: tickerMove 40s linear infinite; }
.ticker-item { color:#fff; font-size:.92rem; position:relative; padding-right:8px; }
.ticker-item::before { content:"•"; margin-right:10px; opacity:.8; }
@keyframes tickerMove { from { transform: translateX(0);} to { transform: translateX(-50%);} }
.weather-card { background: linear-gradient(135deg, #172337, #24324a); color:#fff; }
.weather-main { display:flex; gap:14px; align-items:center; margin-bottom:14px; }
.weather-icon { font-size:2rem; }
.weather-temp-big { font-size:2rem; font-weight:800; line-height:1; }
.weather-grid { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.weather-grid strong { display:block; font-size:1.05rem; }
.weather-grid span { color: rgba(255,255,255,.75); font-size:.82rem; }
.sidebar-search, .search-page-form { display:flex; gap:10px; flex-wrap:wrap; }
.sidebar-search input, .search-page-form input { flex:1; min-width: 220px; border:1px solid var(--surface-border); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 12px 14px; font: inherit; }
.search-page-form { margin-bottom: 10px; }
.stack-title { margin-top:6px; margin-bottom:8px; }
.card-source, .footer-fine { font-size:.83rem; color: var(--ink-soft); margin-top:10px; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--header); color:#fff; padding: 12px 16px; border-radius: 999px; box-shadow: var(--shadow); display:flex; gap:10px; align-items:center; opacity:0; transform: translateY(20px); transition:.22s ease; z-index:9999; }
.toast.show { opacity:1; transform: translateY(0); }
.toast-dot { width:9px; height:9px; border-radius:50%; background: var(--red); display:inline-block; }
@media (max-width: 980px) { .header-search { min-width: 0; width: 100%; } }
@media (max-width: 680px) { .nav-weather { display:none; } .ticker-inner { gap:10px; } .header-actions { width:100%; justify-content:space-between; } }


.section-head { display:flex; justify-content:space-between; align-items:end; gap:18px; margin: 8px 0 18px; }
.section-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 3vw, 2.2rem); margin:0; }
.section-deck { color: var(--ink-soft); max-width: 720px; }
.see-all { color: var(--red); font-weight: 700; white-space: nowrap; }
.grid-main { display:grid; grid-template-columns: minmax(0,1fr) 320px; gap:24px; padding: 26px 0 40px; }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.compact-grid, .latest-list { display:grid; grid-template-columns: 1fr; gap:14px; }
.compact-card, .feature-row, .rail-card, .mini-section, .spotlight-band, .archive-callout { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.compact-card { display:grid; grid-template-columns: 120px 1fr; gap:14px; padding:14px; align-items:center; }
.compact-media { min-height: 90px; border-radius: 10px; }
.compact-title, .feature-title { font-family: Georgia, "Times New Roman", serif; margin:6px 0 8px; font-size:1.18rem; line-height:1.2; }
.sidebar { display:grid; gap:18px; align-content:start; }
.sidebar-card { padding:18px; }
.sidebar-title { font-weight:800; text-transform:uppercase; letter-spacing:.12em; font-size:.78rem; margin-bottom:12px; color: var(--red); }
.trending-item { display:grid; grid-template-columns: 32px 1fr; gap:12px; padding:10px 0; border-top: 1px solid var(--surface-border); }
.trending-item:first-of-type { border-top: none; }
.trending-rank { font-family: Georgia, serif; font-size:1.4rem; font-weight:800; color: var(--red); line-height:1; }
.spotlight-band, .explainer-band, .section-block, .category-mosaic, .archive-callout { margin-top: 22px; padding: 20px; }
.mini-section { padding:18px; margin-bottom:18px; }
.feature-row { display:grid; grid-template-columns: 1.1fr 1fr; gap:20px; overflow:hidden; padding:0; margin-bottom:20px; }
.feature-media { min-height: 260px; }
.feature-copy { padding:22px; }
.article-shell { padding: 28px; margin: 28px 0; }
.article-head { margin-bottom: 20px; }
.article-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height:1.05; margin: 8px 0 12px; }
.article-media.large { min-height: 420px; border-radius: 14px; }
.article-caption { color: var(--ink-soft); font-size: .88rem; margin-top: 10px; }
.article-layout { display:grid; grid-template-columns: minmax(0,1fr) 280px; gap:26px; margin-top: 24px; }
.article-body p { font-size: 1.08rem; margin: 0 0 20px; }
.article-rail { display:grid; gap:16px; align-content:start; }
.rail-card { padding: 18px; }
.rail-card h3 { margin:0 0 12px; font-family: Georgia, serif; }
.rail-card ul { margin:0; padding-left: 18px; }
.pull-quote p { font-family: Georgia, serif; font-size: 1.1rem; line-height:1.45; }
.pagination { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:22px; }
.page-chip { padding: 10px 14px; border-radius:999px; background: var(--surface); border:1px solid var(--surface-border); font-weight:700; }
.page-chip.active { background: var(--red); color:#fff; border-color: var(--red); }
.breadcrumbs { color: var(--ink-soft); margin-bottom: 16px; font-size: .92rem; }
.archive-callout { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.related-with-media .card-media { min-height: 160px; }
.card { overflow:hidden; }
.card-copy { padding:18px; }

@media (max-width: 1100px) {
  .grid-main, .article-layout, .grid-3, .feature-row { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .compact-card { grid-template-columns: 1fr; }
  .archive-callout, .section-head { align-items:flex-start; flex-direction:column; }
  .article-shell { padding: 20px; }
  .article-media.large { min-height: 260px; }
}
