/* techlash.fyi
   The page is a school report card: a ruled form on a pale blue-green ground. The map is drawn in
   red pencil, denser and darker where it is hotter, and a red pen circles whatever you pick. */
:root {
  --ground: #E6ECEA; --sheet: #FCFDFD; --ink: #1B2826; --mute: #5A6B67; --line: #8EA59F; --hair: #CBD8D4; --tint: #F1F6F4; --g: #3E4744;
  --pen: #D3202E; --r1: #EBA9AD; --r2: #DD7E85; --r3: #C9505A; --r4: #A92633; --r5: #6F0E17; --voice: #EBA9AD; --action: #A92633;
  --form: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ground: #0D1312; --sheet: #151C1B; --ink: #E2EBE8; --mute: #97A8A4; --line: #4D605B; --hair: #2B3634; --tint: #1B2423; --g: #9FB0AB;
  --pen: #FF7378; --r1: #6B3237; --r2: #96404A; --r3: #C2525D; --r4: #E8707A; --r5: #FFB3B8; --voice: #96404A; --action: #E8707A; color-scheme: dark; } }
:root[data-theme="dark"] {
  --ground: #0D1312; --sheet: #151C1B; --ink: #E2EBE8; --mute: #97A8A4; --line: #4D605B; --hair: #2B3634; --tint: #1B2423; --g: #9FB0AB;
  --pen: #FF7378; --r1: #6B3237; --r2: #96404A; --r3: #C2525D; --r4: #E8707A; --r5: #FFB3B8; --voice: #96404A; --action: #E8707A; color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font: 400 15px/1.5 var(--form); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }
.outer { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fl { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }

.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding-block: 20px 0; }
.brand { font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.brand span { font-weight: 400; color: var(--mute); }
nav.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
nav.tabs a { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--mute); padding: 8px 14px; border: 1px solid transparent; border-bottom: 0; }
nav.tabs a[aria-current] { background: var(--sheet); color: var(--ink); border-color: var(--line); position: relative; top: 1px; }

.sheet { background: var(--sheet); border: 1px solid var(--line); margin-bottom: 40px; }
.row { display: grid; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.cell { padding: 10px 14px 14px; border-right: 1px solid var(--line); min-width: 0; display: grid; align-content: start; gap: 4px; }
.cell:last-child { border-right: 0; }
.cell .v { font-size: 15px; font-weight: 500; }

.title { grid-template-columns: minmax(0, 1fr) 260px; }
.title .cell { padding: 16px 20px 22px; }
.title h1 { font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.025em; margin: 6px 0 0; text-wrap: balance; max-width: 16ch; }
.title p { font-size: 18px; line-height: 1.5; color: var(--mute); margin: 14px 0 0; max-width: 44ch; }
.title p strong { color: var(--ink); font-weight: 600; }
.seal { display: grid; gap: 14px; align-content: space-between; }
.fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.secthead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 8px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.secthead h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.main2 { grid-template-columns: minmax(0, 1fr) 380px; }
.mapcell { padding: 14px 18px 18px; gap: 12px; }
.tools { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.search { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; flex: 1 1 280px; min-width: 0; }
.search input { flex: 1 1 180px; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 4px 2px; outline: none; }
.search input:focus { border-bottom-color: var(--pen); }
.search input::placeholder { color: var(--mute); opacity: .8; }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; color: var(--mute); min-height: 22px; }
.crumbs button { border: 0; background: none; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.tl-map { width: 100%; height: auto; display: block; overflow: hidden; }
.tl-map .st, .tl-map .dist { stroke: var(--g); stroke-width: .6; stroke-linejoin: round; vector-effect: non-scaling-stroke; cursor: pointer; outline: none; transition: opacity .4s; }
.tl-map .st:hover, .tl-map .st:focus-visible, .tl-map .dist:hover, .tl-map .dist:focus-visible { stroke-width: 1.8; }
.tl-map .dists { opacity: 0; pointer-events: none; transition: opacity .4s .3s; }
.tl-map.zoomed .dists { opacity: 1; pointer-events: auto; }
.tl-map.zoomed .st { opacity: .28; }
.tl-map.zoomed .st.sel { opacity: 0; }
.tl-map .dist { stroke-width: .5; }
.tl-map .st-outline { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; transition: opacity .4s .3s; }
.tl-map.zoomed .st-outline { opacity: 1; }
.tl-map .bn { fill: var(--sheet); stroke-dasharray: 2 2; }
.pen-ring { fill: none; stroke: var(--pen); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pen-halo { fill: none; stroke: var(--sheet); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pen .5s cubic-bezier(.4, .1, .3, 1) forwards; }
@keyframes pen { to { stroke-dashoffset: 0; } }
.pen-note { fill: var(--pen); font: 700 28px var(--hand); }
.pen-note-halo { fill: var(--sheet); stroke: var(--sheet); stroke-linejoin: round; font: 700 28px var(--hand); }
.tl-map .ring.s { transition: opacity .5s .2s; }
.tl-map.zoomed .ring.s { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .draw { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; } .tl-map .st, .tl-map .dists { transition: none; } }

.tl-tip { position: absolute; pointer-events: none; background: var(--sheet); border: 1px solid var(--ink); color: var(--ink); padding: 6px 9px; font-size: 12px; display: grid; gap: 1px; white-space: nowrap; z-index: 5; }
.tl-tip span { color: var(--mute); }
.tl-tip i { font-style: normal; font-family: var(--hand); color: var(--pen); font-size: 16px; line-height: 1.1; }
.key { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); }
.key div { padding: 6px 8px; border-right: 1px solid var(--hair); display: grid; gap: 4px; min-width: 0; }
.key div:last-child { border-right: 0; }
.key svg { width: 100%; height: 14px; display: block; border: 1px solid var(--g); }
.key b { font-size: 12px; font-weight: 600; }
.key span { font-size: 11px; color: var(--mute); }
.note { margin: 0; font-size: 12.5px; color: var(--mute); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { text-align: left; padding: 8px 14px; background: var(--tint); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
th { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
td { padding: 6px 10px; border-bottom: 1px solid var(--hair); }
td:first-child, th:first-child { padding-left: 14px; }
td:last-child, th:last-child { padding-right: 14px; }
th.r, td.r { text-align: right; }
td.no { color: var(--mute); width: 2.4em; }
td.mark { font-weight: 800; font-size: 15px; width: 3.4em; }
td.band { color: var(--mute); font-size: 12.5px; width: 5.6em; white-space: nowrap; }
td.dn { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
tr[data-go], tr[data-go-d] { cursor: pointer; }
tr[data-go]:hover td, tr[data-go-d]:hover td { background: var(--tint); }
.side { padding: 0; }
.side table + table caption { border-top: 1px solid var(--line); }

/* Report panel */
.rp { display: grid; gap: 0; }
.rp-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.rp-head h3 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.rp-sub { font-size: 13px; color: var(--mute); }
.rp-x { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--sheet); font-size: 20px; line-height: 1; cursor: pointer; }
.rp-x:hover { border-color: var(--ink); }
.rp-mark { display: flex; align-items: center; gap: 18px; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.rp-mark > div { display: grid; gap: 2px; font-size: 13px; color: var(--mute); }
.rp-band { font-size: 16px; color: var(--ink); }
.mk { position: relative; display: inline-grid; place-items: center; width: 92px; height: 60px; flex: none; }
.mk b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mk svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mk .pen-ring { stroke-width: 2.4; }
.rp-sec { padding: 12px 14px 14px; border-bottom: 1px solid var(--hair); display: grid; gap: 8px; align-content: start; }
.rp-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rp-list button { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; cursor: pointer; font-size: 14px; }
.rp-list li:last-child button { border-bottom: 0; }
.rp-list button:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.rp-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw { width: 12px; height: 12px; border: 1px solid var(--g); display: block; }
.rp-meta { font-size: 12px; color: var(--mute); }
.rp-sig { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rp-sig li { display: grid; gap: 1px; }
.rp-sig a { font-weight: 600; font-size: 14px; line-height: 1.35; text-decoration: none; }
.rp-sig a:hover { text-decoration: underline; }
.rp-split { display: flex; height: 12px; border: 1px solid var(--g); }
.rp-split i, .rp-legend i { display: block; }
.rp-split .v, .rp-legend .v { background: var(--voice); }
.rp-split .a, .rp-legend .a { background: var(--action); }
.rp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rp-legend i { width: 10px; height: 10px; border: 1px solid var(--g); }
.rp-tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.rp-tags span { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); }
.rp-p { margin: 0; font-size: 14px; }
.rp-foot { margin: 0; padding: 12px 14px 16px; font-size: 13px; color: var(--mute); }
.rp-link { border: 0; background: none; padding: 0; color: var(--pen); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats .cell b { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.comments .cell { padding: 14px 20px 22px; gap: 14px; }
.comments .lines { display: grid; gap: 12px; max-width: 70ch; }
.comments p { margin: 0; font-size: 18px; line-height: 1.6; padding-bottom: 6px; border-bottom: 1px solid var(--hair); }
.comments p:first-child { font-size: 23px; font-weight: 600; line-height: 1.4; }
.sign { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 12px 14px 72px; }

@media (max-width: 900px) {
  .title, .main2 { grid-template-columns: minmax(0, 1fr); }
  .title .cell, .main2 .cell { border-right: 0; }
  .title .seal { border-top: 1px solid var(--line); }
  .main2 .side { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .fields .cell { border-right: 0; border-bottom: 1px solid var(--hair); }
  .fields .cell:last-child { border-bottom: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .cell:nth-child(2) { border-right: 0; }
  .stats .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .key { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .key div:nth-child(3) { border-right: 0; }
  .key div:nth-child(-n+3) { border-bottom: 1px solid var(--hair); }
  nav.tabs a { padding: 8px 10px; }
  .pen-note { font-size: 40px; }
}

/* Map fills: red pencil hatching. States use p*, zoomed districts zp*, key swatches kp*. */
.st.b0 { fill: url(#p0); }
.dist.b0 { fill: url(#zp0); }
.kb0 { fill: url(#kp0); }
.st.b1 { fill: url(#p1); }
.dist.b1 { fill: url(#zp1); }
.kb1 { fill: url(#kp1); }
.st.b2 { fill: url(#p2); }
.dist.b2 { fill: url(#zp2); }
.kb2 { fill: url(#kp2); }
.st.b3 { fill: url(#p3); }
.dist.b3 { fill: url(#zp3); }
.kb3 { fill: url(#kp3); }
.st.b4 { fill: url(#p4); }
.dist.b4 { fill: url(#zp4); }
.kb4 { fill: url(#kp4); }
.st.b5 { fill: url(#p5); }
.dist.b5 { fill: url(#zp5); }
.kb5 { fill: url(#kp5); }
/* Zoomed in, the states around the open one use the district hatching so it keeps the same weight on screen. */
.tl-map.zoomed .st.b0 { fill: url(#zp0); }
.tl-map.zoomed .st.b1 { fill: url(#zp1); }
.tl-map.zoomed .st.b2 { fill: url(#zp2); }
.tl-map.zoomed .st.b3 { fill: url(#zp3); }
.tl-map.zoomed .st.b4 { fill: url(#zp4); }
.tl-map.zoomed .st.b5 { fill: url(#zp5); }
.pg { fill: var(--sheet); } .l1 { stroke: var(--r1); } .l2 { stroke: var(--r2); } .l3 { stroke: var(--r3); } .l4 { stroke: var(--r4); } .l5 { stroke: var(--r5); }
.tl-map .st, .tl-map .dist { stroke: color-mix(in srgb, var(--g) 70%, var(--sheet)); }
.sw.b0, .sw.bn { background: var(--sheet); } .sw.b1 { background: var(--r1); } .sw.b2 { background: var(--r2); } .sw.b3 { background: var(--r3); } .sw.b4 { background: var(--r4); } .sw.b5 { background: var(--r5); }

/* Nav tabs for pages that aren't built yet */
nav.tabs .soon { font-size: 13px; font-weight: 500; color: var(--mute); padding: 8px 14px; opacity: .75; }
nav.tabs .soon small { font-family: var(--hand); color: var(--pen); font-size: 15px; font-weight: 700; margin-left: 4px; }

/* Search suggestions */
.search { position: relative; }
.sugg { position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 0; list-style: none; background: var(--sheet); border: 1px solid var(--ink); max-height: 320px; overflow-y: auto; }
.sugg li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--hair); cursor: pointer; font-size: 14px; }
.sugg li:last-child { border-bottom: 0; }
.sugg li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg li span:last-child { flex: none; }
.sugg [aria-selected="true"], .sugg [role=option]:hover { background: var(--tint); }
.sugg .none { color: var(--mute); cursor: default; }

/* Method */
.method { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.method .cell { padding: 12px 14px 18px; gap: 6px; }
.method h3 { margin: 0; font-size: 15px; font-weight: 800; }
.method p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--mute); }
.method .n { font-family: var(--hand); color: var(--pen); font-size: 24px; font-weight: 700; line-height: 1; }
.caveats { padding: 12px 20px 16px; display: grid; gap: 6px; max-width: 80ch; }
.caveats p { margin: 0; font-size: 13.5px; color: var(--mute); }
@media (max-width: 900px) {
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method .cell { border-bottom: 1px solid var(--hair); }
  .method .cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
  .method { grid-template-columns: minmax(0, 1fr); }
  .method .cell { border-right: 0; }
}

/* ---------- Press, Get involved, Ventures ---------- */
:root { --lean: #2E6E61; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lean: #7FC6B4; } }
:root[data-theme="dark"] { --lean: #7FC6B4; }

.pad { padding: 12px 14px 16px; }
.prose { padding: 14px 20px 20px; display: grid; gap: 12px; max-width: 74ch; }
.prose p { margin: 0; font-size: 16px; line-height: 1.6; }
.prose p.note { font-size: 13.5px; }
.prose h3 { margin: 6px 0 0; font-size: 15px; font-weight: 800; }
.prose a, .cell a.u, td a.u { color: var(--pen); font-weight: 600; text-underline-offset: 3px; }
.sub-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lede { margin: 0; font-size: 14px; color: var(--mute); }

.dir { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border: 1px solid currentColor; white-space: nowrap; }
.dir.back { color: var(--pen); }
.dir.lean { color: var(--lean); }
.dir.mixed, .dir.neutral { color: var(--mute); }
.tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border: 1px solid var(--line); color: var(--mute); white-space: nowrap; }

.tbar { display: block; height: 12px; border: 1px solid var(--g); background: var(--sheet); min-width: 60px; }
.tbar i { display: block; height: 100%; border: 0; }
.tbar.na { border-style: dashed; }

th .sort { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; text-align: inherit; }
th .sort:hover { color: var(--ink); }
th[aria-sort="ascending"] .sort::after { content: " ↑"; color: var(--pen); }
th[aria-sort="descending"] .sort::after { content: " ↓"; color: var(--pen); }
.wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wrap table { min-width: 640px; }
td.t { font-weight: 800; font-variant-numeric: tabular-nums; width: 3em; }
td .ti { font-weight: 600; text-decoration: none; }
td .ti:hover { text-decoration: underline; text-underline-offset: 3px; }
td .meta { display: block; font-size: 12px; color: var(--mute); }
td.nowrap, th.nowrap { white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips button { border: 1px solid var(--line); background: var(--sheet); padding: 5px 11px; font-size: 13px; cursor: pointer; min-height: 32px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.bar-tools { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bar-tools input[type=search] { border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 16px; color: var(--ink); padding: 4px 2px; outline: none; min-width: 0; flex: 1 1 200px; max-width: 320px; }
.bar-tools input[type=search]:focus { border-bottom-color: var(--pen); }

/* Key stats */
.stat-list td.v { font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-list td .meta { max-width: 60ch; }
.copy { border: 1px solid var(--line); background: var(--sheet); font-size: 12px; padding: 5px 10px; cursor: pointer; white-space: nowrap; min-height: 32px; }
.copy:hover { border-color: var(--ink); }
.cite { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 14px; border: 1px dashed var(--line); background: var(--tint); }
.cite q { flex: 1 1 280px; font-size: 15px; quotes: none; }
.months td.n { width: 6em; }
.mbar { display: flex; height: 12px; border: 1px solid var(--g); min-width: 120px; }
.mbar i { display: block; height: 100%; }
.mbar .b { background: var(--r4); } .mbar .l { background: var(--lean); } .mbar .o { background: var(--hair); }

/* Get involved */
.finder { padding: 14px 18px 18px; gap: 14px; }
.dcard { display: grid; gap: 0; border: 1px solid var(--line); }
.dcard-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.dcard-head h3 { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.dcard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dcard-grid > div { padding: 12px 14px 14px; border-bottom: 1px solid var(--hair); display: grid; gap: 8px; align-content: start; min-width: 0; }
.dcard-grid > div:nth-child(odd) { border-right: 1px solid var(--hair); }
.dcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dcard li { display: grid; gap: 2px; font-size: 14px; }
.dcard li a { font-weight: 600; }
.empty { margin: 0; font-size: 13.5px; color: var(--mute); }
.when { font-family: var(--hand); color: var(--pen); font-size: 20px; font-weight: 700; line-height: 1; }
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 4px 14px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.dates li:last-child { border-bottom: 0; }
.dates p { margin: 2px 0 0; font-size: 14px; }
.camps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.camp { padding: 12px 14px 16px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: grid; gap: 6px; align-content: start; min-width: 0; }
.camp:nth-child(3n) { border-right: 0; }
.camp h3 { margin: 0; font-size: 16px; font-weight: 800; }
.camp h3 a { text-decoration: none; }
.camp h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.camp p { margin: 0; font-size: 13.5px; }
.camp .who { color: var(--mute); font-size: 12.5px; }
.camp-group { padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--sheet); }

/* Ventures */
.cat-name { font-weight: 700; }
tr.prod { cursor: pointer; }
tr.prod:hover td, tr.prod[aria-expanded="true"] td { background: var(--tint); }
tr.prod td:first-child { position: relative; }
tr.detail td { background: var(--tint); padding: 4px 14px 16px; }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px 24px; }
.pd p { margin: 0; font-size: 14px; }
.pd ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd li { font-size: 13.5px; display: grid; gap: 1px; }
.pd li a { font-weight: 600; }
.once { padding: 10px 14px 14px; }
.once summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.once ul { columns: 3 220px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; }
.once li { break-inside: avoid; padding: 2px 0; }

@media (max-width: 900px) {
  .camps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .camp:nth-child(3n) { border-right: 1px solid var(--hair); }
  .camp:nth-child(2n) { border-right: 0; }
  .pd { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sub-row, .dcard-grid, .camps { grid-template-columns: minmax(0, 1fr); }
  .sub-row .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .sub-row .cell:last-child { border-bottom: 0; }
  .dcard-grid > div:nth-child(odd) { border-right: 0; }
  .camp, .camp:nth-child(3n) { border-right: 0; }
  .prose { padding: 12px 14px 16px; }
  .dates li { grid-template-columns: minmax(0, 1fr); }
}

/* Map zoom buttons */
.zoom { display: flex; gap: 6px; flex: none; }
.zoom button { border: 1px solid var(--line); background: var(--sheet); padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; min-height: 36px; white-space: nowrap; }
.zoom button:hover:not(:disabled) { border-color: var(--ink); }
.zoom button:disabled { opacity: .45; cursor: default; }
.zoom span { font-weight: 800; color: var(--pen); margin-right: 2px; }
.title.solo { grid-template-columns: minmax(0, 1fr); }
.nw { white-space: nowrap; }

/* Policy */
.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.filters label { display: grid; gap: 2px; }
.filters select, .filters input[type=search] { border: 1px solid var(--line); background: var(--sheet); color: var(--ink); font: inherit; font-size: 14px; padding: 5px 8px; min-height: 36px; max-width: 100%; }
.filters input[type=search] { min-width: 180px; }
.filters .reset { border: 0; background: none; color: var(--pen); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 4px; font-size: 13px; }
.stance { display: grid; gap: 4px; min-width: 110px; }
.stance b { font-weight: 800; font-variant-numeric: tabular-nums; }
.scale { position: relative; height: 10px; border: 1px solid var(--g); background: linear-gradient(90deg, var(--lean), var(--sheet) 50%, var(--pen)); }
.scale i { position: absolute; top: -4px; width: 3px; height: 16px; background: var(--ink); transform: translateX(-50%); }
.scale-key { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); }
tr.pol { cursor: pointer; }
tr.pol:hover td, tr.pol[aria-expanded="true"] td { background: var(--tint); }
.st-adopted { color: var(--ink); font-weight: 600; }
.fbar { display: grid; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fbar .chips + .chips { padding-top: 8px; border-top: 1px dashed var(--hair); }
