@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #232521;
  --secondary: #4f524a;
  --muted: #64665e;
  --line: #dedfd7;
  --strong-line: #b3b6aa;
  --paper: #fff;
  --recess: #f7f7f2;
  --accent: #e9bd39;
  --accent-dim: #fff5d4;
  --font: "Instrument Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin: 0; }
button, select { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.skip { position: fixed; left: 16px; top: 10px; padding: 10px; background: var(--accent-dim); transform: translateY(-160%); z-index: 10; }
.skip:focus { transform: translateY(0); }

.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar-inner { max-width: 1340px; height: 74px; padding: 0 40px; margin: auto; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 23px; letter-spacing: -.045em; font-weight: 700; white-space: nowrap; }
.brand-stripe { width: 4px; height: 21px; background: var(--accent); }
.topnav { display: flex; gap: 25px; align-items: center; color: var(--secondary); font-size: .875rem; }
.topnav a, .foot a { text-underline-offset: 4px; }
.topnav a:hover, .foot a:hover { color: var(--ink); text-decoration: underline; }

.shell { max-width: 1340px; margin: auto; display: grid; grid-template-columns: 222px minmax(0, 1fr); min-height: calc(100vh - 75px); }
.side { align-self: stretch; border-right: 1px solid var(--line); padding: 37px 20px; }
.side-nav { display: grid; gap: 2px; }
.side-label { margin: 22px 0 4px 14px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.side-link { min-height: 40px; border-left: 2px solid transparent; padding: 10px 12px; color: var(--secondary); font-size: .9rem; }
.side-link:hover { background: var(--recess); color: var(--ink); }
.side-link[aria-current] { border-left-color: var(--accent); background: var(--recess); color: var(--ink); font-weight: 700; }

.main { min-width: 0; }
.main:focus { outline: none; }
.wrap { max-width: 1028px; margin: 0 auto; padding: 44px 46px 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 23px; color: var(--muted); font-size: .85rem; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-head { padding: 0 0 2px; }
.page-head h1 { font-size: clamp(2.2rem, 4.35vw, 3.6rem); line-height: 1.07; letter-spacing: -.048em; font-weight: 700; }
.page-head p { margin-top: 11px; color: var(--secondary); font-size: 1.02rem; }
.home-head { padding-top: 8px; }

.search-form { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(200px, 1.25fr) max-content; align-items: end; gap: 12px; margin-top: 29px; }
.field { min-width: 0; display: grid; position: relative; gap: 7px; }
.field label { font-size: .83rem; font-weight: 700; }
.field input, .field select { width: 100%; height: 49px; border: 1px solid var(--strong-line); border-radius: 2px; padding: 0 12px; background: var(--paper); color: var(--ink); }
.field input::placeholder { color: var(--muted); }
.search-button, .outline-button { display: inline-flex; justify-content: center; align-items: center; gap: 11px; border: 1px solid var(--ink); border-radius: 2px; min-height: 49px; padding: 0 17px; font-size: .92rem; font-weight: 700; }
.search-button { min-width: 126px; color: #fff; background: var(--ink); }
.search-button:hover { color: var(--ink); background: var(--accent); }
.outline-button { color: var(--ink); background: var(--paper); min-height: 41px; margin-top: 16px; }
.outline-button:hover { background: var(--recess); }
.search-icon { position: relative; display: inline-block; flex: none; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 5px; border-top: 1.5px solid currentColor; transform: rotate(45deg); left: 8px; top: 9px; }
.suggestions { position: absolute; z-index: 4; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 0; max-height: 280px; overflow: auto; list-style: none; border: 1px solid var(--strong-line); background: var(--paper); }
.suggestions li { cursor: pointer; border-bottom: 1px solid var(--line); padding: 8px 11px; font-size: .9rem; }
.suggestions li:last-child { border-bottom: 0; }
.suggestions li:hover, .suggestions li[aria-selected="true"] { background: var(--accent-dim); }
.suggestions small { display: block; color: var(--muted); font-size: .77rem; }
.message { margin-top: 12px; font-size: .875rem; color: var(--secondary); }

.section { margin-top: 37px; }
.section h2, .document h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.18; letter-spacing: -.028em; font-weight: 700; }
.home-index { margin-top: 44px; }
.city-list, .list { display: grid; border-top: 1px solid var(--strong-line); margin: 12px 0 0; padding: 0; list-style: none; }
.city-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.9rem, 30%) 18px; gap: 12px; align-items: center; min-height: 53px; border-bottom: 1px solid var(--line); padding: 9px 9px 9px 0; }
.city-row:hover, .result:hover { background: var(--recess); }
.city-name, .result strong { font-weight: 700; }
.city-availability { font-size: .85rem; color: var(--secondary); }
.row-arrow { width: 12px; height: 1px; position: relative; background: currentColor; justify-self: end; }
.row-arrow::after { content: ""; position: absolute; top: -3px; right: 1px; width: 7px; height: 7px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.list-head p { color: var(--muted); font-size: .88rem; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 14px; min-height: 53px; border-bottom: 1px solid var(--line); padding: 9px 8px 9px 0; }
.result small { display: block; color: var(--muted); font-size: .82rem; }

.tip { margin-top: 19px; border-left: 3px solid var(--accent); background: var(--recess); padding: 11px 13px; color: var(--secondary); font-size: .89rem; }
.tip strong { color: var(--ink); }
.turns { border-top: 1px solid var(--strong-line); margin-top: 14px; }
.turn { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(130px, .8fr) minmax(0, 2.4fr); gap: 15px; align-items: start; border-bottom: 1px solid var(--line); padding: 13px 9px; }
.turn-labels { font-weight: 700; font-size: .8rem; background: var(--recess); color: var(--secondary); }
.turn small { display: block; color: var(--muted); font-size: .79rem; margin-top: 2px; }
.turn-time { font: 600 .94rem/1.5 var(--mono); white-space: nowrap; }
.turn-time-missing { font: 600 .9rem/1.5 var(--font); white-space: normal; }
.turn-span { overflow-wrap: anywhere; }
.source-list { padding-left: 19px; display: grid; gap: 7px; margin: 10px 0 0; color: var(--secondary); font-size: .9rem; }
.source-list a, .document a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.document { max-width: 680px; }
.document h2 { margin-top: 24px; }
.document p { margin-top: 7px; color: var(--secondary); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); margin-top: 45px; border-top: 1px solid var(--line); padding: 12px 0 22px; font-size: .81rem; }

@media (max-width: 1000px) {
  .topbar-inner { padding: 0 25px; }
  .shell { grid-template-columns: 188px minmax(0,1fr); }
  .side { padding: 28px 12px; }
  .wrap { padding: 35px 30px 0; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .side { display: none; }
  .wrap { max-width: 700px; }
}
@media (max-width: 560px) {
  .topbar-inner { height: 62px; padding: 0 17px; }
  .topnav { gap: 11px; font-size: .81rem; }
  .topnav a:last-child { display: none; }
  .wrap { padding: 23px 17px 0; }
  .home-head { padding-top: 1px; }
  .page-head h1 { font-size: clamp(2rem, 8vw, 2.65rem); }
  .page-head p { font-size: .94rem; }
  .crumbs { margin-bottom: 16px; }
  .search-form { grid-template-columns: minmax(0,1fr); gap: 10px; margin-top: 19px; }
  .search-button { margin-top: 3px; }
  .section, .home-index { margin-top: 29px; }
  .city-row { display: grid; grid-template-columns: minmax(0,1fr) 18px; gap: 1px 13px; padding: 9px 4px 9px 0; }
  .city-availability { grid-row: 2; font-size: .8rem; }
  .city-row .row-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .turn-labels { display: none; }
  .turn { grid-template-columns: 1fr auto; gap: 4px 8px; padding: 11px 7px; }
  .turn-span { grid-column: 1 / -1; font-size: .91rem; color: var(--secondary); }
  .turn-span-empty { display: none; }
  .turn-time { text-align: right; }
}

.parking-plan { border-left: 3px solid var(--accent); padding: 4px 0 4px 15px; }
.parking-plan > p { color: var(--secondary); margin-top: 8px; }
.parking-steps { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.parking-steps li { display: grid; grid-template-columns: minmax(9rem,.85fr) minmax(0,1.85fr); gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.parking-steps span { overflow-wrap: anywhere; }
.turn-holiday { grid-column: 1 / -1; font-weight: 700; }
.parking-note, .noscript { font-size: .9rem; color: var(--secondary); }
.noscript { padding: 12px 17px; }
@media (max-width: 560px) {
  .parking-steps li { grid-template-columns: 1fr; gap: 2px; }
}

.foot-links { display: flex; flex-wrap: wrap; gap: 7px 20px; }
.sources-city { margin-top: 16px; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.sources-city h3 { font-size: 1rem; font-weight: 700; }
.sources-city .source-list { margin-top: 5px; }
.sources-city .source-date { font-size: .85rem; color: var(--muted); }

.letters { display: flex; flex-wrap: wrap; gap: 3px; margin: 7px 0 13px; }
.letters a { min-width: 31px; min-height: 34px; padding: 6px; text-align: center; border: 1px solid var(--line); }
.letters a:hover, .letter-group summary:hover { background: var(--accent-dim); }
.letter-group { border-top: 1px solid var(--line); }
.letter-group:last-child { border-bottom: 1px solid var(--line); }
.letter-group summary { padding: 7px 4px; min-height: 39px; cursor: pointer; }
.letter-group summary span { float: right; font-size: .83rem; color: var(--muted); }
.letter-group .list { margin-top: 0; }
.letter-group .result { padding-left: 15px; }
.parking-plan a, .service-events a { text-decoration: underline; text-underline-offset: 3px; }
.service-events { color: var(--secondary); padding-left: 20px; margin: 10px 0 0; }
.service-events li + li { margin-top: 8px; }
.next-block { background: var(--recess); padding: 12px 15px; }
.parking-steps:empty { display: none; }
#search-results h2:focus { outline: none; }
