/* Dataset tab — the record, queryable. Editorial like the analysis section:
   type and hairlines on white, no boxed chrome, brand green as the only accent,
   color reserved for stance (the analysis crimson/green). */
.panel-dataset { background: #ffffff; }
.ds-wrap {
  /* the panel hangs on the masthead's own rails — the brand and the nav
     define the page's left and right edges, so nothing protrudes past
     the wordmark — and starts a breath below it instead of grazing it */
  --rail: clamp(20px, 3.5vw, 56px);
  --crown: calc(clamp(18px, 3.2vh, 32px) + 78px);
  width: min(1720px, calc(100% - 2 * var(--rail)));
  margin: 0 auto;
  padding: var(--crown) 0 28px;
  display: grid;
  /* the open tab belongs to the record: comments and filters take the
     wide side (64) and the map keeps a working strip (36). Written as
     1fr/1.7778fr with a constant map track so the fr values interpolate
     into an actual glide instead of a hyperbolic pop. The 420px list
     floor keeps each row's name · role · government readable. */
  grid-template-columns: minmax(380px, 1fr) minmax(420px, 1.7778fr);
  gap: 30px;
  align-items: start;
  /* browsers that animate grid tracks glide the panel in; the rest snap */
  transition: grid-template-columns 0.45s cubic-bezier(0.3, 0.7, 0.2, 1),
    gap 0.45s cubic-bezier(0.3, 0.7, 0.2, 1);
}
/* the resting state: one full-bleed map. The comment list stays out of the
   room until the visitor clicks something on the map (or the corner toggle) */
.ds-wrap.map-full { grid-template-columns: minmax(380px, 1fr) minmax(0px, 0fr); gap: 0px; }
.ds-main { transition: opacity 0.3s ease 0.14s, visibility 0s; }
.ds-wrap.map-full .ds-main {
  visibility: hidden;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.14s ease, visibility 0s 0.14s;
}

/* ---------- the map pane ---------- */
.ds-mappane {
  position: sticky;
  top: var(--crown);
  height: calc(100svh - var(--crown) - 28px);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}
#ds-mapcanvas { display: block; touch-action: none; }
/* the "we looked" radar: outline dial, rotating wedge, a center blip.
   It takes the search bar's icon slot for the arrival beat, then the
   magnifier returns; the answer itself stays in the bar for good */
.ds-govfind .ds-radar {
  position: absolute;
  left: 12px;
  top: 50%;
  margin-top: -7.5px;
  width: 15px;
  height: 15px;
  border: 1.25px solid rgba(23, 34, 56, 0.32);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.ds-govfind .ds-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(193, 18, 31, 0.45), rgba(193, 18, 31, 0.06) 95deg, transparent 95deg);
  animation: ds-radar-sweep 1.6s linear infinite;
}
.ds-govfind .ds-radar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: #c1121f;
}
@keyframes ds-radar-sweep { to { transform: rotate(360deg); } }
.ds-govfind .ds-radar[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ds-govfind .ds-radar::before { animation: none; }
  .ds-map-tip { animation: none; }
}

/* a chosen state holds the stage alone; this pill names it, and its x
   brings the rest of the country back */
.ds-statepill {
  position: absolute;
  /* the centered gov finder owns the top band; the pill names the chosen
     states on the row below it */
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
  font: 650 15.5px/1.3 var(--body);
  letter-spacing: -0.01em;
  color: var(--ink);
  box-shadow: 0 8px 26px rgba(23, 34, 56, 0.08);
}
.ds-statepill span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* a flex item won't shrink past its text without this; the x must
     survive however many states the pill is asked to name */
  min-width: 0;
}
.ds-statepill button {
  flex: none;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #eceee9;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}
.ds-statepill button:hover { background: #e2e5df; color: var(--ink); }

/* basemap credit, only while tiles are on the ground */
.ds-attrib {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font: 500 10px/1 var(--body);
  color: rgba(23, 34, 56, 0.42);
  background: rgba(255, 255, 255, 0.65);
  padding: 3px 7px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.ds-attrib.on { opacity: 1; }

/* sonar rings under the pin the moment the town resolves */
.ds-pingwrap { position: absolute; top: 0; left: 0; pointer-events: none; }
.ds-pingwrap i {
  position: absolute;
  top: -36px;
  left: -36px;
  width: 72px;
  height: 72px;
  border: 1.5px solid rgba(23, 34, 56, 0.55);
  border-radius: 50%;
  opacity: 0;
  animation: ds-ping 1.35s cubic-bezier(0.2, 0.6, 0.35, 1) forwards;
}
.ds-pingwrap i:nth-child(2) { animation-delay: 0.24s; }
.ds-pingwrap i:nth-child(3) { animation-delay: 0.48s; }
@keyframes ds-ping {
  0% { transform: scale(0.1); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0; }
}

/* find a government: a quiet pill top-center, suggestions on paper. Once
   the visitor's town is known the bar holds the answer for good —
   "Near Petaluma, CA" — and clicking it clears the slate to search anew */
/* the translateX makes this a stacking context, which traps the list's
   own z-index inside — so the whole finder outranks the state pill (a
   transformed sibling) or the pill's text paints through the popover */
.ds-govfind { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: min(300px, 60%); z-index: 5; }
.ds-govfind .ds-q-ico { left: 12px; width: 15px; height: 15px; }
.ds-govfind input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  padding: 9px 15px 9px 34px;
  font: 450 13.5px/1.2 var(--body);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(23, 34, 56, 0.07);
  outline: none;
  text-overflow: ellipsis;
}
.ds-govfind input::placeholder { color: var(--ink-faint); }
/* the resting bar is a button first: hovering says "clickable", and the
   click opens a blank slate (the focus handler clears the statement) */
.ds-govfind input:not(:focus) { cursor: pointer; }
.ds-govfind:hover input:not(:focus) {
  border-color: #9dabbc;
  box-shadow: 0 6px 20px rgba(23, 34, 56, 0.14);
}
.ds-govfind input:focus { border-color: #9dabbc; }
/* the statement's first word sits outside the editable text, so a click
   selects only the place and typing replaces just that */
.ds-gf-near {
  display: none;
  position: absolute;
  left: 34px;
  top: 50%;
  transform: translateY(-50%);
  font: 650 13.5px/1.2 var(--body);
  letter-spacing: -0.01em;
  color: var(--ink);
  pointer-events: none;
  z-index: 2;
}
.ds-govfind.has-near .ds-gf-near { display: block; }
.ds-govfind.has-near input { padding-left: 70px; font-weight: 500; }
.ds-govfind-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(23, 34, 56, 0.12);
  overflow: hidden;
  padding: 4px;
  /* a popover outranks the pane's standing chrome: the stepped-down
     state pill shares this band and must not paint over the rows */
  z-index: 4;
}
.ds-govfind-list button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  border-radius: 8px;
  padding: 8px 11px;
  font: 450 13.5px/1.25 var(--body);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.ds-govfind-list button b { font: 500 11.5px/1 var(--mono); color: var(--ink-faint); }
.ds-govfind-list button:hover, .ds-govfind-list button.on { background: #f0f2f5; }
.ds-govfind-none { padding: 9px 11px; font: 450 13px/1.35 var(--body); color: var(--ink-faint); }
.ds-mapctl {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ds-mapctl button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: 650 16px/1 var(--body);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(23, 34, 56, 0.07);
}
.ds-mapctl button:hover { border-color: #b7b19e; }
/* the list toggle: the one dark chip on the map, top right — inked so it
   reads as the door to the other half of the tab, not another zoom nub */
.ds-expand {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(23, 34, 56, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-expand svg { width: 15px; height: 15px; }
/* the glyph names what the click brings: panel away, a funnel invites
   the filters in; panel up, a map promises the ground back */
.ds-expand .ico-filter { display: none; }
.ds-wrap.map-full .ds-expand .ico-filter { display: block; }
.ds-wrap.map-full .ds-expand .ico-map { display: none; }
.ds-expand:hover { opacity: 0.85; }
.ds-youpin { position: absolute; left: 0; top: 0; pointer-events: none; }
.ds-youpin::before {
  content: "";
  position: absolute;
  left: -5.5px;
  top: -5.5px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--ink);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--ink);
}
.ds-youpin::after {
  content: "";
  position: absolute;
  left: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  animation: ds-youping 2.8s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) { .ds-youpin::after { animation: none; opacity: 0; } }
@keyframes ds-youping {
  0% { transform: scale(0.45); opacity: 0.55; }
  75% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
/* The hover card is the hero's card, verbatim construction: borderless
   white on an 8px rhythm, 16px radius, layered whisper shadow, the title
   face at UI sizes. The border carries the stance color, set in JS. */
.ds-map-tip {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 32px rgba(19, 23, 17, 0.10), 0 2px 8px rgba(19, 23, 17, 0.07);
  padding: 15px 20px 16px;
  color: #131711;
  font-family: "Forma DJR Text", "Switzer", var(--display, var(--body));
  /* max-content: shrink-to-fit would cap the card at the room left of a
     stale `left`, wrapping it into a column near the pane's right edge */
  width: max-content;
  max-width: 340px;
  animation: tip-in 0.14s cubic-bezier(0.53, 0.2, 0.04, 0.96) backwards;
}
.ds-map-tip .t-name { font-size: 18px; font-weight: 560; line-height: 1.15; }
.ds-map-tip .t-gov { margin-top: 4px; font-size: 16.5px; font-weight: 400; line-height: 1.25; letter-spacing: 0.002em; color: #131711; }
.ds-map-tip .t-fact { margin-top: 6px; font-size: 15px; font-weight: 400; line-height: 1.3; letter-spacing: 0.002em; color: #131711; opacity: 0.82; }

/* ---------- search + filters ---------- */
.ds-topbar { display: flex; gap: 10px; align-items: stretch; margin-bottom: 18px; }
.ds-topbar .ds-search { flex: 1; margin-bottom: 0; }
.ds-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #cfcaba;
  border-radius: 9px;
  background: #ffffff;
  padding: 0 16px;
  font: 650 15px var(--body);
  color: var(--ink);
  cursor: pointer;
}
.ds-filters-btn:hover { border-color: var(--ink); }
.ds-filters-btn svg { width: 16px; height: 16px; }
.ds-filters-btn span {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font: 700 12px/20px var(--mono);
  text-align: center;
}

/* the filters drawer */
.ds-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  width: min(360px, 92vw);
  background: #ffffff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(23, 34, 56, 0.14);
  padding: 18px 22px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(0.3, 0, 0.2, 1);
}
.ds-drawer.open { transform: none; }
.ds-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 750 17px var(--body);
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 4px;
}
.ds-drawer-head button {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 2px 6px;
}
.ds-drawer-head button:hover { color: var(--ink); }
.ds-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 129;
  background: rgba(19, 23, 17, 0);
  transition: background 0.3s ease;
}
.ds-drawer-scrim.open { background: rgba(19, 23, 17, 0.22); }

.ds-search { position: relative; margin-bottom: 22px; }
.ds-search input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cfcaba;
  border-radius: 9px;
  padding: 13px 38px 13px 42px;
  font: 500 16px/1.3 var(--body);
  color: var(--ink);
  letter-spacing: -0.005em;
}
.ds-q-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--ink-faint);
  pointer-events: none;
  /* the govfind input's backdrop blur makes it a stacking context that
     paints over an unranked sibling; the icon must sit above the glass */
  z-index: 2;
}
.ds-search input:focus { outline: none; border-color: var(--ink); }
.ds-search input::placeholder { color: var(--ink-faint); }
.ds-search-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--room-up);
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: none;
}
.ds-search.has-q .ds-search-clear { display: block; }
.ds-search-state {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 11px var(--mono);
  color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 2px 2px 6px;
  white-space: nowrap;
}

.ds-facet { border-top: 1px solid var(--line); padding: 15px 0 13px; }
.ds-facet:first-of-type { border-top: 0; }
.ds-facet-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: none;
  padding: 2px 2px;
  cursor: pointer;
  font: 650 13.5px/1.2 var(--body);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ds-facet-h .ds-chev {
  color: var(--ink-faint);
  transition: transform 0.16s ease;
  font-size: 10px;
}
.ds-facet[data-open] .ds-chev { transform: rotate(180deg); }
.ds-facet-body { display: none; padding-top: 8px; }
.ds-facet[data-open] .ds-facet-body { display: block; }

.ds-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  border: 0;
  background: none;
  padding: 5.5px 2px;
  cursor: pointer;
  font: 500 15px/1.4 var(--body);
  color: var(--ink);
  text-align: left;
}
.ds-opt:hover { color: var(--ink); }
.ds-opt:hover .ds-n { color: var(--ink-dim); }
.ds-opt.on { color: var(--ink); font-weight: 700; }
.ds-opt .ds-mark {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--caption);
  flex: none;
  display: none;
}
.ds-opt.on .ds-mark { display: block; }
.ds-opt .ds-lab { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-opt .ds-n {
  font: 400 13px var(--mono);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.ds-opt.on .ds-n { color: var(--caption); font-weight: 600; }
.ds-opt[disabled] { opacity: 0.35; cursor: default; }
.ds-opt .ds-sdot { width: 9px; height: 9px; border-radius: 999px; flex: none; }

.ds-more {
  border: 0;
  background: none;
  padding: 6px 2px 2px;
  cursor: pointer;
  font: 650 13.5px var(--body);
  color: var(--caption);
}
.ds-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.ds-facet-scroll { max-height: 272px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ds-minifind {
  width: 100%;
  margin: 2px 0 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 6px 2px;
  font: 500 14px var(--body);
  color: var(--ink);
}
.ds-minifind:focus { outline: none; border-bottom-color: #a8a291; }
.ds-minifind::placeholder { color: var(--ink-faint); }

/* ---------- results ---------- */
.ds-main {
  min-width: 0;
  /* the list column fills the same band as the map pane, and the window
     flexes to absorb however tall the count line and chips actually run —
     so the page itself never scrolls. min-height, not height: when the
     window's 480px floor binds on short screens the column must grow past
     the map pane, or the sticky pane loses its travel and scrolls away */
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--crown) - 28px);
}
.ds-head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; padding-bottom: 14px; }
.ds-count { font: 750 26px/1.15 var(--body); color: var(--ink); letter-spacing: -0.02em; }
.ds-count b { font-variant-numeric: tabular-nums; font-weight: 800; }
.ds-count span { color: var(--ink-dim); font-weight: 500; font-size: 16.5px; letter-spacing: -0.005em; }
.ds-head-spacer { flex: 1; }

.ds-view { display: inline-flex; gap: 18px; }
.ds-view button {
  border: 0;
  background: none;
  padding: 4px 0;
  font: 650 15px var(--body);
  color: var(--ink-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.ds-view button:hover { color: var(--ink-dim); }
.ds-view button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--caption); }

.ds-dd { position: relative; }
.ds-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 4px 0;
  font: 650 15px var(--body);
  color: var(--ink-dim);
  cursor: pointer;
}
.ds-dd-btn:hover { color: var(--ink); }
.ds-dd-btn .ds-chev { font-size: 9px; color: var(--ink-faint); }
.ds-dd-list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  min-width: 160px;
  background: var(--room);
  border: 1.5px solid #a8a291;
  border-radius: 11px;
  box-shadow: 0 18px 50px rgba(23, 34, 56, 0.13);
  padding: 6px;
  display: none;
}
.ds-dd[data-open] .ds-dd-list { display: block; }
.ds-dd-list button {
  all: unset;
  display: block;
  width: calc(100% - 24px);
  padding: 9px 12px;
  border-radius: 7px;
  font: 550 14.5px var(--body);
  color: var(--ink);
  cursor: pointer;
}
.ds-dd-list button:hover { background: #f2f0e8; }
.ds-dd-list button.on { background: #eef4ea; font-weight: 700; }


.ds-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 4px 0 16px; }
.ds-chips .chip {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  font: 650 14px/1 var(--body);
  padding: 7px 8px 7px 14px;
}
.ds-chips .chip button {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  width: 20px;
  height: 20px;
  font-size: 12px;
}
.ds-chips .chip button:hover { background: rgba(255, 255, 255, 0.45); color: #ffffff; }
.ds-chips .chip-clear {
  color: var(--ink);
  font: 750 14px var(--body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ds-chips .chip-clear:hover { color: #c1121f; }

.ds-window {
  border-top: 2px solid var(--ink);
  flex: 1 1 0;
  min-height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.ds-window::-webkit-scrollbar { width: 8px; }
.ds-window::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.ds-row {
  padding: 22px 10px 20px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.ds-row:hover { background: #f7f5ec; }
.ds-row.playing { background: #eef4ea; }
.ds-row:focus-visible { outline: 2px solid var(--caption); outline-offset: -2px; }

.ds-q {
  font: 400 19px/1.62 var(--body);
  color: var(--ink);
  letter-spacing: -0.008em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ds-q mark { background: #116911; color: #ffffff; border-radius: 2px; padding: 0 2px; }

.ds-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  font: 500 15px/1.35 var(--body);
  color: var(--ink);
  white-space: nowrap;
}
.ds-meta .ds-nm { font: 750 16px/1.35 var(--body); letter-spacing: -0.008em; }
.ds-meta .ds-nm.no { color: #c1121f; }
.ds-meta .ds-nm.yes { color: #116911; }
.ds-meta .ds-nm.inquiry { color: #2d72d2; }
.ds-meta .ds-mplace { font: 750 16px/1.35 var(--body); letter-spacing: -0.008em; }
.ds-meta .ds-date { font-weight: 550; }
.ds-sep { color: #cfcaba; }
.ds-read {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 0 2px;
  font: 700 14px var(--body);
  color: var(--caption);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ds-row:hover .ds-read, .ds-read:focus-visible, .ds-row:has(.ds-full) .ds-read { opacity: 1; }
@media (hover: none) { .ds-read { opacity: 1; } }
.ds-read:hover { text-decoration: underline; text-underline-offset: 3px; }
.ds-full {
  margin-top: 14px;
  font: 400 17px/1.7 var(--body);
  color: var(--ink);
  cursor: auto;
}
.ds-full p { margin: 0 0 13px; }
.ds-full p:last-child { margin-bottom: 0; }
.ds-full mark { background: #116911; color: #ffffff; border-radius: 2px; padding: 0 2px; }
.ds-full .ds-other { color: var(--ink-dim); }
.ds-other-label {
  font: 600 12.5px var(--body);
  color: var(--ink-faint);
  margin-right: 6px;
}
.ds-full .ds-pause { font: 400 12.5px var(--mono); color: var(--ink-faint); }
.ds-meta > span, .ds-meta > b { overflow: hidden; text-overflow: ellipsis; }
/* only the name and place may truncate; a date sliced to "Fe…" or a
   distance to "2,08…" reads as data corruption in a narrow list */
.ds-meta > .ds-date, .ds-meta > .ds-dist, .ds-meta > .ds-sep { flex: none; }

/* the rail's heat scale */
.ds-scale { display: inline-flex; gap: 3px; align-items: center; flex: none; }
.ds-scale i { width: 4.5px; height: 4.5px; border-radius: 999px; background: #e4e1d4; }
.ds-scale i.f { background: #131711; opacity: 0.5; }

.ds-mhead {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 6px 11px 2px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.ds-mhead h3 { margin: 0; font: 800 16px/1.25 var(--body); color: var(--ink); letter-spacing: -0.015em; }
.ds-mhead .ds-mmeta { font: 500 13.5px var(--body); color: var(--ink-dim); }
.ds-mhead .ds-mbar { display: inline-flex; align-self: center; height: 7px; border-radius: 99px; overflow: hidden; width: 88px; }
.ds-mhead .ds-mbar i { display: block; height: 100%; }
.ds-mhead .ds-mspacer { flex: 1; }
.ds-mhead button {
  border: 0;
  background: none;
  font: 700 13.5px var(--body);
  color: var(--caption);
  cursor: pointer;
}
.ds-mhead button:hover { text-decoration: underline; text-underline-offset: 3px; }

.ds-empty { padding: 70px 24px; text-align: center; color: var(--ink-dim); font: 500 16px/1.6 var(--body); }
.ds-empty b { color: var(--ink); font-weight: 750; }
.ds-foot { padding: 18px 4px 6px; font: 400 12.5px var(--mono); color: var(--ink-faint); }

/* stance is three-way (unclear rows are dropped from the site at export) */
.ds-sdot.no, .ds-mbar i.no { background: #c1121f; }
.ds-sdot.yes, .ds-mbar i.yes { background: #116911; }
.ds-sdot.inquiry, .ds-mbar i.inquiry { background: #2d72d2; }

/* nearest-you sort */
.ds-dd-list button[hidden] { display: none; }
.ds-meta .ds-dist { font: 500 13px var(--mono); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ds-mhead .ds-dist { font: 500 12px var(--mono); color: var(--ink-faint); }

@media (max-width: 980px) {
  .ds-wrap, .ds-wrap.map-full { grid-template-columns: 1fr; gap: 18px; }
  /* clear the fixed frosted masthead (brand + tabs) that content scrolls under */
  .ds-wrap { padding-top: calc(clamp(18px, 3.2vh, 32px) + 116px); }
  /* phones keep their QA'd geometry: fixed rails, viewport-tied window */
  .ds-wrap, .ds-wrap.map-full { width: calc(100% - 48px); }
  .ds-main { display: block; min-height: 0; }
  /* the stacked phone layout always shows the list; map-full is a desktop idea */
  .ds-wrap.map-full .ds-main { visibility: visible; opacity: 1; overflow: visible; }
  .ds-window { height: max(480px, calc(100svh - 226px)); }
  .ds-mappane { position: relative; top: 0; height: 46svh; min-height: 320px; }
  .ds-expand { display: none; }
  .ds-meta { flex-wrap: wrap; white-space: normal; }
  .ds-govfind { width: min(280px, 62%); }
}
