:root {
  color-scheme: light;
  --pine-950: #052f2a;
  --pine-900: #073b34;
  --pine-800: #0a493f;
  --pine-700: #0e5548;
  --pine-100: #dfece7;
  --snow: #f3f0e7;
  --paper: #fffdf8;
  --ink: #13211d;
  --muted: #6e7d77;
  --line: #d9dfda;
  --dawn: #d59a42;
  --sunset: #d45c3f;
  --sky: #159eb7;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --shadow: 0 18px 48px rgba(7, 59, 52, .09);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-numeric: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--snow); font-family: var(--font-sans); }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #f0b85c; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 99; padding: 12px 16px; color: white; background: var(--pine-900); border-radius: 10px; }
.skip-link:focus { top: 16px; }
.hero { position: relative; min-height: 400px; overflow: hidden; color: white; background: var(--pine-950); }
.hero-photo { position: absolute; inset: 0; opacity: .32; background: url('./assets/heroes/namchabarwa.webp') center 44% / cover no-repeat; transition: opacity .25s ease; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,47,42,.98) 0%, rgba(5,47,42,.86) 48%, rgba(5,47,42,.56) 100%), linear-gradient(0deg, rgba(5,47,42,.66), transparent 62%); }
.hero-shell, main, .footer-inner { position: relative; width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.hero-shell { min-height: 400px; display: grid; grid-template-columns: minmax(0,1fr) 460px; grid-template-areas: "brand miniapp" "copy miniapp"; column-gap: 48px; row-gap: 26px; align-items: center; padding: 58px 0 38px; }
.home-link { position: absolute; top: 18px; right: 0; z-index: 2; padding: 9px 14px; color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(4,36,32,.48); text-decoration: none; font-size: 13px; font-weight: 750; backdrop-filter: blur(12px); }
.home-link:hover { color: white; border-color: rgba(255,255,255,.5); background: rgba(4,36,32,.72); }
.brand-lockup { grid-area: brand; display: flex; align-items: center; gap: 18px; }
.hero-copy { grid-area: copy; align-self: start; }
.brand-mark { width: 88px; height: 88px; object-fit: contain; }
.brand-panel { padding: 13px 22px 10px; border-radius: 18px; background: rgba(255,253,248,.92); color: var(--pine-900); }
.brand-title { margin: 0; line-height: 0; }
.brand-wordmark { display: block; width: 260px; max-width: 100%; height: auto; }
.brand-panel p { margin: 2px 0 0; font-weight: 700; letter-spacing: .32em; text-align: center; }
.eyebrow, .section-kicker { margin: 0 0 10px; color: #90c9bc; font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.hero-lead { margin: 14px 0 0; color: rgba(255,255,255,.76); font-size: 18px; }
.miniapp-card { grid-area: miniapp; display: grid; grid-template-columns: minmax(276px,1fr) 110px; gap: 22px; align-items: center; padding: 26px; border: 1px solid rgba(255,255,255,.24); border-radius: 28px; background: rgba(4,36,32,.54); backdrop-filter: blur(16px); box-shadow: 0 18px 48px rgba(0,0,0,.16); }
.miniapp-card strong { display: block; margin: 9px 0; font-size: 23px; line-height: 1.45; }
.miniapp-card small { color: rgba(255,255,255,.63); line-height: 1.6; }
.miniapp-kicker { color: #f0c779; font-size: 13px; font-weight: 800; white-space: nowrap; }
.miniapp-benefits { display: block; white-space: nowrap; }
.miniapp-code { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 6px solid var(--paper); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
main { margin-top: -44px; padding-bottom: 80px; }
.control-deck, .model-deck, .result-shell, .evidence-shell, .reading-note { position: relative; border: 1px solid rgba(7,59,52,.11); background: rgba(255,253,248,.97); box-shadow: var(--shadow); }
.control-deck { padding: 30px; border-radius: var(--radius-xl); }
.control-head, .model-heading, .result-header, .evidence-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 600; }
.control-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.density-button { min-height: 46px; padding: 0 16px; color: var(--pine-700); border: 1px solid #b9cbc4; border-radius: 12px; background: #f5f7f3; cursor: pointer; font-weight: 750; }
.density-button[aria-pressed="true"] { color: white; border-color: var(--pine-700); background: var(--pine-700); }
.module-switch { display: flex; padding: 4px; border-radius: 15px; background: #e9eee9; }
.module-tab { min-height: 46px; padding: 0 22px; color: var(--muted); border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-weight: 750; }
.module-link { display: inline-grid; place-items: center; text-decoration: none; }
.module-tab.active { color: white; background: var(--pine-700); box-shadow: 0 6px 16px rgba(7,59,52,.18); }
.module-tab:disabled { opacity: .48; cursor: not-allowed; }
.selectors { display: grid; grid-template-columns: minmax(220px,1fr) minmax(220px,1fr) auto; gap: 14px; margin-top: 26px; }
label span { display: block; margin: 0 0 7px 3px; color: var(--muted); font-size: 13px; font-weight: 700; }
select { width: 100%; min-height: 52px; padding: 0 44px 0 15px; color: var(--ink); border: 1px solid #cfd8d3; border-radius: 14px; background: var(--paper); }
.refresh-button { align-self: end; min-height: 52px; padding: 0 19px; color: var(--pine-700); border: 1px solid #b9cbc4; border-radius: 14px; background: #edf4f1; cursor: pointer; font-weight: 750; }
.model-deck { margin-top: 18px; padding: 24px 30px 28px; border-radius: var(--radius-lg); }
.model-heading > p { margin: 0; color: var(--muted); }
.model-tabs { display: grid; grid-template-columns: 1.12fr repeat(4,1fr); gap: 10px; margin-top: 20px; }
.model-tab { min-height: 70px; padding: 12px 14px; text-align: left; color: var(--pine-900); border: 1px solid #d4ddd8; border-radius: 15px; background: #f4f5f0; cursor: pointer; }
.model-tab strong, .model-tab small { display: block; }
.model-tab small { margin-top: 4px; color: var(--muted); }
.model-tab.active { color: white; border-color: var(--pine-700); background: var(--pine-700); }
.model-tab.active small { color: rgba(255,255,255,.72); }
.result-shell { margin-top: 18px; padding: 32px; border-radius: var(--radius-xl); }
.result-title h2 { margin-top: 5px; font-size: 38px; }
.result-title p { margin: 9px 0 0; color: var(--muted); }
.location-facts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.location-fact { min-width: 210px; padding: 12px 15px; border: 1px solid #dae2dd; border-radius: 14px; background: #f5f6f1; }
.location-fact small, .location-fact b { display: block; }
.location-fact small { color: var(--muted); }
.location-fact b { font-family: var(--font-numeric); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.status-panel { margin-top: 22px; min-height: 50px; padding: 13px 16px; color: #486059; border-radius: 13px; background: #edf4f1; line-height: 1.55; }
.status-panel.error { color: #893926; background: #faebe6; }
.status-panel button { margin-left: 8px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 9px; color: inherit; background: transparent; cursor: pointer; }
.batch-time { display: inline-block; margin-left: 10px; padding-left: 10px; border-left: 1px solid rgba(72,96,89,.28); }
.batch-time time { font-weight: 750; color: var(--pine-800); }
.daily-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.day-card { min-width: 0; padding: 21px; border: 1px solid #dde2dd; border-radius: 20px; background: #f8f7f1; }
.day-card.featured { border-color: #b6cbc2; background: linear-gradient(145deg,#f8fbf8,#eff4ed); }
.date-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #dfe3df; }
.date-line strong { font-family: var(--font-numeric); font-size: 22px; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1; }
.date-line span { color: var(--muted); font-size: 13px; }
.period-title { margin: 17px 0 9px; color: var(--muted); font-size: 13px; font-weight: 750; }
.period-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.period { min-height: 65px; padding: 9px 6px; text-align: center; border-radius: 11px; background: rgba(255,255,255,.75); }
.period span, .period b { display: block; }
.period span { color: var(--muted); font-size: 12px; }
.period b { margin-top: 3px; font-family: var(--font-numeric); font-size: 22px; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1; }
.score-low { color: #c6533c; }.score-mid { color: #ad761e; }.score-good { color: #2a775c; }.score-high { color: var(--sky); }
.event-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.event-box { padding: 12px; border-radius: 12px; background: #efece1; }
.event-box span, .event-box small { display: block; color: var(--muted); }
.event-box strong { display: block; margin: 3px 0; font-family: var(--font-numeric); font-size: 28px; color: var(--sunset); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1; }
.event-box .lake-temperature-value { font-size: 22px; white-space: nowrap; }
.day-summary { min-height: 42px; margin: 14px 0 0; color: #4d5e58; font-size: 14px; line-height: 1.55; }
.winter-score { display: flex; align-items: baseline; gap: 6px; min-height: 34px; }
.winter-score strong { display: inline-flex; align-items: baseline; font-family: var(--font-numeric); font-size: 28px; font-weight: 750; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; font-synthesis: none; line-height: 1; letter-spacing: 0; }
.winter-score small { color: var(--muted); font-family: var(--font-numeric); font-size: 12px; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1; }
.score-separator { padding: 0 3px; color: var(--muted); font-size: .78em; font-weight: 500; line-height: 1; }
.winter-signal { min-height: 44px; margin: 6px 0 14px; color: var(--pine-700); font-weight: 750; line-height: 1.5; }
.winter-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.winter-facts div { min-width: 0; padding: 10px; border-radius: 11px; background: rgba(255,255,255,.75); }
.winter-facts span,.winter-facts b { display: block; }
.winter-facts span { color: var(--muted); font-size: 12px; }
.winter-facts b { margin-top: 4px; font-family: var(--font-numeric); font-size: 14px; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1.2; overflow-wrap: anywhere; }
.winter-locked { margin-top: 18px; padding: 18px 20px; border: 1px solid #d8dfda; border-radius: 15px; background: #f7f5ed; }
.winter-locked strong { color: var(--pine-800); }
.winter-locked p { margin: 8px 0 0; color: var(--muted); line-height: 1.9; }
.winter-locked p span { color: #b4bcb7; }
body[data-density="compact"] .control-deck,body[data-density="compact"] .model-deck,body[data-density="compact"] .result-shell,body[data-density="compact"] .reading-note { padding-top: 20px; padding-bottom: 20px; }
body[data-density="compact"] .daily-grid { gap: 10px; margin-top: 14px; }
body[data-density="compact"] .day-card { padding: 15px; border-radius: 15px; }
body[data-density="compact"] .period { min-height: 56px; padding: 6px 4px; }
body[data-density="compact"] .event-row { margin-top: 10px; }
body[data-density="compact"] .day-summary { min-height: 0; margin-top: 9px; }
body[data-density="compact"] .winter-signal { min-height: 0; margin-bottom: 9px; }
.compare-toolbar { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 4px 0 2px; }
.compare-toolbar-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
.compare-toolbar p { max-width: 460px; margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: right; }
.compare-date-switch { display: flex; gap: 8px; }
.compare-date-button { min-width: 116px; min-height: 52px; padding: 7px 14px; border: 1px solid #ccd8d2; border-radius: 13px; color: var(--pine-800); background: #f8f7f1; cursor: pointer; }
.compare-date-button span,.compare-date-button small { display: block; }
.compare-date-button span { font-family: var(--font-numeric); font-size: 18px; font-weight: 750; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1; }
.compare-date-button small { margin-top: 2px; color: var(--muted); }
.compare-date-button.active { border-color: var(--pine-700); color: white; background: var(--pine-700); box-shadow: 0 8px 18px rgba(7,59,52,.16); }
.compare-date-button.active small { color: rgba(255,255,255,.78); }
.model-comparison { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(235px,1fr)); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 5px; }
.model-card { min-width: 235px; scroll-snap-align: start; padding: 18px; border: 1px solid #d7dfda; border-radius: 18px; background: #f8f7f1; }
.model-card.primary { border-color: #a7c2b7; box-shadow: inset 0 3px 0 var(--pine-700); }
.model-card.unavailable { border-style: dashed; }
.model-card h3 { margin: 0 0 4px; font-size: 19px; }.model-card > small { color: var(--muted); }
.model-card-date { margin: 12px 0 0; color: var(--pine-800); font-size: 13px; font-weight: 750; }
.model-card .period-grid { margin-top: 15px; }
.model-card .event-box { margin-top: 12px; }
.skeleton-card { height: 340px; border-radius: 20px; background: linear-gradient(100deg,#ecefe9 30%,#f7f8f4 45%,#ecefe9 60%) 0 0/220% 100%; animation: shimmer 1.35s infinite linear; }
@keyframes shimmer { to { background-position-x: -220%; } }
.evidence-shell { margin-top: 18px; padding: 30px 32px; border-radius: var(--radius-xl); }
.hour-select { width: 235px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 22px; }
.metric { padding: 18px; border-radius: 16px; background: #eef3ef; }
.metric small, .metric b { display: block; }.metric small { color: var(--muted); }.metric b { margin-top: 6px; font-family: var(--font-numeric); font-size: 28px; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; line-height: 1; }
.path-evidence { margin-top: 14px; padding: 16px; border-radius: 15px; background: #f8f7f1; overflow-x: auto; }
.path-row { display: flex; align-items: stretch; min-width: 620px; }
.path-node { flex: 1; position: relative; padding: 13px 8px; text-align: center; border-right: 1px solid #d8deda; }
.path-node:last-child { border-right: 0; }.path-node small,.path-node b { display:block; }.path-node small { color: var(--muted); }.path-node b { margin-top:5px; }
.reading-note { margin-top: 18px; padding: 34px; border-radius: var(--radius-xl); }
.reading-note h2 { max-width: 820px; }.note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; color: var(--muted); line-height: 1.75; }
.search-summary { max-width: 1020px; margin: 18px 0 0; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.75; }
.site-footer { color: rgba(255,255,255,.76); background: var(--pine-950); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; padding: 38px 0 calc(38px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; font-size: 19px; }.footer-brand img { width: 46px; height: 46px; }
.footer-copy { text-align: right; }.footer-copy p { margin: 5px 0; }.footer-copy a { color: white; text-underline-offset: 3px; }
.empty-state { grid-column: 1/-1; padding: 64px 20px; text-align: center; color: var(--muted); border: 1px dashed #cbd5cf; border-radius: 18px; }

@media (max-width: 1024px) {
  .hero-shell { grid-template-columns: minmax(0,1fr) 420px; gap: 24px; }
  .miniapp-card { grid-template-columns: minmax(258px,1fr) 96px; gap: 16px; padding: 20px; }
  .brand-wordmark { width: 220px; }
  .model-tabs { grid-template-columns: repeat(3,1fr); }
  .daily-grid { grid-template-columns: repeat(2,1fr); }
  .day-card:last-child { grid-column: 1/-1; }
}
@media (max-width: 760px) {
  .hero { min-height: 500px; }.hero-shell, main, .footer-inner { width: min(100% - 28px, 620px); }
  .hero-shell { min-height: 500px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 24px; padding: 66px 0 68px; }
  .home-link { top: 12px; }
  .brand-lockup { order: 1; }.hero-copy { order: 2; }.miniapp-card { order: 3; }
  .brand-mark { width: 68px; height: 68px; }.brand-panel { padding: 10px 15px 8px; }.brand-wordmark { width: 190px; }.brand-panel p { font-size: 12px; }
  .hero-lead { font-size: 16px; }
  .miniapp-card { grid-template-columns: minmax(0,1fr) 96px; border-radius: 22px; }.miniapp-card strong { font-size: 18px; }
  main { margin-top: -32px; padding-bottom: 52px; }
  .control-deck,.model-deck,.result-shell,.evidence-shell,.reading-note { padding: 22px 18px; border-radius: 22px; }
  .control-head,.model-heading,.result-header,.evidence-heading { align-items: stretch; flex-direction: column; }
  .control-actions { align-items: stretch; flex-direction: column; }
  .density-button { align-self: flex-end; min-height: 44px; }
  .module-switch { display:grid; grid-template-columns:repeat(2,1fr); width: 100%; }.module-tab { min-height:48px; padding:0 10px; }
  .selectors { grid-template-columns: 1fr; }.refresh-button { width:100%; }
  .model-tabs { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; margin-left:-18px; margin-right:-18px; padding:0 18px 8px; }
  .model-tab { flex:0 0 158px; scroll-snap-align:start; }
  .model-heading > p { display:none; }
  .batch-time { display:block; margin:7px 0 0; padding:7px 0 0; border-left:0; border-top:1px solid rgba(72,96,89,.22); }
  .compare-toolbar { align-items:stretch; flex-direction:column; gap:10px; }
  .compare-toolbar p { max-width:none; text-align:left; }
  .compare-date-switch { width:100%; }
  .compare-date-button { flex:1; min-width:0; padding:7px 5px; }
  .daily-grid { grid-template-columns:1fr; }.day-card:last-child { grid-column:auto; }
  .event-box .lake-temperature-value { font-size: 18px; }
  .location-facts { justify-content:flex-start; width:100%; }.location-fact { flex:1; min-width:145px; }
  .metric-grid { grid-template-columns:repeat(2,1fr); }.hour-select { width:100%; }
  .winter-facts { grid-template-columns:1fr; }.winter-facts div { display:flex; justify-content:space-between; gap:12px; }.winter-facts b { margin-top:0; text-align:right; }
  .note-grid { grid-template-columns:1fr; gap:4px; }.footer-inner { flex-direction:column; gap:18px; }.footer-copy { text-align:left; font-size:13px; }
}
@media (max-width: 390px) {
  .hero-shell, main, .footer-inner { width: calc(100% - 20px); }.brand-lockup { gap:10px; }.brand-mark{width:58px;height:58px}.brand-wordmark{width:166px}.brand-panel p{letter-spacing:.2em}.miniapp-card{grid-template-columns:minmax(0,1fr) 100px;gap:12px;padding:16px}.miniapp-card>div:first-child>small{display:block;font-size:11px}.miniapp-kicker{font-size:11px}.miniapp-benefits{white-space:normal}.period-grid{gap:5px}.day-card{padding:17px}.metric{padding:14px}.metric b{font-size:24px}
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.snowpack-value{font-size:20px;font-weight:650;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.winter-day .winter-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.winter-day .winter-facts div{display:block}
.winter-day .winter-facts b{margin-top:4px;text-align:left;overflow-wrap:normal}
.winter-components{font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin:12px 0;color:var(--ink,#13211d)}
