:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #62736c;
  --paper: #f3f7f5;
  --surface: #ffffff;
  --surface-soft: #edf3f0;
  --line: #d5ded8;
  --green: #137a5d;
  --green-dark: #0f4f40;
  --orange: #df5c2f;
  --yellow: #d69b28;
  --blue: #2f6f9f;
  --red: #c8473a;
  --shadow: 0 18px 42px rgba(23, 33, 29, 0.09);
  --shadow-soft: 0 8px 24px rgba(23, 33, 29, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(19, 122, 93, 0.08), transparent 360px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 520px),
    var(--paper);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - 1440px) / 2 + 24px));
  border-bottom: 1px solid rgba(213, 222, 216, 0.76);
  background: rgba(250, 252, 251, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand span:last-child {
  line-height: 1.15;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 79, 64, 0.18);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.header-nav a,
.nav-menu summary {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}

.header-nav a:hover,
.header-nav a.is-active,
body[data-page="velo"] .nav-menu summary,
.nav-menu[open] summary,
.nav-menu summary:hover {
  color: var(--ink);
  background: rgba(19, 122, 93, 0.1);
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
}

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

.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-submenu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  display: grid;
  min-width: 190px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(23, 33, 29, 0.1);
}

.dashboard-shell,
.content-band {
  padding: 48px max(24px, calc((100vw - 1440px) / 2 + 24px));
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(440px, 1.18fr);
  gap: 28px;
  align-items: stretch;
}

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

.transport-hero {
  padding-bottom: 26px;
}

.home-intro {
  max-width: 1120px;
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.home-entry-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.home-entry-card:hover {
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(23, 33, 29, 0.09);
}

.home-entry-card-muted {
  border-style: dashed;
}

.home-entry-card span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-entry-card strong {
  font-size: 22px;
  line-height: 1.15;
}

.home-entry-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.transport-index-band {
  padding-top: 20px;
}

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

.transport-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.transport-card:hover {
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(23, 33, 29, 0.1);
}

.transport-card-coming-soon,
.city-choice-card-coming-soon {
  border-style: dashed;
}

.transport-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.transport-card strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.transport-card small {
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.city-choice-band {
  padding-top: 10px;
}

.city-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.city-choice-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)),
    var(--surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.city-choice-card:hover {
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(23, 33, 29, 0.09);
}

.city-choice-card-featured {
  background:
    linear-gradient(135deg, rgba(19, 122, 93, 0.11), rgba(223, 92, 47, 0.06)),
    rgba(255, 255, 255, 0.86);
}

.city-choice-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.city-choice-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.city-choice-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.coming-soon-band {
  padding-top: 18px;
}

.coming-soon-panel {
  max-width: 1040px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.coming-soon-panel .lead {
  max-width: 78ch;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.coming-soon-grid article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 162px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.coming-soon-grid span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.coming-soon-grid strong {
  font-size: 18px;
  line-height: 1.18;
}

.coming-soon-grid small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.intro-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: 48px;
  line-height: 1.04;
}

h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

h4 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric-card {
  min-height: 132px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.metric-card-wide {
  grid-column: 1 / -1;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.metric-card strong {
  display: block;
  margin: 6px 0;
  font-size: 32px;
  line-height: 1.05;
  word-break: break-word;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.source-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.station-panel,
.chart-panel,
.annual-panel,
.animation-side,
.frame-shell,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.station-panel,
.chart-panel,
.annual-panel,
.animation-side,
.frame-shell,
.table-wrap,
.automobile-summary,
.automobile-method,
.automobile-access-panel,
.automobile-figure,
.automobile-file-grid article,
.pedestrian-summary,
.pedestrian-method,
.pedestrian-panel {
  box-shadow: var(--shadow-soft);
}

.station-panel {
  min-width: 0;
  padding: 18px;
}

.panel-heading,
.coverage-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.timestamp {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.station-controls,
.state-controls,
.network-controls,
.segmented-control,
.animation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.station-controls {
  flex-direction: column;
  margin-top: 18px;
}

.network-controls,
.state-controls {
  margin-top: 0;
}

.network-controls {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.state-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.state-controls button,
.network-controls button,
.segmented-control button,
.animation-tabs button,
.frame-placeholder button,
.open-link {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.state-controls button,
.network-controls button,
.segmented-control button,
.animation-tabs button {
  padding: 8px 11px;
}

.state-controls button.is-active,
.network-controls button.is-active,
.segmented-control button.is-active,
.animation-tabs button.is-active {
  border-color: var(--green-dark);
  color: #fff;
  background: var(--green-dark);
}

.station-map-wrap {
  position: relative;
  margin: 16px 0 0;
}

#stationMap {
  width: 100%;
  aspect-ratio: 1.55;
  min-height: 360px;
  border: 1px solid rgba(213, 222, 216, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(47, 111, 159, 0.1), rgba(19, 122, 93, 0.06)),
    #f8fbfa;
}

.map-grid {
  stroke: rgba(98, 115, 108, 0.18);
  stroke-width: 1;
}

.map-halo {
  fill: rgba(47, 111, 159, 0.08);
  stroke: rgba(47, 111, 159, 0.24);
  stroke-width: 2;
}

.station-point {
  stroke: #fff;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: opacity 140ms ease, r 140ms ease;
}

.station-point-balanced {
  fill: var(--green);
}

.station-point-low {
  fill: var(--yellow);
}

.station-point-empty {
  fill: var(--red);
}

.station-point-full {
  fill: var(--blue);
}

.station-point-reference {
  fill: var(--blue);
}

.station-point-muted {
  opacity: 0.13;
}

#stationMapSummary {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 860px;
}

.shared-bike-band {
  padding-top: 36px;
  padding-bottom: 64px;
}

.city-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 30px;
}

.city-index a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.city-index a:hover {
  border-color: var(--green-dark);
  color: var(--ink);
}

.city-section {
  scroll-margin-top: 96px;
}

.city-section + .city-section {
  margin-top: 44px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.city-heading {
  margin-bottom: 20px;
}

.city-heading h3 {
  font-size: 30px;
}

.city-module {
  scroll-margin-top: 96px;
}

.city-module + .city-module {
  margin-top: 30px;
}

.trend-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 20px;
  align-items: stretch;
}

.chart-panel {
  margin: 0;
  overflow: hidden;
}

.year-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.year-filter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chart-tabs button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.chart-tabs button.is-active {
  border-color: var(--green-dark);
  color: #fff;
  background: var(--green-dark);
}

.year-filter input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--green);
}

.year-filter-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.annual-chart-wrap {
  padding: 10px 12px 0;
  background: #fff;
}

#annualTrendChart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
}

.annual-grid-line {
  stroke: rgba(98, 115, 108, 0.2);
  stroke-width: 1;
}

.annual-axis-line,
.annual-axis-tick {
  stroke: rgba(23, 33, 29, 0.45);
  stroke-width: 1.5;
}

.annual-line {
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.annual-point circle {
  fill: var(--point-color);
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 2px 4px rgba(23, 33, 29, 0.18));
}

.annual-point-partial circle {
  stroke: var(--ink);
  stroke-dasharray: 3 2;
}

.annual-point-label,
.annual-axis-label,
.annual-empty {
  fill: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.annual-point-label,
.annual-axis-label-x,
.annual-empty {
  text-anchor: middle;
}

.annual-axis-label-y {
  text-anchor: end;
}

#chartCaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.seasonal-chart-panel {
  margin-top: 20px;
}

.method-note {
  max-width: 980px;
  margin: -4px 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.method-note p {
  margin: 0;
}

.seasonal-chart-wrap {
  padding: 14px;
  overflow-x: auto;
  background: #fff;
}

#seasonalRollingChart,
#aveloSeasonalRollingChart {
  width: 100%;
  min-width: 720px;
  height: auto;
}

.seasonal-line {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.seasonal-line-label {
  fill: var(--line-color);
  font-size: 13px;
  font-weight: 900;
}

#seasonalChartCaption,
#aveloSeasonalChartCaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.annual-panel {
  padding: 18px;
}

.annual-panel h4 {
  margin: 0;
  font-size: 18px;
}

.annual-panel h5 {
  margin: 0;
  font-size: 16px;
}

.annual-panel-wide {
  max-width: 760px;
}

.annual-bars {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.annual-bars-wide {
  max-width: 620px;
}

.annual-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}

.annual-year {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
}

.annual-track {
  display: block;
  min-width: 0;
}

.annual-bar {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--orange));
}

.annual-value {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.city-volume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.city-volume-note {
  margin-top: -4px;
}

.city-volume-panel {
  min-width: 0;
}

.city-volume-panel .annual-row {
  grid-template-columns: 58px 1fr;
}

.city-volume-panel .annual-bars {
  gap: 12px;
}

.coverage-top {
  align-items: center;
  margin-bottom: 18px;
}

.coverage-top .section-heading {
  margin-bottom: 0;
}

.coverage-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(0, 0.68fr);
  gap: 20px;
}

.coverage-highlights {
  display: grid;
  gap: 12px;
  align-content: start;
}

.highlight-item {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.highlight-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.highlight-item strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.1;
}

.highlight-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  font-size: 14px;
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.borough-cell {
  min-width: 220px;
}

.borough-name {
  display: block;
  font-weight: 900;
}

.rank-label {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.bar-cell {
  min-width: 150px;
}

.mini-track {
  display: block;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eeea;
}

.mini-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.pedestrian-band {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(200, 71, 58, 0.04));
}

.pedestrian-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(280px, 0.32fr);
  gap: 20px;
  align-items: stretch;
}

.pedestrian-summary,
.pedestrian-method,
.pedestrian-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pedestrian-summary {
  padding: 20px;
}

.pedestrian-summary .lead {
  margin-top: 0;
}

.pedestrian-metrics {
  margin-top: 20px;
}

.pedestrian-metrics .metric-card strong {
  color: var(--red);
}

.automobile-hero {
  background:
    linear-gradient(180deg, rgba(200, 71, 58, 0.07), rgba(255, 255, 255, 0)),
    transparent;
}

.automobile-metrics .metric-card strong {
  color: var(--red);
}

.automobile-band,
.automobile-figures-band,
.automobile-access-band,
.automobile-files-band {
  border-top: 1px solid var(--line);
}

.automobile-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(223, 92, 47, 0.04));
}

.automobile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(280px, 0.34fr);
  gap: 20px;
  align-items: stretch;
}

.automobile-summary,
.automobile-method,
.automobile-access-panel,
.automobile-figure,
.automobile-file-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.automobile-summary,
.automobile-method {
  padding: 20px;
}

.automobile-summary .lead {
  margin-top: 0;
  max-width: 78ch;
}

.automobile-finding-grid,
.automobile-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.automobile-finding-grid div {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 243, 240, 0.72);
}

.automobile-finding-grid span,
.automobile-file-grid span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.automobile-finding-grid strong,
.automobile-file-grid strong {
  font-size: 20px;
  line-height: 1.16;
}

.automobile-finding-grid small,
.automobile-file-grid small,
.automobile-figure figcaption {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.automobile-category-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.automobile-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.automobile-table-wrap h3 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.automobile-example-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.automobile-table-wrap td,
.automobile-table-wrap th {
  padding: 10px 12px;
}

.automobile-table-wrap td:last-child {
  min-width: 190px;
  color: var(--muted);
}

.automobile-method h3 {
  margin-top: 0;
  font-size: 21px;
}

.automobile-method p {
  color: var(--muted);
  font-weight: 700;
}

.automobile-method a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 6px 8px 0 0;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

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

.automobile-figure {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.automobile-figure img {
  width: 100%;
  min-height: 280px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.automobile-access-panel {
  max-width: 960px;
  padding: 22px;
}

.automobile-access-panel .lead {
  max-width: 76ch;
}

.automobile-access-panel p:not(.lead) {
  max-width: 76ch;
  color: var(--muted);
  font-weight: 700;
}

.automobile-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 8px;
  padding: 6px 11px;
  border: 1px solid rgba(223, 92, 47, 0.42);
  border-radius: 999px;
  background: rgba(223, 92, 47, 0.1);
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.automobile-file-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.automobile-file-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 166px;
  padding: 18px;
}

.pedestrian-method {
  padding: 20px;
}

.pedestrian-method h3 {
  font-size: 21px;
}

.pedestrian-method p {
  margin: 12px 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.pedestrian-method dl,
.ped-radius-row dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.pedestrian-method div,
.ped-radius-row dl div {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(237, 243, 240, 0.72);
}

.pedestrian-method dt,
.ped-radius-row dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pedestrian-method dd,
.ped-radius-row dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.pedestrian-panels {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: 20px;
  margin-top: 20px;
}

.pedestrian-panel {
  padding: 18px;
}

.ped-radius-bars,
.ped-type-cards {
  display: grid;
  gap: 12px;
}

.ped-radius-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.32fr) minmax(180px, 0.38fr) minmax(210px, 0.3fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ped-radius-row strong {
  display: block;
  font-size: 22px;
}

.ped-radius-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.ped-radius-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e3df;
}

.ped-radius-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.ped-type-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ped-type-card span:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.ped-type-card strong {
  display: block;
  margin-top: 6px;
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}

.ped-type-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 750;
}

.ped-mini-bar {
  background: var(--red);
}

.pedestrian-table-wrap {
  box-shadow: var(--shadow);
}

.pedestrian-recent {
  margin-top: 20px;
}

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

.ped-recent-grid h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.ped-compact-list {
  display: grid;
  gap: 8px;
}

.ped-compact-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 0.58fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ped-compact-row strong {
  font-size: 14px;
}

.ped-compact-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.animation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: 20px;
}

.animation-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.animation-tabs {
  flex-direction: column;
}

.animation-tabs button {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}

.animation-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.animation-stats div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.animation-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.animation-stats dd {
  margin: 5px 0 0;
  font-size: 18px;
  font-weight: 900;
  word-break: break-word;
}

.animation-description {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
}

.open-link:hover,
.frame-placeholder button:hover,
.state-controls button:hover,
.network-controls button:hover,
.segmented-control button:hover,
.animation-tabs button:hover {
  border-color: var(--green-dark);
}

.frame-shell {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #e8efec;
}

.frame-shell iframe {
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  opacity: 0;
  transition: opacity 160ms ease;
}

.frame-shell.is-loaded iframe {
  opacity: 1;
}

.frame-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 35% 35%, rgba(19, 122, 93, 0.16), transparent 260px),
    linear-gradient(135deg, #f6faf8, #dfe9e5);
}

.frame-placeholder strong {
  font-size: 24px;
}

.frame-placeholder button {
  padding: 8px 14px;
}

.frame-shell.is-loaded .frame-placeholder {
  display: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px max(24px, calc((100vw - 1440px) / 2 + 24px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 1060px) {
  .dashboard-grid,
  .home-entry-grid,
  .transport-grid,
  .city-choice-grid,
  .coming-soon-grid,
  .trend-layout,
  .coverage-layout,
  .animation-layout,
  .pedestrian-layout,
  .pedestrian-panels,
  .automobile-layout,
  .automobile-figure-grid,
  .automobile-file-grid {
    grid-template-columns: 1fr;
  }

  .intro-column {
    padding-top: 4px;
  }

  .animation-tabs {
    flex-direction: row;
  }

  .animation-tabs button {
    width: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .nav-submenu {
    position: static;
    min-width: min(100%, 260px);
    margin-top: 6px;
    box-shadow: none;
  }

  .dashboard-shell,
  .content-band {
    padding: 28px 16px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 25px;
  }

  .year-filters {
    gap: 8px;
    padding: 12px;
  }

  .year-filter,
  .chart-tabs button {
    min-height: 32px;
    font-size: 12px;
  }

  .chart-tabs {
    gap: 8px;
    padding: 12px;
  }

  .annual-chart-wrap {
    padding-inline: 6px;
    overflow-x: auto;
  }

  #annualTrendChart {
    min-width: 620px;
  }

  .lead {
    font-size: 16px;
  }

  .metric-grid,
  .animation-stats,
  .automobile-finding-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .coverage-top {
    flex-direction: column;
    align-items: stretch;
  }

  .ped-radius-row {
    grid-template-columns: 1fr;
  }

  .ped-recent-grid,
  .ped-compact-row {
    grid-template-columns: 1fr;
  }

  .timestamp {
    text-align: left;
  }

  #stationMap {
    min-height: 300px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  td {
    display: grid;
    grid-template-columns: minmax(110px, 0.45fr) minmax(0, 0.55fr);
    gap: 12px;
    border-bottom: 0;
    padding: 8px 14px;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .borough-cell,
  .bar-cell {
    min-width: 0;
  }

  .frame-shell,
  .frame-shell iframe {
    min-height: 460px;
  }
}
