.divvy-page { --accent: #006b86; --accent-soft: #e1f0f4; --surface: #fff; --surface-alt: #f1f3f3; --rack: #9b5916; --control-border: #858c90; padding: 0 2rem; -webkit-font-smoothing: antialiased; }
@media (prefers-color-scheme: dark) { .divvy-page { --accent: #80cee1; --accent-soft: #203940; --surface: #222; --surface-alt: #2b2d2e; --rack: #efb875; --control-border: #7a8589; } }
.divvy-header,.divvy-main,.divvy-footer { max-width: 1400px; margin-inline: auto; }
.divvy-header { padding-top: 2rem; padding-bottom: 1.6rem; }
.back-link { color: var(--muted); font-size: .9rem; text-decoration: none; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.4rem; }
.divvy-page h1 { font-size: clamp(1.8rem,3vw,2.65rem); letter-spacing: -.045em; line-height: 1.15; text-wrap: balance; }
.divvy-page h2 { font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.25; }
.divvy-page h3 { font-size: 1rem; line-height: 1.4; }
.intro { color: var(--muted); margin-top: .65rem; max-width: 75ch; text-wrap: pretty; }
.snapshot { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.divvy-page section { margin: 0; }
.divvy-page button,.divvy-page input,.divvy-page select { font: inherit; color: var(--fg); }
.divvy-page button { cursor: pointer; }
.divvy-page button:disabled { cursor: default; }
.divvy-page :is(button,input,select,a,summary,[tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.divvy-page [hidden] { display: none !important; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 10; background: var(--surface); padding: .75rem; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1.2rem 0; border-block: 1px solid var(--border); margin-bottom: 1.5rem; }
.filters > label,.sort-control,.station-search { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; }
.divvy-page select,.station-search input { min-height: 42px; background: var(--surface); border: 1px solid var(--control-border); border-radius: 5px; padding: .45rem 2rem .45rem .7rem; font-size: .9rem; }
.filters .rack-toggle { flex-direction: row; gap: .65rem; align-items: center; min-height: 44px; cursor: pointer; padding-block: .1rem; font-size: .9rem; }
.rack-toggle input { width: 19px; height: 19px; accent-color: var(--accent); }
.rack-toggle small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.quiet-button,#retry { border: 1px solid var(--control-border); border-radius: 5px; padding: .55rem .8rem; min-height: 42px; background: var(--surface); font-size: .85rem; }
#reset { margin-inline-start: auto; }
.explorer-layout { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: 1.5rem; align-items: start; }
.map-panel { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.map-heading { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; flex-wrap: wrap; }
.map-heading h2 { font-size: 1rem; letter-spacing: -.015em; }
.boundary-badge { font-size: .75rem; background: var(--surface-alt); border-radius: 4px; padding: .25rem .5rem; color: var(--muted); }
.map-stage { position: relative; }
#divvy-map { width: 100%; height: 600px; background: var(--surface-alt); }
.fit-map { position: absolute; inset-inline-start: 12px; top: 12px; background: var(--surface); border: 1px solid var(--control-border); border-radius: 5px; min-height: 40px; padding: .4rem .65rem; box-shadow: 0 2px 5px #0001; font-size: .8rem !important; }
.map-legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding: .8rem 1rem; font-size: .75rem; }
.map-legend > span { display: inline-flex; align-items: center; gap: .35rem; }
.key { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.station-key { background: var(--accent); }
.rack-key { background: var(--rack); border-radius: 0; }
.undated-key { background: var(--surface); border: 2px solid var(--muted); }
.map-hint { color: var(--muted); margin-inline-start: auto; }
.map-status { color: var(--muted); font-size: .75rem; padding: 0 1rem .65rem; }
.map-status:empty { display: none; }
.ward-marker { font-weight: 800 !important; font-size: 19px !important; letter-spacing: -.04em; min-width: 30px; min-height: 30px; padding: 0 4px; background: transparent; border: 0; color: #174957 !important; text-shadow: -2px -2px 0 #fff,2px -2px 0 #fff,-2px 2px 0 #fff,2px 2px 0 #fff,0 0 5px #fff; line-height: 1; }
.ward-marker[aria-pressed="true"] { background: #005e77; color: #fff !important; text-shadow: none; border: 2px solid #fff; border-radius: 50%; min-width: 36px; min-height: 36px; box-shadow: 0 2px 8px #0003; }
.scorecard { min-width: 0; padding: .7rem .25rem 0; }
.score-heading { display: flex; gap: 1rem; align-items: center; }
.ward-emblem { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 750; font-size: 1.65rem; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.eyebrow { font-size: .7rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .15rem; }
.score-heading h2 { font-size: 1.65rem; }
.subtle { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.main-stat { display: flex; align-items: baseline; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.main-stat strong { font-size: 4.2rem; line-height: 1.1; letter-spacing: -.065em; font-weight: 650; font-variant-numeric: tabular-nums; }
.main-stat span { font-size: .95rem; max-width: 13ch; line-height: 1.35; }
.metric-note { font-size: .7rem; color: var(--muted); margin-top: -.5rem; margin-bottom: 1.1rem; }
.secondary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 1rem; margin-block: .5rem 1.1rem; border-block: 1px solid var(--border); }
.secondary-stats strong { font-size: 1.5rem; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; }
.secondary-stats span { display: block; font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.trend-heading { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: space-between; align-items: center; }
.chart-mode { display: inline-flex; padding: 3px; background: var(--surface-alt); border-radius: 6px; gap: 3px; }
.chart-mode button { border: 1px solid transparent; border-radius: 4px; background: transparent; min-height: 34px; padding: .25rem .6rem; font-size: .75rem; }
.chart-mode button[aria-pressed="true"] { background: var(--surface); border-color: var(--control-border); font-weight: 600; }
.chart-caption { margin-top: .7rem; color: var(--muted); font-size: .75rem; }
.trend-chart { position: relative; margin-top: .4rem; }
.trend-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--border); stroke-width: 1; }
.chart-text { fill: var(--muted); font-size: 12px; }
.chart-bar { fill: var(--accent); opacity: .8; }
.chart-bar-last { opacity: 1; }
.chart-value { fill: var(--fg); font-size: 12px; font-weight: 600; }
.chart-boundary { stroke: var(--muted); stroke-dasharray: 3 3; opacity: .6; }
.boundary-note { font-size: .75rem; line-height: 1.55; padding-inline-start: .75rem; border-inline-start: 2px solid var(--accent); margin-top: .6rem; }
.trend-data { margin-top: .7rem; font-size: .75rem; }
summary { cursor: pointer; padding-block: .3rem; color: var(--muted); }
.score-method { font-size: .75rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }
.inventory-note { font-size: .8rem; color: var(--muted); margin-top: 1rem; max-width: 105ch; }
.divvy-page .ward-comparison,.divvy-page .station-section,.divvy-page .methodology { margin-top: 2.8rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.section-heading .subtle { margin-top: .3rem; }
.sort-control { flex-direction: row; align-items: center; gap: .6rem; }
.ward-grid { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: .65rem; }
.ward-tile { text-align: start; position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; padding: .65rem .75rem .85rem; background: var(--surface); min-height: 85px; }
.ward-tile strong { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.05em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ward-tile span { font-size: .75rem; color: var(--muted); }
.ward-tile .ward-mini-bar { position: absolute; width: 100%; bottom: 0; left: 0; background: var(--accent); opacity: .18; pointer-events: none; }
.ward-tile strong,.ward-tile span { position: relative; z-index: 1; }
.ward-tile[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
.station-search input { min-width: 230px; padding-inline-end: .7rem; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--border); }
.divvy-page table { width: 100%; border-collapse: collapse; text-align: start; font-size: .85rem; font-variant-numeric: tabular-nums; }
.divvy-page th { color: var(--muted); font-size: .75rem; font-weight: 600; }
.divvy-page td,.divvy-page th { text-align: start; padding: .7rem .8rem; border-bottom: 1px solid var(--border); }
.divvy-page th:first-child,.divvy-page td:first-child { padding-inline-start: 0; }
.station-table { min-width: 690px; }
.station-table td:first-child { width: 40%; }
.station-link { text-align: start; background: transparent; border: 0; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 3px; padding-block: .2rem; min-height: 30px; }
.station-type { display: block; color: var(--muted); font-size: .7rem; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; font-size: .8rem; }
.table-download a { display: inline-block; padding-block: .3rem; }
.table-download p { color: var(--muted); font-size: .75rem; margin-top: .1rem; }
.station-detail { background: var(--accent-soft); border-radius: 6px; padding: 1.1rem; margin-block: 1rem; }
.station-detail-head { display: flex; gap: 1rem; justify-content: space-between; align-items: start; }
.station-detail-head button { background: var(--surface); border: 1px solid var(--control-border); border-radius: 4px; min-height: 36px; padding: .2rem .6rem; font-size: .8rem; }
.station-detail p { margin-top: .5rem; font-size: .85rem; }
.station-detail dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: .75rem; }
.station-detail dt { color: var(--muted); font-size: .75rem; }
.station-detail dd { font-size: .9rem; margin: 0; }
.empty-message,.load-status { padding-block: 1rem; color: var(--muted); }
.methodology { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.method-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 3rem; margin-top: 1.25rem; }
.method-grid p { margin-top: .4rem; color: var(--muted); font-size: .85rem; max-width: 75ch; }
.sources { margin-top: 1.5rem; font-size: .85rem; }
.sources li { margin-block: .5rem; }
.divvy-footer { margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.divvy-footer h2 { font-size: 1rem; color: var(--fg); letter-spacing: 0; }
.disclaimer-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 3rem; margin-top: 1rem; }
.disclaimer-grid p { max-width: 75ch; }
.disclaimer-grid p + p { margin-top: .75rem; }
.disclaimer-grid h3 { font-size: .8rem; color: var(--fg); margin-bottom: .4rem; }
.disclaimer-grid blockquote { margin: 0; }
.footer-terms { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin-block: 1.25rem 0; }
.footer-terms a { display: inline-block; padding-block: .3rem; }
.footer-credit { margin-top: 1rem; }
@media (max-width: 700px) { .disclaimer-grid { grid-template-columns: 1fr; } }
.maplibregl-popup-content { background: var(--surface); color: var(--fg); border-radius: 6px; padding: 1rem; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; min-width: 220px; }
.maplibregl-popup-content h3 { padding-inline-end: 15px; }
.maplibregl-popup-content p { margin-top: .4rem; font-size: .8rem; }
.maplibregl-popup-content button { background: var(--surface); border: 1px solid var(--control-border); border-radius: 4px; margin-top: .6rem; padding: .35rem .5rem; min-height: 32px; font-size: .8rem; }
.maplibregl-popup-close-button { margin: 0 !important; border: 0 !important; min-width: 26px; }
@media (hover: hover) { .ward-tile:hover { border-color: var(--accent); background: var(--accent-soft); } .quiet-button:hover,.fit-map:hover { background: var(--surface-alt); } .ward-marker:hover { scale: 1.12; } }
@media (prefers-reduced-motion: no-preference) { .quiet-button:active,.ward-tile:active { transform: scale(.96); } }
@media (max-width: 1150px) { .divvy-page { padding-inline: 1.25rem; } .explorer-layout { grid-template-columns: minmax(0,1fr) 330px; gap: 1rem; } .ward-grid { grid-template-columns: repeat(10,minmax(0,1fr)); gap: .4rem; } .ward-tile { padding-inline: .5rem; } #reset { margin-inline-start: 0; } }
@media (max-width: 850px) { .explorer-layout { grid-template-columns: 1fr; } #divvy-map { height: 480px; } .scorecard { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; } .score-heading,.main-stat,.station-stats,.metric-note { grid-column: 1; } .deployment-section { grid-column: 2; grid-row: 1 / span 4; } .trip-section { grid-column: 1 / -1; margin-top: 1.5rem; } .ward-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } .map-hint { margin-inline-start: 0; } }
@media (max-width: 580px) { .divvy-page { padding-inline: 1rem; } .divvy-header { padding-top: 1.25rem; } .filters { gap: .8rem; } .filters > label { flex: 1 1 calc(50% - .8rem); min-width: 0; } .filters > label:nth-child(3) { flex-basis: 100%; } .filters select { width: 100%; font-size: 1rem; } .filters .rack-toggle { flex-basis: auto; } .explorer-layout { gap: 1.5rem; } #divvy-map { height: 420px; } .scorecard { display: block; padding-inline: .15rem; } .main-stat { margin-top: 1rem; } .ward-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } .ward-tile { min-height: 80px; padding: .65rem .4rem; } .ward-tile strong { font-size: 1.35rem; } .ward-tile span { font-size: .7rem; } .station-search { width: 100%; } .station-search input { min-width: 0; font-size: 1rem; } .method-grid { grid-template-columns: 1fr; gap: 1.5rem; } .station-detail dl { grid-template-columns: 1fr; gap: .5rem; } .sort-control select { font-size: 1rem; } .map-heading { padding-inline: .75rem; } }
@media (max-width: 360px) { .ward-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } .filters > label { flex-basis: 100%; } .map-legend { gap: .5rem; } }

.station-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); padding-top: 1rem; }
.trip-section { border-top: 1px solid var(--border); margin-top: 1.5rem; padding-top: 1.25rem; }
.trip-stats { border: 0; padding-bottom: 0; margin-bottom: .7rem; gap: .75rem; }
.trip-stats strong { font-size: clamp(1.2rem,2vw,1.5rem); letter-spacing: -.035em; }
.station-table th small { display: block; font-weight: 400; font-size: .65rem; white-space: nowrap; }
.station-table { min-width: 850px; }
.station-table td:first-child { width: 31%; }
.sparkline-cell { width: 155px; }
.sparkline { display: block; width: 132px; color: var(--accent); }
.sparkline svg { display: block; width: 100%; height: 36px; overflow: visible; }
.sparkline polyline { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sparkline circle { fill: currentColor; }
.sparkline > span { display: flex; justify-content: space-between; gap: .5rem; font-size: .6rem; color: var(--muted); white-space: nowrap; }
.station-trips { border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .75rem; }
.station-trips > .sparkline { margin-block: .75rem; width: 100%; max-width: 320px; }
.station-trips > .sparkline svg { height: 60px; }
.station-trips table { max-width: 650px; }
@media (min-width: 851px) { .map-panel { position: sticky; top: 1rem; } }

.trend-data { overflow-x: auto; }

.chart-targets { position: absolute; inset: 0; pointer-events: none; }
.chart-bar-target { position: absolute; display: block; pointer-events: auto; border: 0; border-radius: 2px; padding: 0; margin: 0; background: transparent; touch-action: manipulation; }
.chart-bar-target.is-active { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 -2px var(--accent); }
.divvy-page .chart-bar-target:focus-visible { outline-width: 2px; outline-offset: 0; }
.chart-tooltip { position: absolute; z-index: 5; width: max-content; max-width: min(240px,100%); padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--fg); box-shadow: 0 2px 5px #0002,0 8px 20px #0001; font-size: .75rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.chart-tooltip > span { display: block; color: var(--muted); font-size: .7rem; }
.chart-tooltip strong { display: block; font-size: .85rem; }
.chart-tooltip small { display: block; color: var(--muted); font-size: .7rem; margin-top: .25rem; max-width: 27ch; }
@media (forced-colors: active) { .chart-bar-target.is-active { outline: 2px solid Highlight; } .chart-tooltip { border-color: CanvasText; } }
