/* Small additions on top of the locked design CSS.
   Recused is a diamond plus the word, so the mark is not color alone. */
.mark-recused .mark-shape {
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

/* Home uses round 7 CSS, which has no per-section source line. */
.sec-sources {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 44em;
}
.sec-sources .lbl {
  font-weight: 650;
  letter-spacing: 0.04em;
  margin-right: 0.35em;
}

/* Locators: the frame has a real height. MapLibre's .maplibregl-map
   sets position:relative, which would collapse an inset box, so the
   map is pinned with a more specific rule. */
.locator-frame {
  position: relative;
  background: #eceae4;
  overflow: hidden;
}
.locator-frame.rail {
  width: 100%;
  aspect-ratio: 7 / 5;
  min-height: 220px;
}
.locator-frame.card {
  width: 160px;
  height: 114px;
  min-height: 114px;
}
.locator-fallback,
.locator-fallback svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
}
.locator-frame > .locator-map,
.locator-frame > .locator-map.maplibregl-map {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}
.locator-frame.is-live .locator-fallback { visibility: hidden; }
.precision-line {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted, #4a4a4a);
  max-width: 44em;
}
.locator-card .precision-line { font-size: 11.5px; }
.issue-card:has(> .locator-card) {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.up-item .locator-card { margin: 0 0 8px; }
.page-cite { color: var(--muted, #4a4a4a); }
.pin-teardrop {
  width: 18px;
  height: 18px;
  background: #171717;
  border: 2px solid #f7f6f3;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
/* Card locators are drawings, not controls. Pins on #map take clicks. */
.locator-card .pin-wrap { pointer-events: none; }
.ga-marker,
.ga-square {
  width: 96px;
  height: 96px;
  border: 2px dashed #171717;
  background: rgba(23, 23, 23, 0.08);
  box-sizing: border-box;
  flex: 0 0 96px;
}
.locator-fallback .ga-square {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -58%);
  z-index: 3;
}
.mark-word { white-space: nowrap; }
.agenda-heading h3 {
  margin: 18px 0 6px;
  color: var(--muted, #5c5852);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
}
.pin-wrap-area { display: flex; flex-direction: column; align-items: center; }
.pin-label-ga {
  margin-top: 4px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  font-weight: 650;
  color: #171717;
  background: rgba(247, 246, 243, 0.94);
  padding: 1px 5px 2px;
  line-height: 1.2;
  white-space: nowrap;
}

.page-home .last-updated {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.facts-row .value.gap {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

/* Slice 1: external links. The arrow shape is the cue, never color. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ext-nw { white-space: nowrap; }
.ext-mark {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.15em;
  vertical-align: baseline;
  color: currentColor;
  overflow: visible;
}

/* Slice 1: Development map. The static drawing is only a stand-in until the
   live map loads; then it is hidden and the map sits above it. */
.dev-map-block .map-overscan > .map { z-index: 1; }
.dev-map-block .locator-fallback { pointer-events: none; }
.dev-map-block.is-live .locator-fallback { display: none; }
.dev-map-block .map-failed { margin: 8px 0 0; }
.pin-button {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  pointer-events: auto;
}
.pin-button .pin,
.pin-button .pin-label { display: block; }
.pin-button:focus { outline: none; }
.pin-button:focus-visible { outline: 2px solid var(--ink, #171717); outline-offset: 2px; }
.case-popup { font-family: var(--sans); color: var(--ink, #171717); }
.case-popup-title { margin: 0 18px 4px 0; font-size: 14px; font-weight: 700; line-height: 1.3; }
.case-popup-title a { color: var(--ink, #171717); }
.case-popup-status { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink, #171717); }
.dev-map-block .maplibregl-popup-content { background: var(--raised, #ffffff); border: 1px solid var(--ink, #171717); border-radius: 0; padding: 10px 12px; box-shadow: none; }
.dev-map-block .maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 18px; color: var(--ink, #171717); }
.dev-map-block .maplibregl-popup-close-button:focus-visible { outline: 2px solid var(--ink, #171717); }
.page-development .rail-case { cursor: pointer; }

/* Slice 2: Issues page rule line and sort control. The current sort is
   shown by weight and underline plus aria-pressed, never color alone. */
.rule-line {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 44em;
}
.sort-bar { margin: -10px 0 18px; }
.sort-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
}
.sort-label { font-size: 14px; font-weight: 650; }
.sort-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 6px 0;
  margin: 0;
  min-height: 32px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.sort-btn[aria-pressed="true"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.sort-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sort-status { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* Slice 2: $200k spending floor. The words name the mode; the link is underlined. */
.spend-line { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.spend-line a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.spend-line a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.spend-when-on { display: none; }
.spend-scope.spend-on .spend-when-on,
html:not(.js-spend) .spend-scope:target .spend-when-on { display: inline; }
.spend-scope.spend-on .spend-when-off,
html:not(.js-spend) .spend-scope:target .spend-when-off { display: none; }
.spend-scope:not(.spend-on) .issue-card.is-smaller { display: none; }
html:not(.js-spend) .spend-scope:target .issue-card.is-smaller:not([hidden]) { display: block; }
.spend-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}
.rail-fn { font-size: 13px; }
.rail-fn .fn-num { font-weight: 650; }

/* Slice 3: browse by date. */
body:has(.date-jump) { overflow-x: clip; }
.jump-target { scroll-margin-top: calc(var(--jump-h, 52px) + 8px); }
.date-jump {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.4;
}
.date-jump a { color: var(--ink); text-decoration: none; }
.date-jump a:hover { text-decoration: underline; text-underline-offset: 3px; }
.date-jump a[aria-current="location"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.date-jump a:focus-visible,
.date-jump summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.date-jump ul { list-style: none; margin: 0; padding: 0; }
.date-jump .dj-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  padding: 8px 0;
}
.dj-year { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.dj-year > a { font-weight: 650; }
.dj-months { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; }
.dj-months li { display: inline-flex; align-items: baseline; }
.dj-sep { padding: 0 6px; color: var(--ink); }
.dj-earlier summary { cursor: pointer; font-weight: 650; }
.dj-earlier .dj-list { padding: 4px 0 0; }
.dj-top { margin-left: auto; display: none; }
.date-jump.dj-long .dj-wide .dj-top { display: list-item; }
.dj-wide-summary { display: none; }
.dj-narrow { display: none; }
.dj-viewing { display: none; }
@media (max-width: 719px) {
  .date-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 44px;
    gap: 0 12px;
  }
  .dj-wide { display: none; }
  .dj-narrow { display: block; }
  .dj-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 4px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
  }
  .dj-button::-webkit-details-marker { display: none; }
  .dj-viewing:not([hidden]) { display: block; margin: 0; font-size: 13px; color: var(--muted); }
  .dj-narrow[open] .dj-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--ink);
    padding: 4px 0 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 70vh;
    overflow-y: auto;
  }
  .dj-narrow .dj-year { padding: 2px 0; }
  .dj-narrow a,
  .dj-narrow .dj-earlier summary {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
  .dj-narrow .dj-top { display: list-item; margin-left: 0; }
}

/* Meetings: Recent grouped by year, then month. */
.meet-year-h {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 18px 0 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.meet-year:first-of-type .meet-year-h { border-top: 0; padding-top: 0; margin-top: 8px; }
.meet-month-h {
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.dev-map-block .maplibregl-popup { z-index: 3; }
#how-listed p + p { margin-top: 8px; }

/* Slice 3: issue timeline reads oldest to newest. Words ("Earlier", "Latest")
   carry the direction; arrows are aria-hidden decoration. */
.tl-frame { max-width: 44em; margin: 16px 0 6px; }
.tl-frame .steps-h { margin: 8px 0 0; max-width: none; }
.tl-ends {
  display: flex;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.tl-ends .tl-latest { margin-left: auto; }
.tl-latest-link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.js-tl .tl-latest-link { display: none; }
.tl-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.tl-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tl-row-end, .tl-phone-jump { display: none; }
#latest { scroll-margin-top: calc(var(--jump-h, 52px) + 8px); scroll-margin-left: 16px; }
@media (min-width: 720px) {
  .tl-frame.is-long .steps-h,
  .tl-frame.is-overflow .steps-h { flex-wrap: nowrap; width: max-content; }
  .tl-frame.is-long .steps-h > li,
  .tl-frame.is-overflow .steps-h > li { flex: 0 0 9em; margin-bottom: 0; }
  .tl-frame.is-long .steps-h > li:not(:last-child)::after,
  .tl-frame.is-overflow .steps-h > li:not(:last-child)::after { display: block; }
  .tl-frame.is-long .tl-scroll { padding-bottom: 8px; }
}
@media (max-width: 719.98px) {
  .tl-ends { display: none; }
  .tl-phone-jump { display: block; margin: 0 0 8px; font-size: 14px; }
  .tl-phone-jump a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
  .tl-scroll { overflow: visible; }
  .tl-frame .steps-h { flex-direction: column; flex-wrap: nowrap; }
  .tl-frame .steps-h > li {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    column-gap: 10px;
    text-align: left;
    padding: 0;
    margin: 0 0 12px;
    flex: none;
  }
  .tl-frame .steps-h > li::after { display: none; }
  .tl-frame .steps-h .step-dot { grid-column: 1; grid-row: span 2; margin: 2px 0 0; }
  .tl-frame .steps-h .when, .tl-frame .steps-h .what { grid-column: 2; }
  .tl-row-end {
    display: block;
    grid-column: 1 / -1;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    color: var(--ink);
  }
}

/* Slice 2: each timeline row links its record (doc and page). */
.tl-src { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tl-src .lbl { font-weight: 650; color: var(--ink); margin-right: 0.25em; }
.tl-src a { color: var(--ink); }
.whats-next { margin-top: 10px; }
