@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  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;
}

:root {
  --ink: #17324b;
  --blue: #143654;
  --deep: #0f2942;
  --teal: #00675c;
  --mint: #b6eade;
  --soft-teal: #e1f3ee;
  --quiet: #4a6070;
  --paper: #fbf8f1;
  --white: #fffefa;
  --line: #d7dedb;
  --sand: #eeeae0;
  --yellow: #fff0ca;
  --amber: #704a0d;
  --rose: #fce8e4;
  --red: #8a3028;
  --focus: #2478af;
  --radius: .75rem;
  color-scheme: light;
  font-family: Manrope, system-ui, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; }
button, input, textarea, select { max-width: 100%; }
button:disabled { opacity: .57; }
a { color: var(--teal); }
img, svg { vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
:target { scroll-margin-top: 1rem; }

.symbol-library, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 1100;
  top: .5rem;
  left: .5rem;
  padding: .75rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
}

.skip-link:not(:focus) { clip-path: inset(50%); }
.shell { width: min(100% - 2rem, 84rem); margin-inline: auto; }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button, .view-button, .chip {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .625rem .875rem;
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}
.button-outline { border-color: var(--line); background: var(--white); }
.button-outline:hover { border-color: #829b9a; background: #f1f8f5; }
.button-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--deep); }
.text-link, .text-button { color: var(--teal); font-weight: 800; font-size: .875rem; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .2rem; }
.text-button:hover { background: var(--soft-teal); }
.icon-button { flex-shrink: 0; width: 2.75rem; padding: .5rem; }

.site-header { border-bottom: 1px solid #ffffff24; background: var(--white); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 4.375rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -.065em; white-space: nowrap; }
.header-links { display: flex; align-items: center; gap: .75rem; }
.header-links > .text-link { display: none; }
.header-links .icon { width: 1rem; height: 1rem; }
.header-links .button { font-size: .8125rem; }

.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}
.intro::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: repeating-radial-gradient(ellipse at 97% 110%, transparent 0 1.45rem, #b6eade19 1.5rem 1.55rem);
  mask-image: linear-gradient(90deg, transparent 20%, #000);
  pointer-events: none;
}
.intro-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.25rem 2rem; padding-block: 1.5rem 1.75rem; }
.region { display: flex; align-items: center; gap: .375rem; color: var(--mint); font-size: .8125rem; font-weight: 800; }
.region .icon { width: 1rem; height: 1rem; }
h1 { margin-block: .25rem .375rem; font-size: clamp(2.125rem, 5.7vw, 4.25rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.05; }
.intro-note { color: #e3efed; font-size: .875rem; }
.publication { display: flex; align-items: center; gap: .75rem; min-width: 13.5rem; padding: .625rem .75rem; border: 1px solid #a8d5d63b; border-radius: var(--radius); background: #0f2942dd; }
.publication-icon { width: 1.5rem; height: 1.5rem; color: var(--mint); }
.publication-label { color: #cfdfdf; font-size: .75rem; }
.publication-time { margin-top: .125rem; font-size: .875rem; font-weight: 800; }

.content { padding-block: 1rem 2rem; }
.filters { margin-bottom: 1.375rem; }
.filter-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.search-field, .district-field { display: flex; align-items: center; gap: .5rem; min-width: 0; padding-left: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.search-field { grid-column: 1 / -1; }
.search-field .icon, .district-field .icon { color: var(--teal); }
.search-field:focus-within, .district-field:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.search-field input, .district-field select { width: 100%; min-height: 2.875rem; min-width: 0; padding: .5rem .625rem .5rem 0; border: 0; background: transparent; outline: 0; }
.search-field input::placeholder { color: var(--quiet); opacity: 1; }
.district-field select { margin-right: .5rem; text-overflow: ellipsis; font-weight: 700; }
.nearby { gap: .375rem; color: var(--teal); }
.nearby[aria-pressed="true"] { background: var(--soft-teal); border-color: #8ebeb3; }
.filter-secondary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.quick-grades { display: flex; flex-wrap: wrap; gap: .375rem; }
.chip { padding-inline: .625rem; background: var(--white); border-color: var(--line); white-space: nowrap; }
.chip:hover { border-color: #829b9a; }
.chip[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.filter-button { padding-inline: .625rem; background: var(--sand); --icon-fill: var(--sand); }
.filter-button:hover, .filter-button[aria-expanded="true"] { background: var(--soft-teal); --icon-fill: var(--soft-teal); }
.filter-count { display: grid; place-items: center; min-width: 1.125rem; height: 1.125rem; border-radius: 50%; color: #fff; background: var(--teal); font-size: .6875rem; }
.more-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.more-filters label, .report-form label { display: grid; min-width: 0; gap: .375rem; color: var(--quiet); font-size: .8125rem; font-weight: 800; }
.more-filters label.queue-filter { display: flex; align-items: center; align-self: stretch; gap: .5rem; min-height: 2.75rem; cursor: pointer; color: var(--ink); font-size: .875rem; }
.queue-filter input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--teal); }
.more-filters select, .report-form select, .report-form input, .report-form textarea, #share-url {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: .5rem .625rem;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.results-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.results-heading h2 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.045em; font-weight: 800; }
.result-count { margin-top: .25rem; color: var(--quiet); font-size: .8125rem; font-weight: 700; }
.results-controls { display: flex; gap: .5rem; align-items: center; }
.district-share { background: var(--white); border-color: var(--line); color: var(--teal); }
.view-switch { display: flex; gap: .25rem; padding: .25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.view-button { gap: .375rem; padding-inline: .5rem; }
.view-button:hover { background: #f9f8f3; }
.view-button[aria-pressed="true"] { border-color: var(--line); color: var(--teal); background: var(--white); box-shadow: 0 1px 2px #17324b12; }
.view-button .icon { width: 1rem; height: 1rem; }
.page-message { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; padding: .75rem 1rem; margin-bottom: .75rem; border: 1px solid #e2cfac; border-radius: var(--radius); background: #fff5df; color: #624314; font-size: .875rem; font-weight: 700; }
.page-message .button { background: var(--white); }
.results-layout { display: grid; gap: .75rem; min-width: 0; align-items: start; }
.results-layout[data-view="map"] .list-panel, .results-layout[data-view="list"] .map-panel { display: none; }
.list-panel, .map-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.list-controls { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 3.25rem; padding: .25rem .75rem; border-bottom: 1px solid var(--line); color: var(--quiet); font-size: .8125rem; font-weight: 800; }
.list-controls select { min-height: 2.75rem; max-width: 70%; border: 0; background: transparent; color: var(--ink); font-size: .875rem; font-weight: 800; }
.station-list { display: grid; padding: .625rem; margin: 0; list-style: none; gap: .625rem; }
.station-list:empty { display: none; }
.station-card { display: block; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.station-card:focus-within, .station-card:hover { border-color: #8ebeb3; }
.station-card a { display: grid; gap: .625rem; height: 100%; padding: .75rem; text-decoration: none; color: var(--ink); border-radius: inherit; }
.card-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .625rem; }
.card-icon, .state-icon { display: grid; place-items: center; width: 2.625rem; height: 2.625rem; background: var(--soft-teal); border-radius: .625rem; color: var(--teal); }
.card-copy { min-width: 0; }
.card-title { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.card-address, .card-meta, .muted { color: var(--quiet); font-size: .8125rem; line-height: 1.55; overflow-wrap: anywhere; }
.card-address { margin-top: .125rem; }
.card-chevron { align-self: center; color: var(--teal); width: 1rem; height: 1rem; }
.card-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.card-meta span { display: inline-flex; gap: .375rem; align-items: center; }
.card-meta .icon { width: .9375rem; height: .9375rem; }
.price { font-size: .875rem; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.badge { display: inline-flex; max-width: 100%; padding: .25rem .5rem; border-radius: .375rem; background: #eeefeb; color: #46566a; font-size: .75rem; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.badge.available { color: var(--teal); background: var(--soft-teal); }
.badge.unavailable, .badge.closed { color: var(--red); background: var(--rose); }
.badge.limited, .badge.stale, .badge.conflict { color: var(--amber); background: var(--yellow); }
.empty-state { display: grid; justify-items: start; gap: .5rem; padding: 1.25rem; }
.empty-state h3 { font-size: 1rem; }
.empty-state p { color: var(--quiet); font-size: .875rem; line-height: 1.55; }

.map-panel { position: relative; isolation: isolate; height: clamp(20rem, 56svh, 36rem); background: #e8eee6; }
.map-canvas { position: absolute; inset: 0; z-index: 0; background: #e8eee6; }
.map-canvas.leaflet-container { font-family: inherit; }
.map-canvas .leaflet-tile-pane { filter: saturate(.73) contrast(.96); }
.map-canvas .leaflet-control-attribution { padding: .125rem .375rem; background: #fffc; font-size: .6875rem; }
.map-canvas .leaflet-control-attribution a { color: #145e60; }
.map-label { position: absolute; z-index: 1; left: .625rem; top: .625rem; max-width: calc(100% - 4rem); border: 1px solid #d7dedb; border-radius: .5rem; padding: .375rem .625rem; background: #fffc; color: var(--ink); font-size: .75rem; font-weight: 800; }
.map-tools { position: absolute; z-index: 2; top: .625rem; right: .625rem; display: grid; gap: .5rem; }
.map-tools .icon-button { background: var(--white); border-color: var(--line); box-shadow: 0 2px 8px #17324b16; }
.map-tools .icon-button:hover { background: var(--soft-teal); }
.map-zoom { display: grid; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 8px #17324b16; }
.map-zoom .icon-button { border: 0; box-shadow: none; }
.map-zoom .icon-button:first-child { border-radius: .6875rem .6875rem 0 0; }
.map-zoom .icon-button:last-child { border-top: 1px solid var(--line); border-radius: 0 0 .6875rem .6875rem; }
.map-state {
  position: absolute;
  z-index: 3;
  left: .625rem;
  right: .625rem;
  bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  width: fit-content;
  max-width: calc(100% - 1.25rem);
  padding: .5rem .625rem;
  border: 1px solid var(--line);
  border-radius: .625rem;
  background: var(--white);
  color: var(--quiet);
  font-size: .8125rem;
  font-weight: 800;
}
.map-state .button { min-height: 2.75rem; }
.map-canvas .map-marker { display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 1px 7px #17324b48; }
.map-marker.available { background: var(--teal); }
.map-marker.unavailable, .map-marker.closed { background: var(--red); }
.map-marker.limited { background: var(--amber); }
.map-marker .icon { width: 1.125rem; height: 1.125rem; }
.marker-sign { position: absolute; right: -.25rem; bottom: -.125rem; display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border: 1px solid var(--blue); border-radius: 50%; background: var(--white); color: var(--ink); font-size: .75rem; font-weight: 800; line-height: 1; }
.map-marker.marker-group { border-width: 3px; font-weight: 800; font-size: .875rem; }
.map-marker:focus-visible, .map-marker:hover { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--focus); }
.map-group-list { display: grid; max-height: 11rem; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.map-group-list a { justify-content: start; }

.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line); color: var(--quiet); }
.footer-inner, .footer-inner > div { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; min-height: 3.75rem; padding-block: .25rem; font-size: .8125rem; font-weight: 800; }
.footer-region { font-weight: 600; }

dialog {
  width: min(100% - 1rem, 42rem);
  max-height: calc(100dvh - 1rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1.25rem 4rem #081b3060;
}
dialog::backdrop { background: #0c213eb0; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: .625rem; position: sticky; top: 0; z-index: 2; padding: 1rem; border-bottom: 1px solid var(--line); background: var(--white); }
.dialog-head > div { min-width: 0; }
.dialog-head h2 { font-size: clamp(1.25rem, 4vw, 1.875rem); letter-spacing: -.045em; line-height: 1.2; font-weight: 800; overflow-wrap: anywhere; }
.station-address { margin-top: .375rem; font-size: .875rem; color: var(--quiet); overflow-wrap: anywhere; }
.dialog-close { background: var(--sand); }
.dialog-close:hover { background: var(--soft-teal); }
.eyebrow { margin-bottom: .25rem; font-size: .75rem; font-weight: 800; color: var(--teal); }
.dialog-body { padding: 1rem; }
.station-actions, .share-actions, .report-types { display: flex; flex-wrap: wrap; gap: .5rem; }
.station-actions { margin-bottom: 1rem; }
.station-actions .button { flex: 1 0 auto; }
.station-actions .button.icon-button { flex: 0 0 auto; }
.action-status { flex-basis: 100%; }
.station-details { display: grid; gap: 1rem; }
.detail-section { display: grid; gap: .625rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 1.0625rem; letter-spacing: -.025em; font-weight: 800; }
.detail-section h4 { font-size: .9375rem; }
#report-title { scroll-margin-top: 7rem; }
.detail-grid { display: grid; gap: .5rem; }
.fuel-row { display: grid; gap: .375rem; padding: .625rem .75rem; border: 1px solid var(--line); border-radius: .625rem; background: var(--paper); }
.fuel-row.selected { border-color: #8ebeb3; background: #f4f9f6; }
.fuel-row-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .25rem .75rem; }
.fuel-row p { overflow-wrap: anywhere; }
.queue-card { padding: .625rem .75rem; border-radius: .625rem; background: var(--paper); }
.queue-card p + p { margin-top: .25rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.comment-list { display: grid; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.comment-item { display: grid; gap: .25rem; padding: .625rem .75rem; border: 1px solid var(--line); border-radius: .625rem; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; }
.comment-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .25rem; }
.comment-meta .button { padding-inline: .5rem; }
.inline-status { padding-top: .375rem; color: var(--quiet); font-size: .8125rem; font-weight: 700; }
.inline-status:empty { display: none; }
.inline-status.error { color: var(--red); }
.inline-status.success { color: var(--teal); }
.report-types { margin-bottom: .625rem; }
.report-form { display: grid; gap: .625rem; }
.report-form textarea { min-height: 6rem; resize: vertical; }
.report-form > .button { justify-self: start; }
.report-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.report-gate { display: grid; justify-items: start; gap: .625rem; }
.small-dialog { width: min(100% - 1rem, 28rem); }
.share-body, .rules-body { display: grid; gap: .75rem; }
.share-body > p, .rules-body > p { line-height: 1.55; }
.share-body > p { overflow-wrap: anywhere; }
.qr { justify-self: center; }
.qr canvas { display: block; max-width: 100%; image-rendering: pixelated; border: 1px solid var(--line); border-radius: .375rem; }
.rules-body .button { justify-self: start; }

@media (min-width: 28rem) {
  .quick-grades { gap: .5rem; }
  .chip { padding-inline: .875rem; }
}

@media (min-width: 38rem) {
  .shell { width: min(100% - 3rem, 84rem); }
  .filter-main { grid-template-columns: minmax(10rem, 1fr) minmax(9rem, .52fr) auto; gap: .625rem; }
  .search-field { grid-column: auto; }
  .header-links > .text-link { display: inline-flex; }
  .station-list { padding: .75rem; gap: .75rem; }
  .results-layout[data-view="list"] .station-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dialog-head, .dialog-body { padding: 1.25rem; }
}

@media (min-width: 58rem) {
  .shell { width: min(100% - 5rem, 84rem); }
  .header-inner { min-height: 4.625rem; }
  .intro-inner { padding-block: 1.875rem 2rem; }
  .intro-note { font-size: 1rem; }
  .publication { margin-bottom: .125rem; padding: .75rem 1rem; }
  .content { padding-top: 1.25rem; }
  .filter-main { grid-template-columns: minmax(14rem, 1fr) minmax(12rem, .42fr) auto; }
  .filter-secondary { margin-top: .75rem; }
  .more-filters { grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto; align-items: end; }
  .results-heading h2 { font-size: 1.75rem; }
  .results-layout[data-view="map"] { grid-template-columns: minmax(19rem, .52fr) minmax(0, 1fr); }
  .results-layout[data-view="map"] .list-panel { display: block; }
  .list-panel { min-height: 16rem; }
  .map-panel { height: clamp(24rem, 56svh, 40rem); }
  .results-layout[data-view="map"] .list-panel { max-height: clamp(24rem, 56svh, 40rem); overflow-y: auto; }
  .results-layout[data-view="map"] .list-controls { position: sticky; z-index: 1; top: 0; background: var(--white); }
  .results-layout[data-view="list"] .station-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 22rem) {
  .shell { width: calc(100% - 1.25rem); }
  .button, .chip, .view-button { font-size: .8125rem; }
  .brand { font-size: 1.375rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .filter-secondary { gap: .375rem; }
  .quick-grades { gap: .25rem; }
  .chip, .filter-button { padding-inline: .5rem; }
  .filter-button .icon { width: 1rem; height: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
