:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --border: #e3e7ee;
  --text: #1c2333;
  --muted: #5b6577;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --accent2: #0891b2;
  --orange: #ea7317;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --radius: 10px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

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

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo span { color: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.main-nav a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f7f8fb 55%, #ecfeff 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 22px;
}
.hero .stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.stat-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-width: 150px;
}
.stat-chip .v { font-size: 20px; font-weight: 800; color: var(--accent); }
.stat-chip .k { font-size: 12.5px; color: var(--muted); }

/* Sections */
section.block { padding: 40px 0; }
section.block h2 {
  font-size: 24px;
  letter-spacing: -0.3px;
  margin: 0 0 6px;
}
section.block .section-sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }

/* Section headings with period label */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 0 0 20px;
}
.section-head h2 { border: none; padding: 0; margin: 0; }
.section-head .period {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Sub-section heading inside Latest Issue */
.sub-head {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-transform: uppercase;
  margin: 22px 0 12px;
}
.sub-head:first-of-type { margin-top: 0; }

/* Featured card (latest issue) */
.card-featured {
  grid-column: 1 / -1;
  border-left: 4px solid var(--accent);
}
.card-featured h3 { font-size: 21px; }
.card-featured p { font-size: 15.5px; }

/* Archive — timeline list (past issues) */
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-item {
  position: relative;
  padding: 0 0 20px 26px;
  border-left: 2px solid var(--border);
}
.archive-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.archive-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.archive-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.archive-title { font-size: 16.5px; font-weight: 700; margin: 0 0 4px; }
.archive-title a { color: var(--text); }
.archive-title a:hover { color: var(--accent); text-decoration: none; }
.archive-desc { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.card .card-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent2);
  margin-bottom: 8px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.card h3 a { color: var(--text); }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; flex: 1; }
.card .card-meta { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }

/* List page (category / tag) */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.4px; }
.page-head p { color: var(--muted); max-width: 760px; margin: 0; }

/* Article */
.article-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 32px 0;
}
.article-wrap article { max-width: 820px; margin: 0 auto; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
article h2 { font-size: 22px; margin: 34px 0 12px; letter-spacing: -0.2px; }
article h3 { font-size: 18px; margin: 26px 0 10px; }
article p { margin: 0 0 14px; }
article ul, article ol { margin: 0 0 14px; padding-left: 24px; }
article li { margin-bottom: 6px; }

/* Blocks */
.tip {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.warning {
  background: var(--amber-soft);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
}
.hl { background: #fffbeb; padding: 0 4px; border-radius: 3px; font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 18px 0 22px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--surface);
}
table.data th, table.data td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.data th { background: #f1f3f9; font-weight: 700; }
table.data td .src { color: var(--muted); font-size: 12.5px; }

/* Status badges */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.badge-live { background: #dcfce7; color: #166534; }
.badge-upcoming { background: #dbeafe; color: #1e40af; }
.badge-confirmed { background: #ede9fe; color: #5b21b6; }
.badge-rumored { background: #fef9c3; color: #854d0e; }
.badge-closed { background: #f1f5f9; color: #475569; }

/* Badge row above article title */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge-accent { background: #eef2ff; color: #3730a3; }
.badge-outline { background: #ffffff; color: var(--muted); border: 1px solid var(--border); }

/* Editorial commentary block ("Our take") */
.take {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 15px;
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
}
.take strong { color: var(--accent); }

/* FAQ */
.faq { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 12px; background: var(--surface); overflow: hidden; }
.faq summary { padding: 14px 20px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; position: relative; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 13px; color: var(--accent); font-weight: 800; font-size: 18px; }
.faq[open] summary::after { content: "−"; }
.faq summary:hover { background: rgba(99, 102, 241, 0.06); }
.faq-content { padding: 0 20px 16px; color: var(--muted); font-size: 15px; }
.faq-content p { margin: 0 0 10px; }
.faq-content p:last-child { margin-bottom: 0; }

/* Sources */
.sources ol { padding-left: 22px; }
.sources li { font-size: 14px; color: var(--muted); margin-bottom: 6px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: #eef2ff;
  border-radius: var(--radius);
  padding: 30px 34px;
  margin: 36px 0;
}
.cta-band h2 { margin: 0 0 8px; font-size: 21px; color: #ffffff; }
.cta-band p { margin: 0 0 18px; color: #c7d2fe; font-size: 15px; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #ffffff;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 15px;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 0;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-inner a { color: var(--muted); }
.footer-col { min-width: 200px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.copyright { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; }

@media (max-width: 640px) {
  .article-wrap { padding: 24px 18px; }
  .hero h1 { font-size: 26px; }
  .footer-inner { flex-direction: column; }
}
