/* Common Record. The mocks are the bar: warm paper, compact ledger rows, one yellow highlighter for "being checked". */
:root {
  --blue: #1c3582; --sky: #bcd3ff; --paper: #f3f0e9; --sheet: #fbfaf6; --ground: #f1eee7; --band: #e9e6df;
  --ink: #16191b; --muted: #62676b; --rule: #e2ddd2; --hi: #ffe93b; --onblue: #f4f1ea;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --sans: "Public Sans", "Helvetica Neue", -apple-system, Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --gutter: 24px;
  --sheet-w: min(620px, calc(100vw - 24px));
  --card-top: 52svh;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button { font-family: inherit; }
.visually-hidden { position: absolute; left: -9999px; }

/* ---------- the map is the ground ---------- */
#map { position: fixed; inset: 0; background: var(--paper); touch-action: none; cursor: grab; }
#map.drag { cursor: grabbing; }
#map.over { cursor: pointer; }
#map { overflow: hidden; }
#map svg { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; display: block; }
#map #over { z-index: 2; inset: 0; left: 0; top: 0; width: 100%; height: 100%; }   /* the hover layer is screen-sized */
.maptip { z-index: 4; }
/* the canvases reach a quarter-screen past every edge (MARGIN in map_controller.js), so a pan moves land into view, not blank */
#map canvas { position: absolute; left: -25%; top: -25%; width: 150%; height: 150%; display: block; pointer-events: none; transform-origin: 0 0; }

/* Parcels, block hulls and neighborhood fills are painted on canvas (map_controller.js); these are the light SVG things above them. */
.close .area-label, .close .area-leader { opacity: 0; }
.area-leader { fill: none; stroke: var(--blue); stroke-opacity: .55; vector-effect: non-scaling-stroke; pointer-events: none; transition: opacity .25s; }
.area-leader.dot { fill: var(--blue); stroke: none; fill-opacity: .8; }
.area-label { font-family: var(--mono); font-weight: 700; font-size: calc(var(--u, 1) * 13px); letter-spacing: .14em; text-transform: uppercase; fill: var(--blue); paint-order: stroke; stroke: var(--sheet); stroke-width: calc(var(--u, 1) * 4px); stroke-linejoin: round; pointer-events: auto; cursor: pointer; text-anchor: middle; transition: opacity .25s; }
.area-label:hover { stroke: var(--hi); stroke-width: calc(var(--u, 1) * 11px); }   /* a yellow highlighter behind the name: it opens the neighborhood */
.close .area-label { pointer-events: none; }

/* what a click on the map would open, beside the cursor */
.maptip { position: absolute; left: 0; top: 0; pointer-events: none; display: grid; gap: 2px; max-width: 380px; padding: 6px 11px 7px; border-radius: 10px; background: var(--ink); color: var(--onblue); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55); will-change: transform; }
.maptip[hidden] { display: none; }
.maptip b { font: 600 13.5px/1.25 var(--sans); }
.maptip span { font: 400 12.5px/1.3 var(--sans); color: var(--onblue); opacity: .85; }
.maptip span em { font-style: normal; font-weight: 600; color: var(--hi); opacity: 1; white-space: nowrap; }
.street.c1, .street.c2 { fill: var(--ink); }
.outline { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.street { font-family: var(--mono); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); paint-order: stroke; stroke: var(--paper); pointer-events: none; }
.pinmark { pointer-events: none; }

/* ---------- top bar ---------- */
/* desktop: the wordmark on its own line, its letters on the search pill's left edge; the search below it, the lens row below that */
.top { position: fixed; z-index: 5; top: max(14px, env(safe-area-inset-top, 0px)); left: var(--gutter); right: var(--gutter); display: flex; flex-direction: column; gap: 6px; align-items: stretch; pointer-events: none; }
.top > .search { flex: none; width: 100%; max-width: 460px; }
@media (min-width: 761px) { body.has-sheet .top { right: calc(var(--sheet-w) + 2 * var(--gutter) + 12px); } }   /* the search never runs under the sheet */
.brand { pointer-events: auto; align-self: flex-start; margin-left: -8px; font: 700 21px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: transparent; color: var(--blue); padding: 6px 8px; border-radius: 3px; white-space: nowrap; text-decoration: none; text-shadow: 0 0 8px var(--paper), 0 0 3px var(--paper), 0 0 1px var(--paper); transition: background .12s; }
.home-btn { display: none; }
.brand:hover, .brand:focus-visible { background: var(--hi); color: var(--blue); text-shadow: none; outline: none; text-decoration: none; }
.search { pointer-events: auto; flex: 0 1 460px; min-width: 0; position: relative; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 12px 16px 12px 40px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 30px -12px rgba(28, 53, 130, .45); }
.search input:focus, .search input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--hi), 0 0 0 4.5px rgba(22, 25, 27, .18), 0 10px 30px -12px rgba(28, 53, 130, .45); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--muted); }
.search .msg { position: absolute; left: 16px; top: calc(100% + 8px); max-width: calc(100vw - 2 * var(--gutter) - 20px); font: 700 11px/1.3 var(--mono); color: var(--ink); background: var(--hi); padding: 4px 7px; border-radius: 3px; }

.zoom { position: fixed; z-index: 4; left: var(--gutter); bottom: var(--gutter); display: flex; flex-direction: column-reverse; gap: 6px; align-items: flex-start; }
.zoom button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 700 18px/1 var(--mono); cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); }
.zoom button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.key { font: 700 11px/1.35 var(--mono); background: #fff; color: var(--ink); padding: 8px 11px; border-radius: 10px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .4); max-width: min(340px, 60vw); display: flex; gap: 8px; align-items: center; }
.key:has(#keytxt:empty) { display: none; }
.key i { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); }

body { font-family: var(--sans); font-size: 14px; line-height: 1.45; }
a { color: var(--ink); }
#map { background-color: var(--band); }
.top > .search { max-width: 420px; }
.brand { font-size: 20px; }
.search input { font-family: var(--sans); font-size: 15px; padding: 11px 16px 11px 40px; }

/* ---------- the sheet: plain paper, right side ---------- */
.sheet { position: fixed; z-index: 3; top: 0; bottom: 0; right: 0; width: var(--sheet-w); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; background: var(--ground); box-shadow: 0 30px 60px -30px rgba(22, 25, 27, .45); }
.sheet-in { padding: 22px 24px 30px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.eyerow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.eyebrow { font: 700 11.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
a.eyebrow:hover { color: var(--blue); }
.asof { font: 11px/1.2 var(--mono); color: var(--muted); }
h1 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 62px; line-height: .86; overflow-wrap: break-word; }
h1.block { font-size: 54px; }
h1 span { display: block; font-size: .5em; line-height: 1.1; color: var(--blue); margin-top: .45em; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--rule); }
.tabs a { padding: 6px 0 8px; font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--blue); }
.box { background: var(--sheet); padding: 16px 18px; box-shadow: 0 8px 18px -14px rgba(22, 25, 27, .35); }
.box.tight { padding: 14px 18px; }
.box h2 { margin: 0 0 8px; font: 700 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.box a { color: var(--blue); }
.muted, .small { font-size: 11.5px; color: var(--muted); }
.small a { color: var(--blue); }
mark, .mark { background: var(--hi); color: var(--ink); padding: 0 4px; }

/* conditions: first period, latest period, trend */
.cond { display: grid; grid-template-columns: minmax(0, 1fr) 72px 72px 92px; gap: 0 12px; font-size: 13.5px; align-items: center; }
.cond .h { font: 10.5px/1.6 var(--mono); color: var(--muted); text-align: right; }
.cond .r { display: contents; }
.cond .r > * { padding: 7px 0; border-top: 1px solid var(--rule); }
.cond .r > .name { min-width: 0; }
.cond .r > .a { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cond .r > .b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.cond .r svg { display: block; }
.cond .name small { display: block; font-size: 11.5px; color: var(--muted); }
details.more { margin-top: 10px; }
details.more > summary { cursor: pointer; font: 600 13px/1.3 var(--sans); color: var(--blue); }
details.more h3 { margin: 12px 0 4px; font: 700 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; font-size: 13.5px; }
.kv > .v { font-variant-numeric: tabular-nums; text-align: right; }
.kv small { display: block; font-size: 11.5px; color: var(--muted); }
.link-more { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 600; }

/* the ledger table on the block page */
table.now { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.now th { text-align: left; font: 400 10.5px/1.6 var(--mono); color: var(--muted); }
table.now th:last-child, table.now td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.now td { padding: 8px 0; border-top: 1px solid var(--rule); vertical-align: baseline; padding-right: 12px; }
table.now td:first-child { font-weight: 600; white-space: nowrap; }
table.now td:last-child { padding-right: 0; }

/* pills */
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pills .lead { font: 700 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--muted); margin-right: 4px; }
.pills a { font: 600 12.5px/1 var(--sans); padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--blue); background: var(--sheet); color: var(--blue); text-decoration: none; }
.pills a[aria-pressed=true] { background: var(--blue); color: var(--onblue); }
.pills a:hover { background: var(--hi); color: var(--blue); }
.pills a[aria-pressed=true]:hover { background: var(--blue); color: var(--onblue); }

/* the timeline: a dated spine, icon nodes hanging off it, years as markers */
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 91px; top: 4px; bottom: 4px; width: 2px; background: var(--blue); opacity: .3; }
.tl .yr, .tl .it { display: grid; grid-template-columns: 62px 36px minmax(0, 1fr) auto; column-gap: 12px; }
.tl .yr { align-items: center; margin: 8px 0 2px; }
.tl .yr b { text-align: right; font: 800 17px/1 var(--display); color: var(--blue); }
.tl .yr i { justify-self: center; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); position: relative; }
.tl .it { padding: 8px 0; align-items: start; }
.tl .it .d { text-align: right; font: 11px/20px var(--mono); color: var(--muted); }
.tl .it .node { justify-self: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sheet); border: 1.5px solid var(--blue); display: flex; align-items: center; justify-content: center; position: relative; }
.tl .it .node.lit { background: var(--sky); }
.tl .it .node.chk { background: var(--hi); }
.tl .it .node svg { width: 14px; height: 14px; stroke: var(--blue); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tl .it .t { min-width: 0; overflow-wrap: anywhere; }
.tl .it .t b { font-weight: 700; }
.tl .it .sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tl .it .sub a { color: var(--blue); margin-left: 4px; }
.tl .it .t a.org { color: inherit; }
.tl .it .t a.org:hover { color: var(--blue); }
.tl .it .amt { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; font-weight: 700; }
.tl .it .amt.soft { font-weight: 400; color: var(--muted); }
.count-line { font-size: 12px; color: var(--muted); }
.btn { align-self: flex-start; display: inline-block; font: 600 14px/1.2 var(--sans); color: var(--blue); background: transparent; border: 1.5px solid var(--blue); border-radius: 999px; padding: 8px 16px; text-decoration: none; }
.btn:hover { background: var(--hi); color: var(--blue); }
.foot { font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 10px; }
.foot a { color: var(--blue); }
.foot p { margin: 0 0 6px; }
.lede { margin: 0; font-size: 14px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; }
.list li { padding: 7px 0; border-top: 1px solid var(--rule); font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; }
.list li:first-child { border-top: 0; }
.list small { color: var(--muted); }
.list a { color: var(--blue); }

/* home card: the same paper, in the corner */
.card { position: fixed; z-index: 3; right: var(--gutter); bottom: var(--gutter); width: min(400px, calc(100vw - 2 * var(--gutter))); padding: 18px 20px; display: grid; gap: 10px; background: var(--ground); box-shadow: 0 30px 60px -30px rgba(22, 25, 27, .45); }
.card h1 { font-size: 40px; }
.card p { margin: 0; font-size: 13.5px; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas a { display: inline-flex; gap: 6px; padding: 7px 12px 7px 13px; border: 1.5px solid var(--blue); border-radius: 999px; color: var(--blue); text-decoration: none; font: 600 13.5px/1 var(--sans); background: var(--sheet); }
.areas a::after { content: "›"; }
.areas a:hover { background: var(--hi); }
.msg { position: absolute; left: 16px; top: calc(100% + 8px); font: 700 11px/1.3 var(--mono); background: var(--hi); padding: 4px 7px; border-radius: 3px; }

/* phones: the map stays the ground, the sheet scrolls up over it */
@media (max-width: 760px) {
  html, body { height: auto; min-height: 100%; overflow-x: clip; }
  body { overflow-y: visible; }
  #map { position: fixed; inset: 0; height: 100lvh; }
  .sheet { position: relative; top: auto; bottom: auto; right: auto; width: auto; margin: var(--card-top) 0 0; overflow: visible; min-height: calc(100svh - 60px); }
  .sheet-in { padding: 18px 16px calc(28px + env(safe-area-inset-bottom, 0px)); }
  .top { left: 16px; right: 16px; }
  h1 { font-size: 48px; }
  h1.block { font-size: 40px; }
  .card { right: 16px; left: 16px; bottom: 16px; width: auto; }
  .cond { grid-template-columns: minmax(0, 1fr) 56px 56px 64px; gap: 0 8px; }
  .cond svg { width: 64px; }
  body.has-sheet .zoom { bottom: auto; left: auto; right: 16px; top: calc(var(--sheet-top, var(--card-top)) - 52px); flex-direction: row-reverse; transition: opacity .2s; }
  body.has-sheet.sheet-up .zoom { opacity: 0; pointer-events: none; }
}

/* pages with no map: about, errors */
.plain { max-width: 640px; margin: 0 auto; padding: 28px 20px 60px; display: flex; flex-direction: column; gap: 18px; }
.plain .brand { margin-left: 0; }
body.plain-page { overflow: auto; height: auto; background: var(--paper); }

/* passphrase page */
.unlock-page { overflow: auto; background: var(--blue); min-height: 100vh; }
.unlock { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box; }
.unlock-card { width: min(420px, 100%); padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px; box-sizing: border-box; background: var(--sheet); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.unlock-brand { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.unlock-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 44px; line-height: .9; margin: 4px 0 14px; color: var(--ink); }
.unlock-label { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.unlock-row { display: flex; gap: 8px; }
.unlock-input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink); }
.unlock-input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.unlock-go { font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 0; border-radius: 999px; padding: 0 20px; background: var(--blue); color: var(--onblue); cursor: pointer; }
.unlock-alert { margin: 2px 0 0; font: 700 12px/1.3 var(--mono); background: var(--hi); padding: 6px 9px; border-radius: 3px; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }

/* beta: one quiet marker beside the wordmark, at every width: a small inline pill, never a block in the column */
.brandrow { display: flex; flex-direction: row; align-items: center; gap: 10px; align-self: flex-start; width: auto; pointer-events: none; }
.brandrow .brand { align-self: auto; flex: none; }
.beta { flex: none; width: auto; align-self: center; pointer-events: auto; font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 999px; padding: 4px 8px; background: var(--sheet); text-decoration: none; white-space: nowrap; }
.beta:hover { background: var(--hi); color: var(--blue); text-decoration: none; }
.tl .it .sub .lk { font: 700 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 1px 5px; margin-right: 4px; }
.home-btn { display: none; }

/* narrow screens: the wordmark gives way to a round CR mark, the search takes the row, the beta pill stays beside it;
   the zoom controls leave the bottom (where the card sits) for the top right of the map */
@media (max-width: 760px) {
  .top { flex-direction: row; align-items: center; gap: 8px; }
  .brandrow { display: contents; }
  .brandrow .brand { display: none; }
  .home-btn { display: inline-grid; place-items: center; flex: none; pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blue); font: 700 14px/1 var(--mono); letter-spacing: .06em; text-decoration: none; box-shadow: 0 10px 30px -12px rgba(28, 53, 130, .45); order: 0; }
  .top > .search { order: 1; flex: 1 1 auto; max-width: none; width: auto; min-width: 0; }
  .beta { order: 2; }
  body:not(.has-sheet) .zoom { bottom: auto; left: auto; right: 16px; top: 74px; flex-direction: row-reverse; }
}

/* ---------- the time range: a ruler across the very top of every page ---------- */
:root { --range-h: 106px; --rb-bar: #1c3582; }
.rangebar { position: fixed; z-index: 7; top: 0; left: 0; right: 0; height: var(--range-h); padding: max(8px, env(safe-area-inset-top, 0px)) var(--gutter) 0; display: flex; flex-direction: column; gap: 4px; background: var(--sheet); border-bottom: 1.5px solid var(--blue); box-shadow: 0 14px 28px -22px rgba(28, 53, 130, .6); user-select: none; -webkit-user-select: none; }
.rb-head { display: flex; align-items: baseline; gap: 14px; min-height: 30px; }
.rb-label { margin: 0; font: 900 27px/1 var(--display); text-transform: uppercase; letter-spacing: .005em; white-space: nowrap; }
.rb-label mark { padding: 0 .16em; margin-left: .05em; background: var(--hi); box-shadow: 0 0 0 0 var(--hi); transition: box-shadow .25s; }
.rangebar.dragging .rb-label mark { box-shadow: 0 0 0 3px var(--hi); }
.rb-kicker { font: 700 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--blue); vertical-align: .22em; }
.rb-sub { margin: 0; flex: 1 1 auto; min-width: 0; font: 11px/1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-reset { flex: none; font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 999px; padding: 6px 11px; background: var(--sheet); text-decoration: none; }
.rb-reset:hover, .rb-reset:focus-visible { background: var(--hi); color: var(--blue); text-decoration: none; }
.rb-reset[hidden] { display: none; }
.rb-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; touch-action: pan-x; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overscroll-behavior-x: contain; }
.rb-scroll::-webkit-scrollbar { display: none; }
.rb-track { position: relative; height: 100%; min-width: 100%; cursor: crosshair; overflow: hidden; }
.rb-bars { position: absolute; left: 0; bottom: 16px; width: 100%; height: calc(100% - 16px); opacity: .34; pointer-events: none; }
/* a tick for every month, a longer one for every year, its label under it */
.rb-ticks { position: absolute; left: 0; bottom: 16px; width: 100%; height: 16px; pointer-events: none; }
.rb-years { position: absolute; inset: 0; pointer-events: none; }
.rb-year { position: absolute; bottom: 16px; width: 0; height: 12px; border-left: 1px solid rgba(22, 25, 27, .6); font-style: normal; }
.rb-year.major { height: 16px; border-left-color: var(--ink); }
.rb-year span { position: absolute; top: 17px; left: 0; transform: translateX(-50%); font: 700 10px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
/* the window: lit, with the ruler outside it stepped back */
.rb-earlier { position: absolute; left: 0; top: 2px; bottom: 15px; z-index: 1; padding: 0; border: 0; border-right: 1.5px dashed var(--blue); background: rgba(28, 53, 130, .07); color: var(--blue); font: 700 9.5px/1.1 var(--mono); letter-spacing: .02em; cursor: pointer; }
.rb-earlier:hover, .rb-earlier:focus-visible { background: var(--hi); }
.rb-earlier[hidden], .rb-fold[hidden] { display: none; }
.rb-fold { flex: none; font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: none; border: 0; border-bottom: 1px dotted var(--muted); padding: 3px 0; cursor: pointer; }
.rb-win { position: absolute; z-index: 2; top: 2px; bottom: 15px; background: rgba(188, 211, 255, .55); border: 2px solid var(--blue); border-radius: 6px; box-shadow: 0 0 0 100vmax rgba(251, 250, 246, .72); clip-path: inset(-2px -100vmax); cursor: grab; touch-action: none; transition: background .15s; }
.rb-win:focus-visible { outline: 3px solid var(--hi); outline-offset: 1px; }
.rangebar.dragging .rb-win { cursor: grabbing; background: rgba(188, 211, 255, .72); }
.rangebar.whole .rb-win { background: rgba(188, 211, 255, .3); border-style: dashed; }
.rb-grip { position: absolute; left: 50%; top: 50%; width: 22px; height: 8px; margin: -4px 0 0 -11px; background: repeating-linear-gradient(to right, var(--blue) 0 1.5px, transparent 1.5px 5px); opacity: .55; pointer-events: none; }
.rb-h { position: absolute; top: -2px; bottom: -2px; width: 18px; cursor: ew-resize; touch-action: none; display: grid; place-items: center; }
.rb-h-l { left: -11px; } .rb-h-r { right: -11px; }
.rb-h::after { content: ""; width: 8px; height: 22px; max-height: 80%; border-radius: 4px; background: var(--blue); border: 1.5px solid var(--sheet); box-shadow: 0 2px 6px -1px rgba(28, 53, 130, .55); transition: transform .12s, background .12s; }
.rb-h:hover::after, .rangebar.dragging .rb-h::after { transform: scaleY(1.12); }
.rb-h:focus-visible { outline: none; }
.rb-h:focus-visible::after { background: var(--ink); box-shadow: 0 0 0 3px var(--hi); }
/* waiting on the page: a slow shimmer along the bottom edge */
.rangebar.busy::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 3px; background: linear-gradient(90deg, transparent, var(--hi), transparent) 0 0 / 40% 100% no-repeat; animation: rb-busy 1s linear infinite; }
@keyframes rb-busy { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .rangebar.busy::after { animation: none; background: var(--hi); } }
.rangenote { color: var(--ink); background: rgba(255, 233, 59, .35); padding: 3px 7px; border-radius: 3px; display: inline-block; }
.cond .name small.inrange { color: var(--blue); }
.out { opacity: .38; }

/* everything fixed to the top steps down under the ruler */
.top { top: calc(var(--range-h) + 12px); }
.sheet { top: var(--range-h); }
#map, #fmap { top: var(--range-h); }

@media (max-width: 760px) {
  :root { --range-h: 100px; }
  .rangebar { padding-left: 16px; padding-right: 16px; --gutter: 16px; }
  .rb-label { font-size: 21px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .rb-kicker { display: none; }
  .rb-sub { display: none; }
  .rb-head { justify-content: space-between; gap: 8px; }
  .sheet { top: auto; }
  #map { height: calc(100lvh - var(--range-h)); }
  body:not(.has-sheet) .zoom { top: calc(var(--range-h) + 74px); }
  .rb-reset { padding: 7px 12px; }
}
@media (max-width: 400px) { .rb-label { font-size: 18px; } .rb-label mark { padding: 0 .1em; } }
