/* Bus Parking Wiki: phone-first, readable in a sunny cab or a dark depot, and roomy on a desktop. */

:root {
  /* brand */
  --brand-1: #2d6bff;
  --brand-2: #5b2eff;
  --brand-grad: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 100%);
  /* Left-to-right version: bands of different heights (header, search panel) meet without a seam. */
  --brand-bar: linear-gradient(90deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --brand-ink: #1d3fe0;
  --accent: #ffc531;
  --accent-soft: #fff4d1;

  /* surfaces and text */
  --bg: #f3f5fb;
  --surface: #ffffff;
  --surface-2: #f7f8fd;
  --text: #0b1020;
  --muted: #586378;
  --line: #e2e6f0;
  --line-strong: #cdd3e1;

  /* actions */
  --primary: #2a55f5;
  --primary-ink: #ffffff;
  --primary-soft: #e8edff;
  /* Text and small marks in the primary colour (the selected tab, numbers, arrows): 4.5:1 or better on surfaces */
  --primary-text: var(--primary);
  --link: #2148e0;
  --focus: #2d6bff;

  /* status */
  --good: #067647;
  --good-bg: #dcfae6;
  --warn: #93370d;
  --warn-bg: #fef0c7;
  --none: #344054;
  --none-bg: #eaecf0;
  --danger: #b42318;
  --danger-bg: #fee4e2;

  /* shape */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 4px 14px -4px rgb(16 24 40 / 0.1);
  --shadow-lg: 0 2px 6px rgb(16 24 40 / 0.06), 0 18px 40px -12px rgb(30 40 120 / 0.28);

  /* layout */
  --wrap: 1360px;
  --gutter: clamp(16px, 3.5vw, 40px);
  --topbar-h: 60px;
  --tabbar-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-1: #2a55f0;
    --brand-2: #5329e6;
    --brand-ink: #a9bbff;
    --accent-soft: #2e2509;
    --bg: #070b16;
    --surface: #10172a;
    --surface-2: #0c1222;
    --text: #eef1f8;
    --muted: #a3adc2;
    --line: #222c45;
    --line-strong: #33405f;
    --primary: #3d63ff;
    --primary-soft: #1a2350;
    --primary-text: #9db3ff;
    --link: #9db3ff;
    --focus: #ffc531;
    --good: #75e0a7;
    --good-bg: #0b2e1d;
    --warn: #fec84b;
    --warn-bg: #3a2a06;
    --none: #ced4e0;
    --none-bg: #1f2940;
    --danger: #fda29b;
    --danger-bg: #3a1210;
    --shadow-xs: none;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 18px 40px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* Links to #sections land below the sticky top bar */
  scroll-padding-top: calc(var(--topbar-h) + env(safe-area-inset-top) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
body.public {
  padding-bottom: 0;
}

::selection {
  background: #ffe28a;
  color: #0b1020;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem);
  font-weight: 800;
}
h2 {
  font-size: 1.2rem;
  font-weight: 750;
}
p {
  margin: 0 0 0.75rem;
}
ul,
ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 2000;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.center {
  text-align: center;
}
[hidden] {
  display: none !important;
}

/* Content column: full width up to --wrap, with even gutters. */
.wrap,
.page {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page {
  padding-block: 20px 36px;
}
.page.narrow {
  max-width: calc(640px + 2 * var(--gutter));
}
.page > section {
  margin-top: 1.5rem;
}

/* ---------- bars ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), calc((100% - var(--wrap)) / 2)) 0;
  background: var(--brand-bar);
  color: #fff;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 6px 20px -10px rgb(40 30 160 / 0.6);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand .logo {
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85), 0 4px 10px rgb(10 10 60 / 0.3);
}
.topnav {
  display: none;
  gap: 4px;
}
.topnav a {
  color: rgb(255 255 255 / 0.9);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 650;
}
.topnav a:hover {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}
.topnav a.on {
  background: #fff;
  color: #1d3fe0;
}
.topbar :focus-visible {
  outline-color: #fff !important;
}
/* The links and the bell, on the right of the bar (on a phone, just the bell: the tab bar has the rest) */
.topbar-end {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.bell:hover {
  background: rgb(255 255 255 / 0.14);
}
.bell.on {
  background: #fff;
  color: #1d3fe0;
}
.bell .icon {
  width: 24px;
  height: 24px;
}
/* Red with a white ring, so it shows on the blue bar in sun and in dark mode. Never animated. */
.bell-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0181f;
  box-shadow: 0 0 0 2px #fff;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 6px 6px env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}
.tabbar span {
  white-space: nowrap;
}
@media (max-width: 359px) {
  .tabbar a {
    font-size: 0.68rem;
  }
}
.tabbar .icon {
  width: 56px;
  height: 30px;
  padding: 3px 16px;
  border-radius: 999px;
  transition: background 0.15s;
}
.tabbar a.on {
  color: var(--primary-text);
}
.tabbar a.on .icon {
  background: var(--primary-soft);
  stroke-width: 2.4;
}

@media (min-width: 900px) {
  .topnav {
    display: flex;
  }
  .tabbar {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

.offline-banner {
  background: var(--warn-bg);
  color: var(--warn);
  text-align: center;
  font-weight: 650;
  padding: 8px 12px;
  font-size: 0.9rem;
}

main {
  display: block;
}

.footer {
  margin-top: 2rem;
  padding-block: 20px 28px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.footer p:last-child {
  margin: 0;
}
/* Data sources, Privacy and Terms: the credits used to fill the footer; now they have their own page */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  margin-top: 4px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 650;
}
.is-map .footer {
  display: none;
}

/* ---------- controls ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s, background-color 0.15s, filter 0.15s;
}
.btn:hover {
  border-color: var(--line-strong);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  opacity: 0.6;
}
.btn-primary {
  background: linear-gradient(120deg, #2d6bff, #4b3cff);
  border-color: transparent;
  color: var(--primary-ink);
  box-shadow: 0 8px 18px -8px rgb(45 91 255 / 0.65);
}
.btn-primary:hover {
  border-color: transparent;
  filter: brightness(1.07);
}
.btn-light {
  background: #fff;
  border-color: transparent;
  color: #1d3fe0;
  box-shadow: 0 10px 24px -10px rgb(10 10 60 / 0.55);
}
.btn-onbrand {
  background: rgb(255 255 255 / 0.16);
  border-color: rgb(255 255 255 / 0.32);
  color: #fff;
  box-shadow: none;
}
.btn-onbrand:hover {
  background: rgb(255 255 255 / 0.24);
  border-color: rgb(255 255 255 / 0.5);
}
.btn-good {
  background: var(--good-bg);
  color: var(--good);
  border-color: transparent;
}
.btn-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: transparent;
}
.btn-ghost {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--line);
}
.btn-sm {
  min-height: 40px;
  padding: 7px 14px;
  font-size: 0.92rem;
  border-radius: 12px;
}
.btn-lg {
  min-height: 56px;
  padding: 14px 32px;
  font-size: 1.12rem;
  border-radius: 16px;
}
.btn.on {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.danger {
  color: var(--danger) !important;
}
.btn-row,
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.btn-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0.5rem;
}
/* Directions across the top (one button per stop when a card has two), then Google Maps / Apple Maps / Waze, then
   Satellite / Street View. */
.btn-grid .btn {
  grid-column: span 2;
  padding-inline: 6px;
  font-size: 0.95rem;
}
.btn-grid .btn-half {
  grid-column: span 3;
}
@media (max-width: 400px) {
  .btn-grid .btn:not(.btn-primary) {
    padding-inline: 4px;
    font-size: 0.88rem;
  }
}
.btn-grid .btn-primary {
  grid-column: 1 / -1;
  min-height: 54px;
  font-size: 1.05rem;
}
form.inline {
  display: inline;
}

/* Small inline icons drawn with CSS masks, so scripts can change button text freely. */
.near::before,
.search::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.near::before {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l18-8-8 18-2-8z'/%3E%3C/svg%3E");
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent);
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--primary);
}
input[type='file'] {
  padding: 9px;
}
.btn:focus-visible,
a:focus-visible,
summary:focus-visible,
input[type='checkbox']:focus-visible,
input[type='radio']:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
label {
  display: block;
  font-weight: 650;
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
  font-weight: 400;
}
label.check,
label.radio {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 550;
  min-height: 48px;
}
label.check input,
label.radio input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 0;
  flex: none;
}
.hint {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 16px;
}
/* First name and surname: side by side where there's room, one above the other on a small phone */
.name-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 0;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 16px;
}
legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
legend + * {
  clear: both;
}
fieldset.radios {
  gap: 2px;
}
.two,
.three {
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
  .three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ---------- category tiles ---------- */

.tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #fff;
  background-image: linear-gradient(140deg, rgb(255 255 255 / 0.22), rgb(0 0 0 / 0.06));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.tile svg {
  width: 22px;
  height: 22px;
}
.tile-sm {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.tile-sm svg {
  width: 15px;
  height: 15px;
}

/* ---------- home ---------- */

.home > .finder {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: -20px calc(-1 * var(--gutter)) 0;
  padding: 14px var(--gutter) 22px;
  background: var(--brand-bar);
  color: #fff;
  border-radius: 0 0 28px 28px;
}
.home > .finder::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -70px;
  bottom: -150px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 110 200 / 0.32), transparent 65%);
}
body:has(.home) .topbar {
  box-shadow: none;
}
.finder-title {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.finder :focus-visible {
  outline-color: #fff;
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 14px;
  background: var(--surface);
  color: var(--muted);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.search::before {
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  width: 20px;
  height: 20px;
}
.search input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 8px 6px;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  box-shadow: none;
}
.search input:focus {
  box-shadow: none;
}
.search .btn {
  min-height: 46px;
  padding-inline: 16px;
  border-radius: 14px;
}
.quick {
  margin-top: 12px;
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px calc(-1 * var(--gutter)) -8px;
  padding: 4px var(--gutter) 14px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  scroll-snap-align: start;
  box-shadow: var(--shadow-xs);
}
.chip:hover {
  border-color: var(--line-strong);
}
.chip.on {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 14px -6px rgb(60 70 255 / 0.6);
}
.chip-list {
  border-style: dashed;
  border-color: var(--brand-1);
}
.results h2,
.recent h2 {
  margin-top: 0.5rem;
}
.list-group {
  margin: 1.2rem 0 0.4rem;
  font-size: 1rem;
  color: var(--muted);
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.list li + li {
  border-top: 1px solid var(--line);
}
/* Admin → Drafts to publish: photos on school cards waiting for an editor */
.pending-photos {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pending-photos li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.pending-photos img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.pending-photos .stack p {
  margin: 0;
}
/* Admin → Starter data: a card that left its list, with its Archive button or a note beside it */
.left-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
}
.left-row .row {
  flex: 1;
}
.left-row small {
  white-space: normal;
}
.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 14px;
  min-height: 68px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.row:hover {
  background: var(--surface-2);
}
.row:active {
  background: var(--primary-soft);
}
.row > .tile {
  grid-row: 1 / span 2;
  align-self: start;
}
.row-main,
.row-side {
  grid-column: 2;
}
.row:not(:has(> .tile)) {
  grid-template-columns: minmax(0, 1fr);
}
.row:not(:has(> .tile)) > * {
  grid-column: 1;
}
.row-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.row-main strong {
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.row-main small {
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-main small.row-note {
  white-space: normal;
}
.row-side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-side:empty {
  display: none;
}
.dist {
  color: var(--muted);
  font-weight: 650;
}
.recent {
  margin-top: 1.25rem;
}
.blank-pins > .center {
  margin-top: 16px;
}
.empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* Wide screens: lists of cards become a grid of tiles. */
@media (min-width: 700px) {
  .list.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }
  .list.cards li,
  .list.cards li + li {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  }
  .list.cards li:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
  }
  .list.cards .row {
    height: 100%;
    align-content: start;
    padding: 16px;
    border-radius: inherit;
  }
}

@media (min-width: 900px) {
  .home > .finder {
    margin: 4px 0 0;
    padding: 36px 40px 30px;
    background: var(--brand-grad);
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
  }
  .home > .finder::after {
    right: 6%;
    bottom: auto;
    top: -120px;
    width: 420px;
    height: 420px;
  }
  .finder-title {
    font-size: 2.1rem;
    margin-bottom: 18px;
  }
  .home > .finder {
    display: grid;
    grid-template-columns: minmax(0, 760px) auto;
    justify-content: start;
    align-items: center;
    column-gap: 12px;
  }
  .finder-title {
    grid-column: 1 / -1;
  }
  .search .btn {
    padding-inline: 22px;
  }
  .home .quick {
    margin: 0;
  }
  .home .quick .btn {
    min-height: 56px;
    padding-inline: 20px;
    border-radius: 16px;
    font-size: 1rem;
  }
  .chips {
    flex-wrap: wrap;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* ---------- pills, flash ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
  white-space: nowrap;
  vertical-align: middle;
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-good {
  background: var(--good-bg);
  color: var(--good);
}
.pill-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.pill-none {
  background: var(--none-bg);
  color: var(--none);
}
.on-list {
  margin: 4px 0 0;
}
.pill-list {
  min-height: 32px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  text-decoration: none;
}
.pill-list::before {
  background: var(--brand-1);
}
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-weight: 650;
  border: 1px solid transparent;
}
.flash-good {
  background: var(--good-bg);
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 22%, transparent);
}
.flash-warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 22%, transparent);
}
.home > .flash {
  margin: 16px 0 0;
}

/* ---------- location card ---------- */

/* Phones: one column, in the order a driver meets the site. */
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-side {
  display: contents;
}
.card-main {
  order: 0;
}
.card .go {
  order: 1;
}
.card .map-block {
  order: 2;
}
.card-body {
  order: 3;
}
.card .actions {
  order: 4;
}
.card .checked-form {
  order: 5;
}
.card-foot {
  order: 6;
}
.card-main > * + *,
.card-body > * + * {
  margin-top: 12px;
}
.card-body > .photos,
.card-body > .sources {
  margin-top: 26px;
}

.eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 8px;
}
.card-head h1 {
  margin-bottom: 4px;
}
.address {
  color: var(--muted);
  margin-bottom: 10px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.92rem;
  margin: 0;
}
.warn-line {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 650;
  font-size: 0.92rem;
}
.note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.note-school,
.note-info {
  background: var(--primary-soft);
}
/* Links in a coloured line take its colour, which keeps its contrast in both themes */
.warn-line a,
.my-suggestion a {
  color: inherit;
}
/* A driver's own changes on a card (card.js): waiting for an admin, approved, or not used */
.my-suggestion {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 650;
}
.my-suggestion-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.my-suggestion-good {
  background: var(--good-bg);
  color: var(--good);
}
.my-suggestion-note {
  background: var(--primary-soft);
}
/* The edit form, when the driver already sent changes to the card */
.sent-changes {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.sent-changes p {
  margin: 0;
}
/* Admin → Suggested changes: one driver's changes and the buttons */
.suggestion-actions {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.45;
  box-shadow: var(--shadow);
}
.summary p:last-child {
  margin: 0;
}
.stub-box {
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.stub-summary {
  color: var(--muted);
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}
.facts div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow-xs);
}
.facts div:has(.fact-warn) {
  background: var(--danger-bg);
  border-color: color-mix(in srgb, var(--danger) 25%, transparent);
}
.facts dt {
  font-size: 0.7rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
}
.facts dd {
  margin: 6px 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.facts dd.muted {
  font-size: 0.95rem;
  font-weight: 650;
}
.fact-warn {
  color: var(--danger);
}
@media (max-width: 480px) {
  .facts dt {
    font-size: 0.64rem;
    letter-spacing: 0.03em;
  }
  .facts div {
    padding: 9px 10px;
  }
}

.go .small {
  margin: 4px 0 0;
}
/* What the venue pin marks, read before pressing Directions */
.pin-note {
  margin: 0 0 10px;
}
.card-map {
  height: 300px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 0;
  box-shadow: var(--shadow);
}
.map-block > p {
  margin: 10px 0 0;
}
/* "Show on the map": opens the Map tab on this card's pin */
.map-open {
  display: flex;
  width: 100%;
  margin-top: 10px;
}
.map-open svg {
  width: 20px;
  height: 20px;
}
.points {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.points li {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.points li,
.legend-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.points li > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.point-notes {
  font-size: 0.9rem;
}
.legend-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.dot,
.pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.35);
}
.pin-wrap {
  background: none;
  border: 0;
}
.pin-venue {
  width: 22px;
  height: 22px;
  background: var(--brand-grad);
  border: 4px solid #fff;
}

.sec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 6px;
  box-shadow: var(--shadow-xs);
}
.card-body > .sec + .sec {
  margin-top: 10px;
}
.sec h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.sec h2::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--brand-grad);
}
.sec-empty {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  padding-bottom: 2px;
}
.sec-empty h2::before {
  background: var(--line-strong);
}
.sec-empty p {
  font-size: 0.92rem;
}

.photo-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--none-bg);
}
.photo-grid p {
  margin: 6px 0 0;
}
details.upload {
  margin-top: 8px;
}
details.upload summary {
  list-style: none;
}
details.upload summary::-webkit-details-marker {
  display: none;
}
details.upload form {
  margin-top: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.sources ul {
  padding-left: 1.1rem;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.actions .btn-warn {
  grid-column: 1 / -1;
}
.actions .save-status {
  grid-column: 1 / -1;
  margin: 0;
}
.checked-form .btn {
  width: 100%;
}
.disclaimer {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--none-bg);
  font-size: 0.88rem;
  font-weight: 650;
}

/* Wide screens: the card reads on the left; directions, map and actions stay in view on the right. */
@media (min-width: 1000px) {
  .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      'main side'
      'body side'
      'foot side';
    gap: 24px 36px;
    align-items: start;
  }
  .card-main {
    grid-area: main;
  }
  .card-body {
    grid-area: body;
  }
  .card-foot {
    grid-area: foot;
  }
  .card-side {
    grid-area: side;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--topbar-h) + env(safe-area-inset-top) + 16px);
    max-height: calc(100dvh - var(--topbar-h) - env(safe-area-inset-top) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }
  .card-head h1 {
    font-size: 2.5rem;
  }
  .card-map {
    height: 320px;
  }
  .sec {
    padding: 16px 22px 8px;
  }
}

/* ---------- maps ---------- */

.map-page {
  position: relative;
}
.big-map {
  height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - env(safe-area-inset-bottom) - env(safe-area-inset-top));
  min-height: 360px;
  z-index: 0;
}
@media (min-width: 900px) {
  .big-map {
    height: calc(100dvh - var(--topbar-h) - env(safe-area-inset-top));
  }
}
.map-legend {
  position: absolute;
  left: 12px;
  bottom: 24px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-width: calc(100% - 24px);
  font-weight: 600;
}
@media (max-width: 899px) {
  .map-legend {
    display: none;
  }
  .map-filter .map-filter-panel {
    max-height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 84px);
  }
}
.mf-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 4px 0;
  font-size: 0.8rem;
  font-weight: 650;
}
@media (min-width: 900px) {
  .mf-key {
    display: none; /* the floating legend shows it on wide screens */
  }
}
.lg {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}
.lg-good {
  background: #12b76a;
}
.lg-warn {
  background: #f79009;
}
.lg-pin {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border-radius: 50% 50% 50% 2px;
  transform: rotate(-45deg);
  background: var(--primary);
}
.lg-outline {
  background: transparent;
  border: 2px solid var(--muted);
}

/* Map pins: a teardrop in the place type's colour (set as --c), with the type's icon. */
.mk-wrap {
  background: none;
  border: 0;
}
.mk {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.far-out .mk {
  transform: scale(0.7);
  transform-origin: 50% 120%; /* the pin's tip, so it still points at the place */
}
.mpin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 3px; /* the square-ish corner becomes the tip once rotated */
  transform: rotate(-45deg);
  background: var(--c);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
  color: #fff;
}
.mpin svg {
  width: 56%;
  height: 56%;
  transform: rotate(45deg);
}
.mk-stub .mpin {
  background: #fff;
  border: 2.5px solid var(--c);
  color: var(--c);
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.3);
}
.mk-toilet .mpin {
  border-width: 2px;
}
.mk-rest .mpin,
.mk-bay .mpin {
  border-width: 2px;
}
.mk-closed .mpin {
  background: #98a2b3;
  opacity: 0.85;
}
.mk-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.35);
}
.mk-good {
  background: #12b76a;
}
.mk-warn {
  background: #f79009;
}
.mk-none {
  background: #98a2b3;
}
.mk-wrap:focus-visible {
  outline: none;
}
.mk-wrap:focus-visible .mpin {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
/* Clusters: count on a dark disc, ringed by the colours of the types inside (set inline as a conic gradient). */
.mk-cluster-wrap {
  background: none;
  border: 0;
}
.mk-cluster {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.35);
  transition: transform 0.15s;
}
.mk-cluster b {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #10173a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.mk-cluster-stub {
  padding: 3px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
}
.mk-cluster-stub b {
  background: #fff;
  color: #10173a;
  font-size: 13px;
}
.mk-cluster-toilet,
.mk-cluster-rest {
  padding: 0;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.3);
}
.mk-cluster-toilet b,
.mk-cluster-rest b {
  font-size: 13px;
  background: transparent;
}
.mk-cluster-wrap:hover .mk-cluster {
  transform: scale(1.08);
}
.mk-cluster-wrap:focus-visible {
  outline: none;
}
.mk-cluster-wrap:focus-visible .mk-cluster {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.map-pop {
  display: grid;
  gap: 2px;
  min-width: 180px;
}
.map-pop-type {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.map-pop-type i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.map-pop strong {
  font-size: 1rem;
  line-height: 1.3;
}
.map-pop .pill {
  margin-top: 4px;
}
.toilet-pop {
  gap: 3px;
}
.tp-hours {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--good-bg);
  color: var(--good);
  font-weight: 700;
  font-size: 0.82rem;
}
.tp-hours.tp-closed {
  background: var(--danger-bg);
  color: var(--danger);
}
.tp-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 6px 0 2px;
  padding: 0;
}
.tp-features li {
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--none-bg);
  color: var(--none);
  font-size: 0.78rem;
  font-weight: 650;
}
.leaflet-popup-content p.tp-note {
  margin: 4px 0 0;
  font-size: 0.85rem;
}
.tp-links {
  display: flex;
  gap: 6px;
}
.leaflet-popup-content p.tp-legal {
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

/* Low bridges: a badge like a low-clearance sign (black on yellow). With a bus height set on the Me page,
   red = too low for your bus, amber = 30 cm or less to spare, grey = plenty of room. */
.lb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 46px;
  padding: 2px 7px;
  border: 2px solid #111;
  border-radius: 7px;
  background: #ffcf33;
  color: #111;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.lb-low {
  background: #d92d20;
  border-color: #7a1209;
  color: #fff;
}
.lb-tight {
  background: #ff9f1c;
  border-color: #7a3d00;
  color: #111;
}
.lb-ok {
  background: #e4e7ec;
  border-color: #98a2b3;
  color: #344054;
}
.lb-wrap {
  background: none;
  border: 0;
}
.lb-pin {
  width: 46px;
  height: 26px;
  padding: 0;
  font-size: 13px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
}
.lb-cluster {
  gap: 4px;
  width: 58px;
  height: 30px;
  padding: 0 6px;
  font-size: 13px;
  box-shadow: 0 3px 8px rgb(0 0 0 / 0.35);
}
.lb-cluster i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
}
.lb-cluster i::before {
  content: '×';
}
.lb-big {
  justify-self: start;
  margin: 4px 0 2px;
  padding: 3px 12px;
  font-size: 1.3rem;
}
.lb-pop {
  gap: 3px;
}
.lb-fit-text {
  justify-self: start;
  font-weight: 750;
}
.lb-fit-text.lb-low,
.lb-fit-text.lb-tight,
.lb-fit-text.lb-ok {
  padding: 1px 8px;
  border-radius: 6px;
  border: 0;
}
path.lb-line {
  stroke: #e0a000;
  stroke-width: 7;
  stroke-dasharray: 10 7;
  stroke-opacity: 0.9;
  stroke-linecap: butt;
}
path.lb-line-low {
  stroke: #d92d20;
}
path.lb-line-tight {
  stroke: #ff9f1c;
}
path.lb-line-ok {
  stroke: #98a2b3;
}
.lb-pin.lb-ok {
  opacity: 0.85;
}
.lb-pin.lb-minor {
  width: 38px;
  height: 20px;
  border-width: 1.5px;
  border-radius: 5px;
  font-size: 10.5px;
  opacity: 0.85;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
}
.mf-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.tile-sign {
  color: #111;
  box-shadow: inset 0 0 0 1.5px #111;
}

/* Low bridges near a card */
.coach-near {
  padding: 14px 16px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid #1e40af;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.coach-near h2 {
  margin-top: 0;
}
.coach-near .cp-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
.low-bridges {
  padding: 14px 16px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid #ffcf33;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.low-bridges h2 {
  font-size: 1.05rem;
}
.lb-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 2px;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.lb-row:hover {
  background: var(--surface-2);
}
.lb-row .lb {
  min-width: 76px;
  font-size: 0.95rem;
}
.lb-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.lb-text small {
  color: var(--muted);
}
.lb-text .lb-fit {
  color: var(--text);
  font-weight: 650;
}
.lb-text .lb-fit:empty {
  display: none;
}
.lb-summary {
  margin: 0 0 6px;
  font-weight: 700;
}
/* Couldn't check, or the list is old: as noticeable as a result, never mistaken for "none" */
.lb-unknown {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn);
}
.low-bridges [data-lb-all] {
  margin: 0 0 10px;
}

/* City of Melbourne coach rules, on cards inside the council area */
.council-coach {
  padding: 14px 16px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid #7a5af8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.council-coach h2 {
  font-size: 1.05rem;
}
.council-coach ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.council-coach li + li {
  margin-top: 4px;
}
.council-coach .cc-bays {
  padding-left: 0;
  list-style: none;
}
.cc-bays li {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.cc-bays li + li {
  margin-top: 0;
}

/* Types panel (top right of the big map). */
.map-filter {
  font-size: 15px;
  color: var(--text);
}
.map-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.map-filter-btn::before {
  content: '';
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.map-filter-btn[aria-expanded='true'] {
  color: var(--primary-text);
}
.mf-badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
}
.map-filter-panel {
  margin-top: 8px;
  width: min(290px, calc(100vw - 84px));
  max-height: min(62vh, 560px);
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.mf-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.mf-row:hover {
  background: var(--surface-2);
}
.mf-row:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}
.mf-row[aria-pressed='false'] {
  color: var(--muted);
}
.mf-row[aria-pressed='false'] .tile {
  filter: grayscale(1);
  opacity: 0.45;
}
.mf-label {
  flex: 1;
}
.mf-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.mf-count.mf-failed {
  color: var(--warn);
  font-weight: 650;
}
/* A map layer that didn't load: bottom left, above the map, with Try again */
.map-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 650;
  font-size: 0.92rem;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.18);
}
.map-alert[hidden] {
  display: none;
}
/* On a phone it's as wide as the map, so it sits above the "Add a place" button in the other corner */
@media (max-width: 640px) {
  .leaflet-bottom .leaflet-control.map-alert {
    margin-bottom: 70px;
  }
}
.mf-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid var(--line-strong);
}
.mf-row[aria-pressed='true'] .mf-check {
  background: var(--primary);
  border-color: var(--primary);
}
.mf-row[aria-pressed='true'] .mf-check::after {
  content: '';
  width: 14px;
  height: 14px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mf-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mf-note {
  margin: 8px 4px 2px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.leaflet-container {
  font-family: inherit;
  background: var(--surface-2);
}
/* The map credit on a solid background in the page's own colours, so it stays readable over any map, light or dark */
.leaflet-container .leaflet-control-attribution {
  background: var(--surface);
  color: var(--muted);
}
.leaflet-container .leaflet-control-attribution a {
  color: var(--link);
}
.leaflet-bar {
  border: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--shadow-lg) !important;
}
.leaflet-touch .leaflet-bar a,
.leaflet-bar a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 20px;
}
.map-locate {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #2a55f5;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
/* "You are here": a blue dot that stays the same size at every zoom, with a ring that pulses so it stands out among the pins. */
.me-wrap {
  background: none;
  border: 0;
}
.me-dot {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a73e8;
  border: 5px solid #fff;
  box-shadow: 0 0 0 3px rgb(26 115 232 / 0.4), 0 2px 8px rgb(0 0 0 / 0.5);
}
.me-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid #1a73e8;
  animation: me-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes me-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .me-dot::after {
    animation: none;
    transform: scale(1.6);
    opacity: 0.35;
  }
}
.leaflet-popup-content-wrapper {
  border-radius: 14px;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--text);
}
.leaflet-popup-content {
  font: 15px/1.45 system-ui, -apple-system, sans-serif;
}
.leaflet-popup-content .btn {
  margin-top: 8px;
  color: var(--text);
}
.leaflet-popup-content .btn-primary {
  color: #fff;
}
.edit-map {
  height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  z-index: 0;
}
.edit-map.adding {
  outline: 3px solid var(--accent);
  cursor: crosshair;
}
/* Someone saved the card while the editor had it open: the parts that differ, the card's and then theirs */
.versions {
  border: 2px solid color-mix(in srgb, var(--warn) 35%, transparent);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  background: var(--surface);
}
.versions h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.version-list {
  margin: 12px 0;
  display: grid;
  gap: 12px;
}
.version {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.version dt {
  font-weight: 750;
}
.version dd {
  margin: 6px 0 0;
}
.version-tag {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--muted);
}
.version-text {
  margin: 2px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.pin-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.pin-tools #pin-here {
  grid-column: 1 / -1;
}
.pin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.pin-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.pin-fields {
  display: grid;
  gap: 6px;
}
.pin-btns {
  grid-column: 2;
  display: flex;
  gap: 8px;
}
.page.edit {
  max-width: calc(920px + 2 * var(--gutter));
}

/* ---------- add a place ---------- */

.add-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.add-head h1 {
  margin: 0;
}
.add-close {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}
.add-progress {
  height: 6px;
  margin: 12px 0 20px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.add-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.25s ease;
}
.add-step {
  display: grid;
  gap: 14px;
}
.add-step[hidden],
.add-form:not(.js) .add-progress,
.add-form:not(.js) .add-foot {
  display: none;
}
.add-form:not(.js) .add-step + .add-step {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.add-step h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.add-step h2:focus {
  outline: none;
}
.add-step > p,
.add-step > .flash {
  margin: 0;
}
.add-intro {
  display: grid;
  gap: 14px;
  margin: 4px 0;
  padding: 0;
  list-style: none;
  counter-reset: add;
}
.add-intro li {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 14px;
  align-items: center;
  counter-increment: add;
}
.add-intro li::before {
  content: counter(add);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--brand-ink);
  font-weight: 800;
}
.add-intro span {
  color: var(--muted);
  font-size: 0.92rem;
}
.add-choices {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.add-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.add-choice:first-child {
  border-top: 0;
}
.add-choice::after {
  content: '›';
  color: var(--primary-text);
  font-size: 1.5rem;
  line-height: 1;
}
.add-choice:active {
  background: var(--primary-soft);
}
.add-search {
  display: flex;
  gap: 8px;
}
.add-search input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.add-results:empty {
  display: none;
}
button.row {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.add-map-wrap {
  position: relative;
}
.add-map {
  height: clamp(240px, 40vh, 460px);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 0;
}
/* A pin fixed to the middle of the map: its point marks the spot. */
.add-crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 500;
  width: 30px;
  height: 30px;
  margin: -36px 0 0 -15px;
  pointer-events: none;
}
.add-crosshair::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--primary);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
  transform: rotate(-45deg);
}
.add-crosshair::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.add-zoom {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 650;
}
fieldset.add-types {
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
label.add-type {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 400;
  cursor: pointer;
}
label.add-type input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
}
label.add-type > span:last-child {
  display: grid;
}
label.add-type small {
  color: var(--muted);
  font-size: 0.86rem;
}
label.add-type:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}
/* Back and the next step, kept in reach above the tab bar. */
.add-foot {
  position: sticky;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
@media (min-width: 900px) {
  .add-foot {
    bottom: 0;
  }
}
/* "Add a place" on the big map */
.map-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.leaflet-container a.map-add {
  color: var(--primary-ink);
}

/* ---------- admin ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stats span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--shadow-xs);
}
.stats strong {
  color: var(--primary-text);
}
.reports,
.users {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 900px) {
  .reports,
  .users {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }
}
.report,
.user {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
}
.report-hazard {
  border-left: 5px solid var(--danger);
}
.report-wrong,
.report-changed {
  border-left: 5px solid #f79009;
}
.report-msg {
  white-space: pre-wrap;
}
/* User management: search, filters and sort (src/userlist.ts), and each person's activity */
.user-filters {
  display: grid;
  gap: 12px;
  margin: 14px 0 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.user-filter-more summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  color: var(--primary-text);
  cursor: pointer;
}
/* One choice a row on a phone, so the longer ones ("Waiting for approval") aren't cut short */
.user-filter-grid {
  display: grid;
  gap: 10px 12px;
  padding-top: 4px;
}
@media (min-width: 560px) {
  .user-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .user-filter-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
.user-count {
  margin: 0 0 4px;
  font-weight: 650;
}
.user-activity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 8px;
}
.user-activity ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
}
.user-pending {
  border-left: 5px solid var(--primary);
}
.user-blocked {
  opacity: 0.6;
}
.user-details {
  margin: 4px 0 0;
}
.user-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.user-form select {
  width: auto;
  flex: 1;
}
.user-welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.add-user {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  max-width: 720px;
}
.add-user h2 {
  margin: 0;
  font-size: 1.1rem;
}
.import {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
}
/* The Admin home: one big button for each admin page */
.admin-tiles {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .admin-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
.admin-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  -webkit-tap-highlight-color: transparent;
}
.admin-tile:hover {
  border-color: var(--line-strong);
}
.admin-tile:active {
  background: var(--primary-soft);
}
.admin-tile-main {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.admin-tile-main strong {
  font-size: 1.05rem;
}
.admin-tile-main small {
  color: var(--muted);
  font-size: 0.86rem;
}
.admin-tile .pill {
  flex: none;
}
.admin-tile-go {
  flex: none;
  color: var(--primary-text);
  font-size: 1.6rem;
  line-height: 1;
}
/* Sign-in seats on the Admin home (src/seats.ts) */
.admin-seats {
  margin-top: 1.5rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.admin-seats h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.admin-seats-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  font-size: 1.1rem;
}
.admin-seats-count strong {
  font-size: 1.5rem;
}
.admin-backup {
  margin-top: 1.5rem;
}
.pager {
  margin-top: 14px;
}
/* Each admin page: back to the Admin home, and links to the other pages */
.admin-back {
  margin: 0;
}
.admin-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
}
.admin-nav {
  margin-top: 0;
  margin-bottom: 10px;
  /* admin.js scrolls this page's link into view; snapping would push it against the screen edge */
  scroll-snap-type: none;
}
/* The button sits under the place's details, lined up with its name (row padding + tile + gap) */
.drafts .draft {
  padding-bottom: 14px;
}
.drafts .draft .btn {
  margin-left: 72px;
}

/* ---------- landing ---------- */

body.landing .topbar {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
  box-shadow: none;
}
.publicnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.publicnav a:not(.btn) {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 4px;
}
.publicnav a:not(.btn):hover {
  text-decoration: underline;
}
.publicnav .btn {
  min-height: 40px;
  white-space: nowrap;
}
.brand span {
  white-space: nowrap;
}
/* Small phones: the full name, the FAQ link and Sign in don't all fit on one line. */
@media (max-width: 400px) {
  .brand {
    gap: 8px;
    font-size: 1.05rem;
  }
  .publicnav {
    gap: 10px;
  }
  .publicnav .btn {
    padding: 8px 14px;
  }
}
@media (max-width: 359px) {
  .publicnav a:not(.btn) {
    display: none;
  }
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--topbar-h) + env(safe-area-inset-top) + 24px) 0 84px;
  background: var(--brand-grad);
  color: #fff;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}
.hero::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgb(255 110 200 / 0.36), transparent 62%);
}
.hero::after {
  width: 620px;
  height: 620px;
  left: -260px;
  bottom: -360px;
  background: radial-gradient(circle, rgb(56 200 255 / 0.35), transparent 62%);
}
.hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
}
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.28);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 13ch;
  margin-bottom: 18px;
}
.lede {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: rgb(255 255 255 / 0.9);
  max-width: 36ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 12px;
}
.hero-note {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.8);
  margin: 0;
}
.hero :focus-visible {
  outline-color: #fff;
}
.hero-art {
  display: flex;
  justify-content: center;
}

.teaser {
  width: min(100%, 360px);
  margin: 0;
}
.teaser video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  background: #3a4ff0;
  box-shadow: 0 30px 60px -20px rgb(10 10 60 / 0.55);
}
.teaser figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  text-align: center;
  color: rgb(255 255 255 / 0.85);
}
/* The longer video, on YouTube */
.teaser-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  margin: 10px auto 0;
  padding: 0 18px;
  border-radius: 999px;
  /* Dark, so the white words keep at least 4.5:1 anywhere on the hero's gradient, hovered or not */
  background: rgb(11 16 32 / 0.45);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}
.teaser-more:hover {
  background: rgb(11 16 32 / 0.62);
}
.teaser-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* The short videos (#videos): one player, and the list to pick from (videos.js) */
.sv {
  display: grid;
  gap: 22px;
  align-items: start;
}
.sv-player {
  width: min(100%, 340px);
  margin: 0;
  justify-self: center;
}
.sv-player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  background: #3a4ff0;
  box-shadow: var(--shadow-lg);
}
.sv-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-item {
  padding: 6px 16px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sv-item:has(.sv-pick[aria-current]) {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.sv-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}
.sv-pick:hover .sv-title {
  text-decoration: underline;
}
.sv-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 0.9rem;
  font-weight: 800;
}
.sv-pick[aria-current] .sv-n {
  background: var(--primary);
  color: var(--primary-ink);
}
.sv-len {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sv-src {
  margin: 0 0 0 42px;
  color: var(--muted);
  font-size: 0.85rem;
}
@media (min-width: 760px) {
  .sv {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 32px;
  }
  .sv-player {
    justify-self: start;
  }
}

.features {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: -44px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature .tile {
  margin-bottom: 14px;
}
.feature h2 {
  font-size: 1.2rem;
  font-weight: 800;
}
.feature p {
  color: var(--muted);
  margin: 0;
}

@media (min-width: 760px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}
@media (min-width: 960px) {
  .hero {
    padding: calc(var(--topbar-h) + 64px) 0 120px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
  }
  .features {
    margin-top: -64px;
  }
  .feature {
    padding: 28px;
  }
}

/* ---------- start page sections ---------- */

.lp-section {
  padding-top: clamp(56px, 8vw, 96px);
}
.lp-section h2,
.lp-band h2,
.lp-cta h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 24ch;
  margin-bottom: 14px;
}
.lp-eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.lp-lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 28px;
}
.lp-grid {
  display: grid;
  gap: 14px;
}
.lp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}
.lp-card h3,
.feature h3,
.cost h3,
.steps h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.lp-card p,
.feature p,
.cost p,
.steps p {
  color: var(--muted);
  margin: 0;
}
.scenario {
  border-left: 6px solid var(--accent);
}
.lp-card .tile {
  margin-bottom: 12px;
}
.hf {
  border-left: 6px solid var(--brand-1);
}
.one-place {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--brand-grad);
  color: #fff;
}
.one-place h3 {
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 8px;
}
.one-place p {
  margin: 0;
  max-width: 75ch;
  color: rgb(255 255 255 / 0.92);
}
/* The start page keeps one case and links the rest (in the FAQ) */
.lp-one {
  max-width: 720px;
}
.lp-more {
  margin: 20px 0 0;
}
/* The background sections at the top of the FAQ clear the sticky top bar when jumped to */
.faq-page .lp-section,
.faq-page .lp-band {
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}
.hf-close {
  font-size: 1.08rem;
  color: var(--text);
  font-weight: 600;
}
.lp-source {
  margin-top: 10px !important;
  font-size: 0.85rem;
}
.lp-band {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(44px, 6vw, 72px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lp-grid-costs .cost {
  padding-left: 16px;
  border-left: 4px solid var(--danger);
}
.lp-note {
  margin: 24px 0 0;
  color: var(--muted);
  max-width: 70ch;
}
.feature h3 {
  margin-top: 0;
}
a.audience {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
a.audience:hover {
  border-color: var(--primary);
}
.audience-more {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  color: var(--link);
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 850;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 0;
}
.stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.stats dd {
  margin: 0;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
}
.stats dt {
  color: var(--muted);
  font-weight: 650;
}
.limits,
.checks {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 900px;
}
.limits li,
.checks li {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.limits li::before,
.checks li::before {
  position: absolute;
  left: 16px;
  top: 13px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.85rem;
}
.limits li::before {
  content: '\2715';
  background: var(--danger-bg);
  color: var(--danger);
}
.checks li::before {
  content: '\2713';
  background: var(--good-bg);
  color: var(--good);
}
.lp-cta {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
  background: var(--brand-grad);
  color: #fff;
}
.lp-cta p {
  max-width: 62ch;
  font-size: 1.08rem;
}
.lp-cta a:not(.btn) {
  color: #fff;
}
@media (min-width: 760px) {
  .lp-grid-today {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-grid-costs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .lp-grid-today {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lp-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stats {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* ---------- FAQ ---------- */

.faq-hero {
  padding: 36px 0 28px;
  background: var(--brand-bar);
  color: #fff;
}
.faq-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.faq-hero .lede {
  margin-bottom: 18px;
}
.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* A long group name wraps inside its chip on a narrow phone (320 px) rather than running off the screen */
.faq-jump .chip {
  flex: 0 1 auto;
}
.faq-body {
  padding-bottom: 64px;
  max-width: calc(980px + 2 * var(--gutter));
}
.faq-group {
  padding-top: 36px;
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}
.faq-group h2 {
  font-size: 1.5rem;
  font-weight: 850;
  margin-bottom: 4px;
}
.faq-item {
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  font-weight: 750;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  flex: none;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--muted);
}
.faq-item[open] summary::after {
  content: '\2212';
}
.faq-a {
  padding: 0 18px 16px;
}
.faq-a p,
.faq-a ul {
  margin: 0 0 10px;
}
.faq-a > :last-child {
  margin-bottom: 0;
}
.faq-contact p {
  max-width: 62ch;
}

/* Card history (editors) */
.history-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.history-version details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}
.history-version summary {
  cursor: pointer;
  min-height: 56px;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.history-when {
  font-weight: 800;
}
.history-version details[open] {
  padding-bottom: 16px;
}
.history-note {
  margin: 0 0 8px;
  font-style: italic;
}
.history-version .version-list {
  margin: 8px 0 12px;
}

/* Admin → Email drivers */
.email-people summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 650;
}
.email-people-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}
.email-people-list .pill {
  margin-left: 6px;
}
.email-preview {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.email-preview h2 {
  font-size: 1.15rem;
  margin: 6px 0 12px;
}
.email-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.email-actions {
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.email-actions form {
  display: contents;
}
.email-sent,
.email-recipients {
  margin-top: 28px;
}
.email-sent-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}
.email-sent-list p {
  margin: 2px 0 0;
}
.email-sent-list .btn-row {
  margin-top: 8px;
}

/* Notifications (/app/notices) */
.notices-week {
  font-weight: 650;
}
.notice-day h2 {
  font-size: 1rem;
  color: var(--muted);
  margin: 22px 0 8px;
}
.notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.notice {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.notice p {
  margin: 4px 0 0;
}
.notice .notice-label {
  margin: 0;
  font-weight: 650;
}
.notice h3 {
  margin: 6px 0 0;
  font-size: 1.05rem;
}
.notice-body p {
  margin: 6px 0 0;
}
/* John's messages and what became of what you added stand out from the rest */
.notice-message,
.notice-personal {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.notice-card {
  font-weight: 700;
}
.pill-new {
  margin-left: 4px;
  background: var(--danger-bg);
  color: var(--danger);
}
.pill-saved {
  margin-left: 4px;
  background: var(--accent-soft);
  color: var(--text);
}
.notices-help {
  margin-top: 28px;
}

/* Data sources, Privacy and Terms (DocPage) */
.doc-page .faq-hero a {
  color: #fff;
}
.doc-updated {
  margin: 0;
  font-size: 0.9rem;
}
.doc-body .faq-group p,
.doc-body .faq-group ul {
  max-width: 70ch;
  margin: 0 0 10px;
}
.doc-body .faq-group li + li {
  margin-top: 6px;
}
.doc-links {
  padding-top: 36px;
  color: var(--muted);
}
.doc-links a {
  display: inline-block;
  padding-block: 12px;
}

/* ---------- print: one clean page per card ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
    font-size: 12pt;
  }
  .topbar,
  .tabbar,
  .footer,
  .no-print,
  .upload,
  .offline-banner,
  .card-map,
  .go,
  .photos form,
  .photo-grid form {
    display: none !important;
  }
  .page {
    max-width: none;
    padding: 0;
  }
  .card,
  .card-side {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .card > div {
    margin-bottom: 12pt;
  }
  .sec,
  .summary,
  .facts div,
  .points li {
    border: 1px solid #999;
    box-shadow: none;
    break-inside: avoid;
  }
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  a {
    color: #000;
  }
}

/* ---------- help ---------- */

.page.help {
  max-width: calc(1040px + 2 * var(--gutter));
}
.help h1 {
  margin-bottom: 4px;
}
.help-lede {
  margin: 0 0 14px;
  color: var(--muted);
}
.help-safety {
  margin: 0;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.help-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}
.help-index a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.help-index a:hover {
  border-color: var(--line-strong);
}
.tile-help {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.tile-help svg {
  width: 19px;
  height: 19px;
}
.help-topic {
  margin-top: 20px;
  padding: 20px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--topbar-h) + 12px);
}
.page > section.help-topic {
  margin-top: 20px;
}
.help-topic h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 1.3rem;
  line-height: 1.25;
}
.help-intro {
  margin: 0 0 14px;
  color: var(--muted);
}
.help-steps {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.help-steps li {
  position: relative;
  min-height: 30px;
  margin-bottom: 10px;
  padding-left: 42px;
  counter-increment: step;
}
.help-steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 0.9rem;
  font-weight: 800;
}
.help-tips-title {
  margin: 0 0 4px;
  font-size: 0.95rem;
}
.help-tips {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 0.95rem;
}
.help-tips li {
  margin-bottom: 4px;
}
.help-topic .btn-row {
  margin: 0 0 6px;
}
.help-media {
  width: min(290px, 78vw);
  margin: 16px auto 4px;
}
.help-phone {
  position: relative;
  overflow: hidden;
  background: #0b1020;
  border: 8px solid #0b1020;
  border-radius: 30px;
  outline: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
}
.help-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
}
/* The video, laid over the still picture while it plays (hidden until it starts, so the still stays till then) */
.help-phone .help-anim {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  background: #0b1020;
}
.help-phone .help-anim.is-waiting {
  opacity: 0;
}
/* What the voice-over is saying, across the top of the picture while it plays (over the recorded app's header), when
   the driver turns CC on */
.help-caption {
  position: absolute;
  z-index: 1; /* above the video */
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 12px;
  border-radius: 22px 22px 0 0;
  background: rgb(11 16 32 / 0.85);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: center;
}
.help-caption:empty {
  display: none;
}
/* CC: bottom left while a video plays, opposite Stop. A small see-through chip, so it hides little of the picture, on a
   44 px tap area. Yellow when on. */
.help-cc {
  position: absolute;
  z-index: 1;
  bottom: 6px;
  left: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.help-cc::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 11px 6px;
  border-radius: 999px;
  background: rgb(11 16 32 / 0.6); /* see-through, but the white CC still reads on a white screen (about 5:1) */
}
.help-cc[aria-pressed='true'] {
  color: #0b1020;
}
.help-cc[aria-pressed='true']::before {
  background: rgb(255 197 49 / 0.85);
}
.help-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px 0 10px;
  border-radius: 999px;
  background: rgb(11 16 32 / 0.84);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px -6px rgb(0 0 0 / 0.5);
}
.help-play:hover,
.help-play:focus-visible {
  background: rgb(11 16 32 / 0.95);
  color: #fff;
}
.help-play small {
  font-weight: 600;
  opacity: 0.8;
}
.help-play-icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
}
.help-play-icon::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 13px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #0b1020;
}
/* Playing: a small Stop button in the corner, out of the way of the animation. */
.help-play.is-playing,
.help-play.is-loading {
  top: auto;
  bottom: 10px;
  left: auto;
  right: 10px;
  transform: none;
  min-height: 44px;
  padding: 0 14px 0 6px;
  font-size: 0.9rem;
}
.help-play.is-playing small,
.help-play.is-loading small {
  display: none;
}
.help-play.is-playing .help-play-icon::after {
  top: 11px;
  left: 11px;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #0b1020;
}
.help-up {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 0;
  font-size: 0.9rem;
}
.help-more {
  margin-top: 28px;
}
@media (min-width: 900px) {
  .help-topic.has-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 8px 36px;
    align-items: start;
  }
  .help-topic.has-media .help-media {
    grid-row: span 2;
    width: 300px;
    margin: 0;
  }
  .help-topic {
    padding: 26px 28px 18px;
  }
}

/* ---------- Wally and Coach (docs/MASCOTS.md) ---------- */
/* Friendly pictures beside words that say the same thing. Never on cards, the map, edit pages or Admin. */
.mascot {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.mascot-lead {
  margin: 0 0 8px;
}
.empty .mascot {
  margin: 0 auto 10px;
}
.with-mascot {
  display: flex;
  gap: 16px;
  align-items: center;
}
.with-mascot > div {
  flex: 1;
  min-width: 0;
}
.with-mascot > .mascot {
  flex: none;
}
.faq-contact.with-mascot {
  align-items: flex-start;
}
.add-hello h2 + p {
  margin: 8px 0 0;
}
@media (max-width: 400px) {
  .with-mascot > .mascot {
    width: auto;
    height: 88px;
  }
}
.lp-cta-inner {
  display: grid;
  gap: 20px;
}
.lp-cta-art {
  order: -1;
  width: min(100%, 320px);
}
@media (min-width: 760px) {
  .lp-cta-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
  }
  .lp-cta-art {
    order: 0;
    width: 360px;
  }
}
/* Route trial (src/views/routes.tsx): a route on the map, the OsmAnd download and steps, its stops and turn list */
.note-warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.route-map {
  height: 360px;
  margin: 14px 0 6px;
}
.route .low-bridges,
.route-osmand,
.route-stops,
.route-turns {
  margin-top: 22px;
}
.route-steps {
  padding-left: 1.4em;
}
.route-steps li + li {
  margin-top: 8px;
}
.route-stop-no {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
/* The stop number sits beside the name, like a card's type tile */
.route-stop-list .row {
  grid-template-columns: auto minmax(0, 1fr);
}
.route-stop-list .row > .route-stop-no {
  grid-column: 1;
}
.route-stop-list .row > .row-main {
  grid-column: 2;
}
.route-pin {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1849a9;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.route-leg {
  border-top: 1px solid var(--line);
}
.route-leg summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  cursor: pointer;
}
.route-leg ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}
.route-leg li + li {
  margin-top: 4px;
}

@media print {
  .mascot {
    display: none;
  }
}
