:root {
  --ink: #102536;
  --text: #263d4d;
  --muted: #526674;
  --paper: #f3f6f7;
  --white: #fff;
  --line: #d9e2e6;
  --green: #006d60;
  --lime: #72efc9;
  --coral: #ff8c73;
  --amber: #8a4f13;
  --amber-bg: #fff2da;
  --red: #9a3224;
  --radius: 20px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.2;
}
h1 {
  font-size: clamp(2.65rem, 4.6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.13rem;
  letter-spacing: -0.015em;
}
p + p {
  margin-top: 0.6rem;
}
:focus-visible {
  outline: 3px solid #b74e32;
  outline-offset: 4px;
}
button:focus-visible {
  outline-offset: 3px;
}
.shell {
  max-width: 1256px;
  margin-inline: auto;
  padding-inline: 40px;
}
.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--lime);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 106px;
  width: 100%;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 2.35rem;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
}
.brand-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.brand-name > span:first-child { color: var(--lime); }
.byline {
  display: block;
  font-size: 0.68rem;
  color: #c1d3df;
  font-weight: 500;
  letter-spacing: 0.025em;
  margin-top: 7px;
}
.maker-mark { display: grid; gap: 3px; }
.maker-caption { color: #c1d3df; font-size: 0.59rem; font-weight: 650; letter-spacing: 0.17em; }
.maker-name { font-size: 1.45rem; letter-spacing: -0.055em; line-height: 1.15; color: #fff; }
.maker-name > span:first-child { color: var(--lime); }
.maker-dot { color: var(--coral); }
.region-label {
  font-size: 0.66rem;
  font-weight: 650;
  color: var(--green);
  border: 1px solid #b5cfc9;
  padding: 5px 10px;
  border-radius: 30px;
  text-align: center;
  background: #e7f5ef;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 30px;
  gap: 24px;
}
.intro-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.intro h1 span { color: var(--green); }
.eyebrow {
  font-size: 0.64rem;
  color: var(--green);
  font-weight: 750;
  letter-spacing: 0.1em;
}
.intro-copy {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 590px;
  margin-top: 14px;
}
.intro-note {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.76rem;
  line-height: 1.65;
  white-space: nowrap;
  color: var(--muted);
}
.intro-note > span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coral);
  font-size: 2.5rem;
  color: var(--ink);
  transform: rotate(-8deg);
}
.intro-note strong {
  color: var(--ink);
  font-weight: 650;
}
.development-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid #d2e0df;
  border-radius: 10px;
  background: #eaf2f0;
  font-size: 0.78rem;
  color: #355c58;
  margin-bottom: 26px;
}
.development-note br {
  display: none;
}
.development-note strong {
  margin-right: 10px;
}
.status-dot {
  flex: 0 0 7px;
  height: 7px;
  border-radius: 50%;
  background: #087765;
}
.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.search-panel {
  background: var(--white);
  padding: 27px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px #10253607;
}
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 9px;
}
.search-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 22px;
}
.search-panel label {
  display: block;
  font-size: 0.81rem;
  font-weight: 650;
  margin: 18px 0 6px;
}
.search-panel input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #a8b9c2;
  background: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.92rem;
}
.search-panel input:disabled {
  background: #edf2f4;
  color: var(--muted);
}
input::placeholder {
  color: #637581;
}
.input-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.input-unit {
  position: relative;
}
.input-unit input {
  padding-right: 45px !important;
  appearance: textfield;
}
.input-unit span {
  position: absolute;
  right: 12px;
  top: 13px;
  font-size: 0.75rem;
  color: var(--muted);
  pointer-events: none;
}
.field-help {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 7px;
}
.field-help:empty {
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  transition: background 0.15s;
}
.primary {
  background: var(--lime);
  color: var(--ink);
  border-color: #3cba9b;
  box-shadow: 0 4px 12px #006d6014;
}
.primary:hover {
  background: #c4fae8;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border-color: #b7c8ce;
}
.secondary:hover {
  background: #eef4e8;
}
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}
.location-actions > .button {
  width: 100%;
  min-height: 40px;
  font-weight: 550;
  font-size: 0.79rem;
}
.location-actions .button span {
  font-size: 1.1rem;
}
.text-button {
  color: var(--green);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.75rem;
  padding: 8px 0;
  min-height: 40px;
}
.compare-button {
  width: 100%;
  margin-top: 24px;
  justify-content: space-between;
  min-height: 49px;
}
.compare-button > span {
  font-size: 1.15rem;
}
.options {
  margin-top: 23px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 14px 0;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 650;
}
summary::marker {
  color: var(--green);
}
.options-content {
  padding: 0 0 17px;
}
.options-content label:first-child {
  margin-top: 0;
}
.checkbox-label {
  display: flex !important;
  gap: 9px;
  align-items: start;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
.privacy-note {
  font-size: 0.68rem;
  margin-top: 13px;
}
.example-button {
  display: block;
  margin: auto;
  text-align: center;
  font-size: 0.71rem;
}
.results-panel {
  min-width: 0;
}
.search-status:empty {
  display: none;
}
.search-status {
  padding: 13px 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.welcome-panel {
  border: 1px solid #25465a;
  border-radius: var(--radius);
  min-height: 595px;
  background: radial-gradient(ellipse at 100% 0, #244d58 0, transparent 65%), #102536;
  padding: 38px 42px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
.welcome-art { position: relative; width: 100%; height: 165px; margin-bottom: 24px; }
.welcome-art svg { width: 100%; height: 100%; color: #6b9697; }
.welcome-art img { position: absolute; top: 15px; left: calc(50% - 45px); transform: rotate(-9deg); box-shadow: 0 16px 30px #0003; border-radius: 27px; }
.route-tag { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #c7dce5; font-size: 0.57rem; letter-spacing: 0.16em; }
.welcome-panel .section-label { color: var(--lime); }
.welcome-panel h2 {
  font-size: 2.2rem;
  margin: 0 0 14px;
  letter-spacing: -0.045em;
  color: #fff;
}
.welcome-panel > p:not(.section-label) {
  max-width: 470px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #c7dce5;
}
.welcome-panel .field-help {
  font-size: 0.73rem !important;
  margin-top: 26px;
}
.how-it-works {
  list-style: none;
  padding: 0;
  margin: 23px 0 0;
  display: grid;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 550;
}
.how-it-works span {
  font-size: 0.62rem;
  color: var(--lime);
  font-weight: 700;
  display: inline-block;
  width: 28px;
}
.welcome-panel .welcome-credit { border-top: 1px solid #4d6e7b; padding-top: 18px; margin-top: 20px; font-size: 0.73rem; width: 100%; }
.welcome-credit strong { display: block; color: var(--lime); font-size: 0.9rem; margin-top: 3px; }
.error-panel {
  padding: 20px;
  border: 1px solid #daa599;
  border-radius: 10px;
  background: #fff1eb;
  color: #7c3022;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.error-panel h2 {
  font-size: 1.1rem;
  color: inherit;
  margin-bottom: 8px;
}
.error-panel ul {
  padding-left: 20px;
}
.snapshot-note {
  font-size: 0.73rem;
  color: #70521d;
  line-height: 1.6;
  padding: 0 0 15px;
}
.snapshot-note strong {
  font-weight: 700;
}
.recommendation {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 27px;
  color: #e4eff4;
  border-top: 3px solid var(--lime);
}
.recommendation .section-label {
  color: #a8cec8;
  margin: 0;
}
.recommendation h2 {
  color: var(--lime);
  font-size: 2.25rem;
  letter-spacing: -0.045em;
  margin: 9px 0 7px;
}
.recommendation .station-name {
  font-size: 1.08rem;
  line-height: 1.5;
  font-weight: 650;
  color: #fff;
}
.recommendation .rec-copy {
  font-size: 0.8rem;
  color: #d8e6eb;
  margin-top: 8px;
  line-height: 1.6;
}
.rec-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.share-button {
  background: #ffffff0d;
  color: #fff;
  border-color: #ffffff50;
  font-size: 0.72rem;
  min-height: 36px;
  padding: 7px 11px;
}
.share-button:hover {
  background: #ffffff22;
}
.rec-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 19px;
  font-size: 0.78rem;
}
.rec-facts b {
  font-size: 1rem;
  display: block;
  color: #fff;
  font-weight: 600;
}
.rec-check {
  padding-top: 14px;
  margin-top: 18px;
  border-top: 1px solid #3e596a;
  font-size: 0.75rem;
  color: #d8e6eb;
}
.rec-age {
  font-size: 0.72rem;
  color: #c7dce5;
  margin-top: 13px;
}
.rec-age.stale {
  color: #ffe0a5;
}
.result-assumptions {
  font-size: 0.73rem;
  line-height: 1.65;
  color: var(--muted);
  padding: 16px 2px;
}
.result-assumptions strong {
  color: var(--ink);
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 19px 0;
}
.results-toolbar h2 {
  font-size: 1.35rem;
}
.results-toolbar .section-label {
  margin-bottom: 5px;
}
.results-toolbar .field-help {
  margin-top: 3px;
}
.results-toolbar .button {
  flex-shrink: 0;
  font-size: 0.75rem;
}
.station-list {
  list-style: none;
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
}
.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.result-actions .field-help {
  flex: 1 1 220px;
  margin: 0;
  text-align: center;
}
.station-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  scroll-margin-top: 18px;
}
.station-card.recommended {
  border-color: #13806c;
}
.station-heading {
  display: flex;
  align-items: start;
  gap: 11px;
}
.rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #e4f5ef;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}
.station-heading-content {
  flex: 1;
  min-width: 0;
}
.station-heading h3 {
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.station-address {
  font-size: 0.71rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.6;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.badge {
  border-radius: 4px;
  background: #edf2f4;
  padding: 3px 7px;
  color: #385362;
  font-size: 0.61rem;
  font-weight: 650;
}
.badge.recommended-badge {
  background: var(--lime);
  color: var(--ink);
}
.closure-warning {
  background: #fff2cf;
  color: #614409;
  border: 1px solid #b8914c;
  border-radius: 6px;
  padding: 9px 12px;
  margin: 12px 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}
.metadata-note {
  font-size: 0.72rem;
  line-height: 1.6;
  margin: 10px 0;
}
.station-sources {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.75rem;
}
.station-sources summary { cursor: pointer; font-weight: 600; }
.metadata-fields { padding-left: 18px; }
.metadata-fields li { margin: 12px 0; overflow-wrap: anywhere; }
.metadata-fields p { margin: 3px 0; line-height: 1.6; }
.leaflet-popup-content a.button {
  color: var(--ink);
  background: #fff;
}
.price-total {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}
.price-total strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-total span {
  font-size: 0.65rem;
  color: var(--muted);
}
.cost-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--muted);
}
.cost-row strong {
  color: var(--ink);
  font-weight: 600;
}
.saving-row {
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 10px;
  color: var(--green);
}
.saving-row.negative {
  color: var(--muted);
}
.reading {
  border-top: 1px solid #e0e7eb;
  margin-top: 17px;
  padding-top: 12px;
  font-size: 0.71rem;
  color: var(--muted);
}
.reading.stale {
  border-top-color: #eadabb;
}
.reading strong {
  font-weight: 600;
  color: var(--ink);
}
.reading.stale .age-label {
  color: var(--amber);
  background: var(--amber-bg);
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
}
.observed-line {
  margin-top: 7px;
}
.station-details {
  margin-top: 5px;
}
.station-details summary {
  font-size: 0.71rem;
  padding-bottom: 4px;
  min-height: 40px;
}
.station-details[open] summary {
  padding-bottom: 12px;
}
.cost-detail {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 15px;
  font-size: 0.74rem;
  padding: 12px;
  background: #f0f5f6;
  border-radius: 6px;
  margin: 0 0 12px;
}
.cost-detail dd {
  margin: 0;
  text-align: right;
  max-width: 260px;
}
.cost-detail dt {
  color: var(--muted);
}
.raw-time {
  font-size: 0.69rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 6px;
}
.raw-time span {
  display: block;
  color: var(--ink);
}
.station-map-button {
  font-size: 0.7rem;
  padding: 7px 10px;
  min-height: 36px;
  margin-top: 12px;
}
.station-directions {
  margin-top: 12px;
  font-size: 0.75rem;
}
.map-section {
  margin-bottom: 20px;
}
.journey-route-controls {
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #c2d1d8;
  border-radius: 12px;
  background: #eaf2f4;
}
.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.route-actions .button { font-size: 0.75rem; padding: 8px 12px; }
.route-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.75rem; }
.legend-direct, .legend-via { display: inline-block; width: 24px; height: 0; border-top: 4px dashed #386fba; }
.legend-via { border-top: 4px solid #b55413; margin-left: 8px; }
.map-section #map {
  height: 370px;
  border: 1px solid #c2d1d8;
  border-radius: 12px;
  background: #e4edef;
  z-index: 0;
}
.map-caption {
  margin-top: 9px;
  font-size: 0.68rem;
}
.station-pin {
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  color: var(--ink);
  box-shadow: 0 2px 7px #10253630;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.station-pin.chosen {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--lime);
}
.station-pin.selected-route {
  background: #b55413;
  border-color: #fff;
  color: #fff;
  outline: 2px solid #b55413;
}
.leaflet-popup-content {
  font:
    13px/1.5 ui-sans-serif,
    system-ui,
    sans-serif;
  min-width: 180px;
}
.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
}
.leaflet-popup-content p {
  margin: 5px 0;
}
.leaflet-control-attribution {
  font-size: 10px !important;
}
.method-details {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-bottom: 15px;
}
.method-details summary {
  font-size: 0.8rem;
}
.method-details h3 {
  font-size: 0.9rem;
  margin: 20px 0 9px;
}
.method-details p,
.method-details li {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}
.method-details ul {
  padding-left: 19px;
  margin: 8px 0;
}
.method-details .exclusions {
  padding: 12px 16px;
  background: #e6f1f0;
  border-radius: 8px;
}
.empty-panel {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.empty-panel p {
  font-size: 0.9rem;
  margin-top: 12px;
  color: var(--muted);
}
.share-fallback {
  margin-top: 15px;
}
.share-fallback label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.share-fallback textarea {
  font-size: 0.8rem;
}
.site-footer {
  margin-top: 55px;
  padding-top: 32px;
  padding-bottom: 30px;
  background: var(--ink);
  border-top: 3px solid var(--lime);
  font-size: 0.68rem;
  color: #c1d3df;
  line-height: 1.7;
}
.footer-heading {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.brand-small {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.brand-small span {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: #c1d3df;
  letter-spacing: 0;
}
.site-footer a { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; margin-bottom: 20px; border-bottom: 1px solid #3e596a; padding-bottom: 20px; font-size: 0.78rem; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: #fff;
  z-index: 2000;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
@media (min-width: 1050px) {
  .search-panel {
    position: sticky;
    top: 20px;
  }
}
@media (max-width: 1000px) {
  .shell {
    padding-inline: 28px;
  }
  .workspace {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
  }
  .search-panel {
    padding: 24px 20px;
  }
  .intro-note {
    display: none;
  }
  .station-card {
    padding: 18px;
  }
  .price-total strong {
    font-size: 1.25rem;
  }
  .welcome-panel {
    padding: 35px;
  }
  .development-note br {
    display: initial;
  }
}
@media (max-width: 760px) {
  .shell {
    padding-inline: 20px;
  }
  .header-inner {
    min-height: 90px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .brand {
    font-size: 1.85rem;
    gap: 9px;
  }
  .brand-icon {
    width: 45px;
    height: 45px;
  }
  .region-label {
    font-size: 0.6rem;
    padding: 5px 9px;
  }
  .byline {
    font-size: 0.56rem;
  }
  .maker-name { font-size: 1.13rem; }
  .maker-caption { font-size: 0.5rem; }
  .header-inner { gap: 12px; }
  .intro {
    padding: 28px 0 23px;
  }
  .eyebrow {
    font-size: 0.59rem;
  }
  .intro-topline { gap: 10px; }
  .intro-copy {
    font-size: 0.91rem;
    max-width: 400px;
    line-height: 1.6;
  }
  .development-note {
    margin-bottom: 20px;
    padding: 11px 13px;
    font-size: 0.69rem;
    align-items: flex-start;
  }
  .status-dot {
    margin-top: 6px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .search-panel {
    padding: 24px;
  }
  .search-panel h2 {
    font-size: 1.4rem;
  }
  .search-panel label {
    font-size: 0.85rem;
  }
  .search-panel input:not([type="checkbox"]),
  select {
    font-size: 1rem;
  }
  .location-actions > .button {
    font-size: 0.84rem;
  }
  .field-help {
    font-size: 0.77rem;
  }
  .welcome-panel {
    min-height: 360px;
    padding: 30px;
  }
  .welcome-panel h2 {
    font-size: 1.8rem;
  }
  .welcome-art { height: 145px; margin-bottom: 18px; }
  .how-it-works {
    font-size: 0.77rem;
  }
  .welcome-panel > p:not(.section-label) {
    font-size: 0.82rem;
  }
  .recommendation {
    padding: 22px;
  }
  .recommendation h2 {
    font-size: 2rem;
  }
  .recommendation .station-name {
    font-size: 1rem;
  }
  .rec-facts {
    gap: 12px 22px;
  }
  .results-toolbar {
    margin: 20px 0 16px;
  }
  .results-toolbar h2 {
    font-size: 1.25rem;
  }
  .station-card {
    padding: 18px 16px;
  }
  .station-heading {
    gap: 8px;
    flex-wrap: wrap;
  }
  .station-heading-content {
    min-width: 130px;
  }
  .station-heading h3 {
    font-size: 0.92rem;
  }
  .price-total {
    min-width: 65px;
  }
  .price-total strong {
    font-size: 1.25rem;
  }
  .rank {
    width: 24px;
    height: 26px;
    font-size: 0.7rem;
  }
  .cost-row {
    gap: 6px 15px;
    font-size: 0.73rem;
  }
  .reading {
    font-size: 0.71rem;
  }
  .result-assumptions {
    font-size: 0.73rem;
  }
  .map-section #map {
    height: 320px;
  }
  .site-footer {
    margin-top: 35px;
    font-size: 0.68rem;
  }
  .footer-heading {
    flex-wrap: wrap;
    gap: 20px;
  }
  .site-footer p {
    margin-top: 8px;
  }
  .search-status {
    padding-top: 0;
  }
}
@media (max-width: 370px) {
  .header-inner { padding-inline: 14px; }
  .brand { font-size: 1.65rem; gap: 7px; }
  .brand-icon { width: 39px; height: 39px; }
  .maker-name { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Vouchers keep the source pump price visible alongside the adjusted total. */
.voucher-panel {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line, #d5ddd5);
  padding-top: 1rem;
}
.voucher-panel fieldset {
  border: 0;
  padding: 0;
  margin: 1rem 0;
  min-width: 0;
}
.voucher-panel legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.voucher-panel fieldset:disabled {
  opacity: 0.65;
}
.offer-card {
  background: #edf5f4;
  border-radius: 0.6rem;
  padding: 0.8rem;
  margin: 0.7rem 0;
}
.offer-card a {
  font-size: 0.85rem;
}
.voucher-panel h3 {
  font-size: 1rem;
}
.voucher-panel ul {
  padding-left: 1.1rem;
}
.voucher-panel li {
  margin-bottom: 0.7rem;
}
.voucher-list {
  list-style: none;
  padding: 0 !important;
}
.voucher-list li {
  border-left: 3px solid #087765;
  padding: 0.5rem 0.75rem;
  background: #eef6f3;
}
.voucher-limits {
  margin: 1rem 0;
}
.voucher-limits summary {
  font-size: 0.9rem;
  cursor: pointer;
}
.voucher-impact {
  background: #e5f5ef;
  border: 1px solid #bbd8cf;
  border-radius: 1rem;
  padding: 1.2rem;
  margin: 1rem 0;
}
.voucher-impact h2 {
  font-size: 1.25rem;
  margin: 0 0 0.8rem;
}
.voucher-impact table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
}
.voucher-impact caption {
  text-align: left;
  margin-bottom: 0.6rem;
}
.voucher-impact th,
.voucher-impact td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.3rem;
  border-bottom: 1px solid #bbd8cf;
  overflow-wrap: anywhere;
}
.voucher-impact th:first-child {
  width: 18%;
}
.voucher-saving {
  background: #d6f4e8;
  color: #075445;
  border-radius: 0.4rem;
  padding: 0.6rem 0.8rem;
  font-weight: 650;
}
.voucher-warning {
  color: #694400;
  font-size: 0.85rem;
}
.voucher-panel input[type="date"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
