/* The 2022 study page (/alternatives/): a short summary with bar charts and one lane diagram.
   Used only by src/alternatives.html, loaded after styles.css. Colours are the design-system
   tokens declared in styles.css. Nothing is rounded, and there are no cards. */
.brief { padding-bottom: 8px; }
.brief .section > p, .brief .section > ul, .brief .section > figure, .brief .section > blockquote { max-width: 44em; }
.brief .section > h2 + p { margin-top: 20px; }
.brief .section > p { font-size: clamp(17px, 1.3vw, 19px); }

/* one pull quote: a rule above and below, no side bar */
.pull { margin: 24px 0; padding: 14px 0; border-top: 2px solid var(--ls-red); border-bottom: 1px solid var(--ls-rule); }
.pull p { margin: 0; font-style: italic; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; }
.pull p::before { content: "\201C"; }
.pull p::after { content: "\201D"; }
.pull footer { margin-top: 8px; font-size: 14px; color: var(--ls-muted); }

/* charts: a full-sentence caption, then horizontal bars that start at zero */
.chart { margin: 26px 0 24px; }
.chart figcaption { margin: 0 0 14px; font-size: 16px; font-weight: 700; line-height: 1.4; max-width: none; }
.bars { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ls-ink); }
.bars li { padding: 5px 0 9px; }
.bars .name { display: block; padding-left: 8px; font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.bars .track { display: flex; align-items: center; gap: 8px; }
.bars .bar { flex: 0 0 auto; width: calc((100% - 3.4em) * var(--n)); height: 26px; background: var(--ls-tan); }
.bars .val { font: 800 24px/1 var(--ls-font-display); color: var(--ls-ink); font-variant-numeric: tabular-nums lining-nums; }
.bars .lead .bar { background: var(--ls-red); }
.bars .lead .val { color: var(--ls-red); }
.bars .ours .bar { background: var(--ls-yellow); box-shadow: inset 0 0 0 2px var(--ls-ink); }
.bars .ours .name { font-weight: 700; }

/* lane diagram: the dashed lines mark today's curbs; the tested design reaches past them */
.lanes { position: relative; padding: 0 7.5%; }
.lanes::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7.5%; right: 7.5%; border-left: 2px dashed var(--ls-ink); border-right: 2px dashed var(--ls-ink); pointer-events: none; }
.lanes .row-name { margin: 0; padding: 10px 8px 6px; font-size: 15px; line-height: 1.3; }
.lanes .row { display: flex; gap: 2px; height: 44px; }
.lanes .row.wide { margin: 0 -8.8%; }
.lanes .row span { flex: 1 1 0; min-width: 0; display: grid; place-items: center; background: var(--ls-tan); color: var(--ls-ink); font: 800 15px/1 var(--ls-font-display); letter-spacing: .01em; }
.lanes .row .bus { background: var(--ls-red); color: #fff; }
.lanes .row .stop { flex-grow: 1.3; background: var(--ls-stone); }
.lanes .curb-note { margin: 0; padding: 8px 8px 0; font-size: 14px; color: var(--ls-muted); }

.short-list { padding-left: 1.2em; margin: 0 0 1em; }
.short-list li { margin-bottom: 10px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 24px; }
/* keep the outer lane labels clear of the dashed curb lines */
.lanes .row.wide span:first-child { justify-items: start; padding-left: 5px; }
.lanes .row.wide span:last-child { justify-items: end; padding-right: 5px; }

/* tally: three big numbers, each with one sentence */
.tally { list-style: none; margin: 22px 0 8px; padding: 18px 0; border-top: 1px solid var(--ls-rule); border-bottom: 1px solid var(--ls-rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; max-width: 44em; }
.tally b { display: block; font: 800 clamp(44px, 6vw, 64px)/1 var(--ls-font-display); color: var(--ls-red); }
.tally span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; }
@media (max-width: 600px) {
  .tally { grid-template-columns: 1fr; gap: 12px; }
  .tally li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .tally b { font-size: 48px; }
  .tally span { margin-top: 0; }
}

/* gaps: what the report says, then the two scores side by side */
.gaps { list-style: none; margin: 8px 0 0; padding: 0; max-width: 44em; }
.gaps li { padding: 20px 0; border-bottom: 1px solid var(--ls-rule); }
.gaps h3 { font-size: clamp(22px, 2.2vw, 28px); }
.gaps p { margin: 8px 0 0; }
.gaps .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin-top: 12px; }
.gaps .chips span { background: var(--ls-tan-soft); padding: 8px 12px; font-size: 14px; line-height: 1.3; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gaps .chips b { font: 800 30px/1 var(--ls-font-display); color: var(--ls-red); }
.gaps .chips span + span b { color: var(--ls-ink); }

/* fold-out breakdowns */
.fold { margin: 24px 0 0; max-width: 52em; border-top: 2px solid var(--ls-red); border-bottom: 1px solid var(--ls-rule); }
.fold summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 17px; color: var(--ls-red); }
.fold[open] summary { border-bottom: 1px solid var(--ls-rule); margin-bottom: 14px; }
.fold > p { max-width: 44em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 20px; }
.scores { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums lining-nums; }
.scores caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 8px; }
.scores th, .scores td { padding: 7px 8px; border-bottom: 1px solid var(--ls-rule); vertical-align: top; text-align: left; }
.scores thead th { border-bottom: 2px solid var(--ls-ink); }
.scores tbody th { font-weight: 500; }
.scores .group th { background: var(--ls-tan-soft); font-family: var(--ls-font-display); font-weight: 800; font-size: 16px; color: var(--ls-trim); }
.scores tfoot th, .scores tfoot td { font-weight: 800; border-top: 2px solid var(--ls-ink); border-bottom: 0; }
.scores .ours th, .scores .ours td { font-weight: 700; }
.scores.results { min-width: 0; }

/* ---------- funding page (/funding/) ---------- */
.bars .pending .bar { background: repeating-linear-gradient(135deg, var(--ls-yellow) 0 8px, var(--ls-paper) 8px 12px); box-shadow: inset 0 0 0 2px var(--ls-ink); }
.bars .pending .name { font-weight: 700; }
.key { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; line-height: 1.35; }
.key li { display: flex; align-items: center; gap: 8px; }
.key .sw { flex: none; width: 16px; height: 16px; }
.phases { display: grid; grid-template-columns: 6fr 2.4fr 3.6fr; gap: 3px; }
.phases span { min-height: 64px; display: grid; place-items: center; text-align: center; padding: 6px 4px; font: 800 15px/1.15 var(--ls-font-display); letter-spacing: .01em; }
.phases .first, .sw.first { background: var(--ls-red); color: #fff; }
.phases .later, .phases .ls, .sw.later { background: repeating-linear-gradient(135deg, var(--ls-tan) 0 8px, var(--ls-paper) 8px 12px); color: var(--ls-ink); }
.phases .ls { box-shadow: inset 0 0 0 4px var(--ls-yellow); }
.dates { list-style: none; margin: 20px 0 0; padding: 0; max-width: 44em; border-top: 3px solid var(--ls-red); }
.dates li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 0 16px; padding: 14px 0; border-bottom: 1px solid var(--ls-rule); align-items: baseline; }
.dates time { font: 800 22px/1.1 var(--ls-font-display); color: var(--ls-trim); }
.dates .key-date { background: var(--ls-yellow); padding-left: 12px; padding-right: 12px; border-bottom: 0; }
.dates .key-date span { font-weight: 700; }
@media (max-width: 480px) { .dates li { grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; } .dates time { font-size: 19px; } }
@media (max-width: 420px) { .lanes .row span { font-size: 12px; letter-spacing: 0; } }
