:root {
  --paper: #f7f4f0;
  --white: #fffdfa;
  --ink: #262329;
  --muted: #625c66;
  --rule: #d9d3db;
  --accent: #634b70;
  --second: #a47949;
  --third: #447b7b;
  --pale: #ebe4ed;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 "Segoe UI", system-ui, sans-serif; }
body.delhi { --paper: #f3f2eb; --white: #fffef9; --ink: #203b35; --muted: #53665f; --rule: #cdd6ce; --accent: #246454; --second: #ae742a; --third: #567e99; --pale: #e2eae0; }
body.taxi { --paper: #f2f4f6; --white: #fff; --ink: #1f3448; --muted: #566575; --rule: #cdd5dd; --accent: #2e587b; --second: #b5633d; --third: #69886a; --pale: #e3e9ef; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, select { color: var(--ink); background: var(--white); border: 1px solid var(--rule); padding: 7px 11px; border-radius: 2px; }
button { cursor: pointer; }
button:hover { border-color: var(--accent); background: var(--pale); }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid var(--second); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; top: -80px; left: 16px; padding: 10px 20px; background: var(--white); z-index: 30; }
.skip:focus { top: 10px; }
.masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead-inner { max-width: 1280px; margin: auto; min-height: 60px; padding: 12px 32px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.wordmark { text-decoration: none; font-size: 14px; font-weight: 650; white-space: nowrap; }
nav { display: flex; gap: 23px; overflow-x: auto; }
nav a { font-size: 13px; text-decoration: none; white-space: nowrap; }
main, .footer-inner { max-width: 1280px; margin: auto; padding: 0 32px; }
.hero { padding: 68px 0 44px; border-bottom: 1px solid var(--ink); }
.eyebrow, .section-no, .chart-number { text-transform: uppercase; letter-spacing: .13em; font: 11px/1.5 "Cascadia Code", Consolas, monospace; color: var(--muted); }
h1 { font: 500 clamp(42px, 5.6vw, 76px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.035em; max-width: 1000px; margin: 24px 0; }
h1 em { color: var(--accent); font-weight: 400; }
.delhi h1 { max-width: 840px; }
.taxi h1 { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 650; letter-spacing: -.045em; }
.hero-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end; }
.dek { max-width: 720px; font-size: 19px; line-height: 1.6; margin: 0; }
.byline { color: var(--muted); font-size: 13px; margin-top: 22px; }
.hero-facts { display: flex; gap: 30px; justify-content: flex-end; }
.hero-facts div { padding-left: 18px; border-left: 1px solid var(--rule); }
.hero-facts strong { display: block; font: 500 34px/1.2 Georgia, serif; font-variant-numeric: tabular-nums; color: var(--accent); }
.hero-facts span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.reader-note { padding: 16px 0; margin: 0; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: 13px; }
.report-section { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 52px; padding: 56px 0; border-bottom: 1px solid var(--rule); }
.section-head h2 { font: 500 31px/1.2 Georgia, serif; margin: 12px 0 16px; letter-spacing: -.02em; }
.section-head p { color: var(--muted); font-size: 14px; }
.section-body { min-width: 0; }
h3 { font-size: 21px; line-height: 1.35; margin: 0 0 10px; font-weight: 600; }
.chart-intro { color: var(--muted); margin: 0 0 22px; max-width: 760px; }
.figure { margin: 0 0 36px; background: var(--white); padding: 22px 24px 14px; border-top: 2px solid var(--accent); }
.figure:last-child { margin-bottom: 0; }
.figure-head { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 12px; }
.figure-head h3 { font-size: 17px; font-weight: 600; }
.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.controls label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.controls select { max-width: 100%; }
.chart { height: 350px; width: 100%; min-width: 0; }
.chart.map { height: 570px; }
.chart.heat { height: 440px; }
.chart-note { font-size: 12px; color: var(--muted); margin: 12px 0; }
.chart-note::before { content: "Note. "; font-weight: 650; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 10px; font-size: 12px; }
.chart-tools button { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: 12px; }
details { margin: 14px 0; font-size: 13px; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.table-scroll { overflow-x: auto; max-height: 360px; margin-top: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--rule); text-align: left; }
th { font-weight: 600; background: var(--pale); white-space: nowrap; }
.readout { background: var(--pale); border-left: 3px solid var(--accent); padding: 14px 18px; margin-top: 18px; font-size: 14px; min-height: 62px; }
.readout strong { display: block; font-size: 15px; }
.analysis { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0 0; }
.analysis h3 { font: 500 23px/1.3 Georgia, serif; }
.analysis p, .analysis li { font-size: 15px; }
.analysis ul { padding-left: 18px; }
.analysis li { margin: 8px 0; }
.pullquote { padding: 20px 0 20px 20px; border-left: 2px solid var(--second); font: 500 26px/1.35 Georgia, serif; margin: 24px 0; }
.pullquote small { display: block; font: 13px/1.6 "Segoe UI", sans-serif; color: var(--muted); margin-top: 12px; }
.method { padding: 0; list-style: none; counter-reset: method; }
.method li { padding: 15px 0 15px 42px; border-bottom: 1px solid var(--rule); position: relative; }
.method li::before { counter-increment: method; content: counter(method, decimal-leading-zero); position: absolute; left: 0; color: var(--accent); font: 14px Consolas, monospace; top: 19px; }
.method b { display: block; }
.method span { font-size: 14px; color: var(--muted); }
.sources { font-size: 14px; padding-left: 18px; }
.sources li { margin: 10px 0; }
.error { border: 2px solid #a34439; color: #8c3026; background: #fff; padding: 18px; margin: 20px 0; }
.sample-note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--second); padding-left: 16px; margin: 24px 0; }
footer { margin-top: 40px; padding: 32px 0 44px; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.js-plotly-plot .plotly .modebar { background: var(--white) !important; }
@media (max-width: 1000px) {
  .report-section { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
  .hero-bottom { gap: 28px; }
  .hero-facts { gap: 15px; }
}
@media (max-width: 760px) {
  .masthead-inner { padding: 12px 20px; flex-wrap: wrap; gap: 10px; }
  nav { gap: 20px; width: 100%; }
  main, .footer-inner { padding: 0 20px; }
  .hero { padding: 36px 0 28px; }
  .hero-bottom, .report-section, .analysis { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { justify-content: flex-start; margin-top: 4px; gap: 24px; }
  .hero-facts strong { font-size: 29px; }
  .dek { font-size: 17px; }
  .report-section { gap: 14px; padding: 36px 0; }
  .section-head h2 { margin: 6px 0 12px; }
  .section-head p { margin-bottom: 8px; }
  .figure { padding: 16px 10px 12px; margin-left: -8px; margin-right: -8px; }
  .figure-head { flex-wrap: wrap; gap: 4px; }
  .chart { height: 310px; }
  .chart.map { height: 460px; }
  .chart.heat { height: 470px; }
  .controls { align-items: flex-start; }
  .analysis { gap: 12px; }
  .hero-facts div:first-child { padding-left: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .masthead { position: static; }
  nav, .controls, .chart-tools, .modebar { display: none !important; }
  .report-section { display: block; }
  .figure { break-inside: avoid; }
}
