:root {
  color-scheme: dark;
  --aero-green: #39ff14;
  --aero-pink: #ff2bd6;
  --aero-blue: #00c8ff;
  --aero-black: #000000;
  --aero-ink: #0b0b0c;
  --aero-charcoal: #171719;
  --aero-graphite: #242427;
  --aero-border: #303034;
  --aero-border-strong: #505057;
  --aero-text-primary: #f2f0e8;
  --aero-text-secondary: #b5b5ba;
  --aero-text-muted: #85858b;
  --font-display: "Orbitron", sans-serif;
  --font-interface: "Geist", "Inter", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --glow-green: 0 0 28px rgba(57, 255, 20, .08);
  --glow-blue: 0 0 28px rgba(0, 200, 255, .08);
  --glow-pink: 0 0 28px rgba(255, 43, 214, .08);
  --glow-green-strong: 0 0 8px rgba(57, 255, 20, .34), 0 0 24px rgba(57, 255, 20, .16);
  --glow-blue-strong: 0 0 8px rgba(0, 200, 255, .28), 0 0 24px rgba(0, 200, 255, .14);
  --ease-aero: cubic-bezier(.2, .8, .2, 1);
  --max: 1440px;
}

[data-theme="light"] {
  color-scheme: light;
  --aero-green: #168a0e;
  --aero-blue: #007795;
  --aero-pink: #b51a6f;
  --aero-black: #eef3f8;
  --aero-ink: #f8fafc;
  --aero-charcoal: #e4ebf2;
  --aero-graphite: #d6e0ea;
  --aero-border: #c4cfda;
  --aero-border-strong: #8192a3;
  --aero-text-primary: #101622;
  --aero-text-secondary: #3f4e61;
  --aero-text-muted: #68788a;
  --glow-green: 0 0 24px rgba(22, 138, 14, .12);
  --glow-blue: 0 0 24px rgba(0, 119, 149, .12);
  --glow-pink: 0 0 24px rgba(181, 26, 111, .12);
  --glow-green-strong: 0 0 8px rgba(22, 138, 14, .3), 0 0 20px rgba(22, 138, 14, .14);
  --glow-blue-strong: 0 0 8px rgba(0, 119, 149, .26), 0 0 20px rgba(0, 119, 149, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--aero-black); color: var(--aero-text-primary); font: 16px/1.55 var(--font-interface); text-rendering: optimizeLegibility; }
button, input, select { font: inherit; }
a { color: var(--aero-blue); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--aero-green); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 8px 12px; background: var(--aero-green); color: #000; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; background: var(--aero-black); border-bottom: 1px solid var(--aero-border); backdrop-filter: blur(12px); }
.header-inner { display: grid; grid-template-columns: auto auto minmax(240px, 1fr); gap: 28px; align-items: center; width: min(var(--max), calc(100% - 64px)); min-height: 72px; margin: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--aero-text-primary); font: 800 16px/1 var(--font-display); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand-icon { width: 34px; height: 34px; border: 1px solid var(--aero-green); border-radius: var(--radius-sm); object-fit: cover; box-shadow: var(--glow-green-strong), 3px 2px 0 var(--aero-pink), -2px -1px 0 var(--aero-blue); }
.primary-nav { display: flex; gap: 4px; }
.primary-nav a { position: relative; padding: 24px 10px 22px; color: var(--aero-text-secondary); font-size: 13px; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--aero-text-primary); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; bottom: 12px; left: 50%; width: 22px; height: 2px; background: var(--aero-green); box-shadow: var(--glow-green); transform: translateX(-50%); }
.header-actions { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 10px; align-items: center; }
.global-search { position: relative; }
.global-search svg { position: absolute; z-index: 1; top: 50%; left: 11px; width: 18px; height: 18px; fill: none; stroke: var(--aero-text-muted); stroke-width: 1.8; transform: translateY(-50%); pointer-events: none; }
.global-search input { width: 100%; padding: 10px 42px 10px 36px; border: 1px solid var(--aero-border-strong); border-radius: var(--radius-md); background: var(--aero-ink); color: var(--aero-text-primary); }
.global-search input::placeholder { color: var(--aero-text-muted); }
.global-search input:focus, .filter-drawer input:focus, .filter-drawer select:focus, .search-controls input:focus, .search-controls select:focus { border-color: var(--aero-green); box-shadow: 0 0 0 2px rgba(57, 255, 20, .1); outline: none; }
.global-search kbd { position: absolute; top: 50%; right: 10px; padding: 1px 5px; border: 1px solid var(--aero-border); border-radius: var(--radius-xs); color: var(--aero-text-muted); font: 11px var(--font-mono); transform: translateY(-50%); }
.theme-toggle, .copy-button, .load-more, .button-link { border: 1px solid var(--aero-border-strong); border-radius: var(--radius-sm); background: var(--aero-charcoal); color: var(--aero-text-primary); cursor: pointer; font-weight: 650; transition: border-color 180ms var(--ease-aero), transform 180ms var(--ease-aero); }
.theme-toggle { width: 40px; height: 40px; }
.theme-toggle span { display: block; width: 14px; height: 14px; margin: auto; border: 2px solid var(--aero-green); border-radius: 50%; box-shadow: 6px 0 0 -5px var(--aero-green), -6px 0 0 -5px var(--aero-green), 0 6px 0 -5px var(--aero-green), 0 -6px 0 -5px var(--aero-green); }
.theme-toggle:hover, .copy-button:hover, .load-more:hover, .button-link:hover { border-color: var(--aero-green); transform: translateY(-1px); }

.view { width: min(var(--max), calc(100% - 64px)); min-height: 68vh; margin: 0 auto; padding: 72px 0 112px; }
.kicker, .page-count, .card-meta, .source-badge, .topic-chip, time, .row-type, .detail-meta, .source-status, .source-range, .search-result-type, .data-table-wrap th { font-family: var(--font-mono); }
.kicker { color: var(--aero-green); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-shadow: 0 0 9px rgba(57, 255, 20, .45); text-transform: uppercase; }
h1, h2 { font-family: var(--font-display); font-weight: 900; letter-spacing: -.035em; line-height: .95; text-transform: uppercase; }
h1 { max-width: 14ch; margin: 10px 0 20px; color: var(--aero-text-primary); font-size: clamp(3rem, 7vw, 7.5rem); }
h2 { margin: 0; color: var(--aero-text-primary); font-size: clamp(1.7rem, 3vw, 2.7rem); }
h3 { margin: 0; color: var(--aero-text-primary); font: 700 21px/1.15 var(--font-interface); }
p { margin: 0 0 16px; }
.page-head { max-width: 820px; margin-bottom: 56px; }
.page-head h1 { margin-top: 12px; }
.page-head > p { max-width: 66ch; color: var(--aero-text-secondary); font-size: 18px; }
.page-count { margin-top: 16px; color: var(--aero-text-muted); font-size: 12px; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 8vw, 128px); align-items: end; margin-bottom: 80px; }
.home-hero .hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); gap: 36px; align-items: end; }
.hero-lead { position: relative; }
.hero-lead::after { content: ""; position: absolute; z-index: -1; top: 24%; left: -25px; width: 180px; height: 120px; background: radial-gradient(ellipse, rgba(57, 255, 20, .1), transparent 70%); filter: blur(8px); }
.home-hero h1 { margin-bottom: 10px; text-shadow: 0 0 7px rgba(242, 240, 232, .28), 0 0 20px rgba(0, 200, 255, .2), 3px 0 0 rgba(0, 200, 255, .86), -3px 0 0 rgba(255, 43, 214, .8); }
.home-hero h1 em { color: var(--aero-green); font-style: normal; text-shadow: var(--glow-green-strong); }
.hero-subtitle { max-width: 58ch; margin: 0; color: var(--aero-text-secondary); font-size: clamp(15px, 1.45vw, 18px); }
.hero-meta { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--aero-border); background: var(--aero-ink); box-shadow: 0 0 18px rgba(0, 200, 255, .06), inset 0 0 20px rgba(255, 43, 214, .025); }
.hero-meta > div { padding: 16px; border-top: 2px solid var(--aero-green); }
.hero-meta > div:nth-child(even) { border-left: 1px solid var(--aero-border); border-top-color: var(--aero-blue); }
.hero-meta strong { display: block; color: var(--aero-text-primary); font: 800 20px/1.1 var(--font-display); }
.hero-meta span { display: block; margin-top: 6px; color: var(--aero-text-muted); font: 11px var(--font-mono); text-transform: uppercase; }

.home-scroll-layout { --digestive-rail: min(36.64vh, 400px); position: relative; display: block; }
.home-scroll-feed { min-width: 0; padding-right: calc(var(--digestive-rail) - 16px); }
.digestive-scroll-visual { position: absolute; top: 0; right: calc((min(var(--max), calc(100vw - 64px)) - 100vw) / 2); bottom: 0; width: var(--digestive-rail); margin: 0; pointer-events: none; }
.digestive-sticky { position: sticky; top: 84px; display: flex; height: calc(100vh - 100px); min-height: 520px; align-items: center; justify-content: flex-end; }
.digestive-svg-shell { display: grid; width: 100%; justify-items: end; }
.digestive-scroll-svg { display: block; width: auto; height: min(88vh, 920px); max-width: 100%; }

.section-title { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--aero-border); }
.section-title h2 { margin-top: 5px; }
.section-title h2 small { color: var(--aero-text-muted); font: 12px var(--font-mono); }
.section-title > a { color: var(--aero-blue); font-size: 14px; font-weight: 650; }
.trend-analysis { margin-bottom: 56px; }
.trend-analysis-copy { max-width: 68ch; margin: -2px 0 18px; color: var(--aero-text-secondary); }
.trend-period { color: var(--aero-text-muted); font: 11px var(--font-mono); text-transform: uppercase; }
.trend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-ink); overflow: hidden; }
.trend-card { display: flex; min-height: 128px; padding: 16px; flex-direction: column; border-right: 1px solid var(--aero-border); color: var(--aero-text-primary); text-decoration: none; }
.trend-card:last-child { border-right: 0; }
.trend-card:hover { background: var(--aero-charcoal); }
.trend-card span { color: var(--aero-text-muted); font: 11px var(--font-mono); text-transform: uppercase; }
.trend-card b { margin: auto 0 8px; font: 800 22px/1 var(--font-display); }
.trend-card strong { color: var(--aero-text-secondary); font: 12px/1.35 var(--font-mono); }
.trend-card.up b { color: var(--aero-green); text-shadow: 0 0 10px rgba(57, 255, 20, .28); }
.trend-card.down b { color: var(--aero-pink); text-shadow: 0 0 10px rgba(255, 43, 214, .2); }
.trend-card.steady b { color: var(--aero-blue); }
.home-dual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 96px; }
.brief-grid, .content-grid, .explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.home-dual .brief-grid { grid-template-columns: 1fr; }
.brief-card, .content-card { display: flex; min-width: 0; min-height: 230px; padding: 20px; flex-direction: column; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-ink); color: var(--aero-text-primary); text-decoration: none; transition: border-color 180ms var(--ease-aero), transform 180ms var(--ease-aero), box-shadow 180ms var(--ease-aero); }
.brief-card:hover, .content-card:hover { border-color: var(--aero-green); box-shadow: var(--glow-green); transform: translateY(-2px); }
.brief-card h3, .content-card h3 { margin: 12px 0 9px; }
.brief-card p, .content-card p { color: var(--aero-text-secondary); overflow-wrap: anywhere; }
.card-meta, .card-footer { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; color: var(--aero-text-muted); font-size: 11px; text-transform: uppercase; }
.card-meta time { margin-left: auto; }
.card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--aero-border); }
.source-badge, .topic-chip { display: inline-flex; padding: 4px 6px; border: 1px solid var(--aero-border); border-radius: var(--radius-xs); color: var(--aero-text-muted); font-size: 10px; line-height: 1.1; text-decoration: none; text-transform: uppercase; }
a.source-badge:hover, a.topic-chip:hover { border-color: var(--aero-blue); color: var(--aero-blue); }
.priority-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--aero-text-muted); }
.priority-dot.high { background: var(--aero-pink); box-shadow: 0 0 10px rgba(255, 43, 214, .25); }
.priority-dot.medium { background: var(--aero-blue); }
.priority-dot.low { background: var(--aero-green); }

.topic-band, .library-snapshot { margin-bottom: 96px; }
.topic-signal-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--aero-border); }
.topic-signal { padding: 16px; border-right: 1px solid var(--aero-border); color: var(--aero-text-primary); text-decoration: none; }
.topic-signal:last-child { border-right: 0; }
.topic-signal:hover { background: var(--aero-charcoal); }
.topic-signal span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 650; }
.topic-signal b { color: var(--aero-green); font: 800 24px var(--font-display); text-shadow: 0 0 10px rgba(57, 255, 20, .35); }
.topic-signal small { margin-left: 6px; color: var(--aero-text-muted); font: 11px var(--font-mono); }
.topic-signal small.up { color: var(--aero-green); }
.topic-signal small.down { color: var(--aero-pink); }
.collection-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.collection-tile { display: flex; min-height: 138px; padding: 16px; flex-direction: column; justify-content: space-between; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); border-top: 2px solid var(--aero-green); background: var(--aero-ink); color: var(--aero-text-primary); text-decoration: none; }
.collection-tile.understand { border-top-color: var(--aero-blue); }
.collection-tile.library { border-top-color: var(--aero-pink); }
.collection-tile:hover { border-color: var(--aero-green); box-shadow: var(--glow-green); }
.collection-tile b { color: var(--aero-green); font: 800 22px var(--font-display); text-shadow: 0 0 10px rgba(57, 255, 20, .35); }
.collection-tile h3 { font-size: 16px; }
.collection-tile span { color: var(--aero-text-muted); font: 11px var(--font-mono); }
.week-list, .issue-list { border-top: 1px solid var(--aero-border); }
.week-link, .issue-link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--aero-border); color: var(--aero-text-primary); text-decoration: none; }
.week-link:hover, .issue-link:hover { color: var(--aero-blue); }
.week-link span, .issue-link span { color: var(--aero-text-muted); font: 11px var(--font-mono); }

.explore-stack { display: grid; gap: 64px; }
.explore-heading { display: grid; grid-template-columns: 120px minmax(0, 700px); gap: 16px; margin-bottom: 18px; }
.explore-heading > span { color: var(--aero-green); font: 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.explore-heading p { color: var(--aero-text-secondary); }
.explore-card { min-height: 190px; padding: 20px; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-ink); color: var(--aero-text-primary); text-decoration: none; }
.explore-card:hover { border-color: var(--aero-green); box-shadow: var(--glow-green); transform: translateY(-2px); }
.explore-card h3 { margin: 14px 0 8px; }
.explore-card p { color: var(--aero-text-secondary); }
.explore-card span { color: var(--aero-text-muted); font: 11px var(--font-mono); }
.filter-drawer { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(5, minmax(110px, 1fr)); gap: 12px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-charcoal); }
.filter-drawer label, .search-controls label { color: var(--aero-text-muted); font: 11px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.filter-drawer input, .filter-drawer select, .search-controls input, .search-controls select { width: 100%; margin-top: 6px; padding: 9px 10px; border: 1px solid var(--aero-border-strong); border-radius: var(--radius-md); background: var(--aero-ink); color: var(--aero-text-primary); }

.content-rows, .search-results { border-top: 1px solid var(--aero-border); }
.content-row, .search-result { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 28px; padding: 20px 0; border-bottom: 1px solid var(--aero-border); color: var(--aero-text-primary); text-decoration: none; }
.content-row:hover h3, .search-result:hover h3 { color: var(--aero-blue); }
.content-row h3, .search-result h3 { margin-bottom: 6px; }
.content-row p, .search-result p { max-width: 75ch; color: var(--aero-text-secondary); }
.content-row small { color: var(--aero-text-muted); }
.content-row > time, .search-result > time { color: var(--aero-text-muted); font-size: 11px; white-space: nowrap; }
.row-type, .search-result-type { color: var(--aero-text-muted); font-size: 11px; text-transform: uppercase; }
.search-result-type { display: flex; gap: 7px; align-items: flex-start; }
.search-result section > div { display: flex; flex-wrap: wrap; gap: 5px; }
.search-summary { margin: 16px 0; color: var(--aero-text-muted); font: 12px var(--font-mono); }
.search-results.compact .search-result { grid-template-columns: 110px minmax(0, 1fr) auto; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-ink); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--aero-border); text-align: left; vertical-align: top; }
th { color: var(--aero-text-muted); font-size: 11px; text-transform: uppercase; }
td { min-width: 130px; color: var(--aero-text-secondary); }
td:first-child { min-width: 220px; }
td a { color: var(--aero-blue); }
tbody tr:hover { background: var(--aero-charcoal); }
.url-unavailable { color: var(--aero-text-muted); font: 11px var(--font-mono); }
.load-more { display: block; margin: 24px auto 0; padding: 9px 16px; }

.topic-section, .topic-results-block, .source-section, .week-section { margin-bottom: 64px; }
.topic-grid, .topics-grid, .source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic-card, .source-card { min-height: 156px; padding: 16px; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-ink); color: var(--aero-text-primary); text-decoration: none; }
.topic-card:hover, .source-card:hover { border-color: var(--aero-blue); box-shadow: var(--glow-blue); }
.topic-card h3, .source-card h2 { display: block; margin: 10px 0 8px; font-size: 18px; }
.topic-card span, .source-card p { color: var(--aero-text-secondary); }
.topic-card b { color: var(--aero-green); font: 800 20px var(--font-display); }
.source-status { font-size: 11px; text-transform: uppercase; }
.source-status.current { color: var(--aero-green); }
.source-status.delayed, .source-status.unavailable { color: var(--aero-pink); }
.source-range { display: flex; gap: 8px; align-items: center; color: var(--aero-text-muted); font-size: 11px; }
.source-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .45fr); gap: 32px; margin-bottom: 64px; }
.source-facts { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-ink); }
.source-facts > div { padding: 16px; border-right: 1px solid var(--aero-border); border-bottom: 1px solid var(--aero-border); }
.source-facts b { display: block; color: var(--aero-text-primary); font: 750 20px var(--font-display); }
.source-facts span { color: var(--aero-text-muted); font: 11px var(--font-mono); text-transform: uppercase; }
.source-notes { padding: 16px; border: 1px solid var(--aero-border); border-left: 3px solid var(--aero-pink); border-radius: var(--radius-lg); background: var(--aero-charcoal); }
.source-notes h2 { margin-bottom: 14px; font-size: 20px; }
.source-notes p { color: var(--aero-text-secondary); }
.source-collections { display: flex; flex-wrap: wrap; gap: 8px; }
.source-collections a { padding: 8px 10px; border: 1px solid var(--aero-border); border-radius: var(--radius-sm); color: var(--aero-blue); text-decoration: none; }
.source-collections a:hover { border-color: var(--aero-green); }
.source-collections a b, .source-collections a span { display: block; }
.issue-list > a, .issue-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--aero-border); text-decoration: none; }
.issue-list > a:hover { color: var(--aero-blue); }
.issue-list small { display: block; color: var(--aero-text-muted); }
.week-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.week-archive-card { display: block; min-height: 130px; padding: 16px; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-ink); color: var(--aero-text-primary); text-decoration: none; }
.week-archive-card:hover { border-color: var(--aero-green); box-shadow: var(--glow-green); }
.week-archive-card b { display: block; margin: 8px 0; color: var(--aero-green); font: 800 22px var(--font-display); text-shadow: 0 0 10px rgba(57, 255, 20, .35); }
.week-archive-card span { color: var(--aero-text-muted); font: 11px var(--font-mono); }
.week-archive-card i { display: inline-block; margin: 12px 4px 0 0; padding: 3px 5px; border: 1px solid var(--aero-border); border-radius: var(--radius-xs); color: var(--aero-text-muted); font: 10px var(--font-mono); font-style: normal; }

.detail-shell { max-width: 920px; margin: auto; }
.detail-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--aero-border-strong); }
.detail-kicker, .detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--aero-text-muted); font-size: 11px; text-transform: uppercase; }
.detail-head h1 { max-width: 14ch; margin: 18px 0; }
.detail-head > p { max-width: 65ch; color: var(--aero-text-secondary); font-size: 18px; }
.detail-body { color: var(--aero-text-secondary); font-size: 17px; }
.detail-body h2 { margin-top: 40px; font-size: 28px; }
.detail-body h3 { margin-top: 28px; }
.detail-body p, .detail-body li { max-width: 72ch; }
.detail-body a { color: var(--aero-blue); }
.detail-body blockquote { margin: 24px 0; padding: 12px 16px; border-left: 3px solid var(--aero-pink); background: var(--aero-charcoal); }
.detail-body pre, .prompt-block { padding: 16px; overflow-x: auto; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); background: var(--aero-ink); color: var(--aero-text-primary); font: 14px/1.55 var(--font-mono); white-space: pre-wrap; }
.steps { counter-reset: steps; padding: 0; list-style: none; }
.steps li { position: relative; padding: 12px 0 12px 44px; border-bottom: 1px solid var(--aero-border); }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; top: 10px; left: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--aero-green); color: var(--aero-green); font: 12px var(--font-mono); }
.copy-button { margin-bottom: 10px; padding: 7px 10px; color: var(--aero-green); }
.link-unavailable { display: inline-flex; padding: 7px 10px; border: 1px solid var(--aero-border); border-radius: var(--radius-sm); color: var(--aero-text-muted); font: 11px var(--font-mono); }
.detail-footer { display: flex; gap: 16px; justify-content: space-between; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--aero-border); }
.detail-footer > div { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-footer a { color: var(--aero-blue); }
.back-button { display: inline-flex; margin-bottom: 24px; padding: 0; border: 0; background: none; color: var(--aero-blue); cursor: pointer; font-weight: 650; }
.primary-action { display: inline-flex; padding: 10px 14px; border: 1px solid var(--aero-green); border-radius: var(--radius-sm); background: var(--aero-green); color: #000; box-shadow: var(--glow-green); font-weight: 650; text-decoration: none; }
.primary-action:hover { box-shadow: 0 5px 18px rgba(57, 255, 20, .16); transform: translateY(-1px); }
.external-small { color: var(--aero-blue); font-size: 13px; }
.source-links { display: grid; gap: 8px; margin: 24px 0; padding-left: 20px; }
.why-it-matters { margin: 32px 0; padding: 18px; border: 1px solid rgba(255, 43, 214, .4); border-left: 3px solid var(--aero-pink); border-radius: var(--radius-lg); background: rgba(255, 43, 214, .07); }
.why-it-matters > span { display: block; margin-bottom: 8px; color: var(--aero-pink); font: 12px var(--font-mono); text-transform: uppercase; }
.tale-setting, .tale-inspired { color: var(--aero-text-muted); font-style: italic; }
.tale-body { margin: 24px 0; color: var(--aero-text-primary); font: 18px/1.8 var(--font-mono); }
.unavailable-panel { padding: 16px; border: 1px solid var(--aero-border); border-left: 3px solid var(--aero-pink); border-radius: var(--radius-lg); background: var(--aero-charcoal); color: var(--aero-text-secondary); }
.empty-inline { color: var(--aero-text-muted); }

.loading-state, .empty-panel, .error-panel { min-height: 200px; display: grid; place-items: center; padding: 32px; border: 1px solid var(--aero-border); border-radius: var(--radius-lg); color: var(--aero-text-muted); text-align: center; }
.loading-state span { width: 16px; height: 16px; border: 2px solid var(--aero-border); border-top-color: var(--aero-green); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-footer { border-top: 1px solid var(--aero-border); background: var(--aero-ink); }
.footer-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; width: min(var(--max), calc(100% - 64px)); margin: auto; padding: 24px 0; color: var(--aero-text-muted); font-size: 13px; }
.footer-inner a { color: var(--aero-blue); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toast { position: fixed; z-index: 50; right: 16px; bottom: 16px; padding: 10px 14px; border: 1px solid var(--aero-green); border-radius: var(--radius-sm); background: var(--aero-charcoal); color: var(--aero-green); box-shadow: var(--glow-green); font-weight: 650; transform: translateY(160%); transition: transform 180ms var(--ease-aero); }
.toast.show { transform: none; }

@media (max-width: 1000px) {
  .header-inner { grid-template-columns: auto minmax(230px, 1fr); width: min(var(--max), calc(100% - 40px)); }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; margin-top: -10px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .home-scroll-layout { --digestive-rail: min(36.64vh, 400px); }
  .home-scroll-feed { padding-right: calc(var(--digestive-rail) - 16px); }
  .home-dual { grid-template-columns: 1fr; gap: 24px; }
  .trend-grid { grid-template-columns: 1fr; }
  .trend-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--aero-border); }
  .trend-card:last-child { border-bottom: 0; }
  .collection-ribbon { grid-template-columns: repeat(3, 1fr); }
  .topic-signal-list { grid-template-columns: repeat(3, 1fr); }
  .topic-signal { border-bottom: 1px solid var(--aero-border); }
  .filter-drawer { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .site-header { position: relative; }
  .header-inner, .footer-inner { width: min(var(--max), calc(100% - 32px)); }
  .header-inner { grid-template-columns: 1fr auto; padding: 10px 0 12px; }
  .header-actions { grid-column: 1 / -1; grid-row: 2; }
  .primary-nav { grid-row: 3; overflow-x: auto; justify-content: flex-start; margin: 0; }
  .primary-nav a { padding: 12px 10px 10px; white-space: nowrap; }
  .primary-nav a[aria-current="page"]::after { bottom: 4px; }
  .view { width: min(var(--max), calc(100% - 32px)); padding: 48px 0 80px; overflow-x: clip; }
  .home-hero, .home-hero .hero-copy, .home-dual, .source-overview { grid-template-columns: 1fr; }
  .home-hero { gap: 40px; }
  .home-scroll-layout { position: relative; display: block; }
  .home-scroll-feed { position: relative; z-index: 1; padding-right: 0; }
  .digestive-scroll-visual { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; width: 72vw; margin: 0; pointer-events: none; }
  .digestive-sticky { top: 16vh; height: auto; min-height: 0; justify-content: center; transform: translateX(50%); }
  .digestive-svg-shell { justify-items: center; }
  .digestive-scroll-svg { width: 100%; height: auto; max-height: 68vh; opacity: .78; }
  .brief-grid, .content-grid, .explore-grid { grid-template-columns: 1fr; }
  .collection-ribbon, .topic-grid, .topics-grid, .source-grid, .week-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-signal-list { grid-template-columns: repeat(2, 1fr); }
  .filter-drawer { grid-template-columns: repeat(2, 1fr); }
  .content-row, .search-result, .search-results.compact .search-result { grid-template-columns: 1fr auto; gap: 12px; }
  .content-row > div, .search-result-type { grid-column: 1 / -1; }
  .content-row section, .search-result section { grid-column: 1; }
  .detail-footer { flex-direction: column; }
}
@media (max-width: 480px) {
  h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .collection-ribbon, .topic-grid, .topics-grid, .source-grid, .week-archive-grid, .topic-signal-list, .filter-drawer { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta > div:nth-child(even) { border-left: 0; border-top-color: var(--aero-blue); }
  .week-link, .issue-link { grid-template-columns: 1fr auto; }
  .week-link span:last-child, .issue-link span:last-child { grid-column: 1 / -1; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .digestive-scroll-svg #artwork, .digestive-scroll-svg .highlight-region { transition-duration: .01ms !important; } }
@media print { .site-header, .site-footer, .filter-drawer, .copy-button { display: none; } .view { width: 100%; padding: 0; } body { background: #fff; color: #000; } }
