@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f5f4ef;
  --paper: #ffffff;
  --ink: #11110f;
  --muted: #68655f;
  --quiet: #b8b6ae;
  --line: #cbc7bd;
  --acid: #bdff2f;
  --red: #f24b3a;
  --blue: #2458ff;
  --charcoal: #181916;
  --soft: #eceae2;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 17, 15, 0.12);
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-display: "IBM Plex Serif", Georgia, serif;
  --font-accent: var(--font-body);
  --site-content-max: 1120px;
  --feed-content-max: 856px;
  --rail-min: 160px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  overflow-x: clip;
}

body::selection {
  background: var(--acid);
  color: var(--ink);
}

.ad-layout,
.site-main-flow {
  min-width: 0;
}

.side-ad-rail {
  display: none;
}

.feed-ad-layout,
.article-ad-layout {
  --ad-content-max: var(--site-content-max);
  width: 100%;
}

.feed-ad-layout {
  --ad-content-max: var(--feed-content-max);
}

@media (min-width: 1240px) {
  .ad-layout {
    display: grid;
    grid-template-columns: minmax(var(--rail-min), 1fr) minmax(0, var(--ad-content-max)) minmax(var(--rail-min), 1fr);
    align-items: start;
  }

  .feed-ad-layout .section-row,
  .article-ad-layout .article-shell {
    grid-column: 2;
    width: 100%;
  }

  .feed-ad-layout .section-row {
    padding-right: 0;
    padding-left: 0;
  }

  .side-ad-rail {
    display: block;
    grid-row: 1;
    min-width: 0;
    min-height: 1px;
    padding: 0 18px;
    background: transparent;
  }

  .side-ad-rail-left {
    grid-column: 1;
  }

  .side-ad-rail-right {
    grid-column: 3;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 14px 30px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.74);
  background: rgba(245, 244, 239, 0.91);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand::before {
  content: "";
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border: 2px solid var(--ink);
  background:
    linear-gradient(135deg, transparent 0 43%, var(--ink) 44% 49%, transparent 50%),
    var(--acid);
  transform: rotate(-8deg);
  box-shadow: inset 0 0 0 6px var(--paper);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.nav-link,
.nav-anchor {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-anchor:hover,
.nav-link.is-active,
.nav-anchor.is-active {
  border-color: var(--ink);
  background: var(--acid);
  color: var(--ink);
}

.icon-button,
.search-button {
  display: inline-grid;
  place-items: center;
  height: 42px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  width: 42px;
  border-radius: 50%;
  font-size: 1.35rem;
}

.search-button {
  grid-auto-flow: column;
  gap: 9px;
  min-width: 104px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-mark {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-mark::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.icon-button:hover,
.search-button:hover {
  background: var(--acid);
}

.search-panel {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.search-label {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-panel input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  outline: 0;
  font-size: 1.25rem;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.72fr);
  min-height: 640px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.74);
}

.hero-story {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 640px;
  overflow: hidden;
  border-right: 1px solid rgba(17, 17, 15, 0.74);
  background: var(--charcoal);
  color: var(--paper);
  cursor: pointer;
}

.hero-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.9) contrast(1.05);
}

.hero-story.no-image {
  background:
    linear-gradient(90deg, rgba(189, 255, 47, 0.1) 1px, transparent 1px) 0 0 / 42px 100%,
    var(--charcoal);
}

.hero-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 15, 0.08), rgba(17, 17, 15, 0.68)),
    radial-gradient(circle at 18% 30%, rgba(189, 255, 47, 0.16), transparent 34%);
}

.hero-story.no-image::after {
  background: linear-gradient(180deg, rgba(17, 17, 15, 0.08), rgba(17, 17, 15, 0.38));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 42px;
}

.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--acid);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.hero-content h1 {
  margin: 0;
  max-width: 12.5ch;
  font-size: 5.15rem;
  line-height: 0.91;
  letter-spacing: 0;
}

.hero-content p {
  max-width: 62ch;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.62;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-rail {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-height: 640px;
}

.rail-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 0;
  padding: 22px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.74);
  background: var(--paper);
}

.rail-card:last-child {
  border-bottom: 0;
}

.rail-card img {
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.rail-card.no-image {
  grid-template-columns: 1fr;
}

.rail-card.no-image div {
  max-width: 34ch;
}

.rail-card span,
.story-card span,
.policy-card span {
  color: var(--muted);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rail-card h2 {
  margin: 8px 0 0;
  font-size: 1.36rem;
  line-height: 1.08;
}

.ticker-strip {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid rgba(17, 17, 15, 0.74);
  background: var(--acid);
}

.ticker-label {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-right: 1px solid rgba(17, 17, 15, 0.74);
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ticker-items {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 22px;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  gap: 26px;
  min-width: max-content;
  animation: tickerMove 28s linear infinite;
}

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

.ticker-items a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.ticker-items a::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

.section-row {
  padding: 62px 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 24px;
  max-width: 1280px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 2.95rem;
  line-height: 0.96;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.category-strip {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.74);
  background: var(--paper);
}

.category-strip-head {
  display: grid;
  place-items: center;
  min-height: 118px;
  border-right: 1px solid rgba(17, 17, 15, 0.74);
  color: var(--muted);
  font-family: var(--font-accent);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.category-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.category-board-compact {
  max-width: none;
  margin: 0;
  padding: 16px;
}

.category-board-compact .category-tile {
  min-height: 82px;
}

.story-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 438px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 17, 15, 0.82);
  box-shadow: var(--shadow);
}

.story-card img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.92) contrast(1.04);
}

.story-card.no-image {
  grid-template-rows: 1fr;
  min-height: 300px;
  border-top: 8px solid var(--acid);
}

.story-card-content {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 18px;
}

.story-card h2 {
  margin: 8px 0 0;
  font-size: 1.55rem;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.category-tile {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 138px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.category-tile img {
  display: none;
}

.category-tile div {
  display: contents;
}

.category-tile span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-tile strong,
.category-tile h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.08;
}

.category-tile:hover,
.category-tile.is-active {
  background: var(--acid);
  border-color: var(--ink);
  box-shadow: none;
}

.category-tile.is-active span {
  color: rgba(17, 17, 15, 0.72);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 52px 22px 42px;
  border-top: 1px solid rgba(17, 17, 15, 0.74);
  background: var(--paper);
  text-align: center;
}

.footer-brand {
  font-size: 1.5rem;
}

.site-footer p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

.footer-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 34px;
  max-width: 920px;
}

.footer-nav-main a {
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-nav-legal a {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: var(--muted);
  text-decoration: none;
}

.footer-disclaimer {
  max-width: 820px;
  margin: 0;
  color: var(--quiet);
  font-size: 0.78rem;
  line-height: 1.48;
}

.footer-credit {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 540px;
  padding: 14px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.ops-body {
  background: var(--paper);
}

.ops-hero {
  padding: 54px 22px 34px;
  border-bottom: 1px solid var(--ink);
  background: var(--charcoal);
  color: var(--paper);
}

.ops-hero > p {
  margin: 0 0 10px;
  color: var(--acid);
  font-weight: 900;
  text-transform: uppercase;
}

.ops-hero h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.ops-metrics div {
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
}

.ops-metrics strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
}

.ops-metrics span {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.ops-section {
  padding: 42px 22px;
  border-bottom: 1px solid var(--ink);
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.policy-card {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
}

.policy-card.is-critical {
  background: var(--red);
  color: var(--paper);
}

.policy-card h3 {
  margin: 10px 0 12px;
}

.policy-card p {
  margin: 0;
  color: inherit;
  line-height: 1.45;
}

.source-table-wrap {
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.source-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

.source-table th,
.source-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.source-table th {
  background: var(--charcoal);
  color: var(--paper);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.source-table tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  font-size: 0.8rem;
  font-weight: 800;
}

.risk-high {
  color: var(--red);
  font-weight: 900;
}

.risk-medium {
  color: var(--blue);
  font-weight: 900;
}

.risk-low {
  color: #267a2e;
  font-weight: 900;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pipeline li {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
}

.pipeline strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.pipeline span {
  color: var(--muted);
  line-height: 1.45;
}

.legal-shell,
.contact-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 22px 70px;
}

.legal-shell h1,
.contact-shell h1 {
  margin: 0 0 28px;
  font-size: 3.5rem;
  line-height: 0.98;
}

.legal-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.legal-section p,
.legal-section li,
.contact-shell p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.contact-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card a,
.contact-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.2rem;
  word-break: break-word;
}

@media (max-width: 1080px) {
  .hero-band {
    grid-template-columns: 1fr;
  }

  .hero-story {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .hero-rail {
    grid-template-rows: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 0;
  }

  .rail-card {
    grid-template-columns: 1fr;
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }

  .rail-card:last-child {
    border-right: 0;
  }

  .rail-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.4 / 1;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-board,
  .category-board-compact,
  .pipeline,
  .policy-grid,
  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .brand {
    font-size: 1.7rem;
  }

  .hero-story,
  .hero-band {
    min-height: 520px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-content h1 {
    max-width: 12ch;
    font-size: 2.75rem;
  }

  .hero-rail,
  .story-grid,
  .category-board,
  .category-board-compact,
  .policy-grid,
  .pipeline,
  .contact-grid,
  .ops-metrics {
    grid-template-columns: 1fr;
  }

  .rail-card {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .section-heading {
    display: block;
  }

  .section-heading h1,
  .section-heading h2 {
    margin-top: 8px;
    font-size: 1.8rem;
  }

  .ticker-strip {
    grid-template-columns: 92px 1fr;
  }

  .category-strip {
    grid-template-columns: 92px 1fr;
  }

  .category-strip-head {
    min-height: 102px;
  }

  .ticker-items {
    gap: 18px;
    overflow-x: auto;
  }

  .ticker-track {
    gap: 18px;
  }

  .site-footer {
    gap: 20px;
    padding: 42px 18px 36px;
  }

  .site-footer nav,
  .footer-nav {
    justify-content: center;
    gap: 12px 18px;
  }

  .footer-nav-legal a {
    font-size: 0.92rem;
  }

  .footer-disclaimer {
    font-size: 0.72rem;
  }

  .ops-hero h1 {
    font-size: 2.7rem;
  }

  .legal-shell h1,
  .contact-shell h1 {
    font-size: 2.45rem;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
  }
}
