/* Congestion Data. The page heading is set like a U.S. highway guide sign: green panel, white legend, white
   inset border, in Overpass, the open-source descendant of the FHWA highway typefaces. Everything else stays
   quiet: white page, black text, hairline rules, and status marks that pair a shape with a word. */

@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #000000;
  --ink-2: #39443e;
  --muted: #5f6b64;
  --rule: #d3dbd6;
  --rule-strong: #8f9d95;
  --wash: #f2f5f3;
  --sign: #006747;
  --sign-dark: #00573c;
  --sign-ink: #ffffff;
  --link: #00573c;
  --focus: #1f5fbf;
  --caution: #fab219;
  --good: #0ca30c;
  --bad: #d03b3b;
  --series-emph: #2a78d6;
  --series-context: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --tick: #52514e;
  --gm-accent: #c44127;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0e1210;
    --ink: #f2f4f3;
    --ink-2: #c5cec9;
    --muted: #9aa69f;
    --rule: #2b3430;
    --rule-strong: #5a6862;
    --wash: #161c19;
    --sign: #005c40;
    --sign-dark: #004d35;
    --link: #8fd8b8;
    --focus: #8fb8ff;
    --series-emph: #3987e5;
    --grid: #2c2c2a;
    --axis: #383835;
    --tick: #c3c2b7;
    --gm-accent: #ee542e;
  }
}

* { box-sizing: border-box; }

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  font-kerning: normal;
}

.top, main, .foot { max-width: 66rem; margin-inline: auto; padding-inline: 1rem; }

p, ul, ol, dl, details { max-width: 44rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 0.5rem; background: var(--page); padding: 0.4rem 0.75rem; z-index: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { line-height: 1.15; }
h2 { font-size: 1.45rem; font-weight: 750; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.15rem; font-weight: 700; }

/* The menu, then the sign. */
.menu { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; padding-top: 1rem; font-weight: 650; }
.menu a { color: var(--ink); text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--rule-strong); }
.menu a[aria-current="page"] { border-bottom-color: var(--sign); }
.top-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.4rem; padding-top: 1rem; }
.top-bar .menu { padding-top: 0; }

/* GoMain's mark, as gomain.com sets it: the pulse line in GoMain's orange-red, then the wordmark in Arial. The line
   draws itself left to right once as the page loads (the header's mark only), and again on hover or keyboard
   focus; it stays still for visitors who ask for less motion. */
.gm-logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.053em;
  line-height: 1;
}
.gm-logo:hover { text-decoration: none; }
.gm-logo svg { width: 0.94em; height: 1.06em; margin-right: 0.3em; fill: none; stroke: var(--gm-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gm-logo svg path { stroke-dasharray: 62; stroke-dashoffset: 0; }
.gm-dot { color: var(--gm-accent); }
.top .gm-logo svg { animation: gm-reveal 0.9s ease-out 0.25s both; }
.gm-logo:hover svg path, .gm-logo:focus-visible svg path { animation: gm-beat 0.7s ease-out; }
@keyframes gm-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes gm-beat { from { stroke-dashoffset: 62; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .gm-logo svg, .gm-logo svg path { animation: none !important; } }
.foot-brand { margin: 0 0 0.9rem; }
.foot .gm-logo { font-size: 1.25rem; }
/* On a phone the menu wraps, so the mark goes first, like a masthead, rather than between the menu and the sign. */
@media (max-width: 40rem) { .top-bar .gm-logo { order: -1; font-size: 1.35rem; } }

.sign {
  background: var(--sign);
  color: var(--sign-ink);
  border-radius: 0.95rem;
  padding: 1.35rem 1.7rem 1.5rem;
  margin: 0.85rem 0 2rem;
  box-shadow: inset 0 0 0 0.35rem var(--sign), inset 0 0 0 0.48rem var(--sign-ink);
}
.sign h1 { font-size: clamp(1.85rem, 5vw, 3.1rem); font-weight: 800; margin: 0; letter-spacing: 0.004em; }
.sign a { color: inherit; text-decoration: none; }
.sign a:hover { text-decoration: underline; }
.sign-route { margin: 0 0 0.4rem; font-weight: 700; font-size: 0.95rem; }
.sign-sub { margin: 0.55rem 0 0; font-size: 1.08rem; line-height: 1.4; }

.lede { font-size: 1.2rem; line-height: 1.5; }
.deadline { border-left: 4px solid var(--caution); padding: 0.3rem 0 0.3rem 0.9rem; }
.note, .source { color: var(--ink-2); font-size: 0.92rem; }

/* Tables: numbers align, rules are hairlines, the head carries one strong rule. */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; }
.table-wrap.narrow { max-width: 44rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
caption { caption-side: top; text-align: left; color: var(--ink-2); font-size: 0.9rem; padding-bottom: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.55rem 0.9rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
thead th { font-size: 0.85rem; font-weight: 700; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
tbody th { font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
.unit, .partial { font-weight: 400; color: var(--muted); }
.partial { font-size: 0.85em; }

/* Status: a shape and a word, never colour alone. Circle: better. Square: worse. Diamond (a warning sign): missing. */
.status { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 650; white-space: nowrap; margin-right: 0.3em; }
.status .glyph { display: inline-block; flex: none; width: 0.78em; height: 0.78em; }
.status-good .glyph { background: var(--good); border-radius: 50%; }
.status-bad .glyph { background: var(--bad); }
.status-missing .glyph { background: var(--caution); width: 0.62em; height: 0.62em; transform: rotate(45deg); box-shadow: 0 0 0 1px #000; }

/* The area's facts and the Studio's summary. */
.facts, .summary { display: grid; gap: 0.9rem 2rem; margin: 1rem 0; padding: 0; }
.facts { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.summary { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); max-width: none; }
.facts div, .summary div { border-top: 1px solid var(--rule); padding-top: 0.45rem; }
.facts dt, .summary dt { color: var(--ink-2); font-size: 0.85rem; }
.facts dd { margin: 0.1rem 0 0; font-size: 1.3rem; font-weight: 700; }
.summary dd { margin: 0.1rem 0 0; font-size: 1.05rem; font-weight: 700; }

/* New York's headline figures. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem 2rem; margin: 1rem 0 0.5rem; }
.tile { border-top: 3px solid var(--sign); padding-top: 0.7rem; }
.tile p { margin: 0; }
.tile-label { font-size: 0.9rem; font-weight: 650; color: var(--ink-2); }
.tile-value { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin: 0.15rem 0 0.25rem !important; }
.tile-note { font-size: 0.9rem; color: var(--ink-2); }

/* Charts, drawn as inline SVG at build time. */
.chart { margin: 1.25rem 0 0.75rem; max-width: 44rem; }
.chart figcaption { font-weight: 700; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; padding: 0; margin: 0.35rem 0 0.4rem; font-size: 0.9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 0.45rem; }
.key { display: inline-block; width: 1.3rem; border-top: 2px solid; }
.key-emph { border-color: var(--series-emph); }
.key-context { border-color: var(--series-context); }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-svg .axis { stroke: var(--axis); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-svg .tick { fill: var(--tick); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-svg .line.series-emph { stroke: var(--series-emph); }
.chart-svg .line.series-context { stroke: var(--series-context); }
.chart-svg .dot { stroke: var(--page); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-svg .dot.series-emph { fill: var(--series-emph); }
.chart-svg .dot.series-context { fill: var(--series-context); }
.chart-svg .value-label { fill: var(--ink); font-size: 13px; font-weight: 700; }
.chart-svg .hit { fill: transparent; }
.chart-svg .hit:hover { fill: var(--wash); fill-opacity: 0.6; }
@media (max-width: 34rem) {
  .chart-svg .tick { font-size: 19px; }
  .chart-svg .value-label { font-size: 20px; }
  .chart-svg .dot { r: 6px; }
}

/* The Studio. */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: start; margin: 1rem 0; }
@media (max-width: 50rem) { .studio-grid { grid-template-columns: 1fr; } }
.fields { display: grid; gap: 0.85rem; }
.fields-row { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1rem 0 1.5rem; max-width: none; }
label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.92rem; }
label.check { display: flex; align-items: center; gap: 0.55rem; font-weight: 500; }
input, select, button { font: inherit; }
/* Fields a schedule doesn't use are hidden; the label rule above would otherwise show them. */
[hidden] { display: none !important; }
input[type="number"], input[type="date"], input[type="time"], input[type="text"], select {
  min-height: 2.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.35rem;
  background: var(--page);
  color: var(--ink);
}
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--sign); }
.fields > label { min-width: 0; }
.fields select, .fields input:not([type="checkbox"]) { width: 100%; min-width: 0; }
table.inputs input { width: 7.5rem; }
/* A button that sits in a row of fields, level with their inputs. */
.field-action { align-self: end; margin: 0; }
table.inputs td, table.inputs th { vertical-align: middle; }
.result { border-left: 3px solid var(--sign); padding-left: 1.25rem; }
.price { font-size: 3.2rem; font-weight: 800; line-height: 1; margin: 0 0 0.75rem; }
.steps { margin: 0 0 1rem; padding-left: 1.3rem; }
.steps li { margin: 0.25rem 0; }
.step-amount { display: inline-block; min-width: 4.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fingerprint { font-size: 0.85rem; color: var(--ink-2); }
code { font-size: 0.88em; overflow-wrap: anywhere; }
.errors { color: var(--bad); padding-left: 1.2rem; font-weight: 600; }
.errors:empty { display: none; }
.steps .error { color: var(--bad); font-weight: 600; }
button {
  cursor: pointer;
  border: 0;
  border-radius: 0.4rem;
  padding: 0.6rem 1rem;
  margin-right: 0.6rem;
  background: var(--sign);
  color: var(--sign-ink);
  font-weight: 700;
}
button:hover { background: var(--sign-dark); }
details { margin: 1.25rem 0; }
/* Paste-ready text for the Application Template, set apart from the measured results. */
.template-text { border-left: 3px solid var(--rule-strong); padding-left: 1rem; }
summary { cursor: pointer; font-weight: 650; }

/* The corridor tool. */
ul.tests { list-style: none; padding-left: 0; }
ul.tests li { margin: 0.4rem 0; }
.synthetic { color: var(--bad); font-weight: 700; }
.file-status { color: var(--ink-2); }
.download { font-weight: 600; }
.notes { color: var(--ink-2); font-size: 0.92rem; }

.foot { margin-top: 3.5rem; padding-top: 1.25rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.9rem; }

@media (max-width: 34rem) {
  .sign { padding: 1.1rem 1.15rem 1.2rem; border-radius: 0.8rem; }
  .price { font-size: 2.6rem; }
  .tile-value { font-size: 2.2rem; }
}

/* The performance report's narrative and the readiness worksheet. */
textarea {
  font: inherit;
  width: 100%;
  min-height: 5.5rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid var(--rule-strong);
  border-radius: 0.35rem;
  background: var(--page);
  color: var(--ink);
  resize: vertical;
}
.narrative { max-width: 44rem; margin: 1rem 0 1.5rem; }
table.practices th { font-weight: 500; }
table.practices td { width: 14rem; }
table.inputs select { min-width: 12rem; }
dl.risks dt { font-weight: 650; margin-top: 0.75rem; }
dl.risks dd { margin: 0.15rem 0 0; color: var(--ink-2); max-width: 44rem; }
blockquote.template-text { margin: 1rem 0 1.25rem; max-width: 44rem; }
