/* Финальная адаптация карточки маршрута: семантика и малые экраны. */
.route-map-head h2{
  margin:0;
  color:var(--paper);
  font-family:var(--font-display);
  font-size:30px;
  line-height:1;
  letter-spacing:-.025em;
  text-transform:none;
}

.detail-body .route-mission-entry__copy h2{
  margin:0 0 5px;
  color:var(--paper);
  font-family:var(--font-display);
  font-size:clamp(25px,7vw,31px);
  line-height:1;
  letter-spacing:-.025em;
  text-transform:none;
}

.route-mission-entry .detail-audience h3{
  margin:0 0 10px;
  color:#edf1f1;
  font:700 14px/1.35 var(--font-body);
  letter-spacing:0;
  text-transform:none;
}

.route-stops-title{
  margin:0 0 12px;
  color:var(--orange);
  font:700 13px/1.25 var(--font-body);
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Keep map controls close to the map without making every route page long. */
.route-map-block{
  margin-bottom:0;
  padding-bottom:18px;
}

.route-location-tools{
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  margin:0 0 12px;
  border:1px solid var(--color-border-strong,#46565a);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(16,29,33,.98),rgba(9,18,21,.98));
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.13);
}

.route-location-tools__toggle{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 24px;
  align-items:center;
  gap:11px;
  width:100%;
  min-height:58px;
  margin:0;
  padding:9px 12px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--paper,#fff);
  text-align:left;
  cursor:pointer;
  touch-action:manipulation;
}

.route-location-tools__toggle:hover{background:rgba(241,184,111,.06)}
.route-location-tools__toggle:focus-visible{outline:3px solid var(--color-focus,#ffd59b);outline-offset:-3px}

.route-location-tools__icon{
  display:grid;
  width:36px;
  height:36px;
  place-items:center;
  border:1px solid rgba(241,184,111,.42);
  border-radius:50%;
  background:rgba(211,129,37,.1);
  color:var(--light-warm,#f1b86f);
}

.route-location-tools__icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.route-location-tools__copy{display:block;min-width:0}
.route-location-tools__copy b{display:block;font:700 14px/1.25 var(--font-body);letter-spacing:.01em}
.route-location-tools__copy small{display:block;overflow:hidden;margin-top:2px;color:var(--color-text-muted,#aab4b5);font:500 12px/1.3 var(--font-body);text-overflow:ellipsis;white-space:nowrap}
.route-location-tools__chevron{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--motion-fast,160ms) ease}
.route-location-tools__toggle[aria-expanded="true"] .route-location-tools__chevron{transform:rotate(180deg)}
.route-location-tools[data-location-state="ready"] .route-location-tools__icon{border-color:rgba(110,199,232,.65);background:rgba(110,199,232,.12);color:#8ed8f0}
.route-location-tools[data-location-state="attention"] .route-location-tools__icon{border-color:rgba(236,162,73,.7);background:rgba(236,162,73,.14);color:#f3c98f}

.route-location-tools__panel{
  box-sizing:border-box;
  display:grid;
  width:100%;
  min-width:0;
  max-width:100%;
  gap:12px;
  padding:0 12px 13px;
  border-top:1px solid rgba(102,124,129,.34);
  overflow:hidden;
  animation:route-location-panel-in var(--motion-fast,160ms) ease both;
}
.route-location-tools__panel[hidden]{display:none!important}
.route-location-tools__panel>*{box-sizing:border-box;min-width:0;max-width:100%}
.route-location-tools__panel .location-status{margin-top:12px!important}
.route-location-tools__panel .route-map-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:0}
.route-location-tools__panel .map-action{box-sizing:border-box;width:100%;min-width:0;min-height:46px;text-align:center}
.route-location-tools__panel .map-action-primary{grid-column:1/-1}
.route-location-tools__panel .map-symbol-legend{min-width:0;margin-top:0;padding-top:2px}
.route-location-tools__panel .map-landmarks{min-width:0;margin-top:0;overflow:hidden}
.route-location-tools__panel .landmark-list{width:100%;min-width:0;max-width:100%}
.route-location-tools__panel .map-disclaimer{margin-top:0!important}

.route-stops-section{margin:18px 0 0}
.route-stops-section+.route-mission-entry{margin:30px 0 32px}

@keyframes route-location-panel-in{
  from{opacity:0;transform:translateY(-4px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:360px){
  .route-location-tools{border-radius:12px}
  .route-location-tools__toggle{grid-template-columns:36px minmax(0,1fr) 22px;gap:9px;min-height:56px;padding-inline:10px}
  .route-location-tools__panel{padding-inline:10px}
  .route-location-tools__panel .route-map-actions{grid-template-columns:minmax(0,1fr)}
  .route-location-tools__panel .map-action-primary{grid-column:auto}
}

@media(prefers-reduced-motion:reduce){
  .route-location-tools__panel{animation:none}
  .route-location-tools__chevron{transition:none}
}

.field-guide-start__copy h3,
.field-guide-hud h3{
  margin:0;
  color:var(--paper);
  font-family:var(--font-display);
  letter-spacing:-.02em;
  text-transform:none;
}

.field-guide-start__copy h3{
  font-size:clamp(1.25rem,5vw,1.55rem);
  line-height:1.08;
}

.field-guide-hud h3{
  font-size:clamp(1.25rem,5vw,1.65rem);
  line-height:1.05;
}

@media (max-width:360px){
  .route-map-head{
    align-items:flex-start;
    flex-direction:row;
    gap:6px;
  }

  .route-map-head>div{
    min-width:0;
  }

  .route-map-head .eyebrow{
    margin-bottom:3px;
  }

  .route-map-head h2{
    font-size:22px;
    line-height:1.02;
  }

  .route-map-head .map-online-state{
    align-self:auto;
    flex:0 0 auto;
    max-width:112px;
    font-size:10px;
    line-height:1.2;
    text-align:right;
  }
}

@media (orientation:landscape) and (max-height:500px) and (max-width:900px){
  .route-detail{
    margin-top:0;
  }

  .route-detail .detail-image{
    height:96px!important;
    min-height:96px;
    aspect-ratio:auto;
    object-position:center 48%;
  }

  .route-detail .detail-close{
    top:8px;
    right:8px;
  }

  .route-detail .detail-body{
    padding:12px 18px 18px;
  }

  .route-detail .route-badges{
    margin-bottom:7px;
  }

  .route-detail #detailSource{
    margin-bottom:3px;
  }

  .route-detail #detailTitle{
    margin:0 0 6px;
    font-size:clamp(27px,6vw,38px);
    line-height:.96;
  }
}

/* Keep catalog copy below the transparent brand lockup. */
#screen-map>.route-hero{padding-top:104px}

/* Mobile brand lockup: keep the complete company name inside the viewport. */
@media (max-width:600px){
  .topbar{
    box-sizing:border-box;
    max-width:100vw;
  }

  /* Keep the first-screen copy below the fixed lockup even on narrow iPhones.
     acceptance-fixes.css compacts this block at <=370px, so restore the
     safe-area-aware clearance in the final responsive layer. */
  #screen-home>.hero .hero-content{
    padding-top:max(86px,calc(72px + env(safe-area-inset-top,0px)));
  }

  .brand{
    display:grid;
    width:100%;
    max-width:100%;
    min-width:0;
    grid-template-columns:auto minmax(0,1fr);
    gap:7px;
  }

  .brand-wordmark{
    width:100%;
    min-width:0;
    justify-content:flex-start;
    gap:clamp(2px,.65vw,4px)!important;
    font-size:clamp(9px,2.7vw,14px)!important;
    letter-spacing:-.025em;
  }

  #screen-map>.route-hero{
    padding-top:calc(86px + env(safe-area-inset-top,0px));
  }
}

/* The secondary catalog controls stay available without dominating the page. */
.catalog-filter-toggle{
  appearance:none;
  display:grid;
  width:calc(100% - 28px);
  min-height:52px;
  margin:15px 14px 0;
  padding:9px 44px 9px 13px;
  position:relative;
  align-items:center;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  border:1px solid var(--color-border-strong,#566266);
  border-radius:8px;
  background:var(--color-surface,#11191c);
  color:var(--paper,#f5f2ec);
  text-align:left;
  cursor:pointer;
}

.catalog-filter-toggle__title{
  display:inline-flex;
  min-width:0;
  align-items:center;
  gap:9px;
  font-weight:800;
}

.catalog-filter-toggle__title svg,
.catalog-filter-toggle__chevron{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.catalog-filter-toggle__status{
  overflow:hidden;
  color:var(--color-text-muted,#aebabc);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.catalog-filter-toggle__chevron{
  position:absolute;
  top:50%;
  right:13px;
  transform:translateY(-50%);
  transition:transform var(--motion-snappy,180ms) ease;
}

.catalog-filter-toggle[aria-expanded="true"] .catalog-filter-toggle__chevron{transform:translateY(-50%) rotate(180deg)}
.catalog-filter-toggle.has-active-filters{border-color:var(--color-action,#d38125)}
.catalog-filter-toggle.has-active-filters .catalog-filter-toggle__status{color:var(--light-warm,#f1b86f)}
.catalog-filter-toggle:focus-visible{outline:3px solid var(--color-focus,#ffd59b);outline-offset:3px}
.catalog-advanced-panel{margin:0 14px;padding:2px 0 4px}
.catalog-advanced-panel[hidden]{display:none!important}
.catalog-advanced-panel .catalog-select-grid{margin-top:12px}
.catalog-advanced-panel .catalog-reset{width:100%;margin-top:12px}

@media (max-width:430px){
  .catalog-filter-toggle{grid-template-columns:1fr;padding-block:10px;gap:2px}
  .catalog-filter-toggle__status{padding-left:29px}
}

/* Compact cards with native, keyboard-accessible route details. */
.catalog-card{
  position:relative;
  isolation:isolate;
  cursor:pointer;
}

.catalog-card-details{
  position:relative;
  z-index:3;
  margin:14px 0 15px;
  border:1px solid var(--color-border,#344145);
  border-radius:7px;
  background:rgba(255,255,255,.018);
  cursor:default;
}

.catalog-card-details summary{
  display:flex;
  min-height:46px;
  padding:10px 12px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#e4e9e9;
  font-size:13px;
  font-weight:750;
  list-style:none;
  cursor:pointer;
}

.catalog-card-details summary::-webkit-details-marker{display:none}
.catalog-card-details summary svg{display:block;width:20px;height:20px;fill:none;stroke:var(--light-warm,#f1b86f);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--motion-snappy,180ms) ease}
.catalog-card-details[open] summary svg{transform:rotate(180deg)}
.catalog-card-details summary:focus-visible{outline:3px solid var(--color-focus,#ffd59b);outline-offset:2px}
.catalog-card-details__body{padding:0 12px 13px;border-top:1px solid var(--color-border,#344145)}
.catalog-card-details .catalog-facts{margin-top:10px}
.catalog-card-details .audience-tags{margin:12px 0 0}

.catalog-open-button{position:static}
.catalog-open-button::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:0;
  border-radius:inherit;
}
.catalog-open-button>span,
.catalog-open-button>.button-icon{position:relative;z-index:2;pointer-events:none}
.catalog-card:focus-within{border-color:var(--color-action,#d38125)}
.catalog-card:has(.catalog-open-button:focus-visible){outline:3px solid var(--color-focus,#ffd59b);outline-offset:3px}

/* Leaflet clusters must remain circular at every zoom and route density. */
.route-map-marker,
.route-map-marker span{border-radius:50%!important}
.route-map-marker:not(.is-dense) span{display:grid;width:100%;height:100%;place-items:center}
.route-map-marker.is-marker-cluster{
  display:grid!important;
  place-items:center!important;
  border:3px solid var(--night-950,#090d0f)!important;
  border-radius:50%!important;
  background:#f1b86f!important;
  box-shadow:0 0 0 4px rgba(211,129,37,.24),0 5px 15px rgba(0,0,0,.48)!important;
}
.route-map-marker.is-marker-cluster span{
  box-sizing:border-box!important;
  display:grid!important;
  width:100%!important;
  height:100%!important;
  place-items:center!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}

.legend-cluster{
  display:grid!important;
  width:18px!important;
  height:18px!important;
  place-items:center;
  border:2px solid var(--night-950,#090d0f);
  border-radius:50%;
  background:#f1b86f;
  color:var(--night-950,#090d0f);
  font:800 9px/1 var(--font-body);
  font-style:normal;
  box-shadow:0 0 0 1px var(--color-action,#d38125);
}

/* All close controls share the same centered icon geometry. */
.icon-button,
.field-guide-icon-button{
  display:grid!important;
  padding:0!important;
  place-items:center!important;
  line-height:0!important;
}
.icon-button svg,
.field-guide-icon-button svg{display:block!important;flex:0 0 auto;transform:none}
.field-guide-icon-button svg{width:22px;height:22px;overflow:visible;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}

/* Route exit stays below phone chrome/notches and remains easy to hit. */
.route-detail .detail-close{
  top:max(24px,calc(env(safe-area-inset-top,0px) + 14px));
  right:max(16px,env(safe-area-inset-right,0px));
  z-index:30;
  width:54px;
  height:54px;
  min-width:54px;
  min-height:54px;
  color:#fff;
  background:rgba(8,12,14,.94);
  border:2px solid rgba(240,163,77,.82);
  box-shadow:0 8px 24px rgba(0,0,0,.42),0 0 0 4px rgba(8,12,14,.28);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.route-detail .detail-close .button-icon--close{width:25px;height:25px;stroke-width:2.35}
.route-detail .detail-close:active{transform:scale(.96);background:#151a1c}
.route-detail .detail-close:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* Safari can report a zero safe-area while its top browser chrome still overlaps content. */
@supports (-webkit-touch-callout:none){
  .route-detail .detail-close{
    top:calc(env(safe-area-inset-top,0px) + 76px);
  }
}

@media (orientation:landscape) and (max-height:500px) and (max-width:900px){
  .route-detail .detail-close{
    top:max(14px,calc(env(safe-area-inset-top,0px) + 8px));
    right:max(14px,env(safe-area-inset-right,0px));
    width:50px;
    height:50px;
    min-width:50px;
    min-height:50px;
  }
}

@supports (-webkit-touch-callout:none){
  @media (orientation:landscape) and (max-height:500px) and (max-width:900px){
    .route-detail .detail-close{top:calc(env(safe-area-inset-top,0px) + 64px)}
  }
}

/* Route points are compact accordions: one clear summary, all actions inside. */
.route-stops-title small{
  display:block;
  max-width:54ch;
  margin-top:7px;
  color:var(--color-text-muted,#9aa7a9);
  font:500 13px/1.45 var(--font-body);
  letter-spacing:0;
  text-transform:none;
}

#detailStops.stop-list{
  display:grid;
  gap:10px;
  margin-top:14px;
  border:0;
}

#detailStops.stop-list>.route-stop{
  display:block;
  min-height:0;
  padding:0;
  border:1px solid var(--color-border,#344145);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(16,27,30,.98),rgba(8,16,18,.98));
  overflow:hidden;
  scroll-margin-block:96px 120px;
  transition:border-color var(--motion-fast,160ms) ease,box-shadow var(--motion-fast,160ms) ease;
}
#detailStops.stop-list>.route-stop::before{content:none!important;display:none!important}
#detailStops.stop-list>.route-stop.is-open{
  border-color:rgba(241,184,111,.52);
  box-shadow:0 12px 30px rgba(0,0,0,.2);
}

.route-stop__summary{
  box-sizing:border-box;
  width:100%;
  min-height:74px;
  padding:13px 15px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 28px;
  align-items:center;
  gap:12px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--paper,#f4f1e9);
  text-align:left;
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
.route-stop__summary-heading{margin:0;padding:0;font:inherit}
.route-stop__sr-only{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.route-stop__summary:hover{background:rgba(255,255,255,.025)}
.route-stop__summary:focus-visible{position:relative;z-index:1;outline:3px solid var(--color-focus,#ffd59b);outline-offset:-3px}
.route-stop.is-open .route-stop__summary{background:rgba(241,184,111,.045)}
.route-stop__number{
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  border:1px solid rgba(241,184,111,.42);
  border-radius:50%;
  color:var(--light-warm,#f1b86f);
  background:rgba(211,129,37,.08);
  font:800 12px/1 var(--font-data,monospace);
  letter-spacing:.05em;
}
.route-stop__heading{display:grid;min-width:0;gap:7px}
.route-stop__title{
  color:#f7f5ef;
  font:700 clamp(17px,2.2vw,20px)/1.16 var(--font-body);
  overflow-wrap:anywhere;
  text-wrap:pretty;
}
.route-stop__meta{display:flex;min-width:0;align-items:center;flex-wrap:wrap;gap:6px;color:var(--color-text-muted,#9aa7a9);font:600 11px/1.25 var(--font-data,monospace)}
.route-stop__meta i{width:3px;height:3px;border-radius:50%;background:#677478;flex:0 0 auto}
.route-stop__meta strong{color:var(--light-warm,#f1b86f);font:inherit}
.route-stop__meta strong[hidden]{display:none}
.route-stop__chevron{display:block;width:24px;height:24px;fill:none;stroke:var(--light-warm,#f1b86f);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform var(--motion-snappy,180ms) ease}
.route-stop__summary[aria-expanded="true"] .route-stop__chevron{transform:rotate(180deg)}

.route-stop__panel{
  padding:0 15px 16px;
  border-top:1px solid rgba(141,158,162,.18);
  animation:route-stop-open 220ms var(--ease-product,cubic-bezier(.2,.8,.2,1)) both;
}
.route-stop__panel[hidden]{display:none!important}
@keyframes route-stop-open{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.route-stop__content{display:grid;grid-template-columns:minmax(150px,.76fr) minmax(0,1.24fr);gap:16px;padding-top:16px;align-items:start}
.route-stop__visual{
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  padding:0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:#111b1e;
  overflow:hidden;
  cursor:pointer;
}
.route-stop__visual img{display:block;width:100%;height:100%;object-fit:cover;transition:transform var(--motion-base,260ms) ease}
.route-stop__visual span{position:absolute;right:8px;bottom:8px;padding:4px 7px;border-radius:999px;background:rgba(4,9,11,.82);color:#f3f4f2;font:600 10px/1.2 var(--font-data,monospace);backdrop-filter:blur(5px)}
.route-stop__visual:hover img{transform:scale(1.025)}
.route-stop__visual:focus-visible{outline:3px solid var(--color-focus,#ffd59b);outline-offset:2px}
.route-stop__copy{min-width:0}
.route-stop__copy p{margin:0;color:#d9dfde;font-size:15px;line-height:1.55;overflow-wrap:anywhere;text-wrap:pretty}

.route-stop__actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:15px}
#detailStops .route-stop__audio,
#detailStops .route-stop__text,
#detailStops .route-stop__map{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:46px!important;
  margin:0!important;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid rgba(241,184,111,.32)!important;
  border-radius:9px!important;
  background:rgba(241,184,111,.055)!important;
  color:#f2d2a7!important;
  font:700 12px/1.2 var(--font-body)!important;
  text-align:center!important;
  cursor:pointer;
  touch-action:manipulation;
}
#detailStops .route-stop__audio:hover,
#detailStops .route-stop__text:hover,
#detailStops .route-stop__map:hover{border-color:var(--light-warm,#f1b86f)!important;background:rgba(241,184,111,.12)!important;color:#fff!important}
#detailStops .route-stop__audio:focus-visible,
#detailStops .route-stop__text:focus-visible,
#detailStops .route-stop__map:focus-visible{outline:3px solid var(--color-focus,#ffd59b)!important;outline-offset:2px!important}
#detailStops .route-stop__audio:disabled{cursor:not-allowed;opacity:.52}
#detailStops .route-stop__audio .audio-icon{flex:0 0 auto}
#detailStops .route-stop__text svg{display:block;width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}

.route-stop__missions:empty{display:none}
.route-stop__mission{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(241,184,111,.24);
  border-left:3px solid var(--color-action,#d38125);
  border-radius:10px;
  background:linear-gradient(120deg,rgba(211,129,37,.1),rgba(14,25,28,.72));
}
.route-stop__mission+.route-stop__mission{margin-top:9px}
.route-stop__mission-kicker{margin:0 0 6px!important;color:var(--light-warm,#f1b86f)!important;font:700 10px/1.3 var(--font-data,monospace)!important;letter-spacing:.08em;text-transform:uppercase}
.route-stop__mission h4{margin:0;color:#fff;font-size:17px;line-height:1.2;text-wrap:balance}
.route-stop__mission>p:not(.route-stop__mission-kicker){margin:7px 0 0;color:#cfd7d6;font-size:14px;line-height:1.48;text-wrap:pretty}
.route-stop__mission-action{
  width:100%;
  min-height:46px;
  margin-top:12px;
  padding:10px 14px;
  border:1px solid var(--color-action,#d38125);
  border-radius:8px;
  background:var(--color-action,#d38125);
  color:#101416;
  font:800 13px/1.2 var(--font-body);
  cursor:pointer;
  touch-action:manipulation;
}
.route-stop__mission-action:hover{background:#eca249;border-color:#eca249}
.route-stop__mission-action:focus-visible{outline:3px solid #fff;outline-offset:2px}

@media(max-width:560px){
  .route-stops-title small{font-size:12px}
  #detailStops.stop-list>.route-stop{border-radius:12px}
  .route-stop__summary{min-height:70px;padding:12px;grid-template-columns:38px minmax(0,1fr) 24px;gap:10px}
  .route-stop__number{width:36px;height:36px}
  .route-stop__title{font-size:17px}
  .route-stop__panel{padding:0 12px 13px}
  .route-stop__content{grid-template-columns:minmax(0,1fr);gap:12px;padding-top:12px}
  .route-stop__visual{aspect-ratio:16/9;max-height:190px}
  .route-stop__copy p{font-size:14.5px;line-height:1.52}
  .route-stop__actions{margin-top:12px;gap:6px}
  #detailStops .route-stop__audio,
  #detailStops .route-stop__text,
  #detailStops .route-stop__map{min-height:44px!important;padding-inline:7px!important;font-size:11.5px!important;gap:5px!important}
  .route-stop__mission{margin-top:12px;padding:12px}
}

@media(max-width:340px){
  .route-stop__actions{grid-template-columns:1fr 1fr}
  #detailStops .route-stop__audio{grid-column:1/-1}
}

@media(prefers-reduced-motion:reduce){
  .route-stop__panel{animation:none}
  .route-stop__chevron,.route-stop__visual img{transition:none}
}

/* Compact overview, progressive details, and consistent navigation. */
:root{--motion-screen:220ms}
#screen-map>.route-hero{min-height:0;padding-bottom:18px;gap:0}
#screen-map>.route-hero:before{display:none}
#screen-map>.route-hero h1{max-width:100%;margin:0 0 8px;font-size:clamp(30px,6vw,42px);line-height:1.04;text-wrap:balance}
#screen-map>.route-hero>p:not(.eyebrow){margin:0;max-width:36em;font-size:14px;line-height:1.45}
#screen-map>.route-hero .catalog-count{gap:6px;align-items:baseline;margin-top:10px}
#screen-map>.route-hero .catalog-count strong{font-size:16px;font-weight:700}
#screen-map>.route-hero .catalog-count span{font-size:12px}
.catalog-controls{padding:14px 18px 12px;box-shadow:none;backdrop-filter:none;border-top:1px solid var(--color-border)}
.catalog-search-block{margin:0;gap:8px}
.catalog-search-block>label{font-size:13px;margin:0}
.catalog-search-block>input{margin-top:0}
.catalog-controls>.filter-block{margin:12px 0 0;padding:0}
.catalog-controls>.filter-block>p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.catalog-controls .route-filters{gap:6px;padding:2px 2px 4px;scroll-padding-inline:2px;scrollbar-width:thin}
.catalog-filter-toggle{width:100%;min-height:48px;margin:8px 0 0;padding:10px 38px 10px 12px;border-radius:6px;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.catalog-filter-toggle__status{padding:0;font-size:11px}
.catalog-filter-toggle__title{font-size:13px;gap:8px}
.catalog-filter-toggle__title svg{width:18px;height:18px}
.catalog-advanced-panel{margin:0;padding:0 0 4px}
.catalog-advanced-panel .filter-block{margin:16px 0 0;padding:0}
.catalog-advanced-panel .audience-filters{flex-wrap:wrap;overflow:visible}
.catalog-advanced-panel .catalog-notice{margin:12px 0 0;padding:0;background:none;border:0;color:var(--color-text-muted);font-size:12px;line-height:1.5}
.audience-intro[hidden]{display:none!important}
.catalog-status{margin:12px 18px 8px;min-height:0;font-size:12px;color:var(--color-text-muted)}
.catalog-card-summary{-webkit-line-clamp:2;margin-top:10px!important}
.catalog-card-top{margin-bottom:5px}
.catalog-card h2{margin-top:6px}
.catalog-quick-facts{display:flex;flex-wrap:wrap;gap:7px 16px;margin:10px 0;color:var(--light-warm,#f1b86f);font-size:13px;line-height:1.4}
.catalog-quick-facts>span{display:flex;align-items:center;gap:6px;min-width:0}
.catalog-quick-facts .button-icon{width:17px;height:17px;flex:0 0 17px;stroke-width:1.8}
.catalog-card h2:focus{outline:2px solid var(--color-focus,#ffd59b);outline-offset:5px}
.catalog-card-details{margin:4px 0 10px;border:0;border-radius:0;background:none}
.catalog-card-details>summary{min-height:44px;padding-inline:0;font-size:12px;color:var(--color-text-muted)}
.catalog-card-details__body{padding-inline:0}
.hero-secondary{width:auto;justify-self:start;min-height:44px;background:rgba(9,13,15,.35);border-color:rgba(255,255,255,.24);backdrop-filter:none}
.hero-note{max-width:36em;font-family:var(--font-body);line-height:1.45}
.home-route-card em{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.route-detail .route-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}
.route-detail .route-badges span{border:0;padding:0;font-size:11px;color:var(--color-text-muted)}
.route-detail .route-badges span+span:before{content:'·';margin-right:6px}
.route-detail #detailSource{display:none}
.route-detail #detailSummary{font-size:14px;line-height:1.5;text-wrap:pretty}
.route-detail .detail-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:14px 0 0}
.route-detail .detail-meta>span{padding:0;border:0;background:none;font-family:var(--font-body);font-size:12px;line-height:1.5;color:var(--color-text-muted)}
.route-detail .detail-meta>span:first-child{color:var(--light-warm,#f1b86f)}
.route-detail .detail-duration-note{width:100%;font-size:11px;margin:0;line-height:1.4}
.route-quick-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:18px 0 22px;padding:0}
.route-quick-nav button{appearance:none;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:10px 5px;border:1px solid var(--color-border-strong);border-radius:6px;background:var(--color-surface);color:var(--color-text);font:700 13px/1.2 var(--font-body);cursor:pointer;touch-action:manipulation;transition:background-color 160ms ease,border-color 160ms ease,transform 160ms ease}
.route-quick-nav svg{flex:0 0 18px;width:18px;height:18px;fill:none;stroke:var(--light-warm,#f1b86f);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.route-quick-nav button:active{transform:translateY(1px)}
.route-quick-nav button:focus-visible{outline:3px solid var(--color-focus,#ffd59b);outline-offset:3px}
#routeMapTitle,#routeStopsTitle,#routeMissionEntryTitle{scroll-margin-top:86px}
.route-map-head h2{font-size:24px;line-height:1.1}
.route-map-head .map-online-state{font-size:10px}
.field-guide-start{grid-template-columns:36px minmax(0,1fr);gap:12px;padding:14px;box-shadow:none;background:linear-gradient(120deg,rgba(211,129,37,.08),var(--color-surface));border-radius:8px}
.field-guide-start:after{display:none}
.field-guide-start__mark{width:36px;height:36px;box-shadow:none}
.field-guide-start__mark svg{width:25px;height:25px}
.field-guide-start__copy h3{font-size:21px;line-height:1.1}
.field-guide-start__copy>p:last-child{margin-top:6px;font-size:13px;line-height:1.45}
.field-guide-start .field-guide-primary{min-height:48px!important;padding:10px 13px;box-shadow:none}
.field-guide-start__note{font-size:11px;margin:0}
.passport-head p:last-child{font-size:14px;line-height:1.5}
details.passport-data-card{display:block;padding:0;background:var(--color-surface)}
details.passport-data-card>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:14px 18px;list-style:none;font-weight:700;cursor:pointer}
details.passport-data-card>summary::-webkit-details-marker{display:none}
details.passport-data-card>summary:after{content:'+';font-size:24px;font-weight:400;line-height:1;color:var(--light-warm)}
details.passport-data-card[open]>summary:after{content:'−'}
details.passport-data-card>div{padding:0 18px}
details.passport-data-card>.passport-reset-action{margin:16px 18px 18px;width:calc(100% - 36px)}
details.passport-data-card>summary:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}
@media(hover:hover) and (pointer:fine){.route-quick-nav button:hover{background:rgba(211,129,37,.09);border-color:var(--light-warm)}}
@media(max-width:370px){
  .catalog-controls{padding-inline:14px}
  .catalog-filter-toggle__status{font-size:10px}
  .route-quick-nav button{gap:5px;font-size:11px}
  .route-quick-nav svg{width:16px;height:16px;flex-basis:16px}
}
@media(max-width:600px){
  .catalog-card-media{aspect-ratio:auto;height:164px}
  .catalog-card-media img{height:100%;width:100%;object-fit:cover}
}
@media(prefers-reduced-motion:reduce){
  .route-quick-nav button{transition:none}
  .route-grid.is-refreshing .catalog-card,.route-detail:not([hidden]){animation:none}
}
