:root{
  --navy:#2E378F;
  --blue:#1C73B8;
  --white:#FFFFFF;

  --text:#0f172a;
  --muted:#475569;
  --border:#e2e8f0;

  --radius:12px;
  --max:1200px;
  --pad:20px;

  /* Fixed header height (used for body offset + anchor offsets) */
  --header-h: 72px;

  /* Route accents (tweak anytime) */
  --route-green:#16a34a;
  --route-blue:#1C73B8;
  --route-orange:#f97316;
  --route-brown:#8b5e34;
  --route-red:#dc2626;
  --route-purple:#7c3aed;
  --route-gold:#f5ce0a;

  /* Depth (used sparingly) */
  --shadow:0 18px 40px rgba(15, 23, 42, 0.14);

  /* System type scale */
  --h1: clamp(32px, 5vw, 44px);
  --h2: 28px;
  --h3: 20px;
  --body: 16px;
  --small: 14px;
  --alert-h: 0px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

/* Anchor links should account for fixed header */
html{
  scroll-padding-top: calc(var(--header-h) + var(--alert-h) + 12px);
}

body{
  font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--body);
  color:var(--text);
  background:var(--white);
  line-height:1.6;

  /* Prevent content from sliding under fixed header */
  padding-top: calc(var(--header-h) + var(--alert-h));
}

/* Headings + UI labels use Public Sans for a civic/official feel */
h1,h2,h3,h4,h5,h6,
.nav a,
.btn,
.kicker,
.route-name,
.route-cta{
  font-family:"Public Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
:focus-visible{outline:3px solid var(--blue); outline-offset:3px}

/* Containers: consistent gutters, no edge-butting */
.container{
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding-inline: clamp(20px, 5vw, 32px);
}

.stack{display:flex; flex-direction:column; gap:16px}

/* System sections */
.section{padding:72px 0}
.section.tight{padding:48px 0}
.section.divider{border-top:1px solid var(--border)}

/* System typography */
h1{font-size:var(--h1); line-height:1.1; margin:0 0 12px; font-weight:800}
h2{font-size:var(--h2); line-height:1.2; margin:0 0 10px; font-weight:800}
h3{font-size:var(--h3); line-height:1.25; margin:0 0 8px; font-weight:800}

p{margin:0 0 12px}
p:last-child{margin-bottom:0}

.prose{max-width:72ch}

.note{font-size:var(--small); color:var(--muted)}

/* Skip link (in injected header) */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:#fff;
  color:#000;
  padding:10px 12px;
  border-radius:10px;
  z-index:9999;
  border:1px solid var(--border);
}
.skip-link:focus{
  left:10px;
}

/* Header */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
}

/* Give the header/nav extra gutters so it never feels edge-to-edge */
.site-header .container{
  padding-inline: clamp(24px, 6vw, 44px);
}

/* Keep header height consistent for body offset (approx) */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 0; /* slightly more vertical breathing room */
  min-height: var(--header-h);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:180px;
}
.brand img{height:40px; width:auto; display:block}

/* Desktop nav */
.nav{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}
.nav a{
  color:var(--white);
  font-weight:700;
  padding:8px 10px;
  border-radius:10px;
}
.nav a[aria-current="page"]{
  background:rgba(255,255,255,0.14);
  text-decoration:none;
}

.lang-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:12px;
  padding:4px;
  border:1px solid rgba(255,255,255,0.20);
  border-radius:999px;
  background:rgba(255,255,255,0.10);
}
.lang-toggle button{
  min-height:32px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  cursor:pointer;
  color:var(--white);
  font-weight:800;
  letter-spacing:0.3px;
}
.lang-toggle button[aria-pressed="true"]{
  background:var(--white);
  border-color:rgba(255,255,255,0.7);
  color:var(--navy);
}
.lang-toggle button:focus-visible{
  outline:3px solid var(--blue);
  outline-offset:3px;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.10);
  color:var(--white);
  font-family:"Public Sans", system-ui, sans-serif;
  font-weight:800;
  cursor:pointer;
}
.nav-toggle:focus-visible{
  outline:3px solid var(--white);
  outline-offset:3px;
}
.nav-toggle-label{
  font-size:14px;
  line-height:1;
}
.nav-toggle-icon{
  width:18px;
  height:12px;
  position:relative;
  display:inline-block;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background:var(--white);
  border-radius:2px;
}
.nav-toggle-icon::before{
  top:0;
  box-shadow:0 5px 0 var(--white);
}
.nav-toggle-icon::after{
  bottom:0;
}

/* Mobile behavior: collapse nav into a dropdown panel */
@media (max-width: 860px){
  .header-inner{
    flex-wrap:wrap;
    gap:10px;
    min-height: var(--header-h);
    align-items:center;
  }

  .brand{
    min-width:0;
  }
  .brand img{
    height:34px;
  }

  .lang-toggle{
    order:2;
    margin-left:auto;
    gap:4px;
    padding:3px 4px;
    flex-shrink:0;
  }

  .nav-toggle{
    order:3;
    display:inline-flex;
    margin-left:8px;
  }

  .nav[data-collapsible]{
    order:4;
    width:100%;
    display:none;              /* hidden until toggled */
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    margin-top:12px;
    padding:14px;              /* slightly more inset */
    border:1px solid rgba(255,255,255,0.18);
    border-radius:12px;
    background:rgba(255,255,255,0.10);
  }

  .nav[data-collapsible].is-open{
    display:flex;
  }

  .nav[data-collapsible] a{
    padding:12px 12px;
    border-radius:10px;
  }

  .nav[data-collapsible] a[aria-current="page"]{
    background:rgba(255,255,255,0.18);
  }
}

/* On very small screens, keep header gutters comfortable */
@media (max-width: 480px){
  .site-header .container{
    padding-inline: 22px;
  }
  :root{
    --header-h: 78px; /* a little extra breathing room on small screens */
  }
}

/* Sitewide alert */
.site-alert{
  position:fixed;
  top: var(--header-h);
  left:0;
  right:0;
  z-index: 999;
  background:var(--route-red);
  color:var(--white);
}
.site-alert .container{
  padding-top:10px;
  padding-bottom:10px;
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.site-alert strong{font-weight:800}
.site-alert a{display:none}

/* Actions + buttons */
.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid transparent;
  font-weight:800;
  text-decoration:none;
}
.btn-primary{background:var(--blue); color:var(--white); box-shadow:none}
.btn-secondary{background:var(--white); color:var(--blue); border-color:var(--blue)}
.btn-tertiary{background:transparent; color:var(--blue); border-color:var(--border)}
.btn-primary:hover,
.btn-secondary:hover,
.btn-tertiary:hover{ text-decoration:none }

/* Cards (kept flat and consistent) */
.card-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:16px;
}
.card{
  grid-column:span 12;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  background:var(--white);
}
@media (min-width: 780px){
  .card.half{grid-column:span 6;}
  .card.third{grid-column:span 4;}
}

.card p{color:var(--muted)}

.kicker{
  display:inline-block;
  font-size:var(--small);
  color:var(--muted);
  margin-bottom:10px;
  font-weight:800;
}

/* Footer (navy, matches header) */
.footer{
  border-top:1px solid rgba(255,255,255,0.16);
  padding:28px 0;
  font-size:14px;
}

.footer--navy{
  background:var(--navy);
  color:rgba(255,255,255,0.86);
}

.footer--navy a{ color:#fff; }
.footer--navy a:hover{ text-decoration:underline; }

.footer-inner{
  position:relative; /* for corner seal */
  display:flex;
  flex-direction:column;
  gap:22px;
}

.footer-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.footer-title{
  font-family:"Public Sans", system-ui, sans-serif;
  font-weight:900;
  color:#fff;
  letter-spacing:0.2px;
}

.footer-sub{
  font-size:13px;
  color:rgba(255,255,255,0.78);
  margin-top:2px;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
}

.footer-col{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-heading{
  font-family:"Public Sans", system-ui, sans-serif;
  font-weight:900;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:rgba(255,255,255,0.78);
}

.footer-link{
  display:inline-block;
  padding:4px 0;
  text-decoration:none;
  font-weight:700;
  color:#fff;
}

.footer-text{
  color:rgba(255,255,255,0.78);
  font-size:13px;
  line-height:1.4;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.16);
  padding-top:14px;
  color:rgba(255,255,255,0.70);
  font-size:13px;
}

/* Corner seal: integrated mark (no badge) */
.footer-seal-corner{
  position:absolute;
  right:18px;
  bottom:14px;
  width:64px;
  height:64px;
  object-fit:contain;

  opacity: 1;            /* solid, no transparency */
  pointer-events:none;
  user-select:none;
}

/* Give content breathing room so it doesn't collide with the seal */
@media (min-width: 780px){
  .footer-grid{
    grid-template-columns: 2fr 1.2fr 1.2fr;
    gap:22px;
    align-items:start;
  }

  .footer-inner{
    padding-right: 92px; /* reserves space for the corner seal */
  }
}

/* Mobile: slightly smaller seal + tighter offsets */
@media (max-width: 640px){
  .footer-seal-corner{
    width: 52px;
    height: 52px;
    right: 14px;
    bottom: 12px;
    opacity: 1;
  }
}

/* Route accent (used on route detail pages) */
.route-accent{
  border-left:6px solid var(--border);
  padding-left:16px;
}
.route-green .route-accent{border-left-color:var(--route-green)}
.route-blue .route-accent{border-left-color:var(--route-blue)}
.route-orange .route-accent{border-left-color:var(--route-orange)}
.route-brown .route-accent{border-left-color:var(--route-brown)}
.route-red .route-accent{border-left-color:var(--route-red)}
.route-purple .route-accent{border-left-color:var(--route-purple)}
.route-gold .route-accent{border-left-color:var(--route-gold)}

/* Map frame (works for images now, iframe later) */
/* Ensure the rounded frame clips the Mapbox canvas */
.map-frame{
  border-radius: 18px;   /* match whatever you’re using */
  overflow: hidden;      /* this is the key */
  position: relative;    /* keeps legend positioned correctly */
  margin: 0;             /* removes the surprise left/right inset */
  width: 100%;
}

/* Make the map fill the frame */
#hct-map{
  width: 100%;
  height: min(70vh, 620px);
  min-height: 360px;
}

.map-frame img{
  width:100%;
  height:auto;
  display:block;
}

/* Keep the Mapbox canvas from rounding issues */
.map-frame .mapboxgl-canvas{
  display:block;
}
.map-frame object{
  width:100%;
  height:520px;
  border:0;
  display:block;
  background:#fff;
}
@media (max-width:640px){
  .map-frame object{ height:560px; }
}
@media (max-width: 640px){
  .map-frame iframe{height:min(70vh, 520px);}
}

.map-frame .mapboxgl-canvas,
.map-frame .mapboxgl-canvas-container{
  border-radius: 18px;
}

/* Route map wrapper must define height so absolute children can render */
.map-frame--route{
  position: relative;
  overflow: hidden;
  border-radius: 18px; /* match your site */
  height: min(70vh, 620px);
  min-height: 360px;
  margin: 0;
  width: 100%;
}

/* Fallback image fills the frame */
.map-frame--route img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mapbox container also fills the frame (DO NOT display:none) */
#route-map{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;              /* hidden until ready */
  pointer-events: none;    /* avoid “dead” clicks before ready */
}

/* When ready, show the map and allow interaction */
#route-map.is-ready{
  opacity: 1;
  pointer-events: auto;
}

/* When map is ready, hide the fallback image */
#route-map-fallback.is-hidden{
  display: none;
}

/* =========================================================
   Route stops & schedule system (shared across route pages)
   (Moved from per-page <style> blocks)
   ========================================================= */

.stops-wrap{ margin-top:16px; }

/* Timeline + stop cards */
.stops{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-left:28px;
}
.stops::before{
  content:"";
  position:absolute;
  left:12px;
  top:8px;
  bottom:8px;
  width:2px;
  background: var(--border);
}

.stop{ position:relative; }
.stop::before{
  content:"";
  position:absolute;
  left:-22px;
  top:18px;
  width:12px;
  height:12px;
  border-radius:999px;
  background: var(--navy);
  border:2px solid #fff;
  box-shadow: 0 0 0 1px var(--border);
}

/* Route-specific dot colors (based on body class) */
.route-green  .stop::before{ background: var(--route-green); }
.route-blue   .stop::before{ background: var(--route-blue); }
.route-orange .stop::before{ background: var(--route-orange); }
.route-brown  .stop::before{ background: var(--route-brown); }
.route-red    .stop::before{ background: var(--route-red); }
.route-purple .stop::before{ background: var(--route-purple); }
.route-gold   .stop::before{ background: var(--route-gold); }

details.stop-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
  overflow:hidden;
}

/* Emphasize next stop (defaults; route pages can still override if desired) */
details.stop-card.is-next{
  border-color: rgba(15,23,42,0.18);
  box-shadow: 0 10px 22px rgba(15,23,42,0.08);
}
details.stop-card.is-next summary{
  background: #f8fafc;
}

summary.stop-summary{
  list-style:none;
  cursor:pointer;
  padding:16px 16px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
summary.stop-summary::-webkit-details-marker{ display:none; }

.stop-left{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.stop-title{
  font-family:"Public Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight:800;
  font-size:18px;
  line-height:1.25;
  margin:0;
  overflow-wrap:anywhere;
}

.stop-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.next{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  flex:0 0 auto;
  font-size:14px;
  color: var(--muted);
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius: 999px;
  font-family:"Public Sans", system-ui, sans-serif;
  font-weight:800;
  border:1px solid var(--border);
  color: var(--text);
  background:#fff;
  min-width:76px;
  text-align:center;
}

.toggle{
  font-family:"Public Sans", system-ui, sans-serif;
  font-weight:900;
  font-size:20px;
  line-height:1;
  color: var(--navy);
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  border:1px solid var(--border);
  background:#fff;
  flex:0 0 auto;
}
details[open] summary .toggle::before{ content:"–"; }
details:not([open]) summary .toggle::before{ content:"+"; }

.stop-body{
  border-top:1px solid var(--border);
  padding:14px 16px 16px;
}

.label{
  font-family:"Public Sans", system-ui, sans-serif;
  font-weight:800;
  font-size:14px;
  margin:0 0 10px;
  color: var(--text);
}

.times{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  padding:0;
  margin:0;
  list-style:none;
  color: var(--text);
  font-size:14px;
}
.times li{
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius: 10px;
  background:#fff;
  font-family:"Public Sans", system-ui, sans-serif;
  font-weight:700;
}

.times-empty{
  margin:0;
  color: var(--muted);
  font-size:14px;
}

/* Transfer indicators */
.xfer{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  color: var(--muted);
}
.xfer-dot{
  width:10px;height:10px;border-radius:999px;background: var(--border);
  box-shadow: 0 0 0 1px var(--border);
}
.xfer.green .xfer-dot{ background: var(--route-green); }
.xfer.blue .xfer-dot{ background: var(--route-blue); }
.xfer.orange .xfer-dot{ background: var(--route-orange); }
.xfer.brown .xfer-dot{ background: var(--route-brown); }
.xfer.red .xfer-dot{ background: var(--route-red); }
.xfer.purple .xfer-dot{ background: var(--route-purple); }
.xfer.gold .xfer-dot{ background: var(--route-gold); }

.inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.btn-small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  font-family:"Public Sans", system-ui, sans-serif;
  font-weight:800;
  cursor:pointer;
}
.btn-small:hover{ border-color:#cbd5e1; }

/* Desktop/tablet: consistent columns */
@media (min-width: 641px){
  summary.stop-summary{
    display:grid;
    grid-template-columns: minmax(260px, 1.2fr) auto minmax(180px, 1fr) auto;
    align-items:center;
    gap:14px 16px;
  }

  .next{
    justify-content:flex-start;
    white-space:nowrap;
    font-size:14px;
  }

  .stop-meta{
    justify-content:flex-end;
    gap:12px;
  }

  .toggle{
    justify-self:end;
  }
}

/* Mobile summary layout */
@media (max-width: 640px){
  summary.stop-summary{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title title"
      "next  next"
      "meta  toggle";
    gap:10px 12px;
    align-items:start;
  }

  .stop-left{ grid-area: title; }

  .next{
    grid-area: next;
    justify-content:flex-start;
    white-space:normal;
    gap:10px;
  }

  .stop-meta{
    grid-area: meta;
    margin-top:2px;
  }

  .toggle{
    grid-area: toggle;
    justify-self:end;
    align-self:center;
  }

  .pill{ min-width:72px; }
  .stop-title{ font-size:17px; }
}

/* ---------- Homepage patterns (system-based) ---------- */
.surface{ background:#fff; }

/* Hero block spacing */
.hero-block{
  padding-top:72px;
  padding-bottom:56px;
}

.hero-layout{
  display:grid;
  gap:22px;
  align-items:center;
}
@media (min-width: 980px){
  .hero-layout{ grid-template-columns: 1fr; }
}

/* Service info chips */
.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:var(--small);
  font-weight:800;
  color:var(--text);
}
.chip-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--blue);
}
.chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chip-filter{
  cursor:pointer;
  transition:all .15s ease;
}
.chip-filter.is-off{
  opacity:0.45;
  background:#f8fafc;
}
.route-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  display:inline-block;
}
.route-dot.green{background:var(--route-green);}
.route-dot.blue{background:var(--route-blue);}
.route-dot.orange{background:var(--route-orange);}
.route-dot.brown{background:var(--route-brown);}
.route-dot.red{background:var(--route-red);}
.route-dot.purple{background:var(--route-purple);}
.route-dot.gold{background:var(--route-gold);}

.map-controls{
  margin:14px 0 18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.legend-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
  background:#ffffff;
  border:2px solid #000000;
}
.legend-dot.transfer{
  box-shadow:0 0 0 6px rgba(0,0,0,0.18);
}
.legend-line{
  width:32px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--route-green), var(--route-blue), var(--route-orange));
  display:inline-block;
}

/* Routes overview list */
.route-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:14px;
}
@media (min-width: 780px){
  .route-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
}
@media (min-width: 1100px){
  .route-grid{ grid-template-columns:repeat(3,1fr); }
}

.route-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  text-decoration:none;
  color:var(--text);
}
.route-link:hover{ text-decoration:none; border-color:#cbd5e1; }

.route-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.route-swatch{
  width:12px;
  height:12px;
  border-radius:999px;
  background:var(--border);
}
.route-name{
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.route-sub{
  font-size:var(--small);
  color:var(--muted);
  margin:0;
}
.route-cta{
  font-weight:900;
  color:var(--blue);
  flex:0 0 auto;
}
.route-accent{
  border-left:6px solid var(--border);
  padding-left:16px;
}

.route-link.green .route-swatch{ background:var(--route-green); }
.route-link.blue .route-swatch{ background:var(--route-blue); }
.route-link.orange .route-swatch{ background:var(--route-orange); }
.route-link.brown .route-swatch{ background:var(--route-brown); }
.route-link.red .route-swatch{ background:var(--route-red); }
.route-link.purple .route-swatch{ background:var(--route-purple); }
.route-link.gold .route-swatch{ background:var(--route-gold); }

/* Route snapshot cards */
.route-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  background:#fff;
}
.route-card-head{
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}
.route-card .route-swatch{
  width:12px;
  height:36px;
  border-radius:999px;
  display:inline-block;
}
.route-card.green .route-swatch{background:var(--route-green);}
.route-card.blue .route-swatch{background:var(--route-blue);}
.route-card.orange .route-swatch{background:var(--route-orange);}
.route-card.brown .route-swatch{background:var(--route-brown);}
.route-card.red .route-swatch{background:var(--route-red);}
.route-card.purple .route-swatch{background:var(--route-purple);}
.route-card.gold .route-swatch{background:var(--route-gold);}
.route-stats{
  list-style:none;
  padding-left:0;
  margin:0 0 12px;
  display:grid;
  gap:6px;
}
.route-stats li{
  font-size:var(--small);
  color:var(--muted);
}

/* Motion: minimal, optional */
@media (prefers-reduced-motion:no-preference){
  .route-link{ transition: border-color 140ms ease; }
}
