/* Field guide: one shared visual system for the finder and every crawlable page. */
:root {
  --paper: #f7f3e9; --card: #fffdf8; --ink: #233c32; --ink-soft: #58645a; --line: #d8dbcd;
  --accent: #315c46; --accent-ink: #fffdf8; --accent-wash: #e6eadb;
  --free: #286047; --free-wash: #e3eddf; --discount: #835416; --discount-wash: #f3e8cf;
  --perks: #66547c; --perks-wash: #eee7f3; --warn: #983d24; --warn-wash: #f8e7db;
  /* decorative only (never body text): terracotta stamp + a deep forest for hero bands */
  --stamp: #b5562f; --forest: #1f3a2d; --forest-ink: #f7f3e9;
  --shadow: 0 1px 2px rgb(35 60 50 / .06), 0 8px 24px -12px rgb(35 60 50 / .22);
  --shadow-lift: 0 2px 4px rgb(35 60 50 / .08), 0 16px 36px -16px rgb(35 60 50 / .32);
  --font-display: "Libre Caslon Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: var(--font-body); --radius: 14px; --step: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #202820; --card: #2a342b; --ink: #f2f1e4; --ink-soft: #bdc8bc; --line: #465346;
    --accent: #b9d5a8; --accent-ink: #203322; --accent-wash: #364737;
    --free: #b9d5a8; --free-wash: #344733; --discount: #edca8a; --discount-wash: #463d29;
    --perks: #d0bfe7; --perks-wash: #3a3146; --warn: #ffc3a7; --warn-wash: #4b3227;
    --stamp: #e39a72; --forest: #17201a; --forest-ink: #f2f1e4;
    --shadow: 0 1px 2px rgb(0 0 0 / .25), 0 8px 24px -12px rgb(0 0 0 / .5);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 16px 36px -16px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #202820; --card: #2a342b; --ink: #f2f1e4; --ink-soft: #bdc8bc; --line: #465346;
  --accent: #b9d5a8; --accent-ink: #203322; --accent-wash: #364737;
  --free: #b9d5a8; --free-wash: #344733; --discount: #edca8a; --discount-wash: #463d29;
  --perks: #d0bfe7; --perks-wash: #3a3146; --warn: #ffc3a7; --warn-wash: #4b3227;
  --stamp: #e39a72; --forest: #17201a; --forest-ink: #f2f1e4;
  --shadow: 0 1px 2px rgb(0 0 0 / .25), 0 8px 24px -12px rgb(0 0 0 / .5);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .3), 0 16px 36px -16px rgb(0 0 0 / .6);
  color-scheme: dark;
}
body { line-height: 1.55; }
h1,h2,h3 { font-weight: 400; }
::selection { background: var(--accent-wash); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---- top bar + brand ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.05rem/1.2 var(--font-body); letter-spacing: -.035em; }
.brand-mark { flex: none; width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.topbar { padding: 16px max(24px, calc((100vw - 1280px) / 2)); gap: 24px; position: relative;
          background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); }
.topbar-links { flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; white-space: normal; }
.linkish { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.linkish:hover { text-decoration-thickness: 2px; }
.topbar .linkish { font-size: .85rem; text-decoration: none; color: var(--ink); opacity: .82; padding: 8px 0; }
.topbar .linkish:hover { text-decoration: underline; opacity: 1; }
.topbar-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; }

/* ---- hero ---- */
.welcome { position: relative; padding: 18px 0 8px; overflow: clip; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--stamp); }
.welcome h1 { font-size: clamp(2.8rem, 4.4vw, 4.3rem); line-height: 1.02; letter-spacing: -.035em; max-width: 600px; text-wrap: balance; padding-right: 64px; }
.welcome h1 em {
  font-style: italic; position: relative; white-space: nowrap;
  background: linear-gradient(transparent 72%, color-mix(in srgb, var(--stamp) 30%, transparent) 72%, color-mix(in srgb, var(--stamp) 30%, transparent) 92%, transparent 92%);
}
.welcome > p.lede { max-width: 470px; color: var(--ink-soft); margin: 18px 0 0; font-size: 1.05rem; }
.hero-stamp {
  position: absolute; top: 0; right: 0; width: 112px; height: 112px; color: var(--stamp);
  transform: rotate(-14deg); opacity: .9; pointer-events: none;
  animation: stamp-in .7s var(--ease) .15s both;
}
.hero-stamp text { font: 600 10.5px var(--font-body); }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-40deg) scale(1.25); } to { opacity: .9; transform: rotate(-14deg) scale(1); } }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-facts li {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; font-size: .82rem; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.hero-facts b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--ink); font-variant-numeric: lining-nums; }
.welcome .maker { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; font-size: .82rem; }
.maker .heart { width: 15px; height: 15px; flex: none; fill: var(--stamp); }
.return-title { font-size: 2.6rem; margin: 8px 0 10px; }

/* ---- steps ---- */
.panel { gap: 18px; }
.step { padding: 22px; gap: 16px; box-shadow: var(--shadow); border-radius: 18px; }
h2 { font-size: 1.6rem; }
.step-head h2, .where-label { display: inline-flex; align-items: center; gap: 10px; }
.step-num {
  flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font: 700 .8rem/1 var(--font-body); color: var(--accent-ink); background: var(--accent); letter-spacing: 0;
}
.where-label .step-num { width: 22px; height: 22px; font-size: .72rem; }
.step-head .hint { flex-basis: 100%; }
input[type="search"], input[type="text"], input[type="email"], select, textarea {
  min-height: 48px; border-radius: 10px; border-width: 1.5px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input[type="search"]:hover, input[type="text"]:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
input[type="search"]:focus, input[type="text"]:focus, input[type="email"]:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.button { min-height: 44px; font-size: .9rem; border-radius: 10px; transition: transform .12s var(--ease), box-shadow .15s, background-color .15s, filter .15s; }
.button:not(.secondary):hover { filter: brightness(1.08); box-shadow: var(--shadow); }
.button:active { transform: translateY(1px); }
.button.secondary:hover { background: var(--accent-wash); }
.card-editor { gap: 16px; }
#card-done { width: 100%; min-height: 50px; font-size: .95rem; }
.program-picker > summary { color: var(--accent); cursor: pointer; padding: 8px 0; font-weight: 600; }
.program-picker .chips { margin-top: 12px; }
.chip { border-radius: 10px; transition: background-color .15s, border-color .15s, transform .12s var(--ease), box-shadow .15s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { box-shadow: var(--shadow); }
.chip b { font-family: var(--font-body); font-weight: 600; }
.card-summary { padding: 2px 0; }
.card-summary-text { font-size: .95rem; }
#step-card.collapsed { padding-block: 14px; border-left: 4px solid var(--accent); }

/* ---- level choice: the obvious next step after picking a museum ---- */
#card-note { margin: 0; }
#card-note.note-plain { padding: 12px 14px; border-radius: 12px; background: var(--accent-wash); color: var(--ink); font-size: .9rem; }
#card-note.note-plain .hint { display: block; margin-top: 4px; }
.level-step { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px;
              background: var(--accent-wash); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent);
              animation: rise .35s var(--ease) both; }
.level-step .hint { margin: 0; }
.level-title { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; color: var(--ink); }
.next-tag { padding: 3px 8px; border-radius: 999px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
            color: var(--accent-ink); background: var(--accent); }
.level-options { display: grid; gap: 8px; }
#card-note:not(.level-step) .level-options { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.level-card {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 14px;
  font: inherit; text-align: left; color: var(--ink); cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s, transform .12s var(--ease), background-color .15s;
}
.level-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.level-card:active { transform: scale(.99); }
.level-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.level-main b { font-weight: 700; font-size: 1rem; }
.level-main small { color: var(--ink-soft); font-size: .8rem; }
.level-price { font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.level-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--accent); background: var(--card); position: relative; }
.level-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.level-card[aria-pressed="true"] small, .level-card[aria-pressed="true"] .level-price { color: inherit; opacity: .85; }
.level-card[aria-pressed="true"] .level-radio { border-color: var(--accent-ink); background: var(--accent-ink); }
.level-card[aria-pressed="true"] .level-radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.level-card.alt { min-height: 52px; background: transparent; border-style: dashed; }
.level-card.alt .level-radio { border-style: dashed; border-color: var(--ink-soft); }
.level-card.alt b { font-weight: 600; }
.needs-attention { animation: nudge .5s var(--ease) both; border-color: var(--warn) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
#card-validation { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-wash); color: var(--warn); font-weight: 600; font-size: .88rem; }

/* ---- suggestions ---- */
.suggest { border-radius: 12px; padding: 6px; box-shadow: var(--shadow-lift); animation: drop .16s var(--ease) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.suggest li { position: relative; padding: 9px 10px 9px 36px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.suggest li::before {
  content: ""; position: absolute; left: 11px; top: 12px; width: 15px; height: 15px; background: var(--ink-soft);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.suggest .sub { font-weight: 400; }
.suggest li.s-place { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 1 4.5V6h14V4.5zM2.5 7h2v5h-2zm4.5 0h2v5H7zm4.5 0h2v5h-2zM1 13h14v2H1z'/%3E%3C/svg%3E"); }
.suggest li.s-city { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a5.5 5.5 0 0 0-5.5 5.5C2.5 10 8 16 8 16s5.5-6 5.5-10.5A5.5 5.5 0 0 0 8 0zm0 7.6a2.1 2.1 0 1 1 0-4.2 2.1 2.1 0 0 1 0 4.2z'/%3E%3C/svg%3E"); }
.suggest li.suggest-alt { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 3.5A1.5 1.5 0 0 1 2.5 2h11A1.5 1.5 0 0 1 15 3.5v9a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 12.5zM3 5v2h5V5zm0 4v1.5h3V9zm7-4a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E");
  margin-top: 2px; border: 1.5px dashed var(--line); background: var(--paper); }
.suggest li.suggest-alt::before { background: var(--accent); }

/* ---- where step ---- */
#step-where { padding: 20px; gap: 14px; }
#step-where .where-row { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
#step-where .field.grow { flex-basis: 180px; }
#step-where .field.radius { flex: 0 0 84px; }
#step-where .field.radius select { width: 100%; }
#step-where .near { min-height: 48px; }
.search-extras { justify-content: flex-start; }
.visit-note { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; overflow-wrap: anywhere; }
.share-row .linkish { font-size: .8rem; }

/* ---- the answer: the payoff moment ---- */
.answer { scroll-margin-top: 16px; position: relative; gap: 14px; padding: 20px; border-radius: 18px; border-width: 1.5px; box-shadow: var(--shadow);
          animation: rise .4s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.answer-head { position: relative; display: flex; align-items: flex-start; gap: 14px; }
.answer-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.answer h2 { font: 600 .8rem/1.3 var(--font-body); letter-spacing: .02em; color: var(--ink-soft); }
.answer-headline { margin: 0; font: 400 clamp(1.7rem, 3vw, 2.15rem)/1.08 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.answer .verdict { font: 500 .92rem/1.4 var(--font-body); color: var(--ink-soft); }
.answer-badge {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--line); color: var(--ink);
}
.answer-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.answer-body { display: flex; flex-direction: column; gap: 10px; }
.answer-body:empty { display: none; }
.answer-bring { font-size: .85rem; color: var(--ink-soft); }
.answer .place, .answer .place.is-focus { padding: 14px 0 0; border: 0; border-top: 1px dashed var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.answer .place::before { display: none; }
/* yes: an admission ticket, with a perforated tear line and notches */
.answer.yes { background: linear-gradient(180deg, var(--free-wash), var(--card) 70%); border-color: var(--free); }
.answer.yes .answer-head { padding-bottom: 16px; border-bottom: 2px dashed color-mix(in srgb, var(--free) 45%, transparent); }
.answer.yes .answer-head::before, .answer.yes .answer-head::after {
  content: ""; position: absolute; bottom: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--free);
}
.answer.yes .answer-head::before { left: -33px; clip-path: inset(0 0 0 50%); }
.answer.yes .answer-head::after { right: -33px; clip-path: inset(0 50% 0 0); }
.answer.yes .answer-badge { background: var(--free); color: var(--card); box-shadow: 0 0 0 6px color-mix(in srgb, var(--free) 16%, transparent); animation: pop .5s var(--ease) .1s both; }
.answer.yes .answer-headline { color: var(--free); }
.answer.yes .tick { stroke-dasharray: 22; stroke-dashoffset: 22; animation: draw .45s var(--ease) .35s forwards; }
.answer.yes .place { border-top: 0; padding-top: 0; }
@keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.08); } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.answer.maybe { background: linear-gradient(180deg, var(--discount-wash), var(--card) 70%); border-color: var(--discount); }
.answer.maybe .answer-badge { background: var(--discount); color: var(--card); }
.answer.maybe .answer-headline { color: var(--discount); }
.answer.no { border-color: var(--line); }
.answer.no .answer-badge { background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-soft); }
.answer.ask .answer-badge { background: var(--accent-wash); color: var(--accent); }
.answer ul.ways { list-style: none; padding: 0; gap: 8px; }
.answer ul.ways li { padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; }
.answer ul.ways .net-tag { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 5px; background: var(--accent-wash); color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.answer .tip-ask { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px dashed var(--line); }

/* ---- results ---- */
.results-head { padding-top: 4px; }
.summary { font-size: .95rem; }
.summary strong { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.results { gap: 10px; }
.place {
  position: relative; padding: 16px 18px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .03); transition: box-shadow .18s, transform .18s var(--ease), border-color .18s;
}
.place::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--line); }
.place:has(.pill.perks)::before { background: var(--perks); }
.place:has(.pill.discount)::before { background: var(--discount); }
.place:has(.pill.free)::before { background: var(--free); }
.place:hover { box-shadow: var(--shadow); }
.place.is-focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow); }
.place-name button { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.place-name button:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.place-dist { padding: 2px 8px; border-radius: 999px; background: var(--paper); align-self: start; }
.place-dist:empty { display: none; }
.place-meta, .via { font-size: .82rem; }
.kid { font-weight: 600; }
.kid::before { content: "· "; color: var(--ink-soft); font-weight: 400; }
.pill { border-radius: 6px; padding: 3px 9px; font-size: .82rem; }
.pill.free::before { content: "✓ "; }
.more { margin-top: 6px; }
.more summary { min-height: 32px; display: inline-flex; align-items: center; font-weight: 500; }
.more[open] .more-body { animation: rise .25s var(--ease) both; }
.warning { margin-top: 6px; }
.empty { padding: 22px; text-align: center; border-radius: 14px; }
/* loading: a friendly line and quiet skeleton cards until the lists arrive */
.loading-line { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.loading-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--stamp); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.skeleton { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); list-style: none; }
.skeleton i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-wash), var(--paper), var(--accent-wash)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i:nth-child(1) { width: 62%; height: 16px; } .skeleton i:nth-child(2) { width: 40%; } .skeleton i:nth-child(3) { width: 28%; height: 20px; border-radius: 6px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
body:not(.is-loading) .skeleton { display: none; }
body.is-loading #map { background: var(--accent-wash); }

.panel-end { border-top: 1px solid var(--line); text-align: left; padding-top: 18px; }
.panel-end > .linkish { font-size: .82rem; }

/* ---- map, pins and popups ---- */
.map-wrap { border-radius: 20px; box-shadow: var(--shadow); border-color: var(--line); }
.map-back { position: absolute; right: 12px; top: 12px; z-index: 700; box-shadow: 0 2px 10px #0002; }
.leaflet-container { background: var(--accent-wash); }
.leaflet-interactive.pin { transition: stroke-width .15s; }
.leaflet-interactive.pin:hover { stroke-width: 4; }
.target-pin svg { width: 30px; height: 40px; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .3)); }
.target-pin path { fill: var(--stamp); stroke: var(--card); stroke-width: 2; }
.target-pin circle { fill: var(--card); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lift); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--ink); }
.leaflet-popup-content { margin: 14px 16px; }
.leaflet-container a { color: var(--accent); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-soft); width: 28px; height: 28px; font-size: 20px; line-height: 26px; }
.leaflet-bar a { background: var(--card); color: var(--ink); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--accent-wash); }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: var(--shadow) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-control-attribution { background: var(--card)!important; color: var(--ink); }
.pop { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 180px; }
.pop-name { font-size: .98rem; line-height: 1.25; padding-right: 14px; }
.pop-where { font-size: .78rem; color: var(--ink-soft); }
.pop-deal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.pop-via { font-size: .78rem; color: var(--ink-soft); }
.pop-more { margin-top: 8px; padding: 6px 12px; min-height: 34px; border-radius: 8px; font: 600 .82rem var(--font-body); color: var(--accent-ink); background: var(--accent); border: 0; cursor: pointer; }
.pop-more:hover { filter: brightness(1.08); }
.city-pin { border-color: var(--accent); color: var(--ink); box-shadow: var(--shadow); }
.legend { border-radius: 10px; box-shadow: var(--shadow); padding: 7px 12px; }
.dot { box-shadow: 0 0 0 2px var(--card); }

/* ---- dialogs ---- */
.sheet { border-radius: 18px; box-shadow: var(--shadow-lift); }
.sheet[open] { animation: rise .25s var(--ease) both; }
.sheet::backdrop { background: rgb(20 30 24 / .5); backdrop-filter: blur(2px); }

/* ---- crawlable pages (programs, cities, places, faq, data, about) ---- */
.prose { max-width: 960px; margin: 0 auto; padding: 40px 24px 48px; gap: 20px; }
.prose > .provenance:first-child { font-size: .8rem; display: flex; flex-wrap: wrap; gap: 4px; }
.prose > .provenance:first-child a { color: var(--ink-soft); text-decoration-color: var(--line); text-underline-offset: 3px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; max-width: 820px; }
.prose h2 { font-size: 1.9rem; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose h2 .provenance { font-family: var(--font-body); font-size: .9rem; }
.prose li > a > b, .prose li > a:first-child { font-weight: 600; }
.prose > ul:not(.results) { gap: 8px; }
.prose > ul:not(.results) > li { line-height: 1.5; }
.prose > ul:not(.results) > li::marker { color: var(--stamp); }
.prose nav p { line-height: 2; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: separate; border-spacing: 0; font-size: .9rem;
               background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px; border-bottom: 1px solid var(--line); min-width: 140px; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose thead th { background: var(--accent-wash); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.prose tbody th { background: transparent; }
.prose td { overflow-wrap: anywhere; }
.prose .disclaimer { display: block; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--stamp);
                     border-radius: 12px; padding: 12px 16px; color: var(--ink); }
.prose .results { gap: 12px; padding-left: 0; }
.prose .results .place { display: flex; flex-direction: column; gap: 8px; }
.prose .results .place-name { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; margin: 0; padding: 0; border: 0; }
.prose .results .place-name a { color: var(--ink); text-decoration: none; }
.prose .results .place-name a:hover { text-decoration: underline; }
.prose .results .deal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.prose .results .deal li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: .9rem; }
.prose .results .deal small { color: var(--ink-soft); flex-basis: 100%; }
.prose a.net-tag { display: inline-block; min-width: 52px; font-family: var(--font-body); font-weight: 700; text-decoration: none; }
.prose details { padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.prose details > summary { cursor: pointer; font-weight: 600; }
.prose .fine { margin-top: 8px; }
.prose code { font-size: .85em; padding: 1px 5px; border-radius: 4px; background: var(--accent-wash); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer { background: transparent; padding: 24px; }
.site-foot { max-width: 960px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.site-foot .maker { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-weight: 500; }
.site-foot .fine { margin: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 2000; background: var(--card); color: var(--ink); padding: 12px; border-radius: 10px; }
.skip-link:focus { top: 8px; }

@media(min-width:900px) {
  .layout { grid-template-columns: minmax(460px, 1.1fr) minmax(340px, 1fr); height: auto; align-items: start; }
  .panel { overflow: visible; padding: 28px 36px 48px 24px; }
  .map-wrap, body.show-map .map-wrap { position: sticky; top: 24px; height: calc(100dvh - 48px); max-height: 850px; margin: 28px 24px 24px 0; }
  .map-back { display: none; }
}
@media(max-width:899px) {
  .topbar { padding: 14px 20px; }
  .topbar-links { gap: 4px 12px; }
  .panel { padding: 22px 20px; }
  .welcome h1 { font-size: 3rem; }
  body.show-map .panel-end, body.show-map .answer { display: none; }
  .map-wrap { height: 65dvh; margin: 0 20px 24px; }
  .results-head { position: sticky; top: 0; z-index: 800; padding: 10px 0; background: var(--paper); }
  .view-switch button { min-height: 44px; }
}
@media(max-width:520px) {
  .hero-stamp { width: 78px; height: 78px; top: 46px; right: 0; }
  .welcome h1 { padding-right: 72px; }
}
@media(max-width:420px) {
  .topbar { align-items: flex-start; gap: 12px; }
  .brand { max-width: 170px; font-size: .98rem; }
  .brand-mark { width: 24px; height: 24px; }
  .topbar-links { max-width: 150px; }
  .welcome h1 { font-size: 2.6rem; }
  .step, #step-where { padding: 16px; }
  #step-where .field.grow { flex-basis: 100%; }
  .results-head { flex-wrap: wrap; }
  .prose { padding: 26px 18px 40px; }
  .answer { padding: 16px; }
  .answer.yes .answer-head::before { left: -29px; }
  .answer.yes .answer-head::after { right: -29px; }
  .answer-badge { width: 44px; height: 44px; }
  .hero-facts li { font-size: .78rem; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .answer.yes .tick { stroke-dashoffset: 0; }
  .hero-stamp { opacity: .9; transform: rotate(-14deg); }
}
.net-tag { font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
/* FAQ cards and the shared page header on narrow screens */
.prose .qa { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.prose .qa h2 { margin: 0; padding: 0; border: 0; font-size: 1.45rem; }
.prose .qa p { color: var(--ink); }
.prose .feedback-block { border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px; }
.prose .feedback-block h2 { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 640px) {
  body.page .topbar { flex-direction: column; align-items: flex-start; gap: 4px; }
  body.page .topbar-links { max-width: none; justify-content: flex-start; gap: 0 16px; }
  body.page .brand { max-width: none; }
}
@media (max-width: 640px) {
  /* place pages: each program row becomes its own small card instead of a sideways-scrolling table */
  .prose table { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .prose thead { display: none; }
  .prose tbody { display: flex; flex-direction: column; gap: 10px; }
  .prose tbody tr { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
  .prose tbody th, .prose tbody td { display: block; padding: 0; border: 0; min-width: 0; }
  .prose tbody td:empty { display: none; }
}
