/* MCP News - news-publication design system.
   Zero-JS by design: sticky nav, scrollable section bar, pure CSS cards. */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --card: #ffffff;
  --card-hover: #fbfdff;
  --border: #e4e8f0;
  --border-strong: #cbd5e1;

  /* ink */
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;

  /* brand */
  --navy: #0b1526;
  --navy-ink: #e6ecf7;
  --navy-muted: #93a3bd;
  --accent: #0284c7;
  --accent-strong: #075985;
  --accent-soft: #e0f2fe;
  --brand-node-a: #38bdf8;
  --brand-node-b: #a5b4fc;
  --brand-node-c: #34d399;

  /* status */
  --status-good: #047857;
  --status-good-bg: #ecfdf5;
  --status-mid: #b45309;
  --status-mid-bg: #fffbeb;
  --status-muted: #475569;
  --status-muted-bg: #f1f5f9;
  --status-accent: #0369a1;
  --status-accent-bg: #e0f2fe;

  /* topics */
  --topic-spec: #6d28d9;
  --topic-adoption: #047857;
  --topic-security: #b91c1c;
  --topic-registry: #b45309;
  --topic-release: #0369a1;
  --topic-governance: #4338ca;
  --topic-industry: #475569;

  --link: #075985;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-hover: 0 10px 24px -12px rgba(16, 24, 40, 0.22);
  --container: 1160px;

  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --font-mono:
    ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f182b;
    --card: #101b30;
    --card-hover: #13203a;
    --border: #1f2c45;
    --border-strong: #31405e;

    --ink: #e6ecf7;
    --ink-soft: #c3cee2;
    --muted: #8b99b4;

    --navy: #080f1d;
    --accent: #38bdf8;
    --accent-strong: #7dd3fc;
    --accent-soft: #10314a;

    --status-good: #34d399;
    --status-good-bg: #0b2b22;
    --status-mid: #fbbf24;
    --status-mid-bg: #2d2205;
    --status-muted: #a4b2c9;
    --status-muted-bg: #182337;
    --status-accent: #7dd3fc;
    --status-accent-bg: #0e2c42;

    --topic-spec: #a78bfa;
    --topic-adoption: #34d399;
    --topic-security: #f87171;
    --topic-registry: #fbbf24;
    --topic-release: #7dd3fc;
    --topic-governance: #a5b4fc;
    --topic-industry: #a4b2c9;

    --link: #7dd3fc;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  word-break: break-word;
}

img {
  max-width: 100%;
}

/* ---------- Masthead ---------- */

.masthead {
  background: var(--navy);
  color: var(--navy-ink);
  border-bottom: 3px solid var(--accent);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy-ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--navy-ink);
  flex: none;
}

.brand-word {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand-accent {
  color: var(--brand-node-a);
}

.masthead-tagline {
  font-size: 0.85rem;
  color: var(--navy-muted);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 1.25rem;
  line-height: 1.4;
  max-width: 30ch;
}

.spec-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  padding: 0.3rem 0.45rem 0.3rem 0.9rem;
  color: var(--navy-ink);
  font-size: 0.8rem;
  white-space: nowrap;
}

.spec-chip:hover {
  text-decoration: none;
  background: rgba(56, 189, 248, 0.2);
}

.spec-chip-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  color: var(--navy-muted);
}

.spec-chip-value {
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--brand-node-a);
  color: #082032;
  border-radius: 999px;
  padding: 0.12rem 0.65rem;
}

/* ---------- Primary nav ---------- */

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav-scroll {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
}

.nav-item {
  display: inline-block;
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.nav-item-active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
}

/* ---------- Main shell ---------- */

.site-main {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

h2 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 2.2rem 0 0.8rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 1.3rem 0 0.45rem;
}

p {
  margin-bottom: 0.9rem;
}

ul,
ol {
  padding-left: 1.35rem;
  margin-bottom: 0.9rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Section headings with newsroom rule */
.group-heading,
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2.6rem 0 1rem;
}

.group-heading::before,
.section-heading::before {
  content: '';
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.group-heading::after,
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-heading a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* Speakable standfirst */
.speakable {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.8rem 1.1rem;
  margin: 0.9rem 0 1.4rem;
}

/* ---------- Badges & tags ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: var(--status-muted);
  background: var(--status-muted-bg);
  border: 1px solid transparent;
  vertical-align: middle;
  white-space: nowrap;
}

/* spec_status badges (servers/clients) */
.badge-current {
  color: var(--status-good);
  background: var(--status-good-bg);
}

.badge-legacy {
  color: var(--status-mid);
  background: var(--status-mid-bg);
}

.badge-unknown {
  color: var(--status-muted);
  background: var(--status-muted-bg);
}

/* authority badges (servers) */
.badge-authority-first_party {
  color: var(--status-accent);
  background: var(--status-accent-bg);
}

.badge-authority-community,
.badge-authority-unknown {
  color: var(--status-muted);
  background: var(--status-muted-bg);
}

/* spec revision status badges */
.badge-spec-current {
  color: var(--status-good);
  background: var(--status-good-bg);
}

.badge-spec-superseded {
  color: var(--status-muted);
  background: var(--status-muted-bg);
}

.badge-spec-draft {
  color: var(--status-mid);
  background: var(--status-mid-bg);
}

/* news topic kickers */
.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
}

.badge-topic-spec_release { color: var(--topic-spec); background: transparent; padding-left: 0; }
.badge-topic-adoption { color: var(--topic-adoption); background: transparent; padding-left: 0; }
.badge-topic-security { color: var(--topic-security); background: transparent; padding-left: 0; }
.badge-topic-registry { color: var(--topic-registry); background: transparent; padding-left: 0; }
.badge-topic-server_release,
.badge-topic-client_release { color: var(--topic-release); background: transparent; padding-left: 0; }
.badge-topic-governance { color: var(--topic-governance); background: transparent; padding-left: 0; }
.badge-topic-industry { color: var(--topic-industry); background: transparent; padding-left: 0; }

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  vertical-align: middle;
}

.confidence-high {
  border-color: var(--status-good);
  color: var(--status-good);
}

.confidence-good {
  border-color: var(--status-mid);
  color: var(--status-mid);
}

.confidence-low {
  border-color: var(--border-strong);
  color: var(--muted);
}

.meta-row,
.entry-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.5rem 0 0.4rem;
}

.entry-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}

/* ---------- Front page: hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 0.75rem;
}

.lead-story {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  padding: 2.2rem 2rem 1.9rem;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(100% 120% at 0% 100%, rgba(52, 211, 153, 0.16), transparent 55%),
    var(--navy);
  color: var(--navy-ink);
  overflow: hidden;
}

.lead-story .kicker {
  color: var(--brand-node-a);
  margin-bottom: 0.5rem;
}

.lead-story h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.lead-story h2 a {
  color: inherit;
}

.lead-story p {
  color: var(--navy-muted);
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
  max-width: 60ch;
}

.lead-story .meta-row {
  color: var(--navy-muted);
  margin: 0;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-side .story-card {
  flex: 1;
}

/* ---------- Story cards ---------- */

.story-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.story-card:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: var(--shadow-hover);
}

.story-card h3 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.story-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card .meta-row {
  margin: 0.45rem 0 0;
}

/* ---------- Stat band ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2.2rem 0 0.4rem;
  box-shadow: var(--shadow);
}

.stat {
  background: var(--card);
  padding: 1rem 1.1rem;
  display: block;
  color: inherit;
}

a.stat:hover {
  text-decoration: none;
  background: var(--card-hover);
}

.stat-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.stat-value.stat-good { color: var(--status-good); }
.stat-value.stat-accent { color: var(--accent); }

.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ---------- Card grids (catalog) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.entry-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.entry-card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  box-shadow: var(--shadow-hover);
}

.entry-card > a {
  display: block;
  padding: 1.05rem 1.15rem;
  color: inherit;
  height: 100%;
}

.entry-card > a:hover {
  text-decoration: none;
}

.entry-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.entry-card .badge {
  margin-right: 0.35rem;
}

.entry-type {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.5rem 0 0.35rem;
}

.card-summary,
.dub-notes {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Index lists (collection pages) ---------- */

.index-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.9rem;
}

.index-list > li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow);
  margin: 0;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.index-list > li:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
}

.index-list > li > a {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.index-list > li > a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

.index-list > li > .badge {
  margin-left: 0.45rem;
}

.index-list > li > p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.index-list time {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Hub links ---------- */

.hub-links {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}

.hub-links li {
  margin: 0;
  counter-increment: none;
}

.hub-links a {
  display: block;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.hub-links a:hover {
  text-decoration: none;
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
  border-left-color: var(--accent);
}

.hub-links strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

/* ---------- Detail pages ---------- */

.entry-detail,
.news-article,
.concept-detail {
  max-width: 100%;
}

.entry-detail > header,
.news-article > header,
.concept-detail > header {
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.entry-detail > header .badge,
.concept-detail > header .badge {
  margin-right: 0.4rem;
}

.news-article > header h1,
.concept-detail > header h1,
.entry-detail > header h1 {
  margin-top: 0.35rem;
}

/* Key facts: infobox on wide screens */
.key-facts {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.key-facts h2 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.key-facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.key-facts dt {
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.key-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 1020px) {
  .entry-detail .key-facts {
    float: right;
    width: 340px;
    margin: 0 0 1.25rem 1.75rem;
  }
}

/* Quick answers */
.quick-answers {
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.quick-answers .qa,
.quick-answers > h2 + p {
  margin: 0;
}

.qa {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow);
}

.qa h2 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.qa p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Sections inside quick-answers used as plain intro box (home) */
section.quick-answers > h2 {
  margin: 0;
  font-size: 1.05rem;
}

section.quick-answers > p {
  margin: 0;
  color: var(--ink-soft);
}

/* Curator note */
.curator-note {
  border-left: 4px solid var(--brand-node-c);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}

.curator-note h2 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.curator-note p {
  margin: 0;
  color: var(--ink-soft);
}

/* Tables */
.availability-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.availability-table thead th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.availability-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.availability-table tbody tr:last-child td {
  border-bottom: none;
}

.availability-table tbody tr:hover td {
  background: var(--card-hover);
}

/* Verification / sources */
.verification {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  margin: 2rem 0;
  font-size: 0.92rem;
}

.verification h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.verification > p {
  color: var(--ink-soft);
}

.sources {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
}

.sources li {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.sources cite {
  font-style: normal;
}

/* Body prose sections */
.entry-body {
  max-width: 76ch;
}

.entry-body p,
.news-article > .entry-body p {
  font-size: 1.02rem;
  line-height: 1.7;
}

.news-article .entry-body {
  max-width: 72ch;
}

/* Concept & misc lists */
.concept-list,
.trope-list {
  list-style: none;
  padding: 0;
}

.concept-list li {
  border-left: 3px solid var(--border-strong);
  padding: 0.15rem 0 0.15rem 0.9rem;
  margin-bottom: 0.7rem;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.key-tools ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.key-tools li {
  margin: 0;
}

/* Entity navigation block */
.entity-nav {
  clear: both;
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

.entity-nav h2 {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.entity-nav h3 {
  margin: 0.9rem 0 0.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.nav-primary {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav-primary li {
  margin: 0;
}

.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.nav-list li {
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--navy-muted);
  margin-top: 3rem;
  border-top: 3px solid var(--accent);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: 2.4rem;
  padding-bottom: 1.6rem;
}

.footer-col h3 {
  color: var(--navy-ink);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.7rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--navy-muted);
}

.footer-col a:hover {
  color: var(--navy-ink);
}

.footer-brand p {
  margin: 0.6rem 0 0;
  max-width: 42ch;
  line-height: 1.6;
}

.brand-word-footer {
  font-size: 1.3rem;
  color: var(--navy-ink);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  padding-bottom: 1.4rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
}

.footer-bottom code {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: var(--navy-ink);
}

/* ---------- Consent banner ---------- */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--navy-ink);
  border-top: 3px solid var(--accent);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.consent-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.consent-inner p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--navy-muted);
}

.consent-inner a {
  color: var(--navy-ink);
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex: none;
}

.consent-btn {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}

.consent-accept {
  background: var(--brand-node-a);
  color: #082032;
}

.consent-accept:hover {
  filter: brightness(1.08);
}

.consent-decline {
  background: transparent;
  color: var(--navy-ink);
  border-color: rgba(255, 255, 255, 0.3);
}

.consent-decline:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 720px) {
  .consent-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .consent-actions {
    margin-left: 0;
  }
}

/* ---------- Responsive ---------- */

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .masthead-inner {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .masthead-tagline {
    display: none;
  }

  .spec-chip {
    margin-left: auto;
  }

  .lead-story {
    padding: 1.6rem 1.3rem 1.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}
