/* How far is it in Zurich? — minimal: one white column, hairlines instead of boxes, a single accent (Zürich blue,
   Stadt Zürich corporate blue); colour is kept for the map and the data. */

:root {
  --blue: #0f05a0;
  --blue-hover: #0b0478;
  --blue-soft: #ecebfa;
  --blue-ring: rgba(15, 5, 160, 0.28);
  --ink: #1f2128;
  --ink-soft: #4a4d57;
  --muted: #8a8d96;
  --faint: #b6b8bf;
  --ground: #ffffff;
  --frame: #ffffff;
  --card: #f5f6f8;
  --white: #ffffff;
  --ring: #e3e4e8;
  --ring-strong: #d6d8de;
  --dash: #dfe0e4;
  --radius: 0;
  --radius-sm: 0;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--ground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: var(--blue);
  text-decoration-color: var(--blue-ring);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-color: var(--blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

/* --- Frame ------------------------------------------------------------------ */

.frame {
  max-width: 1160px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--frame);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 0;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar-links a {
  padding: 4px 10px;
  border-radius: 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
}

.topbar-links a:hover {
  background: var(--card);
  color: var(--ink);
}

.topbar-links .topbar-pill {
  color: var(--ink);
  font-weight: 500;
}

.topbar-links .github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-links .github-link {
  padding: 5px 7px;
}

.page {
  padding: 0 24px 48px;
}

/* --- Hero --------------------------------------------------------------------- */

.hero {
  padding: 48px 0 32px;
  text-align: center;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 15px;
}

.lede + .lede {
  margin-top: 12px;
}

/* --- Buttons and controls -------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ring);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.15s, background-color 0.15s;
}

.button:hover {
  box-shadow: 0 0 0 1px var(--ring-strong);
}

.button.primary {
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  color: var(--white);
}

.button.primary:hover {
  background: var(--blue-hover);
}


.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ring);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.icon-button[hidden] {
  display: none;
}

.icon-button:hover {
  color: var(--blue);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.link-button:hover {
  color: var(--blue);
}

/* Segmented: a grey track, the active item white with a hairline ring and Zürich-blue text. */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  border-radius: 0;
  background: #e9eaed;
}

.segmented button {
  padding: 3px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button[aria-pressed="true"] {
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ring);
  color: var(--blue);
}

.chip-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.chip-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-toggle span {
  padding: 3px 10px;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ring);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: box-shadow 0.15s, color 0.15s, background-color 0.15s;
}

.chip-toggle span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 0;
  background: var(--faint);
  vertical-align: middle;
}

.chip-toggle input:checked + span {
  box-shadow: 0 0 0 1px var(--blue-ring);
  color: var(--blue);
}

.chip-toggle input:checked + span::before {
  background: var(--blue);
}

.chip-toggle input:disabled + span {
  cursor: default;
}

.chip-toggle input:focus-visible + span {
  box-shadow: 0 0 0 2px var(--blue);
}

input[type="range"] {
  width: 140px;
  accent-color: var(--blue);
}

output {
  min-width: 48px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}

/* --- Blocks ------------------------------------------------------------------------ */

.block {
  margin: 0 -24px;
  padding: 40px 24px;
}

.block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 14px;
}

.block-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.block-desc {
  color: var(--muted);
}

.card,
.map-card {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ring);
}

.card {
  padding: 16px 18px;
}

.map-card {
  padding: 6px;
}

/* --- Map ----------------------------------------------------------------------------- */

.map-stage {
  position: relative;
  height: min(76vh, 720px);
  min-height: 460px;
  overflow: hidden;
  border-radius: 0;
  background: #eef0f3;
  box-shadow: 0 0 0 1px var(--ring);
}

.map-stage:fullscreen {
  border-radius: 0;
}

#mapCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

#mapCanvas.panning {
  cursor: grabbing;
}

#mapCanvas.over-marker {
  cursor: grab;
}

.noscript {
  padding: 24px;
  color: var(--muted);
}

.trip-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: min(330px, calc(100% - 64px));
  max-height: calc(100% - 24px);
  overflow: auto;
  padding: 14px 16px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px var(--ring);
}

.trip-panel p {
  margin: 0;
}

.trip-eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trip-from,
.trip-to {
  font-weight: 500;
  letter-spacing: -0.015em;
}

.trip-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ring);
}

.trip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trip-duration {
  margin: 6px 0 8px !important;
  color: var(--blue);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.trip-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}

.trip-steps li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 8px;
  color: var(--ink-soft);
}

.trip-steps .badge,
.years-table .badge {
  display: inline-block;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.trip-steps .walk {
  background: var(--card);
}

.trip-steps .minutes {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.trip-from-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--ring);
  color: var(--muted);
  font-size: 12px;
}

.trip-hint {
  margin-top: 8px !important;
  color: var(--muted);
  font-size: 12.5px;
}

.map-buttons {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  gap: 6px;
}

.legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  width: 220px;
  padding: 8px 10px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 1px var(--ring);
}

.legend-bar {
  height: 6px;
  border-radius: 0;
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

.controls {
  display: grid;
  padding: 4px 10px 4px;
}

/* Two rows: what the map computes (content), then how it looks (display). */
.controls-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 8px 12px;
  padding: 10px 0;
}

.controls-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.controls-row + .controls-row {
  border-top: 1px dashed var(--dash);
}

.controls-title {
  padding-top: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.table-details {
  margin-top: 8px;
  border-top: 1px solid var(--ring);
  border-bottom: 0;
}

.table-details summary {
  padding: 10px 0 6px;
  font-size: 12.5px;
}

.table-details .expander-body {
  font-size: 12.5px;
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.control-group.actions {
  margin-left: auto;
}

.control-label {
  margin-right: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.year-note {
  color: var(--muted);
  font-size: 12px;
}

.bike-mode .transit-only {
  opacity: 0.4;
  pointer-events: none;
}

/* --- Tables, stats, notes ------------------------------------------------------------- */

.reach {
  margin: 0 0 10px;
  color: var(--ink-soft);
}

.reach-share {
  color: var(--blue);
  font-size: 1.35em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  padding: 6px 8px;
  border-bottom: 1px solid var(--ring);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: left;
}

.data-table td {
  padding: 8px;
  border-bottom: 1px solid var(--ring);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.reach-counts td:not(:first-child),
.reach-counts th:not(:first-child) {
  text-align: right;
}

.years-table tr.current td {
  color: var(--blue);
  font-weight: 600;
}

.year-bar {
  display: block;
  max-width: 160px;
  height: 4px;
  margin-top: 5px;
  border-radius: 0;
  background: var(--blue);
}

.table-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.stat {
  display: grid;
  gap: 2px;
  padding: 14px 0 0;
  border-top: 1px solid var(--ring);
}

.stat strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.stat span {
  color: var(--ink-soft);
  font-size: 12.5px;
}

/* Easter egg: the farthest stop's tile turns over to the runner-up. */
.stat-egg {
  cursor: help;
  outline: none;
}

.stat-face {
  display: grid;
  gap: 2px;
}

.stat-egg-face,
.stat-egg:hover .stat-face:first-child,
.stat-egg:focus-visible .stat-face:first-child {
  display: none;
}

.stat-egg:hover .stat-egg-face,
.stat-egg:focus-visible .stat-egg-face {
  display: grid;
  animation: egg-in 0.25s ease-out;
}

@keyframes egg-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* --- The network over time: the overall trend ------------------------------------------ */

.trend-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trend-stat {
  gap: 8px;
}

.trend-period {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.trend-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.trend-pair > div {
  display: grid;
}

.trend-grid .trend-pair strong {
  font-size: 28px;
  line-height: 1.1;
}

.trend-pair span {
  color: var(--ink-soft);
  font-size: 12px;
}

.trend-note {
  margin: 10px 0 28px;
  color: var(--muted);
  font-size: 12.5px;
}

/* --- Reach from everywhere: hexagon maps ------------------------------------------------ */

.hex-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding: 0 0 14px;
}

.hex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hex-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.hex-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hex-stage {
  position: relative;
}

.hex-stage {
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ring);
}

.hex-stage canvas {
  display: block;
  width: 100%;
  cursor: grab;
  touch-action: none;
}

.hex-stage canvas:active {
  cursor: grabbing;
}

.hex-buttons {
  top: 8px;
  right: 8px;
  gap: 4px;
}

.hex-buttons .icon-button {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

/* Hover card: the change is the headline, the two years' values come second. */
.hex-card-tip {
  position: absolute;
  z-index: 6;
  width: 232px;
  padding: 12px 14px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ring-strong);
  pointer-events: none;
}

.tip-place {
  font-weight: 600;
  font-size: 13px;
}

.tip-label {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.tip-delta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tip-arrow {
  font-size: 15px;
  transform: translateY(-3px);
}

.tip-delta[data-direction="up"] .tip-arrow {
  color: #184f95;
}

.tip-delta[data-direction="down"] .tip-arrow {
  color: #a32422;
}

.tip-delta[data-direction="flat"] .tip-arrow {
  color: var(--faint);
}

.tip-verdict {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.tip-bars {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ring);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.tip-year {
  color: var(--muted);
}

.tip-bar {
  height: 6px;
  background: var(--card);
}

.tip-bar i {
  display: block;
  height: 100%;
  background: #b9bcc4;
}

.tip-bar[data-direction="up"] i {
  background: #3987e5;
}

.tip-bar[data-direction="down"] i {
  background: #e34948;
}

.tip-value {
  text-align: right;
}

.tip-foot {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.hex-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: -0.02em;
}

.hex-key {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hex-unit {
  color: var(--muted);
}

.hex-key::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(31, 33, 40, 0.08);
}

.hex-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.hex-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.hex-grid + .hex-hint + .expander {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hex-grid,
  .trend-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.line-badge {
  display: inline-block;
  min-width: 26px;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

/* --- Expanders ------------------------------------------------------------------------- */

.expander {
  border-bottom: 1px solid var(--ring);
}

.expander summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.expander summary::-webkit-details-marker {
  display: none;
}

.expander summary::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(-45deg);
  transition: transform 0.15s;
}

.expander[open] > summary::before {
  transform: translateY(-3px) rotate(45deg);
}

.expander summary:hover {
  color: var(--blue);
}

.expander-body {
  padding: 0 0 14px 14px;
  color: var(--ink-soft);
}

.expander-body p {
  margin: 0;
}

.expander-body p + p {
  margin-top: 8px;
}

.faq-list {
  display: grid;
  gap: 6px;
}

/* « Questions »: the section heading is the expander, the questions and data sources open under it. */
.faq-all {
  border-bottom: 0;
}

.faq-all > summary.block-head {
  align-items: center;
  margin-bottom: 0;
  padding: 0 0 12px;
}

.faq-all > summary h2 {
  margin: 0;
}

.faq-all > summary:hover h2 {
  color: var(--blue);
}

.faq-all > .expander-body {
  padding: 0;
}

.faq-all .expander:last-child {
  border-bottom: 0;
}

.faq-list,
.card + .expander,
.stat-grid + .expander {
  margin-top: 12px;
  border-top: 1px solid var(--ring);
}

.sources dl {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 13px;
}

.sources dt {
  color: var(--ink);
  font-weight: 500;
}

.sources dd {
  margin: 0;
}

.sources ul {
  margin: 4px 0 0;
  padding-left: 16px;
}

/* --- Footer, toast ----------------------------------------------------------------------- */

.site-footer {
  padding: 24px;
  border-top: 1px solid var(--ring);
  color: var(--muted);
  font-size: 12.5px;
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.footer-author {
  color: var(--ink-soft);
  font-size: 13.5px;
}

.footer-author a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-links a {
  padding: 4px 6px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-credits {
  max-width: 820px;
  line-height: 1.6;
}

.footer-credits a {
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 30;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--ring);
}

/* --- Small screens --------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .hero {
    text-align: left;
  }

  .controls-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .controls-title {
    padding-top: 0;
  }

  .topbar {
    padding: 10px 16px;
  }

  .topbar-links a:not(.topbar-pill) {
    display: none;
  }

  .page {
    padding: 0 16px 40px;
  }

  .block {
    margin: 0 -16px;
    padding: 24px 16px;
  }

  .hero {
    padding: 32px 0 24px;
  }

  .map-stage {
    height: 70vh;
    min-height: 420px;
  }

  .trip-panel {
    top: auto;
    bottom: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: 45%;
  }

  .legend {
    display: none;
  }

  .control-group.actions {
    margin-left: 0;
  }

  .sources dl {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}

/* --- Insights card (after beautifului.dev's insight card) ------------------------------------- */

.insights {
  --good: #1a7f4b;
  --bad: #c4352b;
  max-width: 720px;
}

.insights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insights-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pager {
  display: flex;
  gap: 2px;
}

.pager-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.pager-button:hover {
  background: var(--white);
  color: var(--ink);
}

.pager-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.insights-lede {
  min-height: 2.6em;
  margin: 8px 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: -0.015em;
}

.insights-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

.good {
  color: var(--good);
}

.bad {
  color: var(--bad);
}

.insight-card {
  padding: 4px 0 0;
}

.insight-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
}

.insight-title strong {
  flex: 1;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.insight-arrow {
  font-weight: 600;
}

.tag {
  padding: 2px 9px;
  border-radius: 0;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.chart-panel {
  overflow: hidden;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ring);
}

.chart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid var(--ring);
  font-size: 13px;
}

.chart-bar .segmented[hidden] {
  display: none;
}

.chart {
  position: relative;
  outline: none;
}

.chart:focus-visible {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.line-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.draft {
  stroke-dasharray: 2 5;
}

.chart-ref,
.chart-axis {
  stroke: #e3e5ea;
  stroke-width: 1;
}

.chart-grid {
  stroke: #eceef2;
  stroke-width: 1;
}

.chart-ref {
  stroke-dasharray: 3 3;
}

.chart-crosshair {
  stroke: var(--faint);
  stroke-width: 1;
}

.chart-dot {
  stroke-width: 2;
}

.chart-dot.active {
  stroke: var(--white);
  stroke-width: 3;
}

.chart-tick {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  padding: 6px 9px;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ring);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.tooltip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.line-key {
  display: inline-block;
  width: 12px;
  height: 2px;
  border-radius: 0;
}

.insight-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.insight-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.insight-delta {
  text-align: right;
  font-size: 13px;
}

.insights-table {
  margin-top: 10px;
  background: var(--white);
}

.insights-table summary {
  padding: 8px 14px;
  font-size: 13px;
}

.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 4;
  margin: 0;
  padding: 1px 6px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 10.5px;
}

.map-attribution a {
  color: inherit;
  text-decoration: none;
}

.map-attribution a:hover {
  color: var(--blue);
}
