:root {
  --green: #2d5a3d;
  --green-dark: #1e3f2a;
  --green-light: #e8f1ea;
  --amber: #c47f17;
  --amber-light: #fdf3e0;
  --blue: #2b6cb0;
  --slate: #334155;
  --muted: #64748b;
  --border: #dde5dd;
  --bg: #f6f8f5;
  --card: #ffffff;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--slate);
  line-height: 1.5;
}

header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 22px 28px 16px;
}
header h1 { margin: 0 0 4px; font-size: 1.6rem; }
.home-icon { text-decoration: none; color: inherit; cursor: pointer; }
.last-updated { color: var(--muted); white-space: nowrap; }
.tagline { margin: 0; opacity: 0.92; font-size: 0.95rem; max-width: 860px; }
.stats { margin: 8px 0 0; font-size: 0.85rem; opacity: 0.85; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1001;
}
.toolbar input, .toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
  color: var(--slate);
}
.toolbar input { flex: 1 1 220px; min-width: 180px; }

main {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  min-height: 70vh;
}

#fellList {
  border-right: 1px solid var(--border);
  background: var(--card);
  overflow-y: auto;
  max-height: calc(100vh - 130px);
  position: sticky;
  top: 58px;
}
.fell-item {
  padding: 10px 16px;
  border-bottom: 1px solid #eef2ee;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.fell-item:hover { background: var(--green-light); }
.fell-item.active { background: var(--green); color: #fff; }
.fell-item.active .sub { color: #d4e3d8; }
.fell-item .nm { font-weight: 600; font-size: 0.92rem; }
.fell-item .sub { font-size: 0.78rem; color: var(--muted); }
.fell-link { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; }
.fell-item.ticked { background: #f1f7f2; }
.fell-item.ticked .nm { color: var(--green-dark); }
/* tick button: 44px touch target, filled green ✓ when bagged (glyph + state, not colour alone) */
.tick-btn {
  flex: 0 0 auto; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 1.5px solid var(--border); border-radius: 50%;
  background: #fff; color: #cbd5e1; font-size: 0.95rem; line-height: 1; cursor: pointer;
}
.tick-btn:hover { border-color: var(--green); color: var(--green); }
.tick-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.tick-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* progress strip under the toolbar (Phase 1: count + export/import) */
.progress-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 8px 28px; background: var(--green-light);
  border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--slate);
}
.progress-strip strong { color: var(--green-dark); }
.progress-strip .ps-note { color: var(--muted); }
.ps-actions { margin-left: auto; display: flex; gap: 6px; }
.ps-btn {
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--slate); font-size: 0.82rem; cursor: pointer;
}
.ps-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green-dark); }
.ps-btn:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 640px) { .ps-actions { margin-left: 0; } }

/* "Best fells today" hero (homepage centrepiece, above the explorer) */
.best-today { padding: 16px 28px; background: var(--green-light); border-bottom: 1px solid var(--border); }
.bt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.bt-title { margin: 0; font-size: 1.2rem; color: var(--green-dark); }
.bt-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; }
.bt-tab { border: 0; background: transparent; padding: 6px 16px; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.bt-tab[aria-pressed="true"] { background: var(--green); color: #fff; }
.bt-tab:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.bt-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .bt-body { grid-template-columns: 1fr; } }
.bt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bt-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.bt-card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.bt-band { display: inline-block; color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 4px; padding: 1px 8px; white-space: nowrap; }
.bt-name { font-weight: 600; font-size: 0.95rem; }
.bt-name a { color: var(--green-dark); text-decoration: none; }
.bt-name a:hover { text-decoration: underline; }
.bt-headline { font-size: 0.84rem; color: var(--slate); margin-top: 2px; }
.bt-part { display: inline-block; margin-top: 4px; font-size: 0.72rem; font-weight: 600; color: var(--amber); background: var(--amber-light); border-radius: 4px; padding: 1px 8px; }
.bt-empty { color: var(--muted); font-size: 0.9rem; padding: 8px 0; }
.bt-map { height: 320px; border-radius: 8px; border: 1px solid var(--border); }
@media (max-width: 760px) { .bt-map { height: 260px; } }
.bt-note { font-size: 0.78rem; color: var(--muted); margin: 12px 0 0; }
.bt-note a { color: var(--green-dark); }
.bt-wind { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.bt-bagged { font-size: 0.72rem; font-weight: 600; color: var(--green-dark); background: var(--green-light); border-radius: 4px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.bt-dist { display: inline-block; margin-top: 3px; font-size: 0.76rem; color: var(--muted); }
.bt-more { margin: 12px 0 0; font-size: 0.9rem; }
.bt-more a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.bt-more a:hover { text-decoration: underline; }
/* Conditions page: filters + full ranked list */
.cond-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 12px; font-size: 0.85rem; }
.cond-filters label { display: inline-flex; align-items: center; gap: 5px; color: var(--slate); }
.cond-filters select { padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 0.85rem; color: var(--slate); }
.cond-filters .cond-check { gap: 6px; }
.cond-count { font-size: 0.82rem; color: var(--muted); margin: 0 0 10px; }
.cond-body { align-items: start; }
.cond-body .bt-list { max-height: 70vh; overflow-y: auto; }
.cond-map { height: 70vh; position: sticky; top: 12px; }
@media (max-width: 760px) { .cond-map { height: 300px; position: static; } .cond-body .bt-list { max-height: none; } }
/* per-fell verdict card (#fellConditions) — a contained card, not the full-width hero band */
.fell-conditions { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 18px; }
.fc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fc-title { margin: 0; font-size: 1.05rem; color: var(--green-dark); }
.fc-badge { display: inline-block; color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 4px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.fc-limiter { font-size: 0.85rem; color: #8a4b00; background: var(--amber-light); border-radius: 6px; padding: 4px 9px; margin: 6px 0; }
.fc-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
.fc-tile { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; text-align: center; min-width: 82px; }
.fc-tile-v { font-weight: 700; font-size: 0.9rem; color: var(--slate); }
.fc-tile-l { font-size: 0.72rem; color: var(--muted); }
.fell-conditions .bt-part { margin-top: 8px; }

/* welcome split: intro + "From the fells" side by side, auto-stacking when narrow */
.welcome-grid {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.welcome-intro { min-width: 0; }

/* "From the fells" news panel */
.news-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; min-width: 0;
}
.news-head { margin: 0 0 10px; font-size: 1.05rem; color: var(--green-dark); }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { padding: 10px 0; border-top: 1px solid #eef2ee; }
.news-item:first-child { border-top: 0; }
.news-tag {
  display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; border-radius: 4px; padding: 1px 6px; margin-bottom: 4px;
}
.news-tag.safety { background: var(--amber-light); color: var(--amber); }
.news-tag.safety.warning { background: #fdeaea; color: #b91c1c; }
.news-tag.access { background: #e8eef6; color: var(--blue); }
.news-tag.news { background: #eef2ee; color: var(--muted); }
.news-title { display: block; font-weight: 600; font-size: 0.92rem; color: var(--slate); text-decoration: none; }
.news-title:hover { color: var(--green-dark); text-decoration: underline; }
.news-summary { font-size: 0.84rem; color: var(--slate); margin: 2px 0 0; }
.news-meta { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }
.news-foot { font-size: 0.76rem; color: var(--muted); font-style: italic; margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #eef2ee; }

/* "Mark as bagged" toggle on individual fell pages (state = icon + label + fill, not colour alone) */
/* chip-styled but a real toggle button: matches .chip metrics, keeps pointer/hover + aria-pressed fill */
.bag-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--green-light); color: var(--green-dark);
  font-size: 0.8rem; font-weight: 600; line-height: 1.4; cursor: pointer;
}
.bag-toggle .bag-ico { font-size: 0.85rem; line-height: 1; }
.bag-toggle:hover { background: #dcebdf; border-color: #b9d2b2; }
.bag-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.bag-toggle.is-bagged { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Route v2: dedicated route pages + hub ───────────────────────── */
a.route-name { color: var(--green-dark); text-decoration: none; }
a.route-name:hover { text-decoration: underline; }
.route-guide { font-weight: 600; color: var(--green-dark); text-decoration: none; }
.route-guide:hover { text-decoration: underline; }
/* hero photo: contained block (override .fell-photo's float) */
.route-photo { float: none; width: 100%; max-width: 680px; margin: 0 auto 16px; }
.route-keyfacts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 4px 0 0; font-size: 0.92rem; }
.route-keyfacts li strong { color: var(--green-dark); font-weight: 600; margin-right: 5px; }
.route-summit-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 5px; }
.route-summit-list a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.route-summit-list a:hover { text-decoration: underline; }
.route-warnings { margin: 6px 0; padding-left: 20px; color: #8a4b00; }
.route-related { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 5px; }
.route-related a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.route-related a:hover { text-decoration: underline; }
/* elevation profile (inline SVG) */
.elev-svg { width: 100%; height: auto; display: block; margin: 4px 0; }
.elev-area { fill: var(--green-light); stroke: none; }
.elev-line { fill: none; stroke: var(--green); stroke-width: 2; }
.elev-lbl { font-size: 11px; fill: var(--muted); }
/* routes hub */
.route-card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 16px; }
.route-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--card); }
.route-name-arrow { color: var(--muted); font-weight: 400; }
/* route page overview: hero photo + (key facts then narrative) side-by-side, top-aligned */
.route-overview { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 4px 0 0; }
.route-overview .route-photo { flex: 0 0 320px; max-width: 100%; margin: 0; align-self: flex-start; }
.route-overview-text { flex: 1 1 320px; margin: 0; }
@media (max-width: 640px) { .route-overview .route-photo { flex-basis: 100%; } }
/* keep the route photo credit grey like fell pages, even though it's a link */
.photo-credit a { color: inherit; }
.badge {
  background: var(--amber);
  color: #fff;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge.zero { background: #cbd5e1; }
.tag-outlying {
  font-size: 0.68rem;
  background: #7c5cbf;
  color: #fff;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}

#detail { padding: 20px 28px 40px; min-width: 0; }
#welcome { max-width: 760px; }
#welcome h2 { color: var(--green-dark); }
.hidden { display: none; }

#fellHeader h2 { margin: 0 0 6px; color: var(--green-dark); font-size: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3px 11px;
  font-size: 0.8rem;
  font-weight: 600;
}
.chip.gold { background: var(--amber-light); color: var(--amber); border-color: #ecd9b0; }

#map {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.map-credit { font-size: 0.75rem; color: var(--muted); margin: 6px 0 18px; }

.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 18px;
}
.section-card h3 { margin: 0 0 10px; color: var(--green-dark); font-size: 1.05rem; }
/* route-page section headers are h2s — drop the default top margin so they sit near
   the top of the card (like the h3 headers), not pushed down by the browser default */
.section-card h2 { margin-top: 0; }
.keyinfo-card::after { content: ""; display: table; clear: both; }
.section-card h3 .emoji { margin-right: 6px; }

.birkett-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #e6ece6;
  cursor: pointer;
}
.birkett-row:last-child { border-bottom: none; }
.birkett-row:hover { background: var(--green-light); border-radius: 6px; }
.birkett-row .dist {
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  min-width: 84px;
  text-align: center;
}
.birkett-row .bn { font-weight: 600; }
.birkett-row .bh { color: var(--muted); font-size: 0.83rem; }
.note-good { color: var(--green); font-weight: 600; }
.note-muted { color: var(--muted); font-size: 0.85rem; }

.park-item { padding: 8px 0; border-bottom: 1px dashed #e6ece6; }
.park-item:last-child { border-bottom: none; }
.park-item .pn { font-weight: 600; }
.park-item .pd { font-size: 0.85rem; color: var(--muted); }
.park-item a { font-size: 0.82rem; }
.fac-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 0.82rem;
}
.fac-item {
  color: var(--color-text-secondary, #555);
  white-space: nowrap;
}
.fac-item a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
}
.fac-item a:hover { text-decoration-color: currentColor; }
.fac-note {
  color: var(--color-text-tertiary, #999);
  font-size: 0.78rem;
}

.bus-card {
  background: #f2f7fb;
  border: 1px solid #d8e6f2;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.bus-card .bn { font-weight: 700; color: var(--blue); }
.bus-card .br { font-size: 0.85rem; margin: 2px 0; }
.bus-card .bnote { font-size: 0.8rem; color: var(--muted); }
.bus-card .hubs { font-size: 0.78rem; font-weight: 600; color: var(--green-dark); }

.keyinfo-h1 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 1.05rem;
}
.keyinfo { margin: 6px 0 10px; }

/* Fell photo — local override or Wikimedia Commons fallback */
.fell-photo {
  float: left;
  width: 35%;
  margin: 2px 14px 8px 0;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}
.fell-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.photo-credit {
  font-size: 0.72rem;
  color: #999;
  line-height: 1.3;
  padding: 3px 2px 0;
  display: block;
}
/* On phones the 35%-wide float leaves the summary too narrow — go full-width */
@media (max-width: 480px) {
  .fell-photo { float: none; width: 100%; margin: 0 0 10px; }
}
.mynotes {
  clear: both;
  background: var(--amber-light);
  border: 1px solid #ecd9b0;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 0.92rem;
}
.mynotes .mn-title { font-weight: 700; color: var(--amber); margin-bottom: 4px; }
.region-links { columns: 3; list-style: none; padding: 0; margin: 8px 0 0; }
.region-links li { padding: 2px 0; break-inside: avoid; font-size: 0.9rem; }
@media (max-width: 820px) { .region-links { columns: 1; } }

.strava-card {
  background: #fff8f4;
  border: 1px solid #f3ddd0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.strava-card .sn { font-weight: 700; }
.strava-card .sn a { color: #fc4c02; text-decoration: none; }
.strava-card .sn a:hover { text-decoration: underline; }
.strava-card .stype {
  font-size: 0.68rem; background: #fc4c02; color: #fff;
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle;
}
.strava-card .sdate { font-size: 0.82rem; color: var(--muted); margin: 2px 0; }
.strava-card .sstats { font-size: 0.85rem; margin: 4px 0; }
.sphotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sphotos img {
  height: 90px; border-radius: 6px; object-fit: cover;
  border: 1px solid var(--border);
}
code { background: #eef2ee; border-radius: 4px; padding: 1px 5px; font-size: 0.85em; }
.breadcrumbs { font-size: 0.82rem; margin: 0 0 10px; color: var(--muted); }
.sitemap-group { margin-bottom: 22px; }
.sitemap-group h2 { color: var(--green-dark); font-size: 1.1rem; border-bottom: 2px solid var(--green-light); padding-bottom: 4px; }
.sitemap-group ul { columns: 3; list-style: none; padding: 0; margin: 8px 0; }
.sitemap-group li { padding: 2px 0; break-inside: avoid; font-size: 0.9rem; }
@media (max-width: 820px) { .sitemap-group ul { columns: 1; } }

/* MRT Hazard & Incident Information */
.mrt-hazard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.mrt-hazard-badge {
  display: inline-block; color: #fff; font-weight: 700; font-size: 0.85rem;
  padding: 4px 12px; border-radius: 14px; letter-spacing: 0.02em;
}
.mrt-count { font-size: 0.82rem; color: var(--muted); }
.mrt-summary { margin: 6px 0 10px; }
.mrt-spots { list-style: none; padding: 0; margin: 0 0 12px; }
.mrt-hazard-spot { padding: 6px 0; border-bottom: 1px dashed #e6ece6; font-size: 0.92rem; }
.mrt-hazard-spot:last-child { border-bottom: none; }
.mrt-sev-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 8px; vertical-align: baseline;
}
.mrt-sev-extreme .mrt-sev-dot { background: #4a0000; }
.mrt-sev-high .mrt-sev-dot { background: #c62828; }
.mrt-sev-moderate .mrt-sev-dot { background: #f57c00; }
.mrt-experience {
  background: var(--amber-light); border: 1px solid #ecd9b0; border-left: 4px solid var(--amber);
  border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: 0.92rem;
}
.mrt-causes { font-size: 0.85rem; margin: 8px 0; }
.mrt-sources { font-size: 0.82rem; margin: 10px 0 6px; }
.mrt-disclaimer { font-size: 0.78rem; color: var(--muted); margin: 8px 0 4px; line-height: 1.45; }
.mrt-report { font-size: 0.8rem; margin: 4px 0 0; }

.wx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.wx-day {
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
}
.wx-day .d { font-weight: 700; }
.wx-day .ic { font-size: 1.5rem; margin: 2px 0; }
.wx-day .t { font-weight: 600; }
.wx-day .w { color: var(--muted); }
.wx-links { margin-top: 10px; font-size: 0.85rem; }

a { color: var(--blue); }

footer {
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--card);
}

@media (max-width: 820px) {
  main { grid-template-columns: 1fr; }
  #fellList { max-height: 300px; position: static; }
  #map { height: 320px; }
}

/* ---- FAQ section (baked from data/fell-faqs/<slug>.json) ---- */
.faq-section h2 { margin: 0 0 12px; color: var(--green-dark); font-size: 1.15rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: var(--bg);
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 40px 12px 14px;
  font-weight: 600;
  color: var(--green-dark);
  position: relative;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--amber);
  line-height: 1;
}
.faq-item[open] > summary::after { content: "\2212"; }
.faq-item[open] > summary { border-bottom: 1px solid var(--border); }
.faq-item:hover > summary { background: var(--green-light); }
.faq-a { padding: 12px 14px; background: var(--card); }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 10px; padding-left: 20px; }
.faq-a li { margin-bottom: 5px; }
.faq-src { margin-top: 10px; }
.faq-foot { margin-top: 14px; }

/* static 'My hikes' fallback list (JS replaces it with rich cards) */
.strava-list { margin: 6px 0 10px; padding-left: 20px; font-size: 0.9rem; }
.strava-list li { margin-bottom: 5px; }
.strava-list a { color: #fc4c02; text-decoration: none; }
.strava-list a:hover { text-decoration: underline; }

/* ── Curated routes ─────────────────────────────────────────────── */
.route-item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 12px 0; background: var(--card); }
.route-item:first-of-type { margin-top: 6px; }
.route-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.route-name { font-weight: 700; font-size: 1.02rem; }
.route-chip { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.route-planned { background: #c77f12; }
.route-walked  { background: #1565c0; }
.route-revised { background: #2e7d32; }
.route-facts { color: #555; font-size: 0.92rem; margin-bottom: 8px; }
.route-summits { font-size: 0.9rem; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 6px; }
.route-summits-label { color: #666; }
.route-summit { display: inline-flex; background: var(--green-light); border: 1px solid #dde7da; border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; color: #1e3f2a; text-decoration: none; white-space: nowrap; }
a.route-summit:hover { background: #e2ece0; border-color: #b9d2b2; }
.route-summit-here { background: #e8eef0; border-color: #cfd8dc; color: #333; font-weight: 600; }
.route-map { height: 320px; border-radius: 8px; border: 1px solid var(--border); margin: 4px 0 10px; }
.route-actions { margin: 0 0 8px; }
.route-gpx { display: inline-block; background: #2e7d32; color: #fff; border-radius: 6px; padding: 6px 14px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.route-gpx:hover { background: #276b2b; }
.route-meta { font-size: 0.9rem; margin: 6px 0; }
.route-warn { color: #8a4b00; }
.route-desc { font-size: 0.95rem; margin: 8px 0; }
.route-note { margin: 8px 0 4px; }
.route-disclaimer { font-size: 0.82rem; margin: 4px 0 0; }
.route-owner-note { margin: 0 0 10px; padding: 8px 12px; font-size: 0.92rem;
  background: var(--green-light); border-left: 4px solid #2e7d32; border-radius: 0 6px 6px 0; color: #2a3c2e; }

/* ---- "Jump to a fell" autocomplete (individual fell pages) ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fell-jump { position: relative; margin: 10px 0 0; max-width: 420px; }
.fell-jump input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 16px; /* >=16px stops iOS zoom on focus */
  background: #fff; color: var(--slate);
}
.fell-jump input:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(196, 127, 23, 0.4);
}
.fell-jump-list {
  position: absolute; z-index: 1000; top: calc(100% + 4px); left: 0; right: 0;
  margin: 0; padding: 4px; list-style: none; background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-height: 360px; overflow-y: auto;
}
.fell-jump-opt {
  display: flex; flex-direction: column; gap: 1px; min-height: 44px;
  justify-content: center; padding: 6px 10px; border-radius: 6px;
  cursor: pointer; color: var(--slate);
}
.fell-jump-opt:hover,
.fell-jump-opt[aria-selected="true"] {
  background: var(--green-light); font-weight: 600;
}
.fj-name { font-size: 0.95rem; }
.fj-meta { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.fj-badge {
  display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 0.65rem;
  font-weight: 700; line-height: 1.6; vertical-align: middle; border-radius: 999px;
  background: var(--amber-light); color: var(--amber); text-transform: uppercase;
  letter-spacing: 0.03em;
}
.fell-jump-empty {
  padding: 10px; min-height: 44px; display: flex; align-items: center;
  color: var(--muted); font-size: 0.9rem; list-style: none;
}
