:root {
  color-scheme: light;
  --navy-950: #071b2a;
  --navy-900: #0b2538;
  --navy-800: #12384f;
  --blue: #1e6e91;
  --blue-bright: #3aa3cb;
  --ice: #dff4fb;
  --ice-strong: #bde7f3;
  --orange: #ed7a3a;
  --orange-soft: #fff0e5;
  --paper: #f4f7f8;
  --card: #ffffff;
  --subtle: #eef3f5;
  --ink: #102533;
  --muted: #586c78;
  --line: #d8e2e6;
  --line-strong: #c5d3d9;
  --green: #1b7a67;
  --green-soft: #e7f5f0;
  --amber: #a46614;
  --amber-soft: #fff5df;
  --red: #a13f3f;
  --red-soft: #fcecec;
  --shadow: 0 18px 44px rgba(9, 35, 51, .09);
  --card-shadow: 0 8px 24px rgba(9, 35, 51, .055);
  --focus: 0 0 0 4px rgba(58, 163, 203, .22);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #08151e;
  --card: #0e202b;
  --subtle: #122a37;
  --ink: #edf7fa;
  --muted: #94aab5;
  --line: #29404c;
  --line-strong: #385462;
  --ice: #153747;
  --ice-strong: #20536a;
  --blue: #87d0ed;
  --orange-soft: #3a261d;
  --green: #76d0b9;
  --green-soft: #163a32;
  --amber: #f0be68;
  --amber-soft: #3b2f19;
  --red: #f09c9c;
  --red-soft: #3b2225;
  --shadow: 0 18px 44px rgba(0, 0, 0, .3);
  --card-shadow: 0 9px 26px rgba(0, 0, 0, .23);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 10; padding: 12px; background: var(--card); color: var(--ink); }
.skip-link:focus { top: 12px; }
button:disabled { cursor: default; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 410px;
  overflow: hidden;
  padding: 52px 28px 170px;
  color: #fff;
  background:
    radial-gradient(circle at 76% 14%, rgba(100, 189, 213, .26), transparent 28%),
    radial-gradient(circle at 12% 115%, rgba(53, 125, 153, .28), transparent 40%),
    linear-gradient(120deg, #071c2c 0%, #0b3047 56%, #123f55 100%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 85%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: 6%;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(184, 228, 240, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(189,231,243,.025), 0 0 0 160px rgba(189,231,243,.018);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 54px;
  max-width: 1220px;
  margin: 0 auto;
}
.hero-copy { max-width: 780px; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.brand-mark { position: relative; display: inline-block; width: 36px; height: 28px; }
.brand-mark::before, .brand-mark i, .brand-mark b { content: ""; position: absolute; bottom: 0; width: 0; height: 0; border-style: solid; }
.brand-mark::before { left: 0; border-width: 0 14px 24px; border-color: transparent transparent #9dd8e8; }
.brand-mark i { left: 11px; border-width: 0 12px 19px; border-color: transparent transparent #fff; }
.brand-mark b { left: 21px; border-width: 0 8px 13px; border-color: transparent transparent #4eb2d2; }
.eyebrow, .section-kicker {
  margin: 0;
  color: #9fd5e4;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(49px, 7.2vw, 82px);
  line-height: .91;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.hero h1 span { color: #a9deec; }
.lede { max-width: 720px; margin: 23px 0 0; color: #d2e5eb; font-size: clamp(16px, 2vw, 19px); line-height: 1.56; }
.hero-side { display: flex; min-width: 250px; flex-direction: column; align-items: flex-end; gap: 18px; }
.hero-actions { display: flex; align-items: center; gap: 9px; }
.refresh-button, .theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  color: #f6fbfd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
  transition: .18s ease;
}
.refresh-button { padding: 9px 13px; }
.theme-toggle { padding: 9px 11px; }
.refresh-button:hover, .theme-toggle:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); }
.refresh-button:focus-visible, .theme-toggle:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(117,208,232,.25); }
.refresh-button:disabled { opacity: .65; cursor: wait; }
.refresh-button.refreshing .refresh-icon { animation: spin .8s linear infinite; }
.theme-icon { position: relative; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; }
.theme-icon::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: #123c51; }
:root[data-theme="dark"] .theme-icon { background: currentColor; }
:root[data-theme="dark"] .theme-icon::after { display: none; }
.origin-card {
  display: flex;
  min-width: 248px;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 13px;
  background: rgba(3, 18, 28, .22);
  backdrop-filter: blur(8px);
}
.origin-pin { position: relative; width: 26px; height: 26px; border: 2px solid #82d6eb; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.origin-pin::after { content: ""; position: absolute; top: 7px; left: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.origin-card div { display: flex; flex-direction: column; }
.origin-card span:not(.origin-pin) { color: #9fc0cc; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.origin-card strong { font-size: 14px; }
.mountain-line { position: absolute; z-index: 1; bottom: -1px; left: 0; width: 100%; height: 195px; }
.ridge-back { fill: rgba(83, 153, 179, .25); }
.ridge-front { fill: var(--paper); }

main { max-width: 1220px; margin: 0 auto; padding: 0 24px 72px; }
.snapshot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.45fr;
  overflow: hidden;
  margin-top: -78px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.metric, .sync-state { min-height: 104px; padding: 22px 24px; }
.metric { display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); }
.metric-icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--ice); color: var(--blue); font-size: 18px; }
.metric > div, .sync-state > div { display: flex; min-width: 0; flex-direction: column; }
.metric strong { color: var(--navy-800); font-size: 22px; line-height: 1.15; }
:root[data-theme="dark"] .metric strong { color: var(--ink); }
.metric span:not(.metric-icon), .sync-state span { color: var(--muted); font-size: 11px; }
.sync-state { display: flex; align-items: center; justify-content: flex-end; gap: 12px; text-align: right; }
.sync-state strong { font-size: 12px; }
.live-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #31a985; box-shadow: 0 0 0 5px rgba(49,169,133,.12); }
.live-dot.error { background: var(--red); box-shadow: 0 0 0 5px rgba(161,63,63,.12); }

.decision-section, .planner { margin-top: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.section-kicker { margin-bottom: 5px; color: var(--blue); }
.section-heading h2 { margin: 0; font-size: clamp(27px, 3.5vw, 39px); line-height: 1.08; letter-spacing: -.035em; }
.section-note { max-width: 410px; margin: 0 0 3px; color: var(--muted); font-size: 12px; text-align: right; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.decision-card {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}
button.decision-card { width: 100%; color: inherit; cursor: pointer; font: inherit; text-align: left; }
button.decision-card:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--blue-bright); box-shadow: var(--shadow); }
button.decision-card:focus-visible { outline: none; box-shadow: var(--focus); }
.decision-card::after { content: ""; position: absolute; right: -28px; bottom: -42px; width: 125px; height: 125px; border: 24px solid var(--ice); border-radius: 50%; opacity: .54; }
.decision-card.accent { border-color: #9bd5e4; background: linear-gradient(145deg, var(--card), var(--ice)); }
.decision-label { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.decision-label::before { content: ""; width: 17px; height: 2px; background: currentColor; }
.decision-card h3 { position: relative; z-index: 1; margin: 0; font-size: 22px; letter-spacing: -.025em; }
.decision-card .decision-detail { position: relative; z-index: 1; margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.decision-stat { position: relative; z-index: 1; display: flex; align-items: baseline; gap: 7px; margin-top: 16px; }
.decision-stat strong { font-size: 26px; letter-spacing: -.04em; }
.decision-stat span { color: var(--muted); font-size: 11px; }
.loading-card { background: linear-gradient(90deg, var(--card), var(--subtle), var(--card)); background-size: 220% 100%; animation: shimmer 1.6s infinite linear; }

.alert-section { margin-top: 28px; padding: 18px 20px; border: 1px solid #e7c78d; border-radius: 14px; background: var(--amber-soft); }
.alert-title { display: flex; align-items: center; gap: 10px; }
.alert-title > span { display: inline-flex; width: 23px; height: 23px; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber); color: var(--card); font-size: 12px; font-weight: 900; }
.alert-title h2 { margin: 0; color: var(--amber); font-size: 14px; }
.alerts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; margin-top: 11px; }
.alert-item { color: var(--ink); font-size: 12px; text-decoration-color: rgba(164,102,20,.4); text-underline-offset: 3px; }
.alert-item span { color: var(--amber); font-weight: 800; }

.planner { padding-top: 12px; }
.planner-heading { align-items: center; }
.model-note { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 750; }
.model-note span { color: var(--blue-bright); font-size: 18px; }
.day-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
}
.day-button { min-width: 0; padding: 13px 8px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; text-align: center; }
.day-button:last-child { border-right: 0; }
.day-button span, .day-button strong { display: block; }
.day-button span { font-size: 10px; font-weight: 720; text-transform: uppercase; }
.day-button strong { margin-top: 2px; color: var(--ink); font-size: 15px; }
.day-button:hover { background: var(--subtle); }
.day-button.selected { background: var(--navy-900); color: #a9d8e5; }
.day-button.selected strong { color: #fff; }
.day-button:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--blue-bright); outline-offset: -4px; }

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.65fr) repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.filters label { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.filters label > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .035em; }
.filters input[type="search"], .filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
.filters select { padding: 8px 28px 8px 10px; }
.filters input[type="search"] { border: 0; background: transparent; padding: 8px 9px 8px 3px; }
.search-field > div { display: flex; min-height: 42px; align-items: center; padding-left: 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); color: var(--muted); }
.filters select:focus, .search-field > div:focus-within { border-color: var(--blue-bright); box-shadow: var(--focus); }
.favorite-filter { align-self: end; min-height: 42px; flex-direction: row !important; align-items: center; justify-content: center; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); white-space: nowrap; cursor: pointer; }
.favorite-filter input { accent-color: var(--blue); }
.favorite-filter span { color: var(--ink) !important; }

.status-message { margin-top: 15px; padding: 12px 14px; border: 1px solid var(--amber); border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 12px; }
.results { display: grid; gap: 17px; margin-top: 20px; }
.mountain-card {
  scroll-margin-top: 16px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mountain-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.mountain-card:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.mountain-identity { min-width: 0; overflow-wrap: anywhere; }
.card-header-actions { flex-shrink: 0; }
.mountain-card.flash { animation: flash-card 1.2s ease; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.mountain-location { margin: 0 0 4px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.mountain-name { margin: 0; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -.04em; }
.mountain-route { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.card-header-actions { display: flex; align-items: center; gap: 10px; }
.favorite-button { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 21px; }
.favorite-button:hover, .favorite-button[aria-pressed="true"] { border-color: #e6a445; background: var(--amber-soft); color: #c77b13; }
.favorite-button:focus-visible { outline: none; box-shadow: var(--focus); }
.score-badge { display: flex; width: 60px; height: 60px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #98cfde; border-radius: 50%; background: var(--ice); color: var(--blue); }
.score-badge strong { font-size: 21px; line-height: 1; }
.score-badge span { margin-top: 2px; font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--subtle); color: var(--muted); font-size: 9px; font-weight: 820; letter-spacing: .035em; text-transform: uppercase; }
.badge.signal-strong { background: var(--green-soft); color: var(--green); }
.badge.signal-watch { background: var(--amber-soft); color: var(--amber); }
.badge.signal-marginal { background: var(--red-soft); color: var(--red); }
.badge.signal-offseason { background: var(--ice); color: var(--blue); }
.badge.night { background: #262544; color: #bdb9ff; }
.decision-line { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--blue-bright); border-radius: 0 9px 9px 0; background: var(--ice); }
.decision-signal { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--blue-bright); }
.decision-line p { margin: 0; color: var(--ink); font-size: 12px; }

.condition-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); overflow: hidden; margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; }
.condition { display: flex; min-height: 92px; flex-direction: column; justify-content: center; padding: 14px 17px; border-right: 1px solid var(--line); }
.condition:last-child { border-right: 0; }
.condition > span, .condition small { color: var(--muted); font-size: 10px; }
.condition > strong { margin: 2px 0; font-size: 22px; letter-spacing: -.03em; }
.primary-condition { flex-direction: row; align-items: center; justify-content: flex-start; gap: 13px; background: var(--subtle); }
.primary-condition > div { display: flex; flex-direction: column; }
.primary-condition strong { color: var(--blue); font-size: 28px; }
.condition-symbol { display: inline-flex; width: 37px; height: 37px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ice-strong); color: var(--blue); font-size: 19px; }

.road-line { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: var(--subtle); }
.road-indicator { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.road-line.caution .road-indicator { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.road-line.high .road-indicator { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.road-line.unknown .road-indicator { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.road-line strong { display: block; font-size: 11px; }
.road-line p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.mountain-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 17px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mountain-facts > div { display: flex; flex-direction: column; padding: 0 13px; border-right: 1px solid var(--line); }
.mountain-facts > div:first-child { padding-left: 0; }
.mountain-facts > div:last-child { border-right: 0; }
.mountain-facts strong { font-size: 14px; }
.mountain-facts span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 17px; }
.official-actions, .drive-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.card-footer a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); font-size: 10px; font-weight: 780; text-decoration: none; }
.card-footer a:hover { border-color: var(--blue); color: var(--blue); }
.card-footer a:focus-visible { outline: none; box-shadow: var(--focus); }
.card-footer .primary-link { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.card-footer .primary-link:hover { background: var(--navy-800); color: #fff; }
.drive-actions a { background: var(--subtle); }

.empty { margin-top: 20px; padding: 55px 20px; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); text-align: center; }
.empty > span { font-size: 40px; color: var(--blue-bright); }
.empty h2 { margin: 8px 0 4px; color: var(--ink); font-size: 20px; }
.empty p { margin: 0; font-size: 12px; }
.truth-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.truth-strip > div { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 0 23px; border-right: 1px solid var(--line); }
.truth-strip > div:first-child { padding-left: 0; }
.truth-strip > div:last-child { border-right: 0; }
.truth-strip span { color: var(--blue-bright); font-size: 10px; font-weight: 850; }
.truth-strip p { margin: 0; color: var(--muted); font-size: 11px; }
.truth-strip strong { color: var(--ink); }
footer:not(.card-footer) { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 29px max(24px, calc((100% - 1172px) / 2)); border-top: 1px solid var(--line); background: var(--card); color: var(--muted); }
footer:not(.card-footer) strong { color: var(--ink); font-size: 13px; }
footer:not(.card-footer) p { margin: 3px 0 0; font-size: 10px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes flash-card { 0%, 100% { box-shadow: var(--card-shadow); } 35% { box-shadow: 0 0 0 5px rgba(58,163,203,.2), var(--shadow); } }

@media (max-width: 1050px) {
  .snapshot { grid-template-columns: repeat(3, 1fr); }
  .sync-state { grid-column: 1 / -1; min-height: 74px; justify-content: flex-start; border-top: 1px solid var(--line); text-align: left; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .favorite-filter { max-width: 150px; }
}

@media (max-width: 790px) {
  .hero { min-height: 460px; padding: 36px 20px 170px; }
  .hero-inner { flex-direction: column; gap: 28px; }
  .hero-side { width: 100%; flex-direction: row-reverse; align-items: center; justify-content: space-between; }
  .origin-card { min-width: 0; }
  .decision-grid { grid-template-columns: 1fr; }
  .decision-card { min-height: 0; }
  .alerts { grid-template-columns: 1fr; }
  .day-picker { overflow-x: auto; grid-template-columns: repeat(7, minmax(92px, 1fr)); }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
  .condition:nth-child(2) { border-right: 0; }
  .condition:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-footer { align-items: flex-start; flex-direction: column; }
  .truth-strip { grid-template-columns: 1fr; }
  .truth-strip > div { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .truth-strip > div:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .hero { min-height: 500px; padding-inline: 16px; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .lede { font-size: 15px; }
  .hero-side { align-items: stretch; flex-direction: column-reverse; }
  .hero-actions { width: 100%; }
  .refresh-button { flex: 1; }
  .origin-card { width: 100%; }
  main { padding: 0 13px 48px; }
  .snapshot { grid-template-columns: 1fr; margin-top: -72px; }
  .metric { min-height: 77px; padding: 16px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sync-state { grid-column: auto; min-height: 67px; border-top: 0; }
  .decision-section, .planner { margin-top: 42px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-note { text-align: left; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .favorite-filter { max-width: none; }
  .mountain-card { padding: 18px 15px; }
  .card-header-actions { gap: 5px; }
  .score-badge { width: 54px; height: 54px; }
  .condition { padding: 12px; }
  .primary-condition { gap: 8px; }
  .condition > strong { font-size: 19px; }
  .primary-condition strong { font-size: 23px; }
  .mountain-facts { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .mountain-facts > div:nth-child(2) { border-right: 0; }
  .mountain-facts > div:nth-child(3) { padding-left: 0; }
  .official-actions, .drive-actions { width: 100%; }
  .card-footer a { flex: 1; }
  footer:not(.card-footer) { align-items: flex-start; flex-direction: column; padding-inline: 18px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 42px; }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
