/* Hero Dirt view. Shares tokens and base styles with style.css. */
/* Condition colors run wet -> dry like the rainfall map: blue mud, teal soft, green hero
   dirt, yellow-green good, orange dust. Red is reserved for closed. */
:root {
  --c-muddy: #1f4fa8; --c-soft: #14a0b8; --c-hero: #12b34b;
  --c-good: #8fb31a;  --c-dry: #e8892a;  --c-closed: #d03b3b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-muddy: #3f74d6; --c-soft: #22b6cc; --c-good: #a3c62a;
  }
}

.ai-badge {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; margin-left: 8px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em; color: #fff;
  background: #c96442; /* warm terracotta */
}
/* Claude's trail summary above the trail list */
.ai-summary {
  margin: 0 0 10px; padding: 9px 12px; border-radius: 8px;
  border-left: 3px solid #c96442; background: color-mix(in srgb, #c96442 8%, var(--surface));
  font-size: .875rem; line-height: 1.45;
}
.ai-summary p { margin: 0; }
.ai-summary .by { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); }
.ai-badge svg { width: 13px; height: 13px; flex: 0 0 auto; }
.small-btn { font-size: .8125rem; padding: 4px 10px; }
.btn { display: inline-block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; }
.btn:hover { border-color: var(--accent); }

.hd-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; color: #fff; white-space: nowrap;
}
.c-hero { background: var(--c-hero); } .c-good { background: var(--c-good); }
.c-dry { background: var(--c-dry); }   .c-soft { background: var(--c-soft); }
.c-muddy { background: var(--c-muddy); } .c-closed { background: var(--c-closed); }

/* Hero Dirt map: same size as the rainfall map / radar */
#hd-map { width: 100%; aspect-ratio: 600 / 550; border-radius: 8px; overflow: hidden; background: var(--grid); }
#hd-map[hidden], .view-hero[hidden], .view-chart[hidden] { display: none; }
.radar .hd-legend { margin-top: 10px; }
.region-label {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 6px; font: 600 11px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.region-label i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* Trail list sits beside the map; it scrolls inside its box instead of growing the page */
.trail-filters { display: flex; gap: 12px; align-items: center; margin: -4px 0 10px; }
.trail-list { display: grid; gap: 10px; max-height: 620px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 960px) { .trail-list { max-height: none; overflow: visible; } }
.outlook .day.sel { border-color: var(--text-2); box-shadow: inset 0 0 0 1px var(--text-2); }
.region-head { margin: 8px 0 -2px; font-size: .8125rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.trail {
  border: 1px solid var(--border); border-left: 6px solid var(--cc, var(--border)); border-radius: 10px;
  padding: 12px 14px; display: grid; gap: 8px;
}
.trail.selected { box-shadow: 0 0 0 2px var(--accent); }
.trail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.trail-name { font-weight: 700; font-size: 1rem; }
.trail-meta { font-size: .8125rem; color: var(--text-2); }
.trail-closed { color: var(--c-closed); font-weight: 600; font-size: .8125rem; }
.trail-advisory { color: var(--warn-text); background: var(--warn-bg); border-radius: 6px; padding: 4px 8px; font-size: .8125rem; font-weight: 600; }
.rider-says { font-size: .8125rem; }
.outlook { display: flex; gap: 6px; flex-wrap: wrap; }
.outlook .day { border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; text-align: center; min-width: 74px; display: grid; gap: 2px; }
.outlook .d { font-size: .75rem; color: var(--text-2); }
.outlook .c { font-size: .75rem; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8125rem; color: var(--text-2); }
.facts strong { color: var(--text); font-weight: 600; }
.learning { font-size: .75rem; color: var(--muted); }
.notes { font-size: .8125rem; color: var(--text-2); margin: 0; padding-left: 18px; }
.trail-links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8125rem; align-items: center; }
.report-btn { font-size: .8125rem; padding: 4px 10px; }

.report-form { border-top: 1px dashed var(--border); padding-top: 10px; display: grid; gap: 8px; }
.report-form .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.report-form .opts button { font-size: .8125rem; padding: 4px 10px; border-radius: 999px; }
.report-form .opts button[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--oc); }
.report-form textarea { font: inherit; font-size: .875rem; width: 100%; min-height: 54px; resize: vertical; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.report-form .row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.report-form .pw { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8125rem; color: var(--text-2); }
.report-form .pw input { font: inherit; font-size: .875rem; flex: 1 1 10em; max-width: 16em; padding: 5px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
/* bot trap: off-screen, never seen or tabbed to by people */
.report-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.report-form .msg { font-size: .8125rem; color: var(--text-2); }
.recent { font-size: .75rem; color: var(--text-2); display: grid; gap: 2px; }

.hd-about p { color: var(--text-2); font-size: .875rem; margin: 8px 0 0; max-width: 900px; }
