/* Styles for the generated station/country pages (/estacion/..., /pais/...).
   Mirrors the app's own components (docs/index.html) so both look the same. */
:root {
  color-scheme: light;
  --page: #eef1f4;
  --bg: #ffffff;
  --surface-2: #f1f4f7;
  --text-primary: #10161c;
  --text-secondary: #47525c;
  --text-muted: #66717d;
  --border: rgba(16,22,28,0.09);
  --accent: #216dc9;
  --accent-soft: #dfeafb;
  --diff-novice: hsl(125 82% 30%);
  --diff-easy: hsl(208 88% 41%);
  --diff-intermediate: hsl(359 78% 49%);
  --diff-advanced: hsl(0 0% 12%);
  --diff-expert: hsl(0 0% 12%);
  --diff-double: var(--diff-expert);
  --diff-freeride: hsl(34 93% 46%);
  --diff-extreme: hsl(34 93% 46%);
  --diff-other: hsl(0 0% 55%);
  --svc-restaurant: #d9480f; --svc-cafe: #8a5a2b; --svc-bar: #9c2963; --svc-fast_food: #c99400;
  --svc-toilets: #2f7fd1; --svc-first_aid: #d92b2b; --svc-pharmacy: #1f9d6b; --svc-alpine_hut: #6b4a33; --svc-sports: #0e8577;
  --shadow: 0 24px 60px -24px rgba(16,22,28,0.35);
  --hero-1: #163a5c;
  --hero-2: #2a78d6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #05070a; --bg: #12161c; --surface-2: #1b2129;
    --text-primary: #f2f5f8; --text-secondary: #c3ccd6; --text-muted: #8a94a0;
    --border: rgba(255,255,255,0.10); --accent: #3987e5; --accent-soft: #1c3559;
    --diff-novice: hsl(125 60% 48%); --diff-easy: hsl(208 85% 60%); --diff-intermediate: hsl(359 75% 62%);
    --diff-advanced: hsl(0 0% 90%); --diff-expert: hsl(0 0% 90%); --diff-freeride: hsl(34 88% 58%);
    --diff-extreme: hsl(34 88% 58%); --diff-other: hsl(0 0% 55%);
    --svc-restaurant: #ff8c4a; --svc-cafe: #c9915a; --svc-bar: #e068c0; --svc-fast_food: #f0c34d;
    --svc-toilets: #6ab3f5; --svc-first_aid: #ff6b6b; --svc-pharmacy: #4fd699; --svc-alpine_hut: #b08968; --svc-sports: #4fe0cf;
    --hero-1: #0b2036; --hero-2: #164a80;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #05070a; --bg: #12161c; --surface-2: #1b2129;
  --text-primary: #f2f5f8; --text-secondary: #c3ccd6; --text-muted: #8a94a0;
  --border: rgba(255,255,255,0.10); --accent: #3987e5; --accent-soft: #1c3559;
  --diff-novice: hsl(125 60% 48%); --diff-easy: hsl(208 85% 60%); --diff-intermediate: hsl(359 75% 62%);
  --diff-advanced: hsl(0 0% 90%); --diff-expert: hsl(0 0% 90%); --diff-freeride: hsl(34 88% 58%);
  --diff-extreme: hsl(34 88% 58%); --diff-other: hsl(0 0% 55%);
  --svc-restaurant: #ff8c4a; --svc-cafe: #c9915a; --svc-bar: #e068c0; --svc-fast_food: #f0c34d;
  --svc-toilets: #6ab3f5; --svc-first_aid: #ff6b6b; --svc-pharmacy: #4fd699; --svc-alpine_hut: #b08968; --svc-sports: #4fe0cf;
  --hero-1: #0b2036; --hero-2: #164a80;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif; -webkit-text-size-adjust: 100%; }
.app { max-width: 560px; margin: 0 auto; background: var(--bg); color: var(--text-primary); min-height: 100vh; }
@media (min-width: 600px) {
  body { padding-block: 28px; }
  .app { border-radius: 22px; overflow: hidden; overflow: clip; box-shadow: var(--shadow); border: 1px solid var(--border); min-height: 0; }
}
h1, h2, h3 { font-family: 'Barlow Condensed', sans-serif; margin: 0; text-wrap: balance; }
a { color: var(--accent); }

/* top bar + hero (same as the app's station screen) */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px; }
.back-btn {
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 1.4px; font-size: 12.5px;
  text-transform: uppercase; color: var(--text-muted);
}
.back-btn .chev { font-size: 16px; color: var(--text-secondary); }
.hero { position: relative; padding: 16px 18px 16px; background: linear-gradient(160deg, var(--hero-1), var(--hero-2) 130%); color: #fff; overflow: hidden; }
.hero svg.peaks { position: absolute; inset: auto 0 0 0; width: 100%; height: 64%; opacity: 0.55; }
.hero-content { position: relative; z-index: 1; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
.badge { font-size: 10.5px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.16); color: #fff; }
.hero-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hero h1 { font-size: 26px; font-weight: 700; line-height: 1.05; }
.hero .place { font-size: 12.5px; opacity: 0.85; margin-top: 3px; }
.hero a.site {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; margin-top: 3px;
  font-size: 11px; color: #fff; text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 999px; padding: 4px 10px;
}
.hero-stats { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.hero-stat { background: rgba(255,255,255,0.13); border-radius: 9px; padding: 6px 9px; min-width: 60px; }
.hero-stat .v { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.1; }
.hero-stat .k { font-size: 8.5px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 1px; white-space: nowrap; }
.hero-domain { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-domain-title { font-size: 12.5px; font-weight: 700; }
.hero-domain-note { font-size: 10.5px; opacity: 0.75; margin: 3px 0 8px; line-height: 1.4; }
.hero-domain .chip { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.32); text-decoration: none; }
.hero-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
  background: #fff; color: #10324f; font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 11px 16px; border-radius: 999px;
}
.hero-cta svg { width: 18px; height: 18px; }
.hero-actions { display: flex; gap: 8px; margin-top: 10px; }
.hero-action {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
  padding: 9px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.12); color: #fff; font: inherit; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.hero-action:hover { background: rgba(255,255,255,0.22); }
.hero-action svg { width: 16px; height: 16px; }
.hero-action.is-fav svg { color: #ffd257; }
.hero-action.is-fav svg path { fill: currentColor; }
/* Phones: "Save" is just its star, so the three actions fit on one line in every language. */
@media (max-width: 719px) { .hero-action.js-fav { flex: 0 0 auto; padding: 8px 11px; font-size: 0; gap: 0; } .hero-action.js-fav span { display: none; } }

/* sections */
section { padding: 20px 18px; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.section-head h2 { font-size: 18px; font-weight: 600; }
.section-head .sub { font-size: 12px; color: var(--text-muted); }
.intro { font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

.barlist { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 8px; }
.bar-row-label { font-size: 12px; color: var(--text-primary); line-height: 1.2; }
.bar-track { height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px 2px 2px 4px; }
.bar-value { font-size: 12px; color: var(--text-secondary); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }

.segmented { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.seg-btn { flex: 1; padding: 8px 6px; border: none; border-radius: 9px; cursor: pointer; background: none; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.seg-btn[aria-selected="true"] { background: var(--bg); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.seg-count { font-weight: 500; font-size: 11px; color: var(--text-muted); margin-left: 2px; }
.catalog-panel[hidden] { display: none; }
.catalog-empty { padding: 18px 12px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

.list-scroll { max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.item:last-child { border-bottom: none; }
.item .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.item-main { flex: 1; min-width: 0; }
.item-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.pill { display: inline-block; font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 5px; }
.item.run-item { cursor: pointer; user-select: none; }
.item.run-item:hover, .item.run-item:focus-visible, a.item:hover { background: var(--surface-2); outline: none; }
.item-chevron { flex-shrink: 0; margin-top: 3px; color: var(--text-muted); font-size: 13px; transition: transform 0.15s ease; }
.item.run-item[aria-expanded="true"] .item-chevron { transform: rotate(90deg); color: var(--accent); }

.run-profile { border-bottom: 1px solid var(--border); background: var(--surface-2); padding: 14px 12px 12px; }
.run-profile[hidden] { display: none; }
.run-profile.empty { padding: 12px; font-size: 12px; color: var(--text-muted); font-style: italic; }
.run-profile svg { width: 100%; height: auto; display: block; overflow: visible; }
.run-profile-caption { font-size: 10.5px; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.run-profile-caption .zone-key { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; white-space: nowrap; }
.run-profile-caption .zone-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.run-profile-steepest { margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-primary); }
.run-profile-part-heading { font-size: 11px; font-weight: 700; color: var(--text-secondary); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.run-profile-part-heading:not(:first-child) { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.run-profile-endlabel { font-size: 9px; fill: var(--text-secondary); font-family: 'IBM Plex Sans', sans-serif; }
.run-profile-axis { stroke: var(--text-muted); stroke-width: 1; opacity: 0.35; }
.run-profile-gridline { stroke: var(--text-muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.35; }

.quality-list { display: flex; flex-direction: column; gap: 10px; }
.quality-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.quality-row .name { color: var(--text-secondary); }
.quality-row .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.quality-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

.cta-block {
  display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none; padding: 12px 16px; border-radius: 999px;
}

/* country pages (same as the app's station list) */
.list-header { padding: 22px 18px 14px; }
.eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.eyebrow a { color: inherit; text-decoration: none; }
.list-header h1 { font-size: 30px; font-weight: 700; margin-top: 4px; }
.list-sub { font-size: 13px; color: var(--text-secondary); margin: 8px 0 0; line-height: 1.5; }
.station-list { padding: 6px 18px 24px; display: flex; flex-direction: column; gap: 8px; }
.station-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-2); text-decoration: none; color: inherit;
}
.station-card:hover { border-color: var(--accent); }
.station-card .info { flex: 1; min-width: 0; }
.station-card .name { font-size: 14.5px; font-weight: 600; line-height: 1.25; display: flex; align-items: center; gap: 10px; }
.flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.10); }
.station-card .region { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.station-card .stats { text-align: right; flex-shrink: 0; }
.station-card .km { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; color: var(--accent); line-height: 1; }
.station-card .km-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 2px; }
.station-card .chevron { color: var(--text-muted); font-size: 20px; flex-shrink: 0; }

/* guides / rankings (/guias/...) */
.guide-head { padding: 22px 18px 6px; }
.guide-head h1 { font-size: 30px; font-weight: 700; margin-top: 4px; line-height: 1.1; }
.guide-wrap { padding: 8px 18px 24px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-2); text-decoration: none; color: inherit;
}
.guide-item:hover { border-color: var(--accent); }
.guide-rank { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; color: var(--text-muted); width: 24px; text-align: center; flex-shrink: 0; }
.guide-list li:nth-child(-n+3) .guide-rank { color: var(--accent); }
.guide-thumb { width: 56px; height: 60px; border-radius: 10px; object-fit: cover; background: #0f2a48; flex-shrink: 0; }
.guide-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.guide-name { font-size: 15px; font-weight: 600; line-height: 1.25; display: flex; align-items: center; gap: 8px; }
.guide-name .flag { width: 20px; height: 15px; }
.guide-name .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.guide-sub { font-size: 12px; color: var(--text-secondary); }
.guide-meta { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.guide-metric { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; }
.guide-metric b { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; color: var(--accent); line-height: 1; }
.guide-metric small { font-size: 9.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 3px; }
.guide-spark { display: none; align-items: flex-end; gap: 2px; height: 26px; flex-shrink: 0; }
.guide-spark i { display: block; width: 5px; min-height: 2px; border-radius: 2px 2px 1px 1px; background: #8cc4ff; }
.guide-spark i.z { background: var(--border); }
.guide-method, .guide-related { padding: 22px 0 0; border: none; }
.guide-method h2, .guide-related h2, .guide-group h2 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.guide-related .chip { text-decoration: none; color: var(--text-secondary); }
.guide-empty { padding: 10px 0; }
.guide-stale { font-size: 13px; line-height: 1.5; color: #8a5a00; background: #fff4d6; border: 1px solid #f0d58a; border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; }
.guide-group { padding: 10px 0 14px; border: none; }
.guide-cards { display: grid; gap: 8px; }
.guide-card {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface-2); text-decoration: none; color: inherit;
}
.guide-card:hover { border-color: var(--accent); }
.guide-card img { width: 52px; height: 56px; border-radius: 10px; object-fit: cover; background: #0f2a48; flex-shrink: 0; }
.guide-card-title { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.guide-card-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-link {
  display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; color: var(--text-primary);
  text-decoration: none; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border);
}
.rank-link:hover { border-color: var(--accent); }
.rank-medal { color: #e0a526; flex-shrink: 0; }
@media (min-width: 600px) { .guide-spark { display: flex; } }

/* /app: Ski Info on your phone */
.app-hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 26px 18px 30px; background: linear-gradient(160deg, var(--hero-1), var(--hero-2) 130%); }
.app-hero .peaks { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; pointer-events: none; }
.app-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.app-eyebrow { color: rgba(255,255,255,0.8); text-align: left; }
.app-logo { display: block; margin: 16px auto 12px; border-radius: 20px; box-shadow: 0 14px 30px -12px rgba(0,0,0,0.6); }
.app-hero h1 { font-size: 30px; font-weight: 700; }
.app-hero p { font-size: 14px; line-height: 1.55; opacity: 0.9; margin: 8px 0 0; }
.app-wrap { padding: 16px 18px 24px; max-width: 760px; margin: 0 auto; }
.app-benefits { display: grid; gap: 8px; margin-bottom: 14px; }
.app-benefits div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.app-benefits b { display: block; font-size: 13.5px; }
.app-benefits span { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }
.app-card { border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; background: var(--bg); }
.app-card h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 10px; }
.app-card h2 svg { width: 22px; height: 22px; color: var(--accent); }
.app-lead { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); margin: 0 0 12px; }
.app-note { font-size: 12px; line-height: 1.5; color: var(--text-muted); margin: 10px 0 0; }
.app-inapp { font-size: 14px; font-weight: 600; color: var(--accent); margin: 0; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #10161c; color: #fff; text-decoration: none; line-height: 1.1; font-weight: 700; font-size: 17px;
}
.store-badge svg { width: 24px; height: 24px; color: #3ddc84; }
.store-badge small { display: block; font-size: 10.5px; font-weight: 500; opacity: 0.8; }
.store-badge.soon { background: #545d67; }
.store-badge.soon small { opacity: 1; }
.ios-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ios-steps li { display: grid; grid-template-columns: 84px auto 1fr; gap: 10px; align-items: center; font-size: 13.5px; line-height: 1.5; }
.ios-steps .phone { width: 84px; height: auto; }
.step-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ios-steps .ico svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--accent); }
@media (min-width: 1000px) {
  .app-hero { padding: 44px 0 50px; }
  .app-hero h1 { font-size: 46px; }
  .app-hero p { font-size: 16px; }
  .app-wrap { padding-top: 28px; }
  .app-benefits { grid-template-columns: repeat(3, 1fr); }
  .ios-steps { grid-template-columns: repeat(3, 1fr); }
  .ios-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ios-steps .phone { width: 120px; }
  .app-card { padding: 22px 24px; }
}

/* "Also available in English/Spanish" (page() in build_seo_pages.py) */
.lang-hint {
  position: fixed; top: 10px; left: 12px; right: 12px; z-index: 45; max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; font-size: 13px;
  background: var(--bg); color: var(--text-primary); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.45);
}
.lang-hint[hidden] { display: none; }
.lang-hint span { flex: 1; min-width: 0; }
.lang-hint a { font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.lang-hint button { border: none; background: var(--surface-2); color: var(--text-secondary); width: 26px; height: 26px; border-radius: 7px; font-size: 16px; cursor: pointer; }

footer.credit { padding: 18px; font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.7; }
footer.credit a { color: var(--text-secondary); }

/* ---------- desktop: full-width hero, two-column layout, card grid ---------- */
.map-card .cta-block { margin-top: 12px; }
.cta-block svg { width: 18px; height: 18px; }
@media (min-width: 1000px) {
  .main .snow-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body { padding-block: 0; }
  .app { max-width: none; border: none; border-radius: 0; box-shadow: none; background: var(--page); min-height: 100vh; }
  .topbar { max-width: 1200px; margin: 0 auto; padding: 14px 32px; }
  .hero { padding: 34px 0 36px; }
  .hero-content { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
  .hero h1 { font-size: 42px; }
  .hero .place { font-size: 15px; margin-top: 6px; }
  .badge { font-size: 11px; }
  .hero-title-row { justify-content: flex-start; align-items: center; gap: 16px; }
  .hero a.site { font-size: 12px; padding: 5px 12px; margin-top: 0; }
  .hero-stats { gap: 10px; margin-top: 18px; }
  .hero-stat { padding: 10px 16px; min-width: 120px; border-radius: 12px; }
  .hero-stat .v { font-size: 24px; }
  .hero-stat .k { font-size: 10.5px; }
  .hero-domain { max-width: 820px; }
  .hero-cta { display: inline-flex; padding: 12px 22px; font-size: 15px; }
  .hero-cta-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
  .hero-cta-row .hero-cta { margin-top: 0; }
  .hero-actions { margin-top: 0; }
  .hero-action { flex: none; padding: 11px 18px; font-size: 14px; }
  .layout {
    max-width: 1200px; margin: 0 auto; padding: 24px 32px 8px;
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start;
  }
  .layout section {
    background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px 22px; margin-bottom: 20px;
  }
  .layout section:last-of-type { border-bottom: 1px solid var(--border); }
  .charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
  .charts section { margin-bottom: 0; }
  .section-head h2 { font-size: 21px; }
  .intro { font-size: 14.5px; }
  .list-scroll { max-height: 640px; }
  .item-name { font-size: 14px; }
  .item-meta { font-size: 12.5px; }
  .sidebar { position: sticky; top: 20px; }
  .sidebar .list-scroll { max-height: 460px; }
  footer.credit { max-width: 1200px; margin: 0 auto; }

  .list-header { max-width: 1200px; margin: 0 auto; padding: 36px 32px 18px; }
  .list-header h1 { font-size: 42px; }
  .list-sub { font-size: 15px; max-width: 760px; }
  .station-list {
    max-width: 1200px; margin: 0 auto; padding: 6px 32px 32px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px;
  }
  .station-card { background: var(--bg); }

  .guide-head { max-width: 960px; margin: 0 auto; padding: 40px 32px 10px; }
  .guide-head h1 { font-size: 44px; }
  .guide-wrap { max-width: 960px; margin: 0 auto; padding: 14px 32px 36px; }
  .guide-item { padding: 12px 18px 12px 12px; gap: 16px; background: var(--bg); }
  .guide-thumb { width: 72px; height: 77px; }
  .guide-name { font-size: 17px; }
  .guide-meta { font-size: 12.5px; }
  .guide-metric b { font-size: 26px; }
  .guide-method, .guide-related { padding-top: 28px; background: none; }
  .guide-wrap section { background: none; border: none; padding-left: 0; padding-right: 0; }
  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .guide-card { background: var(--bg); }
}
