@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --acid: #80ff00;
  --acid2: #00ff00;
  --ink: #1f2617;
  --ink-mid: #2e3820;
  --ink-light: #3d4a2a;
  --glass-bg: rgba(128,255,0,0.07);
  --glass-border: rgba(128,255,0,0.25);
  --text-primary: #e8f5d0;
  --text-muted: #9ab870;
  --text-dim: #6a8a50;
  --font-display: 'Caveat', cursive;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --max-prose: 72ch;
  --header-h: 64px;
  --transition: 0.18s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--ink);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--acid); text-decoration: underline; transition: color var(--transition); }
a:hover { color: var(--acid2); }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font-family: inherit; }

/* ===== MARQUEE ===== */
.marquee-bar {
  background: var(--acid);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  height: 28px;
  display: flex;
  align-items: center;
}

.marquee-inner {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.marquee-inner span { padding-right: 3rem; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 2px solid var(--acid);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  height: var(--header-h);
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.logo-img { width: 40px; height: 40px; object-fit: contain; }

.logo-text-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--acid);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* PRIMARY NAV */
.primary-nav { flex: 1; overflow: hidden; }

.primary-nav ol {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.primary-nav ol::-webkit-scrollbar { display: none; }

.primary-nav ol li { flex-shrink: 0; }

.primary-nav ol li a {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  height: var(--header-h);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-right: 1px solid var(--ink-light);
  transition: background var(--transition), color var(--transition);
}

.primary-nav ol li a:hover,
.primary-nav ol li a[aria-current="page"] {
  background: var(--glass-bg);
  color: var(--acid);
}

/* HEADER CTAs */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* CTA BUTTONS */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.cta-signup {
  background: var(--acid);
  color: var(--ink);
  border: 2px solid var(--acid);
}

.cta-signup:hover {
  background: var(--acid2);
  border-color: var(--acid2);
  color: var(--ink);
  transform: rotate(-1deg) scale(1.03);
}

.cta-login {
  background: transparent;
  color: var(--acid);
  border: 2px solid var(--acid);
}

.cta-login:hover {
  background: var(--glass-bg);
  color: var(--acid2);
  border-color: var(--acid2);
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  flex-shrink: 0;
  border: 1px solid var(--acid);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--acid);
  transition: all var(--transition);
}

/* MOBILE NAV */
.mobile-nav {
  background: var(--ink-mid);
  border-top: 1px solid var(--acid);
  padding: 1rem;
}

.mobile-nav ol { display: flex; flex-direction: column; gap: 0; }

.mobile-nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-light);
  min-height: 44px;
}

.mobile-nav ol li a:hover { color: var(--acid); }

.mobile-ctas {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* ANCHOR STRIP */
.anchor-strip {
  background: var(--ink-mid);
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-strip ol {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.anchor-strip ol li a {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid var(--ink-light);
  min-height: 38px;
  transition: color var(--transition);
}

.anchor-strip ol li a:hover { color: var(--acid); }

/* ===== SITE WRAPPER ===== */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-wrapper main { flex: 1; }

/* ===== STICKERS ===== */
.sticker {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.3em 0.7em;
  background: var(--acid);
  color: var(--ink);
  pointer-events: none;
  z-index: 5;
  user-select: none;
  mix-blend-mode: screen;
  border: 2px solid var(--ink);
}

.sticker-1 { top: 18%; right: 8%; transform: rotate(-6deg); }
.sticker-2 { bottom: 22%; left: 5%; transform: rotate(4deg); animation: jitter 3.2s ease-in-out infinite; }
.sticker-3 { top: 55%; right: 15%; transform: rotate(9deg); }
.sticker-topic-1 { top: 10%; right: 3%; transform: rotate(-4deg); font-size: 0.85rem; }
.sticker-topic-2 { bottom: 10%; left: 2%; transform: rotate(7deg); font-size: 0.9rem; }
.rank-badge { position: static; display: inline-block; margin-bottom: 0.5rem; font-size: 0.8rem; }

@keyframes jitter {
  0%, 100% { transform: rotate(4deg) translate(0, 0); }
  25% { transform: rotate(3deg) translate(1px, -1px); }
  50% { transform: rotate(5deg) translate(-1px, 1px); }
  75% { transform: rotate(3.5deg) translate(1px, 0); }
}

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

/* ===== HERO (home) ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
  background: var(--ink);
  border-bottom: 3px solid var(--acid);
}

.hero-bg-numeral {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 30vw, 22rem);
  font-weight: 700;
  color: var(--acid);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  filter: saturate(150%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--acid);
  padding: 0.25em 0.75em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--acid);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-cta { margin: 0 auto; font-size: 1.15rem; padding: 0.8rem 2rem; }

.hero-img-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin-top: 3rem;
}

.hero-img {
  width: 100%;
  height: auto;
  filter: saturate(120%);
  mix-blend-mode: luminosity;
}

/* ===== TOPIC HERO ===== */
.topic-hero-section {
  position: relative;
  padding: 3.5rem 1.5rem 3rem;
  background: var(--ink-mid);
  border-bottom: 2px solid var(--acid);
  overflow: hidden;
}

.topic-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.topic-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--acid);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.topic-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 65ch;
  line-height: 1.65;
  margin-top: 0.5rem;
}

/* ===== ARTICLE HEADER ===== */
.article-header-section {
  padding: 2.5rem 1.5rem 2rem;
  background: var(--ink);
  border-bottom: 2px solid var(--glass-border);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--acid);
  line-height: 1.12;
  margin-bottom: 0.6rem;
}

.article-meta-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.article-hero-wrap {
  margin-top: 1.5rem;
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  filter: saturate(110%);
}

/* ===== INNER HEADER ===== */
.inner-header-section {
  padding: 2.5rem 1.5rem 2rem;
  background: var(--ink);
  border-bottom: 2px solid var(--glass-border);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.inner-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--acid);
  line-height: 1.1;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--acid); }
.breadcrumb span[aria-hidden] { color: var(--text-dim); }

/* ===== BYLINE ===== */
.byline {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.author-name { color: var(--acid); font-weight: 600; }

.byline time { color: var(--text-dim); }

/* ===== STAGE BADGE ===== */
.stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2em 0.6em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.stage-awareness { border-color: var(--acid2); color: var(--acid2); }
.stage-consideration { border-color: var(--acid); color: var(--acid); }
.stage-decision { border-color: #ff8c00; color: #ff8c00; }

/* ===== CONTENT SECTION WITH SIDEBAR ===== */
.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  width: 100%;
}

.content-section.with-sidebar {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.main-content { min-width: 0; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px + 1rem);
  padding: 0;
  min-width: 0;
}

.sidebar-inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.sidebar-heading {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-toc { display: flex; flex-direction: column; gap: 0; }

.sidebar-toc li a,
.sidebar-links li a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-light);
  transition: color var(--transition);
  min-height: 36px;
  display: flex;
  align-items: center;
}

.sidebar-toc li a:hover,
.sidebar-links li a:hover,
.sidebar-toc li a.current { color: var(--acid); }

.sidebar-links { display: flex; flex-direction: column; gap: 0; margin-top: 0.5rem; }

/* ===== PAGE BODY ===== */
.page-body {
  max-width: var(--max-prose);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--acid);
  margin: 2.5rem 0 0;
  line-height: 1.2;
}

.page-body h2 + hr {
  border: none;
  border-top: 2px solid var(--acid);
  margin: 0.5rem 0 1.25rem;
  opacity: 0.6;
}

.page-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--acid2);
  margin: 2rem 0 0;
  line-height: 1.3;
}

.page-body h3 + hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 0.4rem 0 1rem;
}

.page-body p { margin: 1rem 0; }

.page-body a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-body a:hover { color: var(--acid2); }

.page-body ul, .page-body ol {
  margin: 1rem 0 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }

.page-body li { line-height: 1.65; }

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.page-body th {
  background: var(--acid);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.page-body td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--ink-light);
  color: var(--text-primary);
  vertical-align: top;
}

.page-body tr:nth-child(even) td { background: var(--glass-bg); }

.page-body blockquote {
  border-left: 4px solid var(--acid);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  color: var(--text-muted);
  font-style: italic;
}

.page-body strong { color: var(--acid); font-weight: 700; }
.page-body em { color: var(--text-muted); font-style: italic; }

.page-body time { color: var(--text-dim); }

/* Inject an hr after h2/h3 within page-body even if the content doesn't include it */
.page-body h2 ~ hr,
.page-body h3 ~ hr {
  border: none;
  border-top: 2px solid var(--acid);
  opacity: 0.5;
  margin-bottom: 1rem;
}

/* ===== SECTION HEADINGS (outside page-body) ===== */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 3rem;
  margin-bottom: 0.25rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--acid);
  margin-bottom: 0;
  line-height: 1.2;
}

.section-heading + hr {
  border: none;
  border-top: 2px solid var(--acid);
  margin: 0.5rem 0 1.5rem;
  opacity: 0.7;
}

/* ===== GLASS CARDS ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  padding: 1.25rem;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.glass-card:hover {
  border-color: var(--acid);
  background: rgba(128,255,0,0.12);
  transform: translateY(-2px) rotate(-0.3deg);
}

/* ===== TOPIC CARDS GRID ===== */
.topic-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.topic-card { display: flex; flex-direction: column; gap: 0.6rem; }

.card-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
  background: rgba(128,255,0,0.12);
  display: inline-block;
  padding: 0.2em 0.5em;
  width: fit-content;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.card-title a { color: var(--text-primary); text-decoration: none; }
.card-title a:hover { color: var(--acid); }

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== CHILD LINKS ROW (child-page cards; a>strong pattern for contract) ===== */
.child-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.child-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.9rem;
  background: rgba(128,255,0,0.06);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  min-width: 180px;
  flex: 1 1 180px;
  transition: border-color var(--transition), background var(--transition);
}

.child-link:hover {
  border-color: var(--acid);
  background: rgba(128,255,0,0.12);
}

.child-link strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--acid);
  line-height: 1.3;
  text-decoration: none;
}

.child-link span {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ===== CHILD BLOCKS (topic/section related) ===== */
.child-blocks-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.child-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  padding: 1.1rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: border-color var(--transition), transform var(--transition);
}

.child-block:hover {
  border-color: var(--acid);
  transform: translateY(-2px) rotate(0.3deg);
}

.child-block strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  text-decoration: none;
}

.child-block span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.child-block small {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: auto;
}

/* stagger animation */
.stagger-item {
  opacity: 0;
  transform: translateY(16px);
  animation: stagger-in 0.4s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.07s);
}

@keyframes stagger-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item { animation: none; opacity: 1; transform: none; }
}

/* ===== ARTICLE FOOTER NAV ===== */
.article-footer-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-light);
}

.back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover { color: var(--acid); }

/* ===== AUTHOR CARD ===== */
.author-card {
  margin-bottom: 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
}

.author-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--acid);
  margin-bottom: 0.25rem;
}

.author-card-creds {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.author-card-bio {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink-mid);
  border-top: 2px solid var(--acid);
  margin-top: auto;
}

.footer-cta-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: var(--ink);
  border-bottom: 1px solid var(--glass-border);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.footer-cta-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 200px;
}

/* ===== FOOTER COLS ===== */
.footer-cols {
  display: flex;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  width: 100%;
}

.footer-dl {
  flex: 1;
  padding: 0 1rem;
  border-right: 1px solid var(--ink-light);
  min-width: 0;
}

.footer-dl:first-child { padding-left: 0; }
.footer-dl:last-child { border-right: none; }

.dl-heading {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--glass-border);
  display: block;
}

.footer-dl dt {
  margin-bottom: 0;
}

.footer-dl dt a {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color var(--transition);
  min-height: 36px;
  display: flex;
  align-items: center;
}

.footer-dl dt a:hover { color: var(--acid); }

.footer-dl dd.rg-notice {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.55;
  padding: 0.25rem 0;
}

/* ===== FOOTER BAR ===== */
.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--ink-light);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-links {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { color: var(--acid); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-section.with-sidebar {
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
  }

  .primary-nav ol li a { padding: 0 0.5rem; font-size: 0.75rem; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .header-ctas { display: none; }
  .nav-toggle { display: flex; }

  .content-section.with-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .footer-cols {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-dl {
    border-right: none;
    border-bottom: 1px solid var(--ink-light);
    padding: 0 0 1rem;
  }

  .footer-dl:last-child { border-bottom: none; }

  .footer-cta-block { flex-direction: column; text-align: center; }
  .footer-cta-text { text-align: center; }

  .sticker-1, .sticker-2, .sticker-3 { display: none; }

  .topic-cards-grid { grid-template-columns: 1fr; }
  .child-blocks-row { grid-template-columns: 1fr; }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 2.2rem; }
  .cta { padding: 0.65rem 0.9rem; font-size: 0.9rem; }
  .header-inner { padding: 0 0.75rem; }
  .article-header-section, .inner-header-section { padding: 1.5rem 1rem 1.5rem; }
  .content-section { padding: 1.5rem 0.75rem 2rem; }
  .footer-cols { padding: 1rem 0.75rem; }
  .footer-bar { padding: 0.75rem 1rem; }
  .footer-cta-block { padding: 1.5rem 1rem; }
}

/* ===== MOBILE NAV OPEN STATE ===== */
.site-header.nav-open .mobile-nav { display: block; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-light); }
::-webkit-scrollbar-thumb:hover { background: var(--acid); }

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}