
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,600;6..72,700&display=swap');

:root {
  --ink: #17302b;
  --muted: #60756f;
  --paper: #f6f7ef;
  --card: #ffffff;
  --line: #dbe3dc;
  --green: #0b6b50;
  --green-dark: #084b3a;
  --blue: #1e5aa7;
  --yellow: #f4c643;
  --red: #d83b37;
  --shadow: 0 20px 60px rgba(17, 58, 49, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 "DM Sans", sans-serif; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
img, svg { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 99; background: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(870px, 100%); }
.site-header { position: sticky; top: 0; z-index: 20; color: #fff; background: rgba(8, 48, 39, .96); border-bottom: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); }
.header-inner { width: min(1260px, calc(100% - 36px)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; line-height: 1.15; }
.brand strong { display: block; font: 700 1.15rem "Newsreader", serif; letter-spacing: .02em; }
.brand small { color: #bad8ce; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 8px); gap: 3px; align-items: end; width: 34px; height: 34px; padding: 7px; border: 1px solid #6ec8aa; border-radius: 9px; }
.brand-mark i { display: block; border-radius: 4px; }
.brand-mark i:nth-child(1) { height: 9px; background: #5cc592; }
.brand-mark i:nth-child(2) { height: 18px; background: var(--yellow); }
.brand-mark i:nth-child(3) { height: 25px; background: #ed6a62; }
nav { display: flex; gap: 24px; align-items: center; margin-left: auto; }
nav a { color: #d9eee8; text-decoration: none; font-size: .92rem; font-weight: 600; }
nav a[aria-current="page"], nav a:hover { color: #fff; }
.menu-toggle { display: none; color: #fff; background: transparent; border: 1px solid #749d91; border-radius: 9px; padding: 8px 12px; }
.header-cta, .hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #163a31;
  background: linear-gradient(135deg, #ffe269 0%, #f6bc2d 68%, #ff963d 130%);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .025em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(49, 33, 0, .24), inset 0 1px 0 rgba(255,255,255,.72);
  transition: transform .18s ease, box-shadow .18s ease;
}
.header-cta { min-height: 44px; padding: 0 17px; font-size: .78rem; }
.header-cta:hover, .hero-cta:hover { color: #0a3c2e; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(49, 33, 0, .3), inset 0 1px 0 rgba(255,255,255,.78); }
.header-cta.help, .hero-cta.help { color: #fff; background: linear-gradient(135deg, #1f6cad, #0b6b50); }
.hero-cta-bridge { position: relative; z-index: 8; display: flex; justify-content: center; height: 0; }
.hero-cta { min-height: 60px; padding: 0 36px; transform: translateY(-50%); font-size: .98rem; box-shadow: 0 18px 44px rgba(33, 66, 56, .27), inset 0 1px 0 rgba(255,255,255,.75); }
.hero-cta:hover { transform: translateY(calc(-50% - 2px)); }
.home-hero { position: relative; overflow: hidden; color: #fff; background: #0b5b45; padding: 86px 0; }
.home-hero::before { content: ""; position: absolute; inset: -40% -10% auto 45%; height: 540px; background: radial-gradient(circle, rgba(244,198,67,.35), transparent 60%); }
.home-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 80px; background: linear-gradient(180deg, transparent, rgba(5,38,31,.3)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
h1, h2, h3 { font-family: "Newsreader", serif; line-height: 1.08; }
h1 { margin: 12px 0 20px; font-size: clamp(2.7rem, 6vw, 5.4rem); letter-spacing: -.045em; }
h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
.lede { max-width: 760px; margin: 0; color: inherit; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.62; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.home-hero .eyebrow, .page-hero .eyebrow { color: #f7d879; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.button.primary { color: var(--green-dark); background: var(--yellow); }
.button.secondary { color: #fff; border: 1px solid #83b7a7; }
.signal-board { padding: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; box-shadow: var(--shadow); }
.signal-board > div { display: grid; grid-template-columns: 14px 1fr; gap: 3px 12px; padding: 18px; border-bottom: 1px solid rgba(255,255,255,.13); }
.signal-board > div:last-child { border: 0; }
.signal-board small { grid-column: 2; color: #cfe4dd; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot.green { background: #58c98c; box-shadow: 0 0 0 5px rgba(88,201,140,.15); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 0 5px rgba(244,198,67,.15); }
.dot.red { background: #ec6660; box-shadow: 0 0 0 5px rgba(236,102,96,.15); }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding: 70px 0 30px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 24px; }
.filter-label { display: grid; gap: 4px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
select, input { max-width: 100%; min-height: 44px; color: var(--ink); background: #fff; border: 1px solid #bccbc3; border-radius: 10px; padding: 0 12px; }
.thread-card { display: grid; grid-template-columns: 38px 1fr; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(30,65,56,.05); }
.thread-card > div:last-child { padding: 22px 24px 20px; }
.thread-card h2 { font-size: 1.55rem; }
.thread-card h2 a { color: var(--ink); text-decoration: none; }
.signal-rail { display: flex; justify-content: center; padding-top: 26px; background: #eef2ec; }
.signal-rail span { display: block; width: 13px; height: 13px; border-radius: 50%; }
.signal-rail.signal-red span { background: var(--red); box-shadow: 0 0 0 5px #f9dedb; }
.signal-rail.signal-yellow span { background: #dcae16; box-shadow: 0 0 0 5px #fff2c7; }
.signal-rail.signal-green span { background: var(--green); box-shadow: 0 0 0 5px #d5eee3; }
.thread-topline, .thread-footer, .thread-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .78rem; }
.thread-topline span:first-child { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.thread-footer { justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.thread-footer a { font-weight: 700; }
.home-sidebar { display: grid; gap: 18px; align-content: start; }
.sidebar-card { position: sticky; top: 96px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sidebar-card + .sidebar-card { position: static; }
.help-card { color: #fff; background: var(--blue); border-color: transparent; }
.help-card .eyebrow, .help-card a { color: #fff2b5; }
.explainer-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 34px; margin-bottom: 80px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.explainer-strip div { display: grid; gap: 5px; padding: 24px; background: #fff; }
.explainer-strip span { color: var(--muted); font-size: .88rem; }
.page-hero { color: #fff; background: linear-gradient(135deg, #0a4d3c 0%, #0b6b50 55%, #19688f 150%); padding: 70px 0 64px; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 5.3vw, 4.8rem); }
.page-hero .lede { color: #e1f0eb; }
.thread-meta { margin-top: 22px; color: #c6e0d8; }
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 42px; align-items: start; padding-top: 62px; padding-bottom: 90px; }
.prose { min-width: 0; }
.prose section { margin-bottom: 54px; }
.prose p, .prose li { color: #334c46; }
.prose p { margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.wide-prose { max-width: 930px; padding-top: 62px; padding-bottom: 90px; }
.evidence-note, .help-ribbon, .urgent-box { padding: 20px 22px; margin-bottom: 42px; background: #fff8d8; border-left: 5px solid var(--yellow); border-radius: 0 12px 12px 0; }
.evidence-note p, .help-ribbon p, .urgent-box p { margin: 5px 0 0; }
.urgent-box { color: #fff; background: var(--red); border-left-color: #7b1515; }
.urgent-box p { color: #fff; }
.help-ribbon { background: #e9f5ef; border-left-color: var(--green); }
.score-card { position: sticky; top: 104px; padding: 25px; color: #fff; background: #17302b; border-radius: var(--radius); box-shadow: var(--shadow); }
.score-card.signal-red { background: #6f2421; }
.score-card.signal-yellow { color: var(--ink); background: #fff3bd; }
.score-card.neutral { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.score-card .eyebrow { color: inherit; opacity: .72; }
.risk-verdict { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin: 8px 0 26px; }
.risk-verdict span { font: 700 1.35rem "Newsreader", serif; }
.risk-verdict strong { font-size: 1.8rem; }
.score-row { margin-bottom: 15px; }
.score-row > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: .83rem; }
.score-track { height: 7px; margin-top: 6px; overflow: hidden; background: rgba(255,255,255,.25); border-radius: 99px; }
.signal-yellow .score-track, .neutral .score-track { background: rgba(23,48,43,.15); }
.score-track span { display: block; height: 100%; background: var(--yellow); border-radius: inherit; }
.signal-yellow .score-track span { background: var(--red); }
.small { font-size: .78rem; line-height: 1.55; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #fff; background: var(--green-dark); font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f7faf7; }
.source-grid, .topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.source-card, .topic-grid article { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.source-card span { color: var(--green); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.related { display: flex; flex-wrap: wrap; gap: 10px; padding: 26px; background: #e8f2ec; border-radius: var(--radius); }
.related h2 { flex-basis: 100%; }
.related a { padding: 8px 12px; background: #fff; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 600; }
.search-box { display: grid; gap: 7px; max-width: 520px; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.search-box input { min-height: 52px; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.directory-shell { grid-template-columns: minmax(0, 1fr) 300px; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 99px; font-size: .72rem; white-space: nowrap; }
.status-pill.live { color: #07533e; background: #d8f0e4; }
.status-pill.queued { color: #6e5520; background: #fff2c7; }
.editor-card { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.editor-avatar { display: grid; place-items: center; aspect-ratio: 1; color: #fff; background: linear-gradient(135deg, var(--green), var(--blue)); border-radius: 50% 40% 55% 45%; font: 700 3rem "Newsreader", serif; }
.site-footer { color: #d6e7e1; background: #092f27; padding: 58px 0 22px; }
.footer-grid { width: min(1180px, calc(100% - 40px)); margin: auto; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 44px; }
.footer-grid h2 { color: #fff; font: 700 .78rem "DM Sans", sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a { display: block; margin: 8px 0; color: #d6e7e1; text-decoration: none; }
.footer-grid p { font-size: .85rem; }
.footer-note { width: min(1180px, calc(100% - 40px)); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid #31574e; color: #9dbbb2; font-size: .75rem; }

@media (max-width: 900px) {
  .hero-grid, .home-layout, .article-shell, .directory-shell { grid-template-columns: 1fr; }
  .home-sidebar, .score-card { position: static; }
  .explainer-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  nav { position: absolute; top: 70px; right: 18px; left: 18px; display: none; margin-left: 0; padding: 16px; background: #0b4538; border: 1px solid #4c766b; border-radius: 14px; box-shadow: var(--shadow); }
  nav.open { display: grid; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
}

@media (max-width: 600px) {
  .container, .footer-grid, .footer-note { width: min(100% - 24px, 1180px); }
  .header-inner { width: calc(100% - 24px); }
  .header-inner { gap: 7px; }
  .brand strong { font-size: .98rem; }
  .brand small { display: none; }
  .header-cta { min-height: 38px; padding: 0 10px; font-size: .62rem; letter-spacing: 0; }
  .menu-toggle { width: 40px; height: 38px; padding: 0; font-size: 0; }
  .menu-toggle::before { content: "☰"; font-size: 1.15rem; }
  .hero-cta { min-height: 54px; max-width: calc(100vw - 28px); padding: 0 25px; font-size: .84rem; }
  .home-hero, .page-hero { padding: 54px 0; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.5rem); }
  .thread-card { grid-template-columns: 24px 1fr; }
  .thread-card > div:last-child { padding: 18px 16px; }
  .section-heading { align-items: start; flex-direction: column; }
  .source-grid, .topic-grid, .explainer-strip { grid-template-columns: 1fr; }
  .article-shell, .wide-prose { padding-top: 38px; padding-bottom: 58px; }
  .editor-card { grid-template-columns: 1fr; }
  .editor-avatar { width: 120px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  th, td { min-width: 150px; padding: 12px; }
}
