/* ============================================================
   Trail Conditions — Today / trail detail
   Hero card, section wrapper, hourly scroll, past-rain grid,
   conditions grid, drying outlook, soil card, tab bar,
   AI narrative, condition report buttons, Weekly Plan CTA.
   Also used by plan.html for hero card + shared components.
   ============================================================ */

/* ── Share status button + toast ──────────────────────── */
/* Lives inside .hero-drain — pushed right via margin-left: auto so the
   drain label + description keep their pairing on the left. */
.share-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.12s, border-color 0.12s;
}
.share-btn:hover,
.share-btn:active {
  background: var(--green-lt);
  border-color: var(--forest);
}
.share-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.share-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0.75rem);
  background: rgba(20, 40, 20, 0.92);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10000;
}
.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Consolidated top bar (today page, §7.25) ──────────── */
/* One line: brand left, trail-list link right. Replaces the two-line
   header + SE-Michigan subtitle so the trail name is stated once. */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.topbar .brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--forest);
}
.topbar-list {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.topbar-list:hover { color: var(--forest); }

/* ── SSR intro (server-rendered fallback in #hero-content for crawlers;
      replaced by the hero card once client JS hydrates) ── */
.ssr-intro h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--forest);
  margin: 0 0 0.6rem;
}
.ssr-intro p {
  margin: 0 0 0.6rem;
  line-height: 1.5;
}

/* ── Trail switcher (sticky, one line; holds the page h1) ── */
.trail-switcher-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--dirt);
  padding: 0.4rem 0 0.6rem;
  margin-bottom: 0.9rem;
}
.switch-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.arrow-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--green-lt);
  color: var(--forest);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  touch-action: manipulation;
}
.arrow-btn:active { background: var(--green); color: #fff; }
.switch-trigger {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
  touch-action: manipulation;
}
.pos-badge {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  white-space: nowrap;
}
.pos-badge.fav { background: var(--amber-lt); color: var(--amber-ink); }
.pos-badge.fav .star { color: #b8860b; }
.pos-badge.all { background: var(--dirt); color: var(--muted); border: 1px solid var(--border); }
.switch-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--forest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin: 0;
}
.switch-caret { flex-shrink: 0; font-size: 0.68rem; color: var(--muted); }

/* ── Trail picker sheet ─────────────────────────────────── */
.trail-picker {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-top: 0.5rem;
  overflow-y: auto;
  max-height: 60vh;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.trail-picker[hidden] { display: none; }
.picker-grp {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.65rem 1rem 0.35rem;
  background: var(--dirt);
  position: sticky;
  top: 0;
}
.picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}
.picker-row.active { background: var(--green-lt); }
.pr-name { font-size: 0.88rem; font-weight: 500; }
.pr-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.pr-status:empty { display: none; }

/* ── Trail Info tab (§7.25) ─────────────────────────────── */
.trail-facts {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.9rem;
  flex-wrap: wrap;
}
.fact-chip {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--forest);
  background: var(--green-lt);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}
/* Ride-shape chips (§7.30) — outlined so they read as feel, not difficulty */
.fact-chip.style-chip {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, 0.18);
  font-weight: 600;
}
/* Ride-shape note under the facts chips (§7.17 — e.g. daily CW/CCW alternation) */
.trail-direction {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0 1rem 0.9rem;
  margin-top: -0.2rem;
}

/* Per-loop breakdown (§7.17) */
.loop-list { padding: 0.25rem 1rem 0.9rem; }
.loop-row  { padding: 0.5rem 0; }
.loop-row + .loop-row { border-top: 1px solid var(--border, rgba(0,0,0,0.08)); }
.loop-head { display: flex; align-items: baseline; gap: 0.6rem; }
.loop-name { font-size: 0.88rem; font-weight: 600; }
.loop-mi   { margin-left: auto; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.loop-diff { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.loop-dot  { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.loop-note { font-size: 0.76rem; color: var(--muted); line-height: 1.45; margin-top: 0.15rem; }

.info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text);
}
.info-row .ic { font-size: 1.15rem; width: 1.5rem; text-align: center; flex-shrink: 0; }
.info-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.info-row-title { font-size: 0.9rem; font-weight: 600; }
.info-row.map .info-row-title { color: var(--blue); }
.info-row.video .info-row-title { color: var(--forest); }
.info-row.video + .info-row.video { border-top: 1px solid var(--border, rgba(0,0,0,0.08)); }
.info-row-note { font-size: 0.74rem; color: var(--muted); }
.info-row-arrow { color: var(--muted); font-size: 0.95rem; flex-shrink: 0; }

.share-block { padding: 0.9rem 1rem; }
/* Full-width block variant — overrides the hero-context .share-btn pill above */
.share-btn-block {
  margin-left: 0;
  width: 100%;
  justify-content: center;
  background: var(--forest);
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
}
.share-btn-block:hover,
.share-btn-block:active {
  background: #14311f;
  border: none;
}

/* ── Hero card (today / plan pages) ────────────────────── */
.hero-card {
  background: #fff;
  border-radius: 18px;
  border: 2px solid var(--forest);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
/* Name-less hero (today page): trail name lives in the switcher above, so the
   top row carries the drainage chip (left) and the status pill (right). */
.hero-top-noname { justify-content: space-between; align-items: center; }
.hero-trail-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--forest);
  line-height: 1.2;
  max-width: 65%;
}
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  color: #fff;
}
/* Yellow bg needs dark ink — white on yellow fails contrast. Caution
   pills get amber-ink instead. Applied via a class the JS renderer adds
   when effKey === 'caution'. */
.hero-status-pill.caution { color: var(--amber-ink); }
.hero-status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.hero-stat {
  background: var(--dirt);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}
.hero-stat-val {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
}
.hero-stat-val sup { font-size: 0.75rem; }
.hero-stat-lbl {
  font-size: 0.67rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.hero-stat-boost {
  font-size: 0.63rem;
  color: #1a6b9a;
  margin-top: 0.1rem;
}
/* ── Today-page hero: primary decision plane (§7.26) ── */
.hero-primary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.hero-temp {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}
.hero-temp sup { font-size: 1rem; vertical-align: super; }
.hero-temp-side { line-height: 1.25; }
.hero-feels {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--forest);
}
.hero-temp-lbl {
  font-size: 0.68rem;
  color: var(--muted);
}
/* Status pill rides the temp row, pinned right for a consistent position */
.hero-primary .hero-status-pill { margin-left: auto; }

/* AQI strip (§7.27) — only rendered when AQI >= 101; colour set inline from aqiCategory() */
.hero-aqi {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #fff;
}
.hero-aqi .aqi-ic  { font-size: 1rem; line-height: 1.1; }
.hero-aqi .aqi-num { font-weight: 700; }
.hero-aqi .aqi-note { font-weight: 400; opacity: 0.93; }

/* Freeze-thaw strip (docs/freeze-thaw.md Feature A) — seasonal AM-freeze days */
.hero-frost {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  background: #e8eef4;
  color: #2c4a63;
}
.hero-frost .frost-ic   { font-size: 1rem; line-height: 1.1; }
.hero-frost .frost-head { font-weight: 700; }
.hero-frost .frost-note { font-weight: 400; opacity: 0.93; }
/* Deep-frost state tints (docs/freeze-thaw.md Feature B) */
.hero-frost.frost-frozen    { background: #eaf3fb; color: #1a4a6b; }
.hero-frost.frost-thaw      { background: #dde7f0; color: #23384a; }
.hero-frost.frost-recovered { background: #e6f4ec; color: #1e5c38; }

/* ── Today-page hero: drainage-model sub-block (§7.26 / §7.15 / §7.32) ── */
.drainage-model {
  background: var(--dirt);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}
.drainage-model-head {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.drainage-model-head .hero-drain-label { margin-left: auto; }
.drainage-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.6rem;
}
.drainage-stat-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1;
}
.drainage-stat-lbl {
  font-size: 0.64rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
/* Templated per-trail "why" line — drying behaviour, never a soil claim */
.drainage-why {
  font-size: 0.75rem;
  color: #40453f;
  line-height: 1.45;
  border-top: 1px dashed var(--border);
  padding-top: 0.55rem;
}
.drainage-why b { color: var(--forest); }

.hero-drain {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-drain-label {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.hero-drain-desc {
  font-size: 0.68rem;
  color: var(--muted);
}
.drain-fast    { background: #e6f4ec; color: #1a6b30; }
.drain-avg     { background: #f0f0f0; color: #555;    }
.drain-slow    { background: #fff3e0; color: #b06000; }
.drain-slowest { background: #fdf0e6; color: var(--orange); }

.hero-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.85rem 0 0.6rem;
}
.hero-updated {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.hero-updated .dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Inside hero card, ride-window summaries are plain text (no background strips) */
/* Base .ride-window-summary rules live in dashboard.css */
.hero-card .ride-window-summary {
  padding: 0;
  border: none;
  background: none;
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-card .ride-window-summary.good { background: none; color: var(--green); }
.hero-card .ride-window-summary.warn { background: none; color: var(--amber-ink); }
.hero-card .ride-window-summary.bad  { background: none; color: var(--orange); }

/* ── Section (white card wrapper) ──────────────────────── */
.section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.section-header {
  padding: 0.85rem 1rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.rainsense-badge {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--blue);
  opacity: 0.7;
  margin-left: 0.4rem;
}

/* ── Hourly scroll ──────────────────────────────────────── */
.hourly-scroll {
  display: flex;
  overflow-x: auto;
  padding: 0.75rem 0.75rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hourly-scroll::-webkit-scrollbar { display: none; }
.hour-cell {
  flex-shrink: 0;
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.hour-time { font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.hour-time.now { color: var(--blue); font-weight: 700; }
.hour-icon { font-size: 1.35rem; line-height: 1; }
.hour-temp { font-size: 0.85rem; font-weight: 600; }
.hour-bar-wrap {
  width: 100%;
  height: 36px;
  display: flex;
  align-items: flex-end;
}
.hour-bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  min-height: 0;
}
.hour-amt {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--blue);
  height: 1rem;
  text-align: center;
  line-height: 1;
}

/* ── 7-day combined history (rain + trail state) ─────────── */
.hist7-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  padding: 0 1rem 1rem;
}
.hist7-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.hist7-day {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}
.hist7-day.today {
  color: var(--forest);
  font-weight: 700;
}
.hist7-bar-wrap {
  height: 40px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hist7-bar {
  width: 60%;
  background: var(--blue);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.hist7-bar.today-forecast {
  background: #6fa4c8;
  border: 1px dashed rgba(0,0,0,0.15);
}
.hist7-amt {
  font-size: 0.62rem;
  color: var(--muted);
  min-height: 0.8rem;
  line-height: 1;
}
.hist7-chip {
  width: 100%;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: help;
}
.hist7-chip.open    { background: var(--green); }
.hist7-chip.caution { background: var(--amber); color: var(--amber-ink); }   /* yellow needs dark ink for the ⚠ symbol */
.hist7-chip.wet     { background: var(--orange); }
.hist7-chip.thaw    { background: #5b7c99; }   /* spring-thaw ice-slate */
.hist7-chip.empty {
  background: transparent;
  border: 1px dashed var(--border);
  color: transparent;
  cursor: default;
}

/* ── Conditions grid ────────────────────────────────────── */
.cond-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 480px) {
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
}
.cond-cell {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cond-cell:nth-child(4n)      { border-right: none; }
.cond-cell:nth-last-child(-n+4) { border-bottom: none; }
@media (max-width: 480px) {
  .cond-cell:nth-child(2n) { border-right: none; }
  .cond-cell:nth-last-child(-n+2) { border-bottom: none; }
}
.cond-icon { font-size: 1.1rem; margin-bottom: 0.2rem; }
.cond-val  { font-size: 1.05rem; font-weight: 600; }
.cond-lbl  { font-size: 0.67rem; color: var(--muted); margin-top: 0.1rem; }
.cond-note { font-size: 0.72rem; color: var(--muted); line-height: 1.35; margin-top: 0.6rem; }

/* ── Drying outlook ─────────────────────────────────────── */
.drying-card { padding: 1rem; }
.drying-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.drying-row:last-child { border-bottom: none; }
.drying-time { font-size: 0.8rem; font-weight: 600; min-width: 60px; color: var(--muted); }
.drying-bar {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.drying-seg { height: 100%; }
.seg-wet     { background: var(--orange); }
.seg-caution { background: var(--amber); }
.seg-open    { background: var(--green); }
.drying-label { font-size: 0.75rem; font-weight: 600; min-width: 60px; text-align: right; }
.drying-label.s-open    { color: var(--green); }
.drying-label.s-caution { color: var(--amber-ink); }
.drying-label.s-wet     { color: var(--orange); }

/* ── Today page drying outlook ──────────────────────────── */
.today-drying-card { padding: 0.75rem 1rem 1rem; }
.today-drying-milestone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-top: 0.45rem;
  color: #333;
}
.today-drying-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Soil info card ─────────────────────────────────────── */
.soil-card {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.soil-badge {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--forest);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.soil-info-name { font-size: 0.85rem; font-weight: 600; }
.soil-info-desc { font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.4; }

/* ── Tab bar ─────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.25rem;
}
.tab {
  background: none;
  border: none;
  padding: 0.55rem 1rem 0.45rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.12s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--forest);
  font-weight: 600;
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forest);
}

/* ── AI narrative ────────────────────────────────────────── */
/* Native <details> disclosure — collapsed by default so the primary
   rideability call isn't buried under LLM prose. See loadNarrative. */
.narrative-details {
  margin: 0.5rem 0 0.75rem;
}
.narrative-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  touch-action: manipulation;
  list-style: none;                        /* hide the default marker */
  transition: background 0.12s, border-color 0.12s;
}
.narrative-summary::-webkit-details-marker { display: none; }
.narrative-summary::before {
  content: '▸';
  font-size: 0.7rem;
  transition: transform 0.15s;
  line-height: 1;
}
.narrative-details[open] .narrative-summary::before { transform: rotate(90deg); }
.narrative-summary:hover {
  background: var(--green-lt);
  border-color: var(--forest);
}
.narrative-box {
  margin: 0.55rem 0 0;
  padding: 0.7rem 1rem;
  background: #fff;
  border-radius: 10px;
  border-left: 3px solid var(--forest);
  font-size: 0.83rem;
  color: #444;
  line-height: 1.55;
  font-style: italic;
}

/* ── Condition report buttons ────────────────────────────── */
.report-section {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}
.report-label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.report-btns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.report-btn {
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.12s;
}
.report-btn:active { opacity: 0.75; }
.report-drier  { background: #e6f4ec; color: #1a5c34; }
.report-about  { background: #f0f0ee; color: #444; }
.report-wetter { background: #fff3e0; color: #8a4a00; }
.report-thanks {
  font-size: 0.85rem;
  color: #2d8c4e;
  font-weight: 600;
  padding: 0.25rem 0;
}
.report-summary {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0ee;
}
.report-summary-title {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.report-summary-counts {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.rsc-item { text-align: center; }
.rsc-num  { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.rsc-lbl  { font-size: 0.68rem; color: var(--muted); margin-top: 0.2rem; }
.rsc-drier  .rsc-num { color: #1a5c34; }
.rsc-about  .rsc-num { color: #555; }
.rsc-wetter .rsc-num { color: #8a4a00; }

/* ── Directions to trailheads ────────────────────────────── */
.directions-section { padding: 0; }
.directions-icon    { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.directions-arrow   { font-size: 0.85rem; color: var(--muted); margin-left: auto; flex-shrink: 0; }

/* Single-lot: one direct link that fills the section like a big button. */
.directions-single {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  transition: background 0.12s;
}
.directions-single:hover  { background: var(--green-lt); }
.directions-single:active { background: #d8ecdc; }
.directions-single-text   { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.directions-single-text strong { font-size: 0.9rem; color: var(--forest); }
.directions-single-note   { font-size: 0.75rem; color: var(--muted); }

/* Multi-lot: <details> disclosure with a chooser list. */
.directions-details { padding: 0.5rem 1rem 0.75rem; }
.directions-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--forest);
  cursor: pointer;
  touch-action: manipulation;
  list-style: none;
  transition: background 0.12s, border-color 0.12s;
}
.directions-summary::-webkit-details-marker { display: none; }
.directions-summary::before {
  content: '▸';
  font-size: 0.7rem;
  transition: transform 0.15s;
  line-height: 1;
}
.directions-details[open] .directions-summary::before { transform: rotate(90deg); }
.directions-summary:hover {
  background: var(--green-lt);
  border-color: var(--forest);
}
.directions-summary-label { font-weight: 600; }
.directions-count { color: var(--muted); font-weight: 400; font-size: 0.75rem; }

.directions-list {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.directions-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s, border-color 0.12s;
}
.directions-item:hover  { background: var(--green-lt); border-color: var(--forest); }
.directions-item:active { background: #d8ecdc; }
.directions-item-body   { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.directions-item-name   { font-size: 0.88rem; font-weight: 600; color: #222; }
.directions-item-note   { font-size: 0.72rem; color: var(--muted); }
