/* the site is always dark, so use colors that read well on a dark background on every device */
.mta-ridership { --mta-muted: #a3adbd; --mta-border: rgba(127,127,127,.3); --mta-accent: #8ab4f8; max-width: 960px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.mta-ridership .mta-section { margin: 2.5em 0; }
.mta-ridership h3 { margin-bottom: .3em; }
.mta-ridership h4 { margin: 0 0 .8em; font-size: 1rem; }
.mta-ridership .mta-note, .mta-ridership .mta-source { color: var(--mta-muted); font-size: .9rem; margin-top: 0; }
.mta-ridership .mta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2em; }
.mta-ridership .mta-card { border: 1px solid var(--mta-border); border-radius: 10px; padding: 1em 1.2em; }
.mta-ridership .mta-top { margin: 0; padding-left: 1.4em; }
.mta-ridership .mta-top li { margin-bottom: .8em; }
.mta-ridership .mta-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; font-weight: 600; line-height: 1.3; }
.mta-ridership .mta-top-name { min-width: 0; overflow-wrap: anywhere; }
.mta-ridership .mta-top-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mta-ridership .mta-lines { display: block; font-weight: 400; color: var(--mta-muted); font-size: .8em; }
.mta-ridership .mta-borough { color: var(--mta-muted); font-size: .8rem; }
.mta-ridership .mta-bar { height: 6px; background: var(--mta-border); border-radius: 3px; margin: .3em 0 .1em; }
.mta-ridership .mta-bar span { display: block; height: 100%; background: var(--mta-accent); border-radius: 3px; }
.mta-ridership .mta-chart { position: relative; height: 320px; }
.mta-ridership .mta-chart-tall { height: 380px; }
.mta-ridership .mta-select { margin-bottom: .8em; padding: .4em .6em; max-width: 100%; color: inherit; background: transparent; border: 1px solid var(--mta-border); border-radius: 6px; font: inherit; }
/* the open list is drawn by the browser on a light background, so don't inherit a light theme text color */
.mta-ridership .mta-select option { color: #111; background: #fff; }
.mta-ridership .mta-grid-events { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.mta-ridership .mta-events { list-style: none; margin: 0; padding: 0; }
.mta-ridership .mta-events li { margin-bottom: .5em; }
.mta-ridership .mta-event { display: grid; grid-template-columns: 1fr auto; gap: .1em 1em; width: 100%; text-align: left; padding: .6em .8em; font: inherit; color: inherit; background: transparent; border: 1px solid var(--mta-border); border-radius: 8px; cursor: pointer; }
.mta-ridership .mta-event:hover, .mta-ridership .mta-events li.on .mta-event { border-color: var(--mta-accent); }
.mta-ridership .mta-event .mta-top-name { font-weight: 600; }
.mta-ridership .mta-event .mta-borough { grid-column: 1 / -1; }
.mta-ridership .mta-ratio { font-weight: 700; color: var(--mta-accent); white-space: nowrap; }
.mta-ridership .mta-legend { display: flex; flex-wrap: wrap; gap: .4em 1.4em; font-size: .9rem; margin: 0 0 .6em; }
.mta-ridership .mta-legend i { display: inline-block; width: .8em; height: .8em; border-radius: 2px; margin-right: .4em; vertical-align: -0.05em; }
.mta-ridership .mta-hero { margin: 1.5em 0 2.5em; }
.mta-ridership .mta-hero-links { margin: -.3em 0 1em; color: var(--mta-muted); font-size: .95rem; }
.mta-ridership .mta-hero-links a, .mta-ridership .mta-source-ssr a { color: var(--mta-accent); text-decoration: underline; text-underline-offset: 2px; }
.mta-ridership .mta-source-ssr { margin-top: 2.5em; line-height: 1.7; }
.mta-ridership .mta-hero h1 { font-weight: 700; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -0.02em; }
.mta-ridership .mta-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.mta-ridership .mta-tile { border: 1px solid var(--mta-border); border-radius: 12px; padding: 1em 1.2em; }
.mta-ridership .mta-tile strong { display: block; font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.1; color: var(--mta-accent); font-variant-numeric: tabular-nums; }
.mta-ridership .mta-tile span { display: block; margin-top: .3em; color: var(--mta-muted); font-size: .9rem; }
@media (max-width: 560px) { .mta-ridership .mta-tiles { grid-template-columns: 1fr; } .mta-ridership .mta-tile { display: flex; align-items: baseline; gap: .6em; padding: .7em 1em; } .mta-ridership .mta-tile span { margin: 0; } }
/* map: a day on the subway */
.mta-ridership .mta-map { height: 560px; border-radius: 12px; overflow: hidden; border: 1px solid var(--mta-border); background: #0b0f17; }
.mta-ridership .mta-map-bar { display: flex; align-items: center; gap: 1em; margin: .4em 0 .8em; flex-wrap: wrap; }
.mta-ridership .mta-play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--mta-accent); color: #fff; font-size: 1rem; cursor: pointer; flex: none; }
.mta-ridership .mta-play:focus-visible, .mta-ridership .mta-slider:focus-visible, .mta-ridership .mta-strip button:focus-visible { outline: 2px solid var(--mta-accent); outline-offset: 2px; }
.mta-ridership .mta-clock { min-width: 9.5em; }
.mta-ridership .mta-clock strong { display: block; font-size: 1.9rem; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.mta-ridership .mta-clock span { font-size: .85rem; color: var(--mta-muted); }
.mta-ridership .mta-slider { flex: 1; min-width: 160px; accent-color: var(--mta-accent); }
.mta-ridership .mta-strip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 44px; margin-top: .7em; align-items: end; }
.mta-ridership .mta-strip button { height: 100%; display: flex; align-items: flex-end; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mta-ridership .mta-strip span { display: block; width: 100%; border-radius: 2px 2px 0 0; background: var(--mta-border); }
.mta-ridership .mta-strip button.on span { background: var(--mta-accent); }
.mta-ridership .mta-strip-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--mta-muted); margin-top: .2em; }
.mta-tt { background: #111827; color: #e6edf6; border: 1px solid #334155; border-radius: 8px; font: 13px/1.45 Inter, system-ui, sans-serif; padding: 6px 10px; }
.mta-tt::before { display: none; }
.mta-tt .mta-tt-lines { color: #94a3b8; font-size: 12px; }
.mta-ridership .leaflet-container a { color: #8ab4f8; }
/* year over year */
.mta-ridership .mta-tiles-yoy { grid-template-columns: 1.4fr repeat(4, 1fr); margin-bottom: 1.2em; }
.mta-ridership .mta-tile-sm strong { font-size: clamp(1.2rem, 3.5vw, 1.6rem); color: #2f9e44; }
.mta-ridership .mta-tile-sm.neg strong { color: #e8590c; }
.mta-ridership .mta-subhead { margin: 1.2em 0 .4em; }
@media (max-width: 760px) { .mta-ridership .mta-tiles-yoy { grid-template-columns: 1fr 1fr; } .mta-ridership .mta-tiles-yoy .mta-tile:first-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .mta-ridership .mta-map { height: 440px; } .mta-ridership .mta-tiles-yoy .mta-tile { display: block; } }
/* find your station */
.mta-ridership .mta-find { position: relative; max-width: 520px; }
.mta-ridership .mta-find-input { width: 100%; box-sizing: border-box; padding: .7em .9em; font: inherit; font-size: 1.05rem; color: inherit; background: transparent; border: 1px solid var(--mta-border); border-radius: 10px; }
.mta-ridership .mta-find-input:focus { outline: 2px solid var(--mta-accent); outline-offset: 1px; }
.mta-ridership .mta-find-results { list-style: none; margin: .3em 0 0; padding: 0; }
.mta-ridership .mta-find-results li { margin: 0 0 .3em; }
.mta-ridership .mta-find-results .mta-find-pick { width: 100%; text-align: left; }
.mta-ridership .mta-find-none { color: var(--mta-muted); font-size: .9rem; }
.mta-ridership .mta-find-picks { margin: .7em 0 1em; color: var(--mta-muted); font-size: .9rem; }
.mta-ridership .mta-find-pick { margin: 0 .3em .3em 0; padding: .35em .7em; font: inherit; font-size: .9rem; color: inherit; background: transparent; border: 1px solid var(--mta-border); border-radius: 999px; cursor: pointer; }
.mta-ridership .mta-find-pick:hover, .mta-ridership .mta-find-pick:focus-visible { border-color: var(--mta-accent); outline: none; }
.mta-ridership .mta-find-name { font-size: 1.25rem; margin-bottom: .6em; }
.mta-ridership .mta-find-pick .mta-lines, .mta-ridership .mta-find-name .mta-lines { display: inline; margin-left: .2em; }
.mta-ridership .mta-find-name .mta-borough { display: block; font-weight: 400; margin-top: .2em; }
.mta-ridership .mta-tiles-find { grid-template-columns: repeat(4, 1fr); }
.mta-ridership .mta-tiles-find .mta-tile strong { font-size: clamp(1.3rem, 4vw, 1.9rem); }
.mta-ridership .mta-find-line { margin: .8em 0 0; }
.mta-ridership .mta-find-copy { margin-left: .4em; padding: .15em .6em; font: inherit; font-size: .85rem; color: var(--mta-accent); background: transparent; border: 1px solid var(--mta-border); border-radius: 6px; cursor: pointer; }
@media (max-width: 760px) { .mta-ridership .mta-tiles-find { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mta-ridership .mta-tiles-find .mta-tile { display: block; } }
/* key findings, FAQ, let's talk */
.mta-ridership .mta-talk { padding: 1.2em 1.4em; }
.mta-ridership .mta-talk h3 { margin-top: 0; }
.mta-ridership .mta-talk a:not(.mta-find-pick) { color: var(--mta-accent); text-decoration: underline; text-underline-offset: 2px; }
.mta-ridership .mta-talk .mta-find-pick { display: inline-block; text-decoration: none; }
.mta-ridership .mta-talk-share { margin-bottom: 0; color: var(--mta-muted); font-size: .9rem; }
.mta-ridership .mta-findings a { color: var(--mta-accent); }
.mta-ridership .mta-findings ul { margin: 0; padding-left: 1.2em; line-height: 1.6; }
.mta-ridership .mta-findings li { margin-bottom: .4em; }
.mta-ridership .mta-faq details { border-bottom: 1px solid var(--mta-border); padding: .7em 0; }
.mta-ridership .mta-faq summary { font-weight: 600; cursor: pointer; }
.mta-ridership .mta-faq details p { margin: .5em 0 0; }
/* congestion pricing page */
.mta-ridership .mta-table-wrap { overflow-x: auto; }
.mta-ridership .mta-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mta-ridership .mta-table th, .mta-ridership .mta-table td { text-align: left; padding: .5em .6em; border-bottom: 1px solid var(--mta-border); vertical-align: top; }
.mta-ridership .mta-table td:not(:first-child), .mta-ridership .mta-table th:not(:first-child) { font-variant-numeric: tabular-nums; }
.mta-ridership .mta-table td.pos { color: #2f9e44; }
.mta-ridership .mta-table td.neg { color: #e8590c; }
.mta-ridership .mta-section a { color: var(--mta-accent); }
.mta-ridership .mta-calc { margin-top: 1em; }
.mta-ridership .mta-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .4em 1em; }
.mta-ridership .mta-calc-grid label { display: flex; flex-direction: column; font-size: .85rem; color: var(--mta-muted); }
.mta-ridership .mta-calc-grid .mta-select { margin: .3em 0 0; width: 100%; }
.mta-ridership .mta-calc-out { margin: .8em 0 0; font-size: 1.05rem; }
.mta-ridership .mta-calc-out strong { font-size: 1.8rem; color: var(--mta-accent); margin-right: .2em; }
.mta-ridership .mta-crz-map { height: 480px; }
/* line report cards */
.mta-ridership a.mta-find-pick { display: inline-block; text-decoration: none; }
.mta-ridership .mta-find-pick.on { border-color: var(--mta-accent); color: var(--mta-accent); }
.mta-ridership .mta-hero-links a { color: var(--mta-accent); }
/* holidays calendar */
.mta-ridership .mta-cal-year { margin: 0 0 1.4em; }
.mta-ridership .mta-cal-year h4 { margin: 0 0 .4em; }
.mta-ridership .mta-cal-wrap { overflow-x: auto; padding-bottom: 4px; }
.mta-ridership .mta-cal-row { display: flex; }
.mta-ridership .mta-cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); grid-auto-columns: 13px; gap: 3px; }
.mta-ridership .mta-cal i { display: block; width: 13px; height: 13px; border-radius: 3px; position: relative; cursor: pointer; }
.mta-ridership .mta-cal i.mta-cal-pad { visibility: hidden; }
.mta-ridership .mta-cal i.lab::after { content: ""; position: absolute; inset: -2px; border: 1.5px solid #fff; border-radius: 4px; opacity: .85; }
.mta-ridership .mta-cal-days { display: grid; grid-template-rows: repeat(7, 13px); gap: 3px; font-size: 10px; color: var(--mta-muted); margin-right: 6px; flex: none; width: 22px; }
.mta-ridership .mta-cal-months { position: relative; height: 14px; margin: 0 0 4px 28px; font-size: 11px; color: var(--mta-muted); }
.mta-ridership .mta-cal-months span { position: absolute; }
.mta-ridership .mta-cal-legend { display: flex; align-items: center; gap: .6em; font-size: .85rem; color: var(--mta-muted); margin: .2em 0 1.4em; }
.mta-ridership .mta-cal-swatches { display: inline-flex; gap: 3px; }
.mta-ridership .mta-cal-swatches i { display: block; width: 13px; height: 13px; border-radius: 3px; }
.mta-cal-tip { position: fixed; z-index: 99999; display: none; pointer-events: none; max-width: 260px; background: #111827; color: #e6edf6; border: 1px solid #334155; border-radius: 8px; padding: 6px 10px; font: 13px/1.45 Inter, system-ui, sans-serif; }
