:root {
  --ink: #111111; --ink-soft: #1f1f1f; --muted: #555555; --dim: #888888; --rule: #e5e5e5;
  --paper: #ffffff; --paper-inset: #faf7f0; --paper-inset-border: #ece4d2;
  --accent: #8c2e1a; --good: #3d5c3d; --bad: #8c2e1a; --east: #1f4d54; --west: #c88a2f; --other: #7a6b55;
  --serif: Fraunces, Georgia, serif; --sans: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--sans); }
:lang(hi) body, body.hi { font-family: "Noto Sans Devanagari", var(--sans); }
body.hi h1, body.hi h2, body.hi .serif { font-family: "Noto Serif Devanagari", var(--serif); }
.deva { font-family: "Noto Sans Devanagari", var(--sans); }
a { color: var(--accent); }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--west); outline-offset: 2px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--paper); z-index: 5; }
.brand { font: 700 20px var(--serif); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 2px; }
.lang button { min-width: 44px; height: 36px; border: 0; background: var(--paper); font-weight: 600; font-size: 13px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

main { max-width: 640px; margin: 0 auto; padding: 20px 16px 32px; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
h1 { margin: 0; font: 600 30px/1.1 var(--serif); letter-spacing: -0.015em; }
h2 { margin: 28px 0 10px; font: 600 20px/1.2 var(--serif); }
h3 { margin: 18px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lede { margin: 8px 0 0; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.house { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: 2px; margin: 20px 0 16px; }
.house button { min-height: 52px; border: 0; background: var(--paper); font-weight: 600; font-size: 14px; line-height: 1.15; }
.house button small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }
.house button[aria-checked="true"] { background: var(--ink); color: var(--paper); }

label.field { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.search { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 2px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font: 400 17px var(--sans); background: transparent; }
body.hi .search input { font-family: "Noto Sans Devanagari", var(--sans); }
.results { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-top: 0; }
.results:empty { display: none; }
.results li + li { border-top: 1px solid var(--rule); }
.results a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; min-height: 56px; text-decoration: none; color: var(--ink); }
.results a:hover, .results a:focus { background: var(--paper-inset); }
.results .sub { display: block; font-size: 12px; color: var(--muted); }
.results .indent { padding-left: 28px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 12px; border: 1px solid var(--ink); background: var(--paper); border-radius: 2px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
.btn.alt { background: var(--paper-inset); border-color: var(--paper-inset-border); }
.btn.dark { background: var(--ink); color: var(--paper); }
.note { margin-top: 12px; padding: 10px 12px; background: var(--paper-inset); border: 1px solid var(--paper-inset-border); font-size: 13px; color: var(--ink-soft); }

.chip { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.chip.changed { color: var(--accent); } .chip.new { color: var(--east); } .chip.little_change, .chip.not_redrawn { color: var(--muted); }
.chip.abolished { color: var(--accent); text-decoration: line-through; }
.tag { display: inline-block; border: 1px solid var(--rule); padding: 0 6px; font-size: 12px; font-weight: 600; border-radius: 2px; color: var(--muted); }

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.seat-head h1 { font-size: 32px; }
.seat-head .meta { margin-top: 6px; color: var(--muted); font-size: 14px; }

.mapwrap { position: relative; margin: 16px -16px 0; background: var(--paper-inset); border-top: 1px solid var(--paper-inset-border); border-bottom: 1px solid var(--paper-inset-border); }
.mapbox { position: relative; }
.map { display: block; width: 100%; height: auto; max-height: 75vh; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.map .abroad { fill: #dcd8ce; }
.map .dfill { stroke: none; }
.map .dline { fill: none; stroke: #7d7462; stroke-width: 1.3; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.map .sline { fill: none; stroke: #3f3a30; stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.map .tgt { fill: transparent; cursor: pointer; }
.map .tgt:hover { fill: rgba(17, 17, 17, .06); }
.map .wash { fill: var(--east); fill-opacity: .22; }
.map .wash.old { fill: var(--accent); fill-opacity: .14; }
.map .gained { fill: url(#hatch-g); }
.map .lost { fill: url(#hatch); }
/* Seat boundaries: widths in screen pixels via --k so the drawing animation works */
.map .halo { fill: none; stroke: #fff; stroke-opacity: .9; stroke-width: calc(var(--k, 1) * 6px); stroke-linejoin: round; pointer-events: none; }
.map .nowline { fill: none; stroke: var(--ink); stroke-width: calc(var(--k, 1) * 3px); stroke-linejoin: round; pointer-events: none; }
.map .oldline { fill: none; stroke: var(--accent); stroke-width: calc(var(--k, 1) * 2.4px); stroke-dasharray: calc(var(--k, 1) * 7px) calc(var(--k, 1) * 4px); stroke-linejoin: round; pointer-events: none; }
.map .seg { fill: transparent; stroke: var(--ink); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 1 3; stroke-linecap: round; vector-effect: non-scaling-stroke; cursor: pointer; }
.map .seg:hover { fill: rgba(200, 138, 47, .18); }
.map .seg.on { fill: var(--west); fill-opacity: .4; stroke-opacity: 1; stroke-dasharray: none; stroke-width: 1.6; }
.map .dest { fill: var(--east); fill-opacity: .16; stroke: var(--east); stroke-width: 1.4; vector-effect: non-scaling-stroke; cursor: pointer; }
.map .dest:hover { fill-opacity: .3; }
/* Draw order: districts are there first, then 1976, then 2008, then what moved, then segments */
@media (prefers-reduced-motion: no-preference) {
  .map .a1 { animation: fadein .5s ease-out .25s both; }
  .map .a2 { animation: fadein .2s linear .9s both; }
  .map .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-in-out .9s forwards; }
  .map .a3 { animation: fadein .5s ease-out 2s both; }
  .map .a4 { animation: fadein .5s ease-out 2.5s both; }
}
@keyframes fadein { from { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.moves { margin: 10px 0 4px; font-size: 14px; }
.moves p { margin: 4px 0; }
.mk { display: inline-block; width: 14px; height: 10px; margin-right: 8px; border: 1px solid; vertical-align: 0; }
.mk.gained { border-color: var(--good); background: repeating-linear-gradient(-45deg, var(--good) 0 2px, rgba(61,92,61,.25) 2px 5px); }
.mk.lost { border-color: var(--bad); background: repeating-linear-gradient(45deg, var(--bad) 0 2px, rgba(140,46,26,.12) 2px 5px); }
.map text { font-family: var(--sans); paint-order: stroke; stroke: #fff; stroke-linejoin: round; pointer-events: none; }
.map .dlbl { font-size: calc(var(--k, 1) * 12px); stroke-width: calc(var(--k, 1) * 3px); fill: #4a4438; font-weight: 600; }
.map .dlbl.mine { font-size: calc(var(--k, 1) * 13.5px); fill: var(--ink); font-weight: 700; }
.map .slbl { font-size: calc(var(--k, 1) * 10.5px); stroke-width: calc(var(--k, 1) * 3px); fill: #857c6a; font-weight: 600; letter-spacing: .2em; }
.map .segno { font-size: calc(var(--k, 1) * 9.5px); stroke-width: calc(var(--k, 1) * 2.5px); fill: #555; font-weight: 600; }
.map .destlbl { font-size: calc(var(--k, 1) * 11px); stroke-width: calc(var(--k, 1) * 3px); fill: var(--east); font-weight: 700; font-style: italic; }
.map .farlbl { display: none; }
.map[data-far="1"] .farlbl, .map[data-far="2"] .farlbl { display: inline; }
.map .slbl.far.st { display: none; }
.map[data-far="2"] .slbl.far.st { display: inline; font-size: calc(var(--k, 1) * 10px); }
.map[data-far="2"] .dlbl.far { display: none; }
.map[data-far="2"] .labels > :not(.farlbl) { display: none; }
.map[data-far="2"] .lite .dline { stroke-opacity: .35; }
.zoom { position: absolute; right: 10px; bottom: 10px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper); border-radius: 2px; }
.zoom button { width: 40px; height: 40px; border: 0; background: var(--paper); font-size: 20px; line-height: 1; }
.zoom button + button { border-top: 1px solid var(--rule); }
.inset { position: absolute; left: 8px; top: 8px; width: 64px; background: rgba(255,255,255,.85); border: 1px solid var(--rule); padding: 3px; pointer-events: none; }
.inset svg { display: block; width: 100%; height: auto; }
.inset .ist { fill: #e4e0d6; stroke: #fff; stroke-width: .3; }
.inset .ibox { fill: rgba(140,46,26,.25); stroke: var(--accent); stroke-width: 1.2; }
.skeleton { aspect-ratio: 1/1; max-height: 70vh; width: 100%; background: #f2efe8; }

.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); border-radius: 2px; margin: 12px 0 8px; }
.seg3 button { min-height: 44px; border: 0; background: var(--paper); font-weight: 600; font-size: 14px; }
.seg3 button + button { border-left: 1px solid var(--ink); }
.seg3 button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.toggles label { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.toggles input { width: 20px; height: 20px; accent-color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 4px 0 0; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 18px; height: 12px; vertical-align: -1px; margin-right: 6px; border: 1px solid var(--ink); }
.legend .k-now { height: 0; border: 0; border-top: 3px solid var(--ink); vertical-align: 3px; }
.legend .k-then { height: 0; border: 0; border-top: 2.5px dashed var(--accent); vertical-align: 3px; background: none; }
.legend .k-old { height: 0; border: 0; border-top: 2.5px dashed var(--accent); vertical-align: 3px; }
.legend .k-seg { height: 0; border: 0; border-top: 2px dotted #777; vertical-align: 3px; }
.legend .k-dest { background: rgba(31,77,84,.14); border-color: var(--east); }
.legend .k-dist { height: 0; border: 0; border-top: 1px solid #a39a86; vertical-align: 3px; }
.legend .k-state { height: 0; border: 0; border-top: 2.5px solid #5c5548; vertical-align: 3px; }
.legend .k-gained { background: repeating-linear-gradient(-45deg, var(--good) 0 2px, rgba(61,92,61,.25) 2px 5px); border-color: var(--good); }
.legend .k-lost { background: repeating-linear-gradient(45deg, var(--bad) 0 2px, transparent 2px 5px); border-color: var(--bad); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 16px; }
.stats div { background: var(--paper); padding: 12px; }
.stats b { display: block; font: 600 22px/1.15 var(--serif); }
.stats span { font-size: 12px; color: var(--muted); }
table.ba { width: 100%; border-collapse: collapse; font-size: 14px; }
table.ba th, table.ba td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.ba th { font-size: 12px; color: var(--muted); font-weight: 600; }
table.ba td:first-child { color: var(--muted); width: 30%; }
.bar { display: flex; height: 14px; border: 1px solid var(--ink); margin: 8px 0; }
.bar span { display: block; height: 100%; }
.bar span + span { border-left: 2px solid #fff; }
ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { border-bottom: 1px solid var(--rule); }
ul.list a, ul.list .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 0; min-height: 48px; color: var(--ink); text-decoration: none; }
ul.list a:hover { background: var(--paper-inset); }
ul.list .n { color: var(--dim); font-variant-numeric: tabular-nums; min-width: 2.2em; display: inline-block; }
.swatch { display: inline-block; width: 10px; height: 10px; margin-right: 8px; }
.flag { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--west); background: var(--paper-inset); font-size: 13px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 2px; font-size: 14px; z-index: 10; }

.foot { max-width: 640px; margin: 0 auto; padding: 16px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }

/* Desktop: map stays on screen, the panel scrolls beside it */
@media (min-width: 1024px) {
  main { max-width: 1440px; padding: 24px 32px 40px; }
  main.home { max-width: 640px; }
  .seat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); gap: 32px; align-items: start; }
  .seat .mapcol { position: sticky; top: 72px; }
  .seat .mapwrap { margin: 0; border: 1px solid var(--paper-inset-border); }
  .seat .map { max-height: calc(100vh - 230px); }
  .seat .skeleton { aspect-ratio: 4/3; }
  .seat-head h1 { font-size: 40px; }
  .foot { max-width: 1440px; padding: 16px 32px; }
}

/* Zoomed out: all-India seat outlines and tap targets, under the labels */
.map .farseats { display: none; }
.map[data-far="1"] .farseats, .map[data-far="2"] .farseats { display: inline; }
.map .farseats .pcline { fill: none; stroke: #111; stroke-opacity: .28; stroke-width: 0.6; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.map[data-far="2"] .farseats .pcline { stroke-opacity: .18; stroke-dasharray: none; }
.map .farseats .tgt:hover { fill: rgba(140, 46, 26, .16); }
.map .labels { pointer-events: none; }

/* Home: the India map */
main.wide { max-width: 1240px; }
.hhead { max-width: 640px; }
.hgrid { display: grid; gap: 16px; margin-top: 12px; }
.indiamap { border: 1px solid var(--rule); background: #eef3f5; min-height: 300px; }
.map.india { max-height: none; cursor: grab; }
.map.india:focus { outline: none; }
.indiamap:has(.map:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.map.india .dfill.pick { cursor: pointer; }
.map.india .dfill.pick:hover { filter: brightness(.93); }
.map .dline.thin { stroke-width: .5; stroke-opacity: .7; }
.map[data-zin="1"] .dline.thin { stroke-width: .9; }
.map .pcline.home { fill: none; stroke: #111; stroke-opacity: 0; stroke-width: .7; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.map[data-zin="1"] .pcline.home { stroke-opacity: .3; }
.map .dsel { fill: rgba(17, 17, 17, .07); stroke: var(--ink); stroke-width: 2.4; vector-effect: non-scaling-stroke; pointer-events: none; }
.map .ssel { fill: rgba(140, 46, 26, .18); stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; pointer-events: none; }
.map.india .dlbl { display: none; font-size: calc(var(--k, 1) * 11px); }
.map.india[data-zin="1"] .dlbl, .map.india .dlbl.mine { display: inline; }
.map.india .dlbl.mine { font-size: calc(var(--k, 1) * 13px); }
.map.india .slbl { font-size: calc(var(--k, 1) * 9.5px); letter-spacing: .12em; }
.dcard { border-top: 2px solid var(--ink); padding-top: 10px; }
.dcard h2 { margin: 2px 0 4px; }
.dcard .list li.on a { background: var(--paper-inset); font-weight: 600; }
.dcard .keys { display: none; }
.hside { display: flex; flex-direction: column; gap: 12px; }
.search.small { height: 44px; border-width: 1px; }
@media (pointer: fine) { .dcard .keys { display: block; } }
@media (min-width: 1024px) {
  .hgrid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .hside { position: sticky; top: 12px; }
  .map.india { max-height: calc(100vh - 230px); min-height: 520px; }
}

/* Share */
.seat-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.sharebtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.sharebtn:hover { background: var(--ink); color: var(--paper); }
.sharebox { width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 16px; border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); overflow: auto; }
.sharebox::backdrop { background: rgba(17, 17, 17, .55); }
.sharehead { display: flex; justify-content: space-between; align-items: center; }
.sharehead h2 { margin: 0; font-size: 20px; }
.sharehead .x { width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; }
.sharecard { margin: 10px 0; min-height: 60px; background: var(--paper-inset); display: grid; place-items: center; }
.sharecard img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; }
.sharemsg { font-size: 14px; line-height: 1.45; margin: 0 0 12px; overflow-wrap: anywhere; }
.sharebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sharebtns .wide { grid-column: 1 / -1; }
.sharebtns .btn { min-height: 46px; }
.sharebtns .wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.sharebtns a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---- final version ---- */
:root { --dim: #6f6f6f; }
.map { touch-action: pan-y; }
.map:focus { outline: none; }
.mapbox:has(.map:focus-visible) { outline: 2px solid var(--ink); outline-offset: -2px; }
.map.noanim * { animation: none !important; }
.map.noanim .draw { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.mapreset { position: absolute; left: 10px; bottom: 10px; min-height: 36px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); font: 600 13px var(--sans); color: var(--ink); cursor: pointer; display: none; }
.map[data-zoomed="1"] ~ .mapreset { display: block; }
.maphint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); max-width: 80%; padding: 6px 12px; border-radius: 999px; background: rgba(17,17,17,.82); color: #fff; font-size: 13px; text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.maphint.on { opacity: 1; }
.zoom button { width: 44px; height: 44px; }

/* Seat head: name, verdict, share, one-line explainer */
.crumb a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.seat-head h1 { margin-top: 2px; }
.h1sub { font: 400 15px var(--sans); }
.verdict { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--paper-inset); }
.verdict.skel { border-left-color: var(--rule); }
.verdict.little_change, .verdict.not_redrawn, .verdict.whole, .verdict.o-continued { border-left-color: var(--muted); }
.verdict.new, .verdict.o-renamed, .verdict.o-merged, .verdict.o-split { border-left-color: var(--east); }
.verdict p { margin: 0; }
.vhead { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
body.hi .vhead { letter-spacing: 0; font-size: 14px; }
.verdict.little_change .vhead, .verdict.not_redrawn .vhead, .verdict.whole .vhead { color: var(--muted); }
.verdict.new .vhead { color: var(--east); }
.vbody { margin-top: 4px !important; font: 500 17px/1.45 var(--sans); color: var(--ink); }
.vresv { margin-top: 6px !important; font-size: 14px; color: var(--ink-soft); }
.headacts { display: flex; gap: 8px; margin-top: 12px; }
.sharebig { min-height: 46px; padding: 0 18px; }
.sharebig[disabled] { opacity: .5; }
.explain { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Compact legend */
.legend { gap: 4px 14px; font-size: 12.5px; }

/* Collapsible sections */
details.sec { border-top: 1px solid var(--rule); }
details.sec:last-of-type { border-bottom: 1px solid var(--rule); }
details.sec > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 14px 28px 14px 0; cursor: pointer; list-style: none; position: relative; min-height: 48px; box-sizing: border-box; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 22px/1 var(--sans); color: var(--muted); }
details.sec[open] > summary::after { content: "−"; }
.sec-t { font: 600 18px/1.2 var(--serif); }
body.hi .sec-t { font-family: "Noto Serif Devanagari", var(--serif); }
.sec-s { font-size: 13px; color: var(--muted); }
.sec-b { padding: 0 0 18px; }
.sec-b > :first-child { margin-top: 0; }
.panel > .note:first-child { margin-top: 0; }
.panel h3 { margin: 18px 0 6px; font-size: 15px; }
.panel { margin-top: 20px; }

/* Party strip */
.strip { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 8px 0 12px; }
.strip .era { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.strip .cell { display: flex; flex-direction: column; align-items: center; width: 34px; font-size: 10px; }
.strip .sw { width: 34px; height: 28px; border-radius: 2px; }
.strip .cell b { font-size: 9.5px; font-weight: 600; margin-top: 3px; max-width: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .cell small { color: var(--muted); }
.strip .brk { display: flex; align-items: flex-start; border-left: 2px dashed var(--accent); padding-left: 4px; }
.strip .brk span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; color: var(--accent); font-weight: 600; white-space: nowrap; height: 28px; overflow: visible; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
table.ba.small { font-size: 13px; }
table.ba td.num { text-align: right; white-space: nowrap; }
table.ba.small td:first-child { width: auto; }

/* Key-value facts */
.kvs { display: grid; gap: 10px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.kv span { font-size: 14px; color: var(--ink-soft); }
.kv b { font: 600 19px var(--serif); }
.kv small { grid-column: 1 / -1; font-size: 12.5px; }
.dblock + .dblock { margin-top: 14px; }
.dblock h4 { margin: 8px 0 4px; font-size: 15px; }

/* Home */
.finder { max-width: 640px; margin-top: 18px; }
.finder .two { margin-top: 10px; }
.maph { margin: 28px 0 8px; font-size: 18px; }
.locmsg:empty { display: none; }
.locmsg { margin: 8px 0 0; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.search:focus-within { outline: 3px solid var(--west); outline-offset: 2px; }
.results a:focus { outline: 2px solid var(--west); outline-offset: -2px; }
.filter { width: 100%; box-sizing: border-box; height: 44px; margin: 4px 0 8px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 2px; font: 400 16px var(--sans); }
.empty { padding: 32px 0; }
.empty .two, .empty .btn { margin-top: 16px; }
.skeleton.tall { aspect-ratio: auto; height: 70vh; }
.lang button { min-height: 44px; }
h1[tabindex="-1"]:focus { outline: none; }
.stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 400px) { .stats b { font-size: 18px; } }
.map .dest { fill-opacity: .28; stroke-width: 2; }
.legend .k-dest { background: rgba(31,77,84,.28); }
