:root {
  font-family: Inter, 'Segoe UI', sans-serif;
  color: #193834;
  background: #fafbf7;
  font-size: 14px;
  font-synthesis: none;
  --ink: #193834;
  --muted: #64756c;
  --line: #e0e7df;
  --green: #17685d;
}
.mobile-drawer {
  margin: 0;
  border: 0;
  border-right: 1px solid #cdd8cc;
  padding: 0;
  width: min(390px, calc(100vw - 32px));
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  background: #fafbf7;
  color: var(--ink);
}
.mobile-drawer[open] {
  display: flex;
  flex-direction: column;
  animation: drawer-in 0.18s ease-out;
}
.mobile-drawer::backdrop {
  background: #133b3266;
}
.mobile-drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.mobile-drawer > header h2 {
  font:
    500 20px Georgia,
    serif;
  margin: 0;
}
.mobile-drawer > header button {
  width: 44px;
  height: 44px;
  border: 1px solid #cad7ca;
  border-radius: 50%;
  background: #fffefa;
  color: var(--ink);
  font-size: 26px;
}
.mobile-drawer .sidebar {
  width: 100%;
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: none;
  border: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes drawer-in {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer[open] {
    animation: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  display: flex;
  height: 100dvh;
  min-height: 560px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: #256b63;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #df922f;
  outline-offset: 3px;
}
.sidebar {
  width: 354px;
  flex-shrink: 0;
  overflow: auto;
  background: #fafbf7;
  border-right: 1px solid #cdd8cc;
  z-index: 3;
  box-shadow: 3px 0 18px #15332910;
}
.sidebar header {
  padding: 29px 25px 20px;
  background: linear-gradient(150deg, #edf3e9, #fafbf7);
}
.eyebrow {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-mark {
  display: inline-block;
  flex: none;
  width: 29px;
  height: 29px;
  background: #276749;
  border-radius: 5px;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: -1.5px;
  margin: 18px 0 11px;
}
.intro {
  color: #587068;
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}
.snapshot {
  display: inline-block;
  margin: 17px 0 0;
  padding: 6px 9px;
  background: #e2ecdf;
  border-radius: 4px;
  color: #416440;
  font-size: 10px;
  font-weight: 650;
}
.filters {
  padding: 20px 25px 8px;
  border-top: 1px solid var(--line);
}
.filters label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
  margin-bottom: 7px;
  color: #557168;
}
select,
input[type='search'] {
  height: 37px;
  width: 100%;
  border: 1px solid #cad7ca;
  border-radius: 5px;
  padding: 0 9px;
  background: #fffefb;
  color: var(--ink);
  font-size: 12px;
}
select {
  padding-right: 3px;
}
.filter-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 9px;
  margin: 15px 0;
}
input[type='search'] {
  margin-top: 13px;
}
select:disabled {
  opacity: 0.5;
}
.reporting-summary {
  padding: 12px 25px 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.reporting-summary p {
  margin: 0 0 6px;
}
.reporting-summary details {
  margin: 8px 0;
}
.reporting-summary summary {
  cursor: pointer;
  margin-bottom: 6px;
}
.reporting-summary a {
  text-underline-offset: 3px;
}
.section-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.section-caption h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}
.section-caption span {
  font-size: 10px;
  color: var(--muted);
}
.station-section {
  padding: 18px 25px 0;
  border-top: 1px solid var(--line);
}
.station {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #e6ebe4;
  color: var(--ink);
}
.station:hover {
  background: #edf3e9;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  margin-top: 5px;
}
.station-text {
  min-width: 0;
  flex: 1;
}
.station-name {
  font-size: 12px;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-sub {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.station-arrow {
  color: #95a694;
  margin-top: 3px;
}
.stations {
  max-height: 300px;
  overflow-y: auto;
}
.empty {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  padding: 10px 0;
}
.sidebar footer {
  font-size: 9px;
  line-height: 1.8;
  padding: 20px 25px;
  color: var(--muted);
}
.sidebar footer span {
  padding: 0 3px;
}
.map-shell {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #e8efe8;
}
#map {
  position: absolute;
  inset: 0;
}
.map-heading {
  position: absolute;
  top: 25px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
  background: #fafbf7ed;
  border: 1px solid #d7dfd2;
  border-radius: 6px;
  padding: 12px 15px;
  box-shadow: 0 3px 10px #2435290b;
}
.tiny-label {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.3px;
  color: #456257;
}
.map-subtitle {
  font-family: Georgia, serif;
  font-size: 19px;
  color: #24453d;
}
.map-actions {
  position: absolute;
  top: 25px;
  right: 23px;
  display: flex;
  gap: 7px;
}
.map-actions button {
  background: #fafbf7f5;
  border: 1px solid #d1ddd0;
  border-radius: 5px;
  color: var(--ink);
  padding: 10px 12px;
  box-shadow: 0 2px 7px #102f2210;
  font-size: 11px;
}
.map-actions button:hover {
  background: #e2ecdf;
}
.layer-controls {
  position: absolute;
  right: 23px;
  top: 76px;
  background: #fafbf7f5;
  border: 1px solid #d1ddd0;
  border-radius: 6px;
  padding: 14px 14px 8px;
  min-width: 185px;
  box-shadow: 0 4px 20px #1c342910;
}
.layer-controls .tiny-label {
  margin-bottom: 13px;
}
.layer-controls label {
  display: flex;
  align-items: center;
  font-size: 10px;
  gap: 7px;
  margin-bottom: 10px;
}
.layer-controls input {
  accent-color: #25766b;
  margin: 0;
}
.line-key {
  display: inline-block;
  width: 17px;
  border-top: 2px solid #258eac;
}
.line-key.borough {
  border-color: #8c9c75;
}
.line-key.area {
  border-color: #85927f;
  border-top-style: dashed;
}
.legend {
  position: absolute;
  bottom: 55px;
  left: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  background: #fafbf7f5;
  border: 1px solid #d1ddd0;
  padding: 10px 13px;
  border-radius: 5px;
  max-width: calc(100% - 94px);
  font-size: 10px;
  box-shadow: 0 2px 12px #102f2210;
}
.legend > span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.legend .dot {
  margin: 0;
}
.map-help {
  position: absolute;
  left: 24px;
  bottom: 31px;
  font-size: 9px;
  color: #455e51;
  background: #fafbf7d9;
  padding: 3px 7px;
  border-radius: 2px;
  pointer-events: none;
}
.notice {
  position: absolute;
  left: 24px;
  top: 105px;
  max-width: 320px;
  padding: 12px;
  border-radius: 5px;
  background: #fff4d9;
  color: #685024;
  border: 1px solid #e3c583;
  font-size: 12px;
  line-height: 1.5;
}
.maplibregl-ctrl-bottom-right {
  bottom: 27px;
  right: 13px;
}
.maplibregl-ctrl-attrib {
  font-size: 9px !important;
  line-height: 16px !important;
  max-width: 100%;
}
.maplibregl-ctrl-bottom-left {
  left: 23px;
  bottom: 7px;
}
.maplibregl-ctrl-scale {
  font-size: 9px !important;
  background: #fafbf7cb !important;
}
.maplibregl-popup-content {
  border-radius: 5px;
  padding: 10px 12px;
  font:
    12px 'Segoe UI',
    sans-serif;
  color: var(--ink);
  box-shadow: 0 4px 15px #18332620;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.filters label[for='place'],
.filters label[for='stored-provider'] {
  margin-top: 15px;
}
.filters .recent-reporting {
  display: flex;
  align-items: start;
  gap: 8px;
  margin: 13px 0 0;
  font-size: 11px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.recent-reporting input {
  flex: none;
  margin: 2px 0 0;
  accent-color: #416440;
}
#stored-search {
  margin-top: 12px;
  padding: 9px 12px;
  border: 1px solid #a9c1ad;
  border-radius: 5px;
  background: #e6eee1;
  color: var(--ink);
  width: 100%;
  font-size: 12px;
}
#stored-search:disabled {
  opacity: 0.6;
  cursor: wait;
}
#stored-status {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 2px;
}
#stored-status[data-error='true'] {
  color: #953a23;
}
@media (min-width: 1550px) {
  .sidebar {
    width: 385px;
  }
  .sidebar header,
  .filters {
    padding-left: 30px;
    padding-right: 30px;
  }
  h1 {
    font-size: 38px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 310px;
  }
  .sidebar header,
  .filters {
    padding-left: 20px;
    padding-right: 20px;
  }
  h1 {
    font-size: 31px;
  }
  .map-heading {
    top: 20px;
    left: 16px;
  }
  .map-actions {
    top: 97px;
    right: 16px;
  }
  .layer-controls {
    top: 145px;
    right: 16px;
  }
  .legend {
    left: 16px;
    max-width: calc(100% - 73px);
  }
}
@media (max-width: 680px) {
  main {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
  }
  .map-shell {
    order: 0;
    flex: none;
    height: 57dvh;
    min-height: 370px;
  }
  .sidebar {
    order: 1;
    width: 100%;
    overflow: visible;
    border-right: 0;
    border-top: 1px solid #cedbca;
  }
  .sidebar header {
    padding: 21px 22px 17px;
  }
  .eyebrow {
    font-size: 9px;
  }
  h1 {
    margin: 12px 0 7px;
  }
  .intro br {
    display: none;
  }
  .map-heading {
    top: 14px;
    left: 14px;
    padding: 9px 12px;
  }
  .map-heading .map-subtitle {
    font-size: 17px;
  }
  .map-actions {
    top: 83px;
    right: 13px;
  }
  .layer-controls {
    top: 127px;
    right: 13px;
  }
  .legend {
    bottom: 51px;
    gap: 8px;
    max-width: calc(100% - 70px);
    padding: 8px 9px;
    font-size: 9px;
  }
  .map-help {
    bottom: 31px;
    left: 14px;
    font-size: 8px;
  }
  .filters {
    padding: 18px 22px 8px;
  }
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }
  .station-section {
    padding-bottom: 10px;
  }
  .stations {
    max-height: 300px;
  }
  .notice {
    top: 128px;
    left: 14px;
    width: calc(100% - 28px);
  }
  .maplibregl-ctrl-attrib {
    font-size: 8px !important;
  }
}
