/* ==========================================================================
   RABBIT WHOLE.WTF — Stage 1
   Dark archival encyclopedia. Structure only; no framework, no build step.
   Sections: 1 tokens · 2 base · 3 masthead · 4 buttons/labels · 5 home
             6 cards · 7 article · 8 ads · 9 footer · 10 responsive
   ========================================================================== */

/* 1 — TOKENS ------------------------------------------------------------- */
:root {
  --ink-900: #0a0b0d;   /* page */
  --ink-850: #0e1013;   /* alternating band */
  --ink-800: #121418;   /* surface */
  --ink-750: #171a1f;   /* raised surface */
  --ink-700: #1e2229;   /* hover surface */

  --text:    #e8e6e1;
  --text-dim:#b0b4ba;
  --muted:   #7f868f;
  --faint:   #565c65;

  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-dash:   rgba(255, 255, 255, 0.14);

  --accent:        #4fd6e6;                  /* default: cyan */
  --accent-soft:   rgba(79, 214, 230, 0.14);
  --accent-line:   rgba(79, 214, 230, 0.38);

  --red:    #cf4f43;
  --green:  #6fcf8a;
  --amber:  #e0a63f;
  --purple: #a184dd;

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body:    Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-ui:      ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --radius: 3px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Per-element accent themes. Applied with data-accent on cards/articles. */
[data-accent="cyan"]   { --accent:#4fd6e6; --accent-soft:rgba(79,214,230,.13);  --accent-line:rgba(79,214,230,.38); }
[data-accent="amber"]  { --accent:#e0a63f; --accent-soft:rgba(224,166,63,.13);  --accent-line:rgba(224,166,63,.38); }
[data-accent="red"]    { --accent:#cf4f43; --accent-soft:rgba(207,79,67,.13);   --accent-line:rgba(207,79,67,.38); }
[data-accent="purple"] { --accent:#a184dd; --accent-soft:rgba(161,132,221,.13); --accent-line:rgba(161,132,221,.38); }
[data-accent="green"]  { --accent:#6fcf8a; --accent-soft:rgba(111,207,138,.13); --accent-line:rgba(111,207,138,.38); }
[data-accent="sand"]   { --accent:#cbb08a; --accent-soft:rgba(203,176,138,.13); --accent-line:rgba(203,176,138,.38); }
[data-accent="ice"]    { --accent:#8fb6d9; --accent-soft:rgba(143,182,217,.13); --accent-line:rgba(143,182,217,.38); }
[data-accent="mint"]   { --accent:#79d3b4; --accent-soft:rgba(121,211,180,.13); --accent-line:rgba(121,211,180,.38); }

/* 2 — BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 520px at 50% -8%, rgba(79, 214, 230, 0.05), transparent 70%),
    radial-gradient(900px 500px at 100% 0%, rgba(161, 132, 221, 0.04), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.25rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: #06070a; padding: 0.5rem 0.9rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 3 — MASTHEAD ----------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 11, 13, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.classification-strip {
  display: flex; gap: 2.5rem; overflow: hidden;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px);
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
  justify-content: center;
}
.classification-strip span { flex: none; }

.nav {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: 0.75rem clamp(1rem, 4vw, 2.25rem);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); }
.rabbit-mark { color: var(--accent); opacity: 0.85; flex: none; }
.brand-text {
  font-family: var(--font-mono);
  font-size: 0.95rem; letter-spacing: 0.14em; font-weight: 600;
}
.brand-tld { color: var(--accent); }
.brand:hover .rabbit-mark { opacity: 1; }

.nav-menu { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }

.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  text-decoration: none; color: var(--text-dim);
  font-family: var(--font-ui); font-size: 0.82rem; letter-spacing: 0.02em;
  padding: 0.35rem 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--accent-line); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.nav-tools { display: flex; align-items: center; gap: 0.9rem; }

.search-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text-dim); padding: 0.4rem 0.65rem; cursor: pointer;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.search-btn:hover { color: var(--text); border-color: var(--accent-line); }

.depth-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 0.36rem 0.6rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.13em; white-space: nowrap;
}
.depth-label { color: var(--text-dim); }
.depth-value { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.depth-chip.is-bumped { animation: depth-pulse 0.6s ease; }
@keyframes depth-pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-soft); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

.nav-toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.5rem 0.6rem; cursor: pointer; color: var(--text);
}
.nav-toggle-bars { display: block; width: 18px; }
.nav-toggle-bars span { display: block; height: 1.5px; background: currentColor; margin: 3.5px 0; }

.search-panel {
  border-top: 1px solid var(--line);
  padding: 0.75rem clamp(1rem, 4vw, 2.25rem);
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--wrap); margin-inline: auto;
}
.search-panel input {
  flex: 1 1 auto; background: var(--ink-800); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text-dim);
  padding: 0.6rem 0.75rem; font-family: var(--font-ui); font-size: 0.85rem;
}
.search-note { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--faint); }

/* 4 — BUTTONS, STAMPS, LABELS -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.75rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 1px solid var(--accent);
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #06070a; font-weight: 700; }
.btn-primary:hover { transform: translateY(-1px); background: #fff; border-color: #fff; }

.stamp {
  display: inline-block; padding: 0.2rem 0.5rem;
  border: 1px solid currentColor; border-radius: 2px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  transform: rotate(-1.2deg);
}
.stamp-open { color: var(--accent); }
.stamp-lost { color: var(--red); }

.kicker, .section-label, .doc-label, .card-cat, .file-no {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.24em;
}

/* 5 — HOME --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dash) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dash) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}
.hero-inner { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1rem, 4vw, 2.25rem) clamp(3rem, 6vw, 4.5rem); text-align: center; }

.kicker { color: var(--muted); font-size: 0.72rem; margin-bottom: 1rem; }
.hero-title {
  font-size: clamp(2.75rem, 10vw, 6rem);
  letter-spacing: -0.02em; margin-bottom: 1.1rem;
  text-shadow: 0 0 60px rgba(79, 214, 230, 0.12);
}
.hero-tagline {
  font-family: var(--font-mono); font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  letter-spacing: 0.28em; color: var(--accent); margin-bottom: 1rem;
}
.hero-support { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; margin-bottom: 3rem; }
.hero-whisper { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.26em; color: var(--faint); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 0; border: 1px solid var(--line); background: var(--line);
}
.hero-stats > div { background: var(--ink-850); padding: 0.9rem 0.75rem; }
.hero-stats dt { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.hero-stats dd { margin: 0.3rem 0 0; font-family: var(--font-mono); font-size: 1.05rem; color: var(--text); }

.section { padding: clamp(3rem, 7vw, 4.75rem) 0; }
.section-alt { background: var(--ink-850); border-block: 1px solid var(--line); }

.section-head { margin-bottom: 2rem; max-width: 60ch; }
.section-label { display: block; font-size: 0.64rem; color: var(--muted); margin-bottom: 0.65rem; }
.section-title { font-size: clamp(1.5rem, 4vw, 2.1rem); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.section-note { color: var(--muted); margin: 0; font-size: 0.98rem; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.category-card {
  position: relative; display: block; height: 100%;
  padding: 1.5rem 1.15rem 1.25rem;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line); border-top: 2px solid var(--accent-line);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.category-card:hover { transform: translateY(-2px); border-color: var(--accent-line); border-top-color: var(--accent); background: var(--ink-750); }
.category-tab {
  position: absolute; top: -1px; left: 1.15rem; width: 46px; height: 5px;
  background: var(--accent); opacity: 0.85; border-radius: 0 0 2px 2px;
}
.category-files { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; color: var(--faint); margin-bottom: 0.7rem; }
.category-name { display: block; font-family: var(--font-display); font-size: 1.18rem; margin-bottom: 0.45rem; }
.category-blurb { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

.creed { text-align: center; }
.creed-inner { max-width: 62ch; margin-inline: auto; }
.creed-label { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.28em; color: var(--faint); }
.creed-text { font-size: clamp(1.1rem, 2.6vw, 1.4rem); line-height: 1.55; color: var(--text); }
.creed-sign { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--accent); margin: 0; }

/* 6 — CARDS -------------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card-grid-compact { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 1rem; }

.card {
  display: flex; flex-direction: column;
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
a.card:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.card.is-pending { opacity: 0.62; }

.card-thumb {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 9; background: var(--ink-750);
  border-bottom: 1px solid var(--line);
}
.card-thumb-grid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
}
.card-thumb .rabbit-mark { width: 42px; height: 42px; opacity: 0.35; position: relative; }
a.card:hover .card-thumb .rabbit-mark { opacity: 0.6; }
.card-thumb-stamp {
  position: absolute; top: 0.6rem; left: 0.6rem;
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em;
  color: var(--accent); border: 1px solid var(--accent-line); padding: 0.15rem 0.4rem;
  background: rgba(10, 11, 13, 0.7);
}
.card.is-pending .card-thumb-stamp { color: var(--muted); border-color: var(--line-strong); }

.card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.05rem 1.1rem 1.15rem; flex: 1 1 auto; }
.card-cat { font-size: 0.58rem; color: var(--accent); }
.card-title { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.25; }
.card-teaser { color: var(--muted); font-size: 0.9rem; line-height: 1.55; flex: 1 1 auto; }
.card-cta {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim); border-top: 1px dashed var(--line-strong); padding-top: 0.7rem;
}
a.card:hover .card-cta { color: var(--accent); }

/* 7 — ARTICLE ------------------------------------------------------------ */
.article-head {
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.014) 0 10px, transparent 10px 20px);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { color: var(--faint); }

.file-no { font-size: 0.62rem; color: var(--accent); margin-bottom: 0.85rem; }
.article-title { font-size: clamp(2.2rem, 7vw, 3.9rem); margin-bottom: 1rem; }
.article-dek { max-width: 62ch; color: var(--text-dim); font-size: clamp(1.02rem, 2.2vw, 1.2rem); line-height: 1.6; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-top: 1.4rem;
}

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(3rem, 7vw, 4.5rem);
  align-items: start;
}
.article-body { max-width: 72ch; }

.doc-section { padding-bottom: 2.75rem; margin-bottom: 2.5rem; border-bottom: 1px dashed var(--line-strong); }
.doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.doc-head { margin-bottom: 1.5rem; }
.doc-label { display: block; font-size: 0.62rem; color: var(--accent); margin-bottom: 0.6rem; }
.doc-head h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.doc-standfirst { color: var(--muted); font-size: 0.95rem; margin: 0; }

.article-body p { font-size: 1.06rem; line-height: 1.78; color: var(--text-dim); }
.article-body p:first-of-type { color: var(--text); }

.pull {
  margin: 1.75rem 0; padding: 1.1rem 0 1.1rem 1.35rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; color: var(--text);
}

/* Evidence board */
.board { position: relative; }
.board-hub {
  display: inline-flex; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 1rem; margin-bottom: 1.5rem;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  background: var(--accent-soft);
}
.board-hub-label { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.22em; color: var(--muted); }
.board-hub-title { font-family: var(--font-display); font-size: 1.05rem; }

.board-nodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem 1.25rem; }
.board-node { position: relative; padding-top: 0.9rem; }
.board-thread {
  position: absolute; top: 0; left: 1.4rem; width: 1px; height: 0.9rem;
  background: repeating-linear-gradient(180deg, var(--accent-line) 0 4px, transparent 4px 8px);
}
.node {
  position: relative; display: flex; flex-direction: column; gap: 0.3rem; height: 100%;
  padding: 1rem 0.95rem 0.95rem; text-decoration: none; color: inherit;
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.node:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.node-pin {
  position: absolute; top: -5px; left: 1.15rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(10, 11, 13, 0.9);
}
.node.is-pending .node-pin { background: var(--faint); }
.node-kind { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em; color: var(--muted); }
.node-title { font-family: var(--font-display); font-size: 1.05rem; }
.node-note { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

/* Sources */
.sources { border-top: 1px solid var(--line); }
.source {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0.85rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.source-kind {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.16em; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 2px; padding: 0.2rem 0.35rem;
  text-align: center; align-self: start; white-space: nowrap;
}
.source-main { display: flex; flex-direction: column; gap: 0.25rem; }
.source-title { font-size: 0.98rem; line-height: 1.45; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); align-self: start; }
a.source-title:hover { color: var(--accent); border-bottom-color: var(--accent); }
.source-title-plain { border-bottom: 0; color: var(--text-dim); }
.ext { color: var(--accent); font-size: 0.85em; margin-left: 0.3em; }
.source-meta { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* Videos */
.videos { display: grid; gap: 1rem; }
.video {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 1rem;
  background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem;
}
.video-thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
  background: var(--ink-750);
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--line); border-radius: 2px;
}
.video-play {
  width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--accent); opacity: 0.75;
}
.video-duration {
  position: absolute; right: 0.35rem; bottom: 0.35rem;
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.08em;
  background: rgba(10, 11, 13, 0.85); color: var(--text-dim); padding: 0.1rem 0.3rem;
}
.video-body { display: flex; flex-direction: column; gap: 0.3rem; justify-content: center; }
.video-title { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.35; }
.video-meta { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.video-note { color: var(--faint); font-size: 0.8rem; }

.deeper-prompt {
  margin: 1.75rem 0 0; text-align: center;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--faint);
}

/* Sidebar */
.article-side { position: sticky; top: 96px; display: grid; gap: 1.25rem; }
.side-block { background: var(--ink-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; }
.side-title {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.85rem; font-weight: 400;
}
.toc ol { counter-reset: toc; display: grid; gap: 0.55rem; }
.toc li { counter-increment: toc; display: flex; gap: 0.6rem; font-size: 0.92rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.62rem; color: var(--faint); padding-top: 0.25rem; }
.toc a { text-decoration: none; color: var(--text-dim); }
.toc a:hover { color: var(--accent); }

.side-connected ul { display: grid; gap: 0.7rem; }
.side-connected li { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.92rem; }
.side-connected a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid var(--line-strong); align-self: start; }
.side-connected a:hover { color: var(--accent); }
.side-connected .is-pending { color: var(--muted); }
.side-kind { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.18em; color: var(--faint); }

/* 8 — ADS ---------------------------------------------------------------- */
.ad {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.012);
  color: var(--faint); font-family: var(--font-mono);
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.ad-size { color: rgba(255, 255, 255, 0.16); letter-spacing: 0.14em; }
.ad-leaderboard { min-height: 90px; margin: 0 0 clamp(1rem, 3vw, 2rem); }
.ad-incontent { min-height: 110px; margin: 0 0 2.5rem; }
.ad-sidebar { min-height: 250px; flex-direction: column; gap: 0.4rem; }

/* 9 — FOOTER ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-850); margin-top: auto; }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand { display: flex; gap: 0.85rem; align-items: flex-start; }
.footer-brand .rabbit-mark { width: 34px; height: 34px; }
.footer-wordmark { font-family: var(--font-mono); font-size: 0.95rem; letter-spacing: 0.14em; margin: 0 0 0.4rem; }
.footer-tag { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); margin: 0; }

.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.footer-col h2 { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin-bottom: 0.85rem; }
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }

.footer-base {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  border-top: 1px solid var(--line); padding-block: 1.4rem 2rem;
}
.footer-motto { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.28em; color: var(--accent); margin: 0; }
.footer-fine { color: var(--faint); font-size: 0.82rem; margin: 0; }

/* 404 */
.notfound-inner { max-width: 58ch; }
.notfound-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 1.2rem 0 1rem; }
.notfound-text { color: var(--muted); margin-bottom: 2rem; }

/* 10 — RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .article-body { max-width: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav-menu {
    display: none; flex-direction: column; align-items: stretch; gap: 1rem;
    width: 100%; margin-left: 0; padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--line); margin-top: 0.75rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
  .nav-tools { justify-content: space-between; }
  .search-btn { flex: 1 1 auto; justify-content: center; min-height: 42px; }
  .classification-strip { gap: 1.5rem; justify-content: flex-start; padding-inline: 1rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .card-grid-compact, .category-grid { grid-template-columns: minmax(0, 1fr); }
  .source { grid-template-columns: minmax(0, 1fr); gap: 0.45rem; }
  .source-kind { justify-self: start; }
  .video { grid-template-columns: minmax(0, 1fr); }
  .video-thumb { max-width: 100%; }
  .ad-leaderboard { min-height: 120px; }
  .article-body p { font-size: 1.02rem; }
  .board-nodes { grid-template-columns: minmax(0, 1fr); }
}
