:root {
  --paper: #FBFBFA;
  --card: #FFFFFF;
  --ink: #141414;
  --ink-2: #2A2A28;
  --ink-3: #4A4A47;
  --muted: #5F5F5C;
  --hair: #E4E4E0;
  --tint: #F1F1EE;
  --accent: #1D4E6E;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--muted); }
[hidden] { display: none !important; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.mono { font-family: var(--mono); }
.small { font-size: 11px; }
.muted { color: var(--muted); }
.label { margin: 0; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.serif-xl { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 6vw, 52px); line-height: 1.05; margin: 14px 0 10px; }
.serif-m { font-family: var(--serif); font-size: 20px; }

/* Masthead */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; border-bottom: 1px solid var(--ink); }
.nav { display: flex; gap: 22px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; flex: 1; }
.nav:last-child { justify-content: flex-end; }
@media (max-width: 520px) { .nav { gap: 14px; font-size: 10px; } .wordmark { font-size: 26px; } }
.nav a { text-decoration: none; color: var(--muted); }
.wordmark { font-family: var(--serif); font-size: 30px; line-height: 1; text-decoration: none; letter-spacing: 0.01em; }
.dateline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 11px; color: var(--muted); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 14px; }

/* Home */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(56px, 12vw, 112px) 0 clamp(48px, 9vw, 88px); }
.hero h1 { margin: 22px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 10vw, 92px); line-height: .98; letter-spacing: -0.02em; }
.lede { margin: 24px 0 0; max-width: 620px; font-size: clamp(15px, 2.2vw, 18px); font-weight: 300; line-height: 1.6; color: var(--ink-3); }

.search { position: relative; width: 100%; max-width: 760px; margin-top: 52px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.search-row { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.search-row input { flex: 1 1 auto; min-width: 0; border: none; background: transparent; outline: none; padding: 12px 0; font-family: var(--serif); font-size: clamp(20px, 4.5vw, 34px); color: var(--ink); }
.search-row input::placeholder { color: #8A8A86; }
.btn-dark { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: none; background: var(--ink); color: var(--paper); cursor: pointer; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.btn-dark:hover { background: #333; }
.btn-outline { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: transparent; color: var(--ink-3); border: 1px solid #D6D6D1; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.form-msg { margin: 0; min-height: 18px; font-size: 12px; color: #8A3B2E; }

.list-section { border-top: 1px solid var(--ink); padding: 22px 0 64px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Library browser */
.lib-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 6px 0 14px; border-bottom: 1px solid var(--hair); }
.tabs { display: flex; gap: 22px; }
.tab { min-height: 44px; padding: 0; border: none; background: transparent; cursor: pointer; font-family: var(--serif); font-size: 24px; color: var(--muted); border-bottom: 2px solid transparent; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab-n { font-family: var(--mono); font-size: 11px; color: var(--accent); vertical-align: super; }
.filter { flex: 1 1 260px; max-width: 360px; }
.filter input { width: 100%; min-height: 40px; border: none; border-bottom: 1px solid var(--ink); background: transparent; padding: 6px 0; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); outline: none; }
.filter input::placeholder { color: #8A8A86; }
.lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 40px; }
.lib-item { display: grid; align-content: start; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 10px; padding: 14px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.lib-item:hover .lib-title { color: var(--accent); }
.lib-n { font-family: var(--mono); font-size: 10.5px; color: var(--accent); padding-top: 5px; }
.lib-title { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.lib-meta { grid-column: 2; font-size: 11px; color: var(--muted); }
.lib-match { grid-column: 2; font-size: 11px; color: var(--accent); }

/* Chooser */
#view-choose { padding: clamp(40px, 8vw, 72px) 0 24px; }
.choose-head { margin-bottom: 16px; }
.choose-head .serif-xl { margin-top: 10px; }
#choose-list { border-top: 1px solid var(--ink); margin-bottom: 32px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.section-head.rule { padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); }
.row:hover .row-title { color: var(--accent); }
.row-n { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.row-title { font-family: var(--serif); font-size: clamp(20px, 4vw, 26px); line-height: 1.1; }
.row-meta { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-align: right; }
@media (max-width: 520px) { .row { grid-template-columns: 28px minmax(0, 1fr); } .row-meta { grid-column: 2; text-align: left; } }

/* Loading */
.loading { padding: clamp(64px, 14vw, 140px) 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.progress { width: 200px; height: 1px; background: var(--hair); margin-top: 28px; overflow: hidden; }
.progress span { display: block; width: 40%; height: 100%; background: var(--accent); animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .progress span { animation: none; width: 100%; } }

/* Title page */
.title-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: clamp(40px, 8vw, 64px) 0 24px; }
.title-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.title-head h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 8vw, 64px); line-height: 1.02; letter-spacing: -0.01em; }
.byline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-3); }
.cover { width: 96px; height: auto; flex: 0 0 auto; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
@media (max-width: 520px) { .cover { width: 64px; } }

.stats { display: flex; flex-wrap: wrap; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 40px; }
.stat { flex: 1 1 140px; padding: 16px 0; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; }
.stat span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.map-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.map-head figcaption { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-3); }
.map { height: clamp(320px, 55vw, 460px); border: 1px solid var(--hair); background: #F3F3F1; }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; letter-spacing: 0.04em; }
.leaflet-container { font-family: var(--sans); }
.leaflet-tooltip.pin-label { background: transparent; border: none; box-shadow: none; padding: 0 0 0 4px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.leaflet-tooltip.pin-label::before { display: none; }

.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: transparent; border: none; cursor: pointer; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.track { position: relative; display: inline-block; width: 30px; height: 16px; border-radius: 999px; background: #D6D6D1; transition: background .2s; }
.knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 999px; background: #fff; transition: left .2s; }
.toggle[aria-pressed="true"] .track { background: var(--accent); }
.toggle[aria-pressed="true"] .knob { left: 16px; }

.places { padding: 56px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 56px; }
.place { display: flex; flex-direction: column; gap: 10px; padding: 30px 0; border-bottom: 1px solid var(--hair); scroll-margin-top: 16px; }
.place.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: #EAF0F4; } to { background: transparent; } }
.photo { position: relative; aspect-ratio: 3 / 2; margin-bottom: 8px; background: #DCDAD3; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 14px; color: #3A3A38; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.photo .credit { position: absolute; right: 8px; bottom: 8px; font-family: var(--mono); font-size: 10px; color: #fff; background: rgba(20,20,20,.55); padding: 2px 6px; text-decoration: none; }
.photo .credit:hover { color: #fff; background: rgba(20,20,20,.8); }
.place-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.place-name { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.place-name .n { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.place h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.place h3 .now { font-style: italic; font-size: 20px; color: var(--muted); }
.coords { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.kind { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.place p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.place .tag { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.place .note { align-self: flex-start; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--hair); padding: 3px 8px; }
.place .more { font-size: 11px; color: var(--muted); }
.place .more a { color: var(--muted); text-underline-offset: 3px; }

.spoiler-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding: 22px 24px; background: var(--tint); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding: 20px 0 32px; border-top: 1px solid var(--ink); font-size: 11px; color: var(--muted); }

/* Place labels */
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.place .note.rel { border-color: transparent; background: var(--tint); }
.place .note.rel-filmed { background: #F3EBDD; color: #6B4A12; }
.photo .credit { max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Also in the story */
.also { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hair); }
.also ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px 40px; }
.also li { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.also li b { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--ink); }

/* Report form */
.report { padding: 8px 0 0; }
.report summary { cursor: pointer; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.report form { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin-top: 12px; }
.report select, .report textarea, .report input[type=email] { font-family: var(--sans); font-size: 14px; padding: 10px 12px; border: 1px solid #D6D6D1; background: var(--card); color: var(--ink); border-radius: 0; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }

/* Atlas */
.map-page-head { padding: clamp(36px, 7vw, 64px) 0 20px; }
.map-page-head .serif-xl { margin: 10px 0 6px; }
.atlas-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 14px; }
.map.atlas { height: clamp(420px, 70vh, 720px); }
.leaflet-popup-content { font-family: var(--sans); margin: 12px 14px; }
.pop-kind { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pop-title { font-family: var(--serif); font-size: 20px; line-height: 1.15; margin: 4px 0 6px; }
.pop-story { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); margin-bottom: 8px; }
.pop-link { font-size: 12px; color: var(--accent) !important; }
.marker-cluster { background: rgba(29, 78, 110, 0.18); border-radius: 999px; }
.marker-cluster div { background: #1D4E6E; color: #fff; border-radius: 999px; width: 30px; height: 30px; margin: 5px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; }

/* Basemap: OpenStreetMap tiles toned down to a quiet grey. */
.tiles-muted { filter: grayscale(1) contrast(0.82) brightness(1.08); }
.place .today { color: var(--muted, #6b6b6b); }

/* Cards without a licensed photo: a small grey map of the place. */
.photo-map .map-thumb { position: absolute; inset: 0; overflow: hidden; }
.photo-map .tiles { position: absolute; width: 768px; height: 768px; display: grid; grid-template-columns: repeat(3, 256px); }
.photo-map .tiles img, .photo-map .tiles span { width: 256px; height: 256px; display: block; }
.photo-map .dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent, #1D4E6E); box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.photo-map .map-credit { pointer-events: none; }

/* Photo credit: small and quiet. */
.photo .credit { font-size: 9px; padding: 1px 5px; opacity: .85; }
.photo .credit a { color: #fff; text-decoration: none; }
.photo .credit a:hover { text-decoration: underline; }

/* ---------- Fernwehly home ---------- */
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; font-weight: 400; }
.search-row { transition: border-color .2s; border-bottom-color: #8A8A86; }
.search-row:focus-within { border-bottom-color: var(--ink); }
.search-row input::placeholder { font-style: italic; }
.search-icon { flex: 0 0 auto; color: var(--ink); }

/* Search drop-down: slides and fades in; rows follow one after another. */
.search-box { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 20; background: #fff; border: 1px solid var(--hair); box-shadow: 0 18px 40px rgba(20,20,20,.08), 0 2px 6px rgba(20,20,20,.04); padding: 8px 0 4px; text-align: left; transform-origin: top center; }
.suggest.open { animation: sgIn .22s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sgIn { from { opacity: 0; transform: translateY(-8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes sgRow { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sg-head { padding: 10px 20px 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sg-head.sep { border-top: 1px solid #EFEDE8; margin-top: 6px; padding-top: 14px; }
.sg-row { display: flex; align-items: center; gap: 16px; padding: 9px 20px; min-height: 44px; box-sizing: border-box; text-decoration: none; color: var(--ink); animation: sgRow .24s ease-out both; }
.sg-row.on, .sg-row:hover { background: #F1F0EC; }
.sg-kind { flex: 0 0 auto; min-width: 52px; text-align: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #C9C7C0; border-radius: 999px; padding: 3px 7px; color: var(--ink-3); }
.sg-pin { flex: 0 0 auto; color: var(--accent); margin: 0 17px; }
.sg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }
.sg-place { font-size: 16px; }
.sg-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-count { flex: 0 0 auto; font-size: 11px; color: var(--muted); }
.suggest mark { background: #E4EDF3; color: inherit; padding: 0 1px; }
.sg-empty { padding: 14px 20px; font-size: 14px; color: var(--muted); }
.sg-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 20px 6px; margin-top: 6px; border-top: 1px solid #EFEDE8; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6B6B66; }
@media (max-width: 560px) { .sg-kind, .sg-count, .sg-foot { display: none; } .sg-title { font-size: 19px; } .sg-row { padding: 9px 14px; } .sg-pin { margin: 0; } }

/* Follow a story */
.follow { display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--ink); padding: 28px 0 56px; }
.follow[hidden] { display: none; }
.follow-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.follow-tabs { display: flex; flex-direction: column; gap: 10px; }
.follow-tab { text-align: left; font: inherit; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 44px; cursor: pointer; background: transparent; color: var(--ink); border: 1px solid #D6D3CB; transition: background .2s, color .2s, border-color .2s; }
.follow-tab:hover { border-color: var(--ink); }
.follow-tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ft-title { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.ft-by { font-size: 12.5px; opacity: .75; }
.follow-note { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.follow-figure { flex: 999 1 520px; min-width: 0; margin: 0; background: #F3F2EE; border-radius: 20px; padding: clamp(14px, 3vw, 28px); }
.follow-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #DEDCD5; font-size: 13px; color: var(--ink-3); }
.follow-cap i { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px 40px; border-top: 1px solid var(--ink); padding: 28px 0 64px; }
.how span { font-size: 11px; color: var(--accent); }
.how h2 { margin: 8px 0; font-family: var(--serif); font-weight: 400; font-size: 30px; }
.how p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); }

/* Route drawing (home and title pages) */
.route { --route-bg: #F3F2EE; width: 100%; }
.route-stage { position: relative; width: 100%; }
.route-svg { position: absolute; inset: 0; display: block; }
.route-dash { animation: routeMarch 2.4s linear infinite; }
.route-cover { animation: routeReveal 1.8s cubic-bezier(.45,.05,.25,1) .15s both; }
@keyframes routeMarch { to { stroke-dashoffset: -24; } }
@keyframes routeReveal { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1; } }
.route-pin { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid #fff; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; line-height: 1; animation: routePin .35s cubic-bezier(.2,.9,.3,1.3) both; z-index: 2; }
.route-pin[data-n] { cursor: pointer; }
.route-pin[data-n]:hover, .route-pin[data-n]:focus-visible { background: var(--ink); outline: none; }
@keyframes routePin { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.route-ring { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--accent); box-sizing: border-box; animation: routePulse 2.2s ease-out 1.6s infinite; opacity: 0; }
@keyframes routePulse { 0% { opacity: .55; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } }
.route-label { position: absolute; white-space: nowrap; font-family: var(--mono); letter-spacing: .06em; color: var(--ink); background: color-mix(in srgb, var(--route-bg) 90%, transparent); padding: 0 5px; animation: routeLabel .45s ease-out both; z-index: 1; }
@keyframes routeLabel { from { opacity: 0; } to { opacity: 1; } }
.route-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-3); }
.route-legend li { display: flex; gap: 6px; align-items: baseline; }
.route-legend span { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.route-figure { margin: 0 0 40px; background: #F3F2EE; border-radius: 20px; padding: clamp(14px, 3vw, 28px); }
.fig-cap { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-3); margin-bottom: 12px; }
@media (prefers-reduced-motion: reduce) {
  .suggest.open, .sg-row, .route-pin, .route-label, .route-cover, .route-dash, .route-ring { animation: none; }
  .route-cover { display: none; }
}

/* Hide the browser's own clear button in the search box. */
.search-row input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
