:root {
  color-scheme: dark;
  --bg: #101820;
  --panel: #17212b;
  --panel-soft: #1f2c36;
  --paper: #f4efe6;
  --ink: #0d141b;
  --text: #f7f3ea;
  --muted: #c7d1d8;
  --line: rgba(247, 243, 234, .18);
  --accent: #d73f2a;
  --gold: #e0b75b;
  --blue: #4fa3c7;
  --green: #74b678;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; }

.news-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(16, 24, 32, .94);
  backdrop-filter: blur(18px);
}

.news-brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}
.news-brand strong {
  font-size: 1.05rem;
  line-height: 1;
}
.news-brand span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.news-topbar nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.news-topbar nav a,
.tip-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
}
.news-topbar nav a:hover,
.news-topbar nav a[aria-current="page"] {
  color: var(--text);
}
.tip-link {
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(224, 183, 91, .45);
  color: var(--paper);
  background: rgba(224, 183, 91, .08);
  white-space: nowrap;
}

.news-hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 72px) clamp(32px, 7vw, 72px);
  background:
    linear-gradient(90deg, rgba(16,24,32,.98), rgba(16,24,32,.68)),
    url("/assets/illco-command-preview.jpg") center/cover;
}
.hero-copy {
  max-width: 840px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: .94;
  letter-spacing: 0;
}
.lede,
.article-deck {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.secondary-row {
  margin-top: 12px;
}
.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 950;
  text-decoration: none;
}
.primary-action {
  color: var(--paper);
  background: var(--accent);
}
.secondary-action {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.hero-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(244, 239, 230, .22);
  border-radius: 8px;
  background: rgba(23, 33, 43, .88);
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
}
.hero-panel img,
.article-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.hero-panel strong {
  font-size: clamp(1.3rem, 3vw, 2rem);
}
.hero-panel span {
  color: var(--muted);
  line-height: 1.5;
}

.news-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px clamp(18px, 5vw, 72px);
  border-block: 1px solid var(--line);
  background: #0c131a;
}
.news-strip a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 900;
  text-decoration: none;
}
.news-strip a:hover {
  color: var(--text);
  border-color: rgba(224,183,91,.6);
}

.editor-note,
.latest-grid,
.article-layout,
.news-footer {
  padding-inline: clamp(18px, 5vw, 72px);
}
.editor-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding-block: 24px;
  background: var(--paper);
  color: var(--ink);
}
.editor-note strong {
  color: var(--accent);
  text-transform: uppercase;
}
.editor-note p { margin: 0; line-height: 1.5; }

.latest-grid {
  padding-block: clamp(44px, 8vw, 86px);
}
.topic-hero,
.trust-page {
  display: grid;
  gap: 18px;
  padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 72px) clamp(42px, 7vw, 76px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(16,24,32,.98), rgba(16,24,32,.78)),
    url("/assets/illco-command-preview.jpg") center/cover;
}
.topic-hero h1,
.trust-page h1 {
  max-width: 980px;
}
.trust-copy {
  max-width: 820px;
  display: grid;
  gap: 16px;
}
.trust-copy p {
  margin: 0;
  color: rgba(247,243,234,.88);
  font-size: 1.08rem;
  line-height: 1.7;
}
.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}
.section-heading h2,
.related-grid h2,
.takeaway-box h2,
.source-box h2,
.faq-box h2,
.article-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0;
}
.section-heading p {
  color: var(--muted);
  line-height: 1.55;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.news-card a,
.related-card {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}
.news-card a:hover,
.related-card:hover {
  border-color: rgba(224,183,91,.65);
  background: var(--panel-soft);
}
.news-card span,
.related-card span {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
}
.news-card h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.15;
}
.news-card p,
.related-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.news-card small {
  color: rgba(247,243,234,.66);
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 820px);
  gap: clamp(24px, 5vw, 56px);
  justify-content: center;
  padding-block: clamp(64px, 10vw, 110px);
}
.article-rail {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
  align-self: start;
}
.article-rail a {
  padding: 9px 10px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}
.article-rail a:hover {
  color: var(--text);
  border-color: var(--gold);
}
.article-main h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}
.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}
.article-visual {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.article-visual div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.article-visual span { color: var(--gold); font-weight: 900; }
.takeaway-box,
.source-box,
.faq-box,
.related-grid {
  margin: 32px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.takeaway-box ul,
.source-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}
.source-box p {
  color: var(--muted);
  line-height: 1.55;
}
.source-box a {
  color: var(--paper);
  font-weight: 900;
}
.article-section {
  margin: 34px 0;
}
.article-section p {
  color: rgba(247,243,234,.86);
  font-size: 1.08rem;
  line-height: 1.76;
}
.faq-box {
  display: grid;
  gap: 10px;
}
.faq-box details {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.faq-box summary {
  cursor: pointer;
  font-weight: 950;
}
.faq-box p {
  color: var(--muted);
  line-height: 1.55;
}
.related-grid > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.related-card strong {
  line-height: 1.2;
}

.news-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 28px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.news-footer strong { color: var(--text); }

@media (max-width: 980px) {
  .news-topbar {
    grid-template-columns: 1fr;
  }
  .news-topbar nav {
    justify-content: flex-start;
  }
  .tip-link {
    width: max-content;
  }
  .news-hero,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-rail {
    position: static;
    display: flex;
    overflow-x: auto;
  }
  .cards-grid,
  .related-grid > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  h1,
  .article-main h1 {
    font-size: 2.35rem;
    line-height: 1;
  }
  .news-hero {
    min-height: auto;
    padding-top: 42px;
  }
  .cards-grid,
  .related-grid > div,
  .editor-note {
    grid-template-columns: 1fr;
  }
  .article-section p {
    font-size: 1rem;
  }
}
