
:root { --bg:#fbfbfa; --ink:#18181b; --muted:#71717a; --line:#e7e7e4; --hn:#f56300; --dot:#a1a1aa; --cool:#3b82f6; }
@media(prefers-color-scheme:dark) { :root { --bg:#111113; --ink:#ececef; --muted:#a1a1aa; --line:#303036; --dot:#686872; --cool:#60a5fa; } }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; height:100vh; display:flex; flex-direction:column; background:var(--bg); color:var(--ink); font:14px/1.5 system-ui,sans-serif; }
a { color:inherit; text-decoration:none; }
button,input,select { font:inherit; color:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--hn); outline-offset:3px; }
button { cursor:pointer; }
header { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; gap:24px; padding:12px clamp(16px,4vw,56px); border-bottom:1px solid var(--line); }
header b { font-size:17px; } header b span { color:var(--hn); }
.toggle a { color:var(--muted); padding:7px 12px; border-radius:7px; transition:background .18s,color .18s; } .toggle a.on { color:var(--ink); background:var(--bg); box-shadow:0 1px 3px #0000000c; }
main { flex:1; min-height:0; overflow-y:auto; }
.home { height:100%; overflow-y:auto; }
.home-inner { max-width:1300px; margin:auto; padding:34px clamp(20px,4vw,56px) 60px; }
.directory-intro { margin:12px 0 30px; }
.eyebrow { color:var(--hn); text-transform:uppercase; letter-spacing:.13em; font-size:11px; font-weight:750; }
.directory-intro h1 { font-size:clamp(30px,4vw,48px); line-height:1.12; letter-spacing:-.05em; margin:8px 0 14px; }
.directory-intro h1 span { color:var(--hn); }

.browse-tools { display:flex; gap:12px; flex-wrap:wrap; }
.browse-tools input { flex:1; min-width:240px; border:1px solid var(--line); border-radius:10px; padding:13px 15px; background:var(--bg); }
.browse-tools select,.browse-tools>button,#more-stories { border:1px solid var(--line); border-radius:10px; padding:10px 14px; background:var(--bg); color:inherit; }
.sort { display:flex; align-items:center; gap:3px; border:1px solid var(--line); border-radius:10px; padding:4px; }
.sort button { background:none; border:0; border-radius:7px; padding:7px 11px; color:var(--muted); white-space:nowrap; }
.sort button.on { background:var(--ink); color:var(--bg); }
.directory-summary { margin-top:20px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:12px; }
.directory-summary a { color:var(--hn); padding:8px 0; }
.directory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.topic-card { display:flex; flex-direction:column; min-height:170px; padding:20px; border:1px solid var(--line); border-radius:10px; transition:border-color .18s,background .18s; }
.topic-card:hover { border-color:color-mix(in srgb,var(--hn) 50%,var(--line)); background:color-mix(in srgb,var(--bg) 97%,var(--hn)); }
.topic-card strong { font-size:17px; line-height:1.25; }
.topic-card:hover strong { color:var(--hn); }
.topic-card p { color:var(--muted); font-size:13px; margin:9px 0 16px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-kicker { display:flex; justify-content:space-between; gap:8px; margin-top:auto; font-size:11px; color:var(--muted); }
.card-kicker small { font-size:inherit; }
.more { background:none; border:1px solid var(--line); border-radius:20px; display:block; margin:24px auto 0; padding:10px 24px; }
.empty { grid-column:1/-1; padding:40px; text-align:center; color:var(--muted); }
 .toggle { display:flex; gap:2px; padding:3px; border-radius:10px; background:color-mix(in srgb,var(--ink) 5%,var(--bg)); font-size:13px; }
.connections-page { position:relative; height:100%; display:flex; flex-direction:column; padding:34px clamp(20px,4vw,56px) 40px; max-width:1300px; margin:auto; }
.connections-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:12px 0 24px; }
.connections-heading h1 { margin:0 0 10px; font-size:clamp(30px,4vw,48px); letter-spacing:-.05em; line-height:1.12; }
.connections-heading h1 span { color:var(--hn); }
.connections-heading input { width:280px; max-width:100%; border:1px solid var(--line); background:var(--bg); border-radius:10px; padding:13px 15px; }
.connections-canvas { position:relative; flex:1; min-width:0; min-height:320px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--bg); }
.connections-layout { display:flex; flex:1; min-height:0; gap:14px; }
.connections-canvas #map { position:absolute; inset:0; }
.map-legend { position:absolute; top:16px; left:18px; display:flex; align-items:center; gap:7px; color:var(--muted); background:var(--bg); font-size:11px; pointer-events:none; z-index:1; }
.legend-dot { width:8px; height:8px; border-radius:50%; background:var(--dot); }
.legend-ring { width:12px; height:12px; border:1px solid var(--hn); border-radius:50%; margin-left:10px; }
.map-results { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:12px; }
.map-results:not(:empty) { margin-bottom:14px; }
.map-results>span { color:var(--muted); }
.map-results button { background:none; color:inherit; cursor:pointer; border:1px solid var(--line); border-radius:20px; padding:6px 10px; }
.map-results button:hover { color:var(--hn); border-color:var(--hn); }
svg { display:block; width:100%; height:100%; }
#map { touch-action:none; cursor:grab; }
.map-help { position:absolute; left:18px; bottom:18px; font-size:11px; color:var(--muted); pointer-events:none; }
.map-controls { position:absolute; right:16px; bottom:16px; display:flex; gap:0; border:1px solid var(--line); border-radius:9px; overflow:hidden; background:var(--bg); box-shadow:0 2px 8px #00000006; }
.map-controls button { border:0; border-right:1px solid var(--line); border-radius:0; background:var(--bg); min-width:40px; height:40px; padding:0 12px; }
.map-controls button:last-child { border-right:0; }
.map-controls button:focus-visible { outline-offset:-3px; }
.map-controls button:disabled { opacity:.35; cursor:default; }
.map-controls button:hover { color:var(--hn); border-color:var(--hn); }
.topic-dot { stroke:var(--bg); stroke-width:1.5; cursor:pointer; transition:opacity .2s, r .2s; }
.topic-dot:hover,.topic-dot:focus { stroke:var(--ink); stroke-width:2; }
.dim { opacity:.08; }
line { stroke:var(--line); }
text { fill:var(--ink); font-size:12px; }
#map text { pointer-events:none; paint-order:stroke; stroke:var(--bg); stroke-width:3px; font-size:11px; font-weight:550; }
.map-edge { fill:none; transition:stroke-opacity .2s; }
#tip { position:fixed; pointer-events:none; background:var(--ink); color:var(--bg); padding:8px 10px; border-radius:6px; max-width:300px; font-size:12px; }
.page { max-width:1200px; height:100%; margin:auto; padding:24px 32px 48px; overflow-y:auto; }
.hero { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-top:18px; }
.page h1 { font-size:30px; line-height:1.15; margin:0 0 12px; letter-spacing:-.03em; }
.meta { color:var(--muted); margin:0; }
small { color:var(--muted); }
.up { color:var(--hn); } .down { color:var(--cool); }
.digest { border:1px solid var(--line); background:color-mix(in srgb,var(--bg) 94%,var(--hn)); border-radius:14px; padding:18px; min-width:280px; max-width:360px; }
.digest strong { display:block; font-size:16px; }
.digest p { margin:4px 0 12px; color:var(--muted); }
.digest form { display:flex; gap:6px; flex-wrap:wrap; }
.digest input,.digest select,.digest button { border:1px solid var(--line); border-radius:7px; padding:8px; background:var(--bg); }
.digest input { width:100%; min-width:0; }
.digest button { background:var(--hn); color:white; }
.newsletter-cta { margin-top:14px; border:1px solid var(--hn); border-radius:8px; padding:10px 16px; background:var(--hn); color:white; cursor:pointer; }
.digest button:disabled { opacity:.6; cursor:wait; }
.signup-trap { position:absolute; left:-10000px; }
.digest a { color:var(--hn); }
#signup-status { display:block; margin-top:10px; overflow-wrap:anywhere; }
#signup-status div { padding:5px 0; border-top:1px solid var(--line); }
.related { display:flex; flex-wrap:wrap; gap:6px; font-size:13px; margin:20px 0; }
.related a:hover { color:var(--hn); }
.activity { border:1px solid var(--line); border-radius:14px; padding:18px; margin:20px 0 28px; }
.chart-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center; }
.chart-heading h2 { margin:0; font-size:16px; }
#chart-readout { color:var(--muted); margin:3px 0 12px; font-size:13px; }
#activity-chart { height:210px; }
.activity rect { fill:var(--hn); opacity:.45; cursor:pointer; }
.activity rect.selected { opacity:1; }
.activity text { fill:var(--muted); font-size:11px; }
.chart-note { font-size:11px; color:var(--muted); margin:4px 0 0; }
.cols { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
h3 { text-transform:uppercase; letter-spacing:.05em; font-size:12px; color:var(--muted); }
.post { padding:12px 0; border-top:1px solid var(--line); }
.post a:hover { color:var(--hn); }
.post small { display:block; margin-top:4px; font-size:11px; }
.loading { color:var(--muted); padding:30px; }
@media(max-width:900px) { .directory-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { body { height:auto; } .home,.page { height:auto; overflow:visible; } .home-inner,.page { padding:20px 16px 40px; } .directory-grid { grid-template-columns:1fr; } .topic-card { min-height:145px; } .hero { flex-direction:column; } .digest { width:100%; max-width:none; } .cols { grid-template-columns:1fr; gap:14px; }  .connections-page { height:auto; min-height:calc(100dvh - 56px); padding:20px 16px; } .connections-heading { flex-direction:column; align-items:stretch; gap:16px; } .connections-heading h1 { font-size:30px; } .connections-heading input { width:100%; } .connections-canvas { min-height:440px; } .toggle { gap:14px; font-size:12px; } .activity { padding:12px; } #activity-chart { height:170px; } .card-kicker { font-size:12px; } }

.map-preview { position:relative; flex-shrink:0; overflow-y:auto; width:300px; padding:20px; border:1px solid var(--line); border-radius:14px; background:var(--bg); color:var(--ink); }
.map-preview .eyebrow { color:var(--hn); margin:0 0 8px; }
.map-preview h2 { font-size:20px; line-height:1.2; letter-spacing:-.03em; margin:0 16px 9px 0; }
.map-preview>p:not(.eyebrow) { font-size:12px; color:var(--muted); margin:0 0 13px; }
.preview-close { position:absolute; top:10px; right:10px; border:0; background:none; color:var(--muted); font-size:22px; }
.preview-stats { color:var(--muted); font-size:11px; }
.preview-open { display:flex; justify-content:space-between; margin:16px 0 10px; padding:10px 12px; border-radius:8px; color:var(--bg); background:var(--ink); font-weight:650; }
.preview-related { display:flex; flex-direction:column; gap:2px; }
.preview-related button { background:none; border:0; text-align:left; color:var(--muted); font-size:11px; padding:6px 0; }
.preview-related button:hover,.preview-open:hover { color:var(--hn); }
@media(max-width:600px) { .map-preview { position:static; width:100%; padding:18px; margin-top:12px; overflow:visible; } .map-legend { left:12px; font-size:9px; gap:4px; } .connections-canvas .map-help { font-size:9px; bottom:60px; } }

.map-result-options { display:flex; flex-wrap:wrap; gap:6px; max-height:112px; overflow-y:auto; width:100%; }
.map-result-options button { text-align:left; }
.preview-stories { border-top:1px solid var(--line); padding-top:4px; }
.map-preview h3 { color:var(--muted); font-size:10px; margin:14px 0 7px; }
.preview-stories a { display:block; font-size:12px; color:var(--ink); padding:7px 0; border-bottom:1px solid var(--line); }
.preview-stories a:hover { color:var(--hn); }
.preview-stories p,.preview-related p { font-size:12px; color:var(--muted); }
@media(max-width:600px) { .connections-layout { display:block; } .connections-canvas { min-height:360px; height:360px; flex:none; } .map-preview { position:relative; } }


.topic-history { margin:20px 0 36px; padding:26px; border:1px solid var(--line); border-radius:16px; background:var(--bg); }
.history-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.history-heading h2 { font-size:28px; letter-spacing:-.035em; margin:0; }
.history-heading p { margin:6px 0; }
.history-span { font-size:23px; white-space:nowrap; letter-spacing:-.04em; }
.history-span small { display:block; font-size:11px; color:var(--muted); letter-spacing:0; text-align:right; }
.history-years { display:flex; overflow-x:auto; gap:8px; padding:16px 2px; margin-top:12px; border-bottom:1px solid var(--line); }
.history-years button { flex-shrink:0; background:transparent; border:1px solid var(--line); padding:10px 20px; border-radius:9px; }
.history-years small { display:block; color:var(--muted); font-size:10px; }
.history-years button[aria-pressed="true"] { border-color:var(--hn); background:var(--hn); color:#111; }
.history-years button[aria-pressed="true"] small { color:#111; }
.history-year-title { display:flex; align-items:center; gap:18px; margin:22px 0 16px; }
.history-year-title h3 { font-size:26px; margin:0; color:var(--ink); }
.history-picks { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.history-pick { border-top:3px solid var(--hn); padding:16px 14px; background:color-mix(in srgb,var(--line) 25%,var(--bg)); border-radius:0 0 10px 10px; display:flex; flex-direction:column; }
.history-pick .eyebrow { font-size:9px; margin:0 0 16px; }
.history-pick time { font-size:12px; color:var(--muted); }
.history-pick h4 { font-size:18px; line-height:1.4; letter-spacing:-.02em; margin:8px 0; overflow-wrap:anywhere; }
.history-pick h4 a:hover { color:var(--hn); }
.history-pick .meta { font-size:11px; overflow-wrap:anywhere; }
.history-discussion { font-size:11px; margin-top:auto; padding-top:12px; color:var(--muted); }
.history-navigation { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:22px 0; }
.history-navigation button,#history-retry { background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:9px 12px; }
.history-navigation button:disabled { opacity:.4; cursor:default; }
.timeline-method { font-size:12px; color:var(--muted); line-height:1.6; }
.recent-stories { margin-bottom:30px; }
@media(max-width:700px) { .topic-history { padding:18px; } .history-picks { grid-template-columns:1fr; } .history-heading { align-items:start; flex-direction:column; gap:10px; } .history-span small { text-align:left; } .history-navigation { flex-wrap:wrap; } .history-year-title { align-items:start; flex-direction:column; gap:2px; } }

/* A reading path: orientation, history, current stories, then the archive. */
.page { max-width:1100px; padding-top:28px; }
.topic-hero { margin:24px 0 16px; }
.topic-hero h1 { font-size:clamp(32px,4vw,48px); letter-spacing:-.045em; max-width:850px; line-height:1.06; }
.topic-description { max-width:760px; font-size:16px; line-height:1.65; color:var(--muted); margin:14px 0; }
.topic-stats { color:var(--muted); font-size:11px; display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.topic-nav { position:sticky; top:0; z-index:3; background:var(--bg); display:flex; gap:28px; border-bottom:1px solid var(--line); padding:16px 0; margin-bottom:24px; }
.topic-nav button { border:0; padding:6px 0; background:none; color:var(--hn); font-size:10px; letter-spacing:.04em; }
.topic-nav span { color:var(--ink); font-size:13px; margin-left:7px; letter-spacing:0; }
.topic-nav button:hover span { color:var(--hn); }
#topic-history,#topic-recent,#topic-archive { scroll-margin-top:82px; }
.topic-history { border:0; padding:8px 0 30px; border-bottom:1px solid var(--line); border-radius:0; margin:0 0 40px; }
.history-heading h2,.recent-stories h2,.topic-archive h2,.topic-footer h2 { font-size:28px; letter-spacing:-.035em; line-height:1.2; margin:8px 0; }
.history-heading .eyebrow,.recent-stories>.eyebrow,.topic-archive>.eyebrow { font-size:10px; }
.history-span { font-size:17px; }
.history-heading { margin-bottom:12px; }
.history-years { border-bottom:0; padding:16px 2px 0; margin-top:6px; }
.history-years button { min-width:84px; scroll-margin-block:90px; }
.history-year-title { justify-content:space-between; }
#explore-year { border:0; background:none; color:var(--muted); font-size:12px; padding:8px 0; text-align:left; }
#explore-year:hover { color:var(--hn); }
.history-pick { padding:20px; border-top-width:2px; border-radius:0 0 12px 12px; }
.history-pick h4 { font-size:20px; line-height:1.3; margin:10px 0 14px; font-weight:650; }
.history-pick .eyebrow { margin-bottom:12px; }
.history-navigation { margin:18px 0; }
.history-navigation button { border:0; padding:10px 0; font-size:13px; }
#history-next { color:var(--hn); font-weight:600; }
.section-intro { color:var(--muted); margin:8px 0 22px; }
.recent-stories { margin:0 0 48px; }
.recent-stories .post { padding:18px 0; }
.recent-stories .post>a { font-size:19px; line-height:1.45; letter-spacing:-.015em; }
.post small { line-height:1.8; }
.topic-archive .browse-tools { margin-bottom:16px; gap:8px; }
.topic-archive .browse-tools input { flex-basis:100%; }
.topic-archive select { flex:1; min-width:140px; }
#archive-context { font-size:12px; margin:10px 0 18px; }
#story-results .post { padding:16px 0; }
#more-stories { margin:16px 0; width:100%; }
#story-status { font-size:12px; margin-top:12px; }
.activity { margin:28px 0; padding:20px 22px; border:1px solid var(--line); border-radius:16px; background:color-mix(in srgb, var(--hn) 3%, var(--bg)); }
.activity>summary { padding:18px 0; color:var(--muted); font-size:13px; cursor:pointer; }
.activity>summary span { float:right; }
.activity-content { padding:0; }
.chart-grid line { stroke:var(--line); stroke-dasharray:3 5; }
.activity .chart-bar { transition:opacity .18s; }
.activity .chart-hit { fill:transparent; opacity:1; }
@media(prefers-reduced-motion:reduce) { .activity .chart-bar { transition:none; } }
@media(max-width:600px) { .activity { padding:16px 10px; } }
.topic-footer { padding:0 0 30px; }
.related-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:22px; }
.related-cards a { border:1px solid var(--line); border-radius:12px; padding:20px; }
.related-cards a:hover { border-color:var(--hn); }
.related-cards strong { display:flex; justify-content:space-between; gap:12px; font-size:15px; }
.related-cards p { font-size:12px; color:var(--muted); margin:8px 0 0; line-height:1.6; }
.topic-footer .digest { max-width:none; margin-top:28px; }
@media(max-width:700px) { .page { padding:20px 20px 40px; } .topic-hero { margin-top:24px; } .topic-description { font-size:14px; } .topic-nav { top:0; gap:25px; } .history-heading { flex-direction:row; align-items:center; } .history-span { font-size:14px; } .history-picks { gap:12px; } .history-pick { padding:18px; } .history-pick h4 { font-size:21px; } .history-pick .eyebrow { margin-bottom:8px; } .history-year-title { flex-direction:row; align-items:center; gap:16px; } .related-cards { grid-template-columns:1fr; } .history-heading h2,.recent-stories h2,.topic-archive h2 { font-size:26px; } .history-navigation { gap:8px; } .history-navigation .meta { font-size:11px; } }
@media(prefers-reduced-motion:no-preference) { .history-pick { animation:chapter-in .25s ease-out; } @keyframes chapter-in { from { opacity:.5; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } } }

.zt-shell { border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--bg); }
.zt-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 22px; border-bottom:1px solid var(--line); }
.zt-scale { min-width:165px; }
.zt-scale strong { display:block; font-size:15px; letter-spacing:-.02em; }
.zt-scale>span { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.zt-zoom { display:flex; align-items:center; gap:10px; }
.zt-zoom button { width:36px; height:36px; background:var(--bg); border:1px solid var(--line); border-radius:50%; font-size:23px; line-height:1; }
.zt-zoom button:hover:not(:disabled) { color:var(--hn); border-color:var(--hn); }
.zt-zoom button:disabled { opacity:.3; cursor:default; }
.zt-zoom input { width:100px; accent-color:var(--hn); cursor:pointer; appearance:none; background:transparent; height:36px; }
.zt-zoom input::-webkit-slider-runnable-track { height:3px; background:var(--line); border-radius:8px; }
.zt-zoom input::-webkit-slider-thumb { appearance:none; width:15px; height:15px; border-radius:50%; background:var(--hn); margin-top:-6px; }
.zt-zoom input::-moz-range-track { height:3px; background:var(--line); border-radius:8px; }
.zt-zoom input::-moz-range-thumb { width:15px; height:15px; border:0; border-radius:50%; background:var(--hn); }
.zt-jump { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:11px; }
.zt-jump select { background:var(--bg); border:1px solid var(--line); padding:8px; border-radius:8px; color:var(--ink); }
.zt-view { height:560px; max-height:65dvh; min-height:320px; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:var(--dot) transparent; overflow-anchor:none; }
.zt-period { display:grid; grid-template-columns:110px minmax(0,1fr); gap:20px; padding:28px 24px 12px; position:relative; }
.zt-period:before { content:''; position:absolute; top:0; bottom:0; left:143px; width:1px; background:var(--line); }
.zt-date { position:sticky; top:18px; align-self:start; padding-top:2px; }
.zt-date button { border:0; background:none; padding:0; color:var(--ink); font-size:20px; font-weight:650; letter-spacing:-.04em; text-align:left; }
.zt-date button:disabled { cursor:default; }
.zt-date button>span { font-size:13px; color:var(--hn); }
.zt-date small { display:block; font-size:10px; color:var(--muted); margin-top:5px; }
.zt-dot { position:absolute; top:10px; right:-14px; height:9px; width:9px; border-radius:50%; background:var(--hn); box-shadow:0 0 0 5px var(--bg); }
.zt-stories { align-content:start; display:grid; grid-template-columns:1fr; gap:12px; padding-left:8px; }
.zt-view[data-level="0"] .zt-stories { grid-template-columns:repeat(2,minmax(0,1fr)); }
.zt-story { border:1px solid var(--line); border-radius:12px; padding:18px; background:color-mix(in srgb,var(--bg) 97%,var(--hn)); }
.zt-story time { color:var(--muted); font-size:11px; }
.zt-story h3 { font-size:18px; line-height:1.35; letter-spacing:-.02em; font-weight:600; text-transform:none; color:var(--ink); margin:9px 0 16px; overflow-wrap:anywhere; }
.zt-story h3 a:hover { color:var(--hn); }
.zt-story h3 span { font-size:13px; color:var(--muted); }
.zt-meta { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; font-size:10px; color:var(--muted); }
.zt-meta>span { overflow-wrap:anywhere; }
.zt-meta a:hover { color:var(--hn); }
.zt-quiet { color:var(--muted); font-size:12px; padding:16px 0; }
.zt-end { text-align:center; color:var(--muted); font-size:11px; padding:30px; }
.zt-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--line); padding:12px 22px; color:var(--muted); font-size:11px; }
.zt-footer button,.zt-below button { padding:4px 0; border:0; background:none; color:var(--muted); font-size:11px; }
.zt-footer button:hover,.zt-below button:hover { color:var(--hn); }
.zt-below { display:flex; justify-content:space-between; gap:16px; margin:16px 0; }
#zt-position { color:var(--ink); }
@media(max-width:700px) {
 .zt-toolbar { flex-wrap:wrap; gap:12px; padding:16px; }
 .zt-scale { min-width:0; flex:1; }
 .zt-zoom { gap:8px; }
 .zt-zoom input { width:65px; }
 .zt-jump { flex-basis:100%; justify-content:space-between; border-top:1px solid var(--line); padding-top:10px; }
 .zt-jump select { padding:5px 8px; }
 .zt-period { grid-template-columns:1fr; gap:12px; padding:20px 16px 8px 26px; }
 .zt-period:before { left:13px; }
 .zt-date { position:relative; top:auto; display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; }
 .zt-date small { margin:0; }
 .zt-dot { left:-17px; right:auto; top:9px; width:7px; height:7px; }
 .zt-stories,.zt-view[data-level="0"] .zt-stories { grid-template-columns:1fr; padding:0; gap:10px; }
 .zt-story { padding:14px; }
 .zt-story h3 { font-size:17px; }
 .zt-footer { gap:8px; padding:12px; font-size:10px; }
 .zt-footer>span:nth-child(2) { display:none; }
 .zt-view { height:460px; max-height:52dvh; }
}

.site-footer { margin-top:24px; flex-shrink:0; display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:6px 18px; padding:12px 20px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; }
.site-footer a:hover,.site-footer button:hover { color:var(--hn); }
.site-footer button { border:0; background:none; padding:4px 0; color:inherit; }
.feedback-dialog { width:min(460px,calc(100% - 32px)); max-height:85dvh; overflow:auto; padding:26px; border:1px solid var(--line); border-radius:16px; background:var(--bg); color:var(--ink); box-shadow:0 20px 80px #0003; }
.feedback-dialog::backdrop { background:#0006; backdrop-filter:blur(3px); }
.feedback-dialog[open] { animation:feedback-in .16s ease-out; }
@keyframes feedback-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .feedback-dialog[open] { animation:none; } }
.feedback-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.feedback-heading h2 { margin:0; font-size:23px; letter-spacing:-.03em; }
.feedback-close { border:0; background:none; color:var(--muted); padding:4px 8px; font-size:24px; }
.feedback-dialog p { color:var(--muted); }
.feedback-dialog label { display:block; margin:16px 0 6px; }
.feedback-dialog textarea,.feedback-dialog input { width:100%; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font:inherit; color:var(--ink); background:var(--bg); }
.feedback-dialog textarea { resize:vertical; min-height:130px; }
.feedback-dialog small { display:block; margin-top:12px; color:var(--muted); }
.feedback-send { margin-top:18px; border:0; border-radius:8px; background:var(--hn); color:white; padding:11px 18px; }
.feedback-send:disabled { opacity:.6; cursor:wait; }
#feedback-status { margin-bottom:0; }

body.home-route { height:100dvh; }
.home { height:auto; min-height:100%; overflow:visible; }
.home-inner { padding:24px clamp(16px,4vw,56px) 0; }
.home .directory-intro { margin:0 0 24px; }
.home .directory-summary { margin:12px 0 18px; }
.home .directory-grid { gap:14px; }
.home .topic-card { min-height:165px; }
.home .site-footer { margin-top:36px; }
.home-route main { scroll-behavior:smooth; }
@media(prefers-reduced-motion:reduce) { .home-route main { scroll-behavior:auto; } }
@media(max-width:600px) {
 .home .browse-tools { gap:8px; }
 .home .browse-tools input { flex:1 0 100%; width:100%; min-width:0; padding:9px 12px; }
 .home .sort { width:100%; padding:2px; }
 .home-route header { padding:12px 16px; gap:16px; }
 .home-route header b,.home-route .toggle a { white-space:nowrap; }
 .home-route .toggle { gap:10px; }
 .home .sort button { flex:1; padding:7px 8px; font-size:12px; }
 .home .topic-card { min-height:145px; }
 .home .directory-summary { flex-wrap:wrap; }
}

body.connections-route { height:100dvh; }
.connections-route .connections-page { height:auto; min-height:100%; padding:24px clamp(16px,4vw,56px) 0; }
.connections-explorer { height:max(460px,calc(100dvh - 128px)); display:flex; flex-direction:column; scroll-margin-top:24px; }
.connections-route .connections-heading { flex-shrink:0; margin:0 0 20px; gap:12px; }
.connections-route .connections-heading h1 { font-size:clamp(24px,2.6vw,32px); letter-spacing:-.035em; margin:0; }
.connections-heading .meta { font-size:13px; }
.connections-route .home-inner { padding:0; }
#browse-section { border-top:1px solid var(--line); padding-top:32px; margin-top:40px; scroll-margin-top:24px; }
.directory-intro h2 { margin:0 0 6px; font-size:26px; letter-spacing:-.035em; }
.connections-route .site-footer { margin-top:32px; }
.map-label { transition:opacity .12s ease-out; }
.map-preview:not([hidden]) { animation:feedback-in .18s ease-out; }
@media(prefers-reduced-motion:reduce) { .map-label,.topic-dot,.map-edge,.topic-card,.toggle a { transition:none; } .map-preview:not([hidden]) { animation:none; } }
.connections-route .connections-heading p { margin:5px 0 0; }
.connections-route .connections-layout { position:relative; display:flex; min-height:0; }
.connections-route .connections-canvas { flex:1; height:auto; min-height:0; }
.connections-route .map-preview { min-height:0; max-height:100%; overflow-y:auto; overscroll-behavior:contain; }
.connections-route .map-results { flex-shrink:0; max-height:22dvh; overflow-y:auto; }
.connections-route .map-result-options { max-height:none; }
.connections-route .site-footer { padding:16px 0; }
@media(max-width:600px) {
 .connections-route header { padding:12px 16px; gap:16px; }
 .connections-route header b,.connections-route .toggle a { white-space:nowrap; }
 .connections-route .toggle { gap:2px; }
 .connections-route .toggle a { padding:7px 8px; }
 .connections-route .connections-heading { gap:10px; }
 .connections-route .connections-heading input { padding:9px 12px; }
 .connections-route .map-preview { position:absolute; inset:0; z-index:2; width:100%; height:100%; margin:0; padding:16px; }
 .connections-route .preview-close { position:sticky; float:right; top:0; right:0; background:var(--bg); z-index:1; }
}
@media(max-height:500px) {
 .connections-route .connections-page { padding-top:8px; }
 .connections-route .connections-heading { flex-direction:row; align-items:center; margin-bottom:8px; }
 .connections-route .connections-heading h1 { font-size:22px; }
 .connections-route .connections-heading p { display:none; }
 .connections-route .connections-heading input { width:42%; padding:6px 8px; }
 .connections-route .site-footer { padding:4px 0; }
}

.chart-axis { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; margin:8px 1% 12px; }
.page #activity-chart { height:180px; margin-top:20px; }
@media(max-width:600px) { .page #activity-chart { height:120px; } }
.topic-nav a { color:var(--hn); font-size:10px; padding:6px 0; }
.zt-stories .post { margin:0 0 18px; }
