/* Roadtripper
   Built to be read at a glance and tapped one-handed: large type, 56px targets,
   results replace the form once a route is planned. Accent color is a setting. */

:root {
  /* Neutrals (light) */
  --bg: #f5f4f5;
  --surface: #ffffff;
  --fg: #1d1b1e;
  --muted: #625e66;
  --border: #dcd8de;
  --error: #b42318;
  --warn: #a15c07;        /* advisory amber, for gaps and alerts */
  --warn-soft: #fdf1dc;
  --warn-line: #d97706;   /* gap stretches on the map (map stays light in both themes) */
  --danger: #b42318;      /* severe weather alerts */
  --danger-soft: #fdecea;
  --wx-sun: #d58a00;
  --wx-rain: #2563c9;
  --wx-snow: #3b8fb8;
  --wx-storm: #7a3fc4;
  --wx-cloud: #6b6670;

  /* Accent (pink by default; overridden by [data-accent]) */
  --accent: #c2185b;
  --accent-fg: #ffffff;
  --accent-ink: #c2185b;   /* accent used as text on surfaces */
  --accent-soft: #fce4ec;
  --route: #d81b60;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 12px;
  --space: 1rem;
  --tap: 56px;            /* touch target, sized for use in a moving car */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131214;
    --surface: #1d1b1f;
    --fg: #eeebef;
    --muted: #a8a2ad;
    --border: #322e35;
    --error: #ff8a80;
    --warn: #f0b252;
    --warn-soft: #33250f;
    --danger: #ff8a80;
    --danger-soft: #3a1514;
    --wx-sun: #ffc24d;
    --wx-rain: #79a8ff;
    --wx-snow: #9ad4f0;
    --wx-storm: #c39bff;
    --wx-cloud: #b3adb8;
    color-scheme: dark;
  }
}

/* ---------- Accent presets ---------- */

:root[data-accent="pink"]   { --accent: #c2185b; --accent-ink: #c2185b; --accent-fg: #ffffff; --accent-soft: #fce4ec; --route: #d81b60; }
:root[data-accent="purple"] { --accent: #6a3fb5; --accent-ink: #6a3fb5; --accent-fg: #ffffff; --accent-soft: #ede5f8; --route: #7e57c2; }
:root[data-accent="blue"]   { --accent: #1565c0; --accent-ink: #1565c0; --accent-fg: #ffffff; --accent-soft: #e3eefb; --route: #1e88e5; }
:root[data-accent="green"]  { --accent: #0b6b3a; --accent-ink: #0b6b3a; --accent-fg: #ffffff; --accent-soft: #e3f2e9; --route: #138a4b; }
:root[data-accent="orange"] { --accent: #b84a00; --accent-ink: #b84a00; --accent-fg: #ffffff; --accent-soft: #fdeadb; --route: #e65c00; }

@media (prefers-color-scheme: dark) {
  /* Saturated fills with white text; brighter "ink" for links and text on dark surfaces.
     The route line keeps its light-mode color because the map tiles stay light. */
  :root[data-accent="pink"]   { --accent: #d6146f; --accent-fg: #ffffff; --accent-ink: #ff5ca8; --accent-soft: #3a0f24; }
  :root[data-accent="purple"] { --accent: #7c3aed; --accent-fg: #ffffff; --accent-ink: #b58cff; --accent-soft: #2a1b47; }
  :root[data-accent="blue"]   { --accent: #1a6fe0; --accent-fg: #ffffff; --accent-ink: #6aa8ff; --accent-soft: #13284a; }
  :root[data-accent="green"]  { --accent: #0a8547; --accent-fg: #ffffff; --accent-ink: #3ddc84; --accent-soft: #10301f; }
  :root[data-accent="orange"] { --accent: #c94700; --accent-fg: #ffffff; --accent-ink: #ff9147; --accent-soft: #3b2010; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 var(--font-body);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

a { color: var(--accent-ink); }
:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--accent);
  color: var(--accent-fg);
  padding-block: 0.6rem;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.tagline {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}
.icon-button {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  margin-right: -10px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.icon-button:active { background: rgb(0 0 0 / 0.12); }

/* ---------- Layout ---------- */

main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--space);
  padding-block: var(--space);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space);
}
.panel h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
#trip-heading {
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.placeholder { margin: 0; color: var(--muted); }

.status { margin: 0.75rem 0 0; font-size: 1rem; }
.status:empty { display: none; }
.status[data-kind="error"] { color: var(--error); font-weight: 600; }

/* ---------- Controls ---------- */

input[type="text"], input[type="datetime-local"] {
  min-height: var(--tap);
  width: 100%;
  padding: 0 0.9rem;
  font: inherit;
  font-size: 1.15rem;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
}
input[type="text"]:focus { border-color: var(--accent-ink); outline: none; }

.primary-button, .secondary-button {
  min-height: var(--tap);
  padding: 0 1.5rem;
  font: inherit;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
}
.primary-button {
  width: 100%;
  font-size: 1.15rem;
  color: var(--accent-fg);
  background: var(--accent);
  border: 0;
}
.secondary-button {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 0;
}
.primary-button:disabled { opacity: 0.6; cursor: progress; }

.link-button {
  min-height: 44px;
  padding: 0 0.25rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-ink);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Trip form ---------- */

.trip-form { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.3rem; align-content: start; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field .link-button { justify-self: start; }

.options {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.option-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  color: var(--muted);
}
.option-line strong { color: var(--fg); font-weight: 600; }

/* Recent destinations */
.recent { display: grid; gap: 0.4rem; }
.recent-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.recent-list { display: grid; gap: 0.5rem; }
.recent-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--tap);
  width: 100%;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 1.05rem;
  text-align: left;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.recent-item::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--route);
}
.recent-item:active { border-color: var(--accent-ink); }

/* Address suggestions */
.combo { position: relative; }
.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}
.suggestions li {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.4rem 0.75rem;
  font-size: 1.05rem;
  border-radius: 8px;
  cursor: pointer;
}
.suggestions li:hover,
.suggestions li[aria-selected="true"] { background: var(--accent-soft); }

/* ---------- Route ---------- */

.trip-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.trip-bar-text { min-width: 0; }
.trip-bar h2 { margin-bottom: 0.1rem; }
.trip-bar-dest {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.trip-bar-from {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  padding: 0.75rem;
  background: var(--accent-soft);
  border-radius: 10px;
}
.summary div { min-width: 0; }
.summary dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.summary dd {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.map {
  height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.map--unavailable {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}
.map-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.4);
}
.map-marker--start { background: var(--route); }
.map-marker--end { background: #1d1b1e; }
.fineprint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Gas ---------- */

.gas-target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.6rem;
}
.gas-target label { font-size: 1.15rem; font-weight: 700; }
.gas-target-input { display: flex; align-items: center; gap: 0.5rem; }
.gas-target-input input {
  width: 6.5rem;
  min-height: var(--tap);
  padding: 0 0.75rem;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--fg);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
}
.gas-target-input input:focus { border-color: var(--accent-ink); outline: none; }
.gas-target-input span { font-size: 1.15rem; font-weight: 600; }

.target-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.target-divider::before, .target-divider::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--accent-ink);
}
.target-divider span { flex: none; max-width: 80%; text-align: center; }
.side-note { padding: 0.25rem 0.1rem; font-size: 0.95rem; color: var(--muted); }

.gas-context { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--muted); }
.gas-context:empty { display: none; }

.gaps, .stations { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.gaps:empty { display: none; }
.gaps { margin-bottom: 0.75rem; }
.gap {
  padding: 0.75rem 0.9rem;
  background: var(--warn-soft);
  border: 2px solid var(--warn);
  border-radius: 10px;
}
.gap-title { margin: 0; font-weight: 800; font-size: 1.1rem; color: var(--warn); }
.gap-detail { margin: 0.15rem 0 0; font-size: 0.95rem; }

.station {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 0.65rem;
  align-items: start;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.station-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-fg);
  background: var(--route);
  border-radius: 50%;
}
.station-main { min-width: 0; }
.station-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.station-sub, .station-detour { margin: 0.05rem 0 0; font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
.station-detour { color: var(--fg); }
.station-warn { margin: 0.2rem 0 0; font-size: 0.85rem; font-weight: 700; color: var(--warn); }
.station-dist {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 0.1rem;
  text-align: right;
}
.station-dist strong { font-size: 1.3rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.station-dist span { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.station-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 0.35rem;
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 50%;
}
.badge {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 0.15em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.map-station {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  font: 800 13px/1 var(--font-body);
  color: #fff;
  background: #1d1b1e;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.4);
}
.map-target {
  width: 22px;
  height: 22px;
  border: 3px dashed var(--route);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.7);
}
.map-whole-route {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  min-height: 40px;
  padding: 0 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d1b1e;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
  cursor: pointer;
}
.station.flash { animation: flash 1.2s ease-out; }
@keyframes flash {
  from { background: var(--accent-soft); border-color: var(--accent-ink); }
  to { background: transparent; }
}
.map-you {
  width: 18px;
  height: 18px;
  background: #1a73e8;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgb(26 115 232 / 0.25);
}

.setting-label { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- Weather ---------- */

.wx-context { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--muted); }
.wx-context:empty { display: none; }

.headsups, .alerts, .wx-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.headsups:empty, .alerts:empty { display: none; }
.headsups, .alerts { margin-bottom: 0.75rem; }

.headsup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  background: var(--warn-soft);
  border: 2px solid var(--warn);
  border-radius: 10px;
}
.headsup .wx-icon { grid-row: span 2; }
.headsup-title { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--warn); }
.headsup-detail { margin: 0; font-size: 0.9rem; }

.alert {
  border: 2px solid var(--border);
  border-left-width: 6px;
  border-radius: 10px;
  background: var(--surface);
}
.alert--extreme, .alert--severe { border-color: var(--danger); background: var(--danger-soft); }
.alert--moderate { border-color: var(--warn); background: var(--warn-soft); }
.alert summary {
  display: grid;
  gap: 0.1rem;
  min-height: var(--tap);
  padding: 0.6rem 2.2rem 0.6rem 0.8rem;
  position: relative;
  cursor: pointer;
  list-style: none;
}
.alert summary::-webkit-details-marker { display: none; }
.alert summary::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.alert details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.alert-title { font-weight: 800; font-size: 1.05rem; }
.alert--extreme .alert-title, .alert--severe .alert-title { color: var(--danger); }
.alert--moderate .alert-title { color: var(--warn); }
.alert-when { font-size: 0.85rem; color: var(--muted); }
.alert-body { padding: 0 0.8rem 0.7rem; font-size: 0.9rem; }
.alert-body p { margin: 0 0 0.5rem; max-width: 65ch; }
.alert-area { color: var(--muted); font-size: 0.8rem; }

.wx-row { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wx-row--flag { border-color: var(--warn); border-width: 2px; }
.wx-row-main {
  display: grid;
  grid-template-columns: 4.4rem auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.6rem;
  width: 100%;
  min-height: var(--tap);
  padding: 0.55rem 0.7rem;
  font: inherit;
  text-align: left;
  color: var(--fg);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.wx-time { display: grid; font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.wx-day { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.wx-where { display: grid; min-width: 0; }
.wx-name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.wx-sub { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
.wx-temp {
  display: grid;
  justify-items: end;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.wx-pop { font-size: 0.78rem; font-weight: 700; color: var(--wx-rain); }

.wx-icon { display: inline-grid; place-items: center; color: var(--wx-cloud); }
.wx-icon--clear, .wx-icon--partly { color: var(--wx-sun); }
.wx-icon--rain { color: var(--wx-rain); }
.wx-icon--snow, .wx-icon--ice { color: var(--wx-snow); }
.wx-icon--storm { color: var(--wx-storm); }

.wx-hours {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(3.4rem, 1fr);
  gap: 0.25rem;
  margin: 0;
  padding: 0.5rem 0.6rem 0.7rem;
  list-style: none;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.wx-hours li { display: grid; justify-items: center; gap: 0.1rem; font-variant-numeric: tabular-nums; }
.wx-hour-time { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.wx-hour-temp { font-weight: 700; }
.wx-hour-pop { font-size: 0.75rem; font-weight: 700; color: var(--wx-rain); min-height: 1em; }

/* ---------- Settings ---------- */

.settings {
  width: min(28rem, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.3);
}
.settings::backdrop { background: rgb(0 0 0 / 0.45); }
.settings-form { display: grid; gap: 1.1rem; padding: 1.1rem; }
.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.settings-head h2 { margin: 0; font-size: 1.3rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 0.5rem; }
legend { padding: 0; margin-bottom: 0.5rem; font-weight: 700; }

.swatches { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.swatch { position: relative; display: grid; justify-items: center; gap: 0.3rem; font-size: 0.85rem; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
}
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 3px var(--fg); }
.swatch input:focus-visible + .swatch-dot { outline: 3px solid var(--fg); outline-offset: 4px; }
.swatch-dot[data-id="pink"]   { background: #d81b60; }
.swatch-dot[data-id="purple"] { background: #7e57c2; }
.swatch-dot[data-id="blue"]   { background: #1e88e5; }
.swatch-dot[data-id="green"]  { background: #138a4b; }
.swatch-dot[data-id="orange"] { background: #e65c00; }

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border-radius: 7px;
  font-weight: 600;
}
.segmented input:checked + span { background: var(--accent); color: var(--accent-fg); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent-ink); outline-offset: 1px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space);
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer p { margin: 0 0 0.4rem; }
.site-footer p:last-child { margin-bottom: 0; }

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  .map { height: 420px; }
  .summary dd { font-size: 1.6rem; }
  .primary-button { width: auto; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Plain number field without spinner arrows */
.gas-target-input input { -moz-appearance: textfield; appearance: textfield; }
.gas-target-input input::-webkit-outer-spin-button,
.gas-target-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
