* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --background: #fffaf0;
  --ink: #232b26;
  --muted: #515d55;
  --line: #cfd4c9;
  --accent: #245640;
  --green: #e5efe6;
  --blue: #edf1fb;
  --paper: #fff;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}
body { margin: 0; color: var(--ink); background: var(--background); }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
:focus-visible { outline: 3px solid #286dcb; outline-offset: 3px; }
a { color: var(--accent); text-underline-offset: .16em; }
button, select, input { color: inherit; font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
p { margin-block: 0 12px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.26rem, 2.6vw, 1.7rem); }
h3 { font-size: 1.1rem; }
.skip-link {
  position: fixed;
  left: 20px;
  top: -200px;
  z-index: 200;
  background: white;
  padding: 12px;
}
.skip-link:focus { top: 12px; }
#planner { scroll-margin-top: 96px; }
.intro { padding-block: clamp(28px, 5vw, 52px) 16px; }
.intro p { max-width: 630px; margin-top: 12px; font-size: clamp(1rem, 2.3vw, 1.26rem); color: var(--muted); }
.privacy { border-left: 3px solid #5c8069; background: #eef3e8; padding: 12px 16px; margin-bottom: 22px; font-size: .9rem; }
.workspace { display: grid; grid-template-columns: minmax(315px, .95fr) minmax(0, 1.65fr); gap: 20px; align-items: start; }
.trip-form, .results {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 3.4vw, 31px);
  background: var(--paper);
  box-shadow: 0 3px 0 #eee7da;
}
.form-intro { margin: 8px 0 20px; color: var(--muted); font-size: .93rem; }
.origin-field { position: relative; }
.origin-field label, .category label { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-weight: 750; }
.marker { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .82rem; font-weight: 800; flex: 0 0 auto; }
.marker-a { background: var(--green); color: #214e3a; }
.marker-b { background: var(--blue); color: #303f71; }
.origin-field input, .category select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #8b9a8e;
  border-radius: 8px;
  background: #fbfdfa;
  padding: 9px 11px;
}
.origin-field input[aria-invalid="true"] { border-color: #a53c24; }
.field-help { font-size: .85rem; color: var(--muted); margin: 5px 0 0; }
.field-help:empty { display: none; }
.origin-field:has(input[aria-invalid="true"]) .field-help { color: #8d321d; }
.choices {
  position: absolute;
  inset: 76px 0 auto;
  z-index: 4;
  max-height: 270px;
  overflow-y: auto;
  margin: 0;
  padding: 5px;
  border: 1px solid #8b9a8e;
  border-radius: 9px;
  list-style: none;
  box-shadow: 0 6px 18px #253c2430;
  background: white;
}
.choices li { padding: 8px 10px; border-radius: 5px; cursor: pointer; }
.choices li + li { border-top: 1px solid #e4e9e4; }
.choices li:hover, .choices [aria-selected="true"] { background: var(--green); }
.choices strong, .choices small { display: block; }
.choices small { color: var(--muted); }
.swap { margin: 8px 0; min-height: 40px; }
.quiet { padding: 3px 7px; border: 0; border-radius: 5px; background: transparent; color: var(--accent); font-weight: 700; }
.quiet:hover { background: var(--green); }
.category { margin: 19px 0 15px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 13px; border: 1px solid #8b9a8e; border-radius: 9px; background: #fff; color: var(--accent); font-weight: 720; text-align: center; text-decoration: none; }
.button:hover { background: #edf5ec; }
.button.primary { border-color: #1b4330; background: var(--accent); color: #fff; }
.button.primary:hover { background: #17432e; }
.trip-form > .primary { width: 100%; }
.examples { margin-top: 19px; border-top: 1px solid var(--line); padding-top: 14px; }
.examples p { margin-bottom: 4px; font-weight: 750; font-size: .9rem; }
.example { min-height: 40px; margin: 3px 1px 0 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: #f7f9f6; font-size: .84rem; }
.example:hover { background: var(--green); }
.results { scroll-margin-top: 96px; overflow-wrap: anywhere; }
.results h2 { scroll-margin-top: 96px; }
.result-status { margin: 8px 0 15px; color: var(--muted); }
.result-status:empty { margin: 0; }
.empty-state {
  border: 1px dashed #acbaad;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 45px);
  background: #f8faf5;
  text-align: center;
  margin-top: 21px;
}
.empty-state p:first-of-type { margin-top: 19px; font-size: 1.13rem; font-weight: 720; }
.empty-state p:last-child { color: var(--muted); max-width: 390px; margin: 0 auto; }
.route-sketch { display: flex; align-items: center; justify-content: center; max-width: 225px; margin: auto; }
.route-sketch .marker { height: 37px; width: 37px; font-size: 1rem; }
.route-sketch i { flex: 1; border-bottom: 2px dashed #8b9a8e; }
.meeting-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--accent); font-size: 1.7rem; }
.venue, .midpoint { padding: 16px; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.venue:first-of-type { margin-top: 0; }
.venue h3, .midpoint h3 { margin-bottom: 5px; }
.venue p, .midpoint p { margin-block: 0 9px; }
.venue .type, .venue .address, .map-notice, .rounding-note { color: var(--muted); font-size: .88rem; }
.venue .type { font-size: .81rem; font-weight: 740; }
.travel-metrics {
  margin: 13px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.travel-metrics > div { background: #f4f6ef; border-radius: 7px; padding: 8px 10px; }
.travel-metrics > div:first-child { background: var(--green); }
.travel-metrics > div:nth-child(2) { background: var(--blue); }
.travel-metrics dt { color: var(--muted); font-size: .81rem; line-height: 1.2; }
.travel-metrics dd { font-weight: 780; font-size: 1.15rem; font-variant-numeric: tabular-nums; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.other-heading { margin-top: 18px; }
.share { margin-top: 10px; }
.share summary { padding: 4px 0; color: var(--accent); font-weight: 680; }
.share textarea { width: 100%; padding: 6px; margin: 7px 0; resize: vertical; border: 1px solid #8b9a8e; border-radius: 6px; font: inherit; font-size: .9rem; color: var(--ink); }
.share-status { font-size: .85rem; color: var(--muted); }
.details { margin-block: 40px 46px; border-top: 1px solid var(--line); padding-top: 25px; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 17px 0; }
.details-grid p { margin-top: 6px; }
.details details summary { color: var(--accent); font-weight: 680; }
#coverage-list { font-size: .88rem; }
#coverage-list p { margin-top: 12px; }
.sources { color: var(--muted); font-size: .88rem; }
.data-downloads { margin-top: 10px; }
.data-downloads summary { color: var(--accent); font-weight: 680; }
.data-downloads p { margin-top: 8px; }
.related { margin-top: 22px; }
@media (max-width: 770px) {
  .shell { width: calc(100% - 28px); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .details-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 420px) {
  .origin-field input, .category select { font-size: 16px; }
  .travel-metrics > div { padding: 8px; }
  .travel-metrics dd { font-size: 1.02rem; }
  .venue .actions .button { font-size: .86rem; padding-inline: 8px; }
}
