/* The public pages (scripts/site/pages.ts; new look TASK-0102, the design approved at G2): the brand's tokens (brand/README.md, src/ui/brand.css) and fonts
   served by us, nothing from anyone else (the content policy's font-src 'self' refuses it): Archivo 900 condensed for the big titles, Archivo 800 for
   titles and numbers (scripts/site/fonts/, cut by subset_display.py), IBM Plex Sans as the app has it for the text, IBM Plex Mono for the small labels. The
   pages read without script; /site/widgets.js makes the map and the profile interactive (no inline script, no <style>: the policy allows style attributes only).
   The three in /site/fonts/ go inside the Worker with their hash (workerStatic.ts): the `v` below is the file's, tests/siteRedesign.test.ts checks it. */
@font-face { font-family: 'Archivo Poster'; font-weight: 900; font-display: swap; src: url('/site/fonts/archivo-900-cond.woff2?v=03c3b2fa6c') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2191-2193, U+2212; }
@font-face { font-family: 'Archivo'; font-weight: 800; font-display: swap; src: url('/site/fonts/archivo-800.woff2?v=a800ebb8e0') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2039-203A, U+20AC, U+2191-2193, U+2212; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/site/fonts/plex-mono-500.woff2?v=a76f53ca66') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400 700; font-display: swap; src: url('/fonts/plex-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400 700; font-display: swap; src: url('/fonts/plex-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- the base: tokens, type, bar, buttons, footer. What any page of the site builds on ---- */
:root {
  --night: #0e1b2c; --night-deep: #0b1624; --snow: #f4f7fa; --alpenglow: #e8654f; --alpenglow-soft: #f7a493; --alpenglow-pale: #ffd2c8; --alpenglow-ink: #b03e2b;
  --glacier: #1f4e8c; --rock: #4b5b6e; --mist: #dce5ef; --haze: #9fb0c3; --line: #d6dfe9; --ice: #eef3f8;
  --poster: 'Archivo Poster', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --ui: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --page: 1280px; --gutter: 32px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--night); font: 16px/1.55 var(--ui); overflow-wrap: break-word; }
a { color: var(--glacier); }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--alpenglow); outline-offset: 2px; }
h1 { font-family: var(--poster); font-weight: 900; font-size: clamp(38px, 6vw, 72px); line-height: 0.98; letter-spacing: 0; margin: 6px 0 12px; }
h2, h3, .nums dd, .ranks b, .btn { font-family: var(--display); font-weight: 800; }
h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; margin: 44px 0 14px; }
h3 { font-size: 17px; margin: 18px 0 6px; }
.wrap, main { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { position: static; display: inline-block; margin: 6px 0; }

/* the bar: the brand's lockup, the ways in, the languages, Play. Solid on a page with no hero; over the picture on one with it (.over) */
.top { background: var(--night); color: var(--snow); }
.top.over { position: absolute; z-index: 3; top: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(11, 22, 36, 0.72) 0%, rgba(11, 22, 36, 0) 100%); }
.bar { max-width: var(--page); margin: 0 auto; padding: 10px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; }
.mark img { display: block; height: 18px; width: auto; }
.sym { display: block; flex: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 18px; flex: 1 1 auto; font-size: 15px; }
.main-nav a, .langs a, .langs b { color: var(--mist); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.main-nav a:hover, .langs a:hover { color: #fff; text-decoration: underline; }
.langs { position: relative; font-size: 14px; }
.langs summary { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 56px; padding: 0 8px; color: var(--mist); cursor: pointer; list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: #fff; }
.langs ul { position: absolute; z-index: 5; right: 0; top: 100%; margin: 0; padding: 4px; list-style: none; background: var(--night); border: 1px solid rgba(244, 247, 250, 0.3); border-radius: 10px; }
.langs a, .langs b { min-width: 44px; }
.langs b { color: #fff; }

.crumbs { padding-top: 16px; font-size: 14px; color: var(--rock); }
.cta { margin: 16px 0; }

/* the buttons: on coral, white only at the sizes that reach 3:1 as large text; the small one in night, 5:1 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; line-height: 1.2; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--alpenglow); color: var(--night); text-decoration: none; font-size: 17px; border: 0; cursor: pointer; transition: background-color 0.15s, transform 0.15s; }
.btn:hover { background: #f07c68; color: var(--night); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.play { min-height: 60px; padding: 0 30px; font-size: 20px; color: #fff; }
.btn.play:hover { background: #d9543e; color: #fff; transform: translateY(-1px); }
.btn .tri { flex: none; width: 15px; height: 15px; fill: currentColor; }
.btn.ghost { background: transparent; color: var(--night); box-shadow: inset 0 0 0 2px var(--night); font-family: var(--ui); font-weight: 600; }
.btn.ghost:hover { background: var(--ice); }

/* the footer */
.foot { margin-top: 64px; background: var(--night); color: var(--haze); font-size: 13px; }
.foot .wrap { padding-top: 26px; padding-bottom: 30px; }
.foot p { margin: 0 0 8px; max-width: 900px; }
.foot a { color: var(--mist); }
.foot .meta { font-size: 14px; color: var(--snow); }
.foot .meta a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .indep { color: var(--snow); font-weight: 600; }
.foot .licence-line a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---- the hero: a picture the whole width, words and the way in at its foot ---- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(86vh, 640px); padding-top: 104px; color: var(--snow); background: radial-gradient(120% 100% at 72% 0%, #2b4667 0%, var(--night) 58%, var(--night-deep) 100%); }
/* the veil: dark where the words are, warm at the top, as at the end of an afternoon */
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(232, 101, 79, 0.1) 0%, rgba(11, 22, 36, 0) 34%, rgba(11, 22, 36, 0.32) 58%, rgba(11, 22, 36, 0.94) 100%); }
.hero .wrap { width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 32px; padding-top: 12px; padding-bottom: 34px; }
.hero-text { flex: 1 1 600px; min-width: 0; max-width: 860px; }
.hero h1 { color: #fff; font-size: clamp(56px, 9vw, 124px); line-height: 0.9; text-transform: uppercase; margin: 10px 0 14px; }
.hero.n-l h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: 0.94; }
.hero.n-xl h1 { font-size: clamp(32px, 4.6vw, 62px); line-height: 1; }
.hero .crumbs { padding-top: 0; margin-bottom: 10px; font-size: 14px; color: var(--mist); }
.hero .crumbs a { color: #fff; }
.hero .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 500 13px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--alpenglow-pale); }
/* (white on a dark ground whatever the difficulty: on its colour, green or orange would not reach 4.5:1) */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 6px; color: #fff; background: rgba(11, 22, 36, 0.78); border: 1px solid rgba(244, 247, 250, 0.55); letter-spacing: 0.06em; }
.badge i { flex: none; width: 10px; height: 10px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75); }
.badge i.d-novice { background: #2fa84f; } .badge i.d-easy { background: #2a6fdb; } .badge i.d-intermediate { background: #d8262f; } .badge i.d-advanced, .badge i.d-expert, .badge i.d-extreme { background: #111111; } .badge i.d-freeride { background: #e08a00; } .badge i.d-unknown { background: #888888; }
[data-marks='na'] .badge i.d-easy { background: #2fa84f; } [data-marks='na'] .badge i.d-intermediate { background: #2a6fdb; } [data-marks='na'] .badge i.d-freeride { background: #111111; }
.hero .aka, .hero .original { margin: -6px 0 10px; color: var(--mist); }
.hero .answer { margin: 0 0 8px; max-width: 760px; font-size: 18px; line-height: 1.5; color: var(--mist); }
.h1-terms { display: block; margin-top: 8px; font: 500 15px/1.35 var(--ui); letter-spacing: 0; text-transform: none; color: var(--rock); }
.hero .h1-terms { color: var(--mist); }
.hero .asof, .hero .imperial { margin: 0 0 8px; max-width: 760px; font-size: 13px; color: var(--haze); }
.hero .asof a { color: inherit; }
.hero .cta { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.hero .cta small { flex-basis: 100%; color: var(--haze); font-size: 13px; }
.hero .btn.ghost { min-height: 56px; color: var(--snow); background: rgba(11, 22, 36, 0.35); box-shadow: inset 0 0 0 1.5px rgba(244, 247, 250, 0.6); }
.hero .btn.ghost:hover { background: rgba(244, 247, 250, 0.14); color: #fff; }
.hero-credit { position: relative; max-width: var(--page); width: 100%; margin: 0 auto; padding: 0 var(--gutter) 10px; font-size: 11px; line-height: 1.4; color: var(--haze); }
.hero-credit a { color: inherit; }

/* with no render: the area's own shaded relief, seen in perspective, with its lines; a colour that fades before the edge of the picture */
.hero-stage { position: absolute; z-index: -2; left: 50%; top: 42%; width: max(calc(var(--w, 150) * 1%), 1180px); aspect-ratio: var(--ar, 1.4); transform: translate(-50%, -50%) perspective(1200px) rotateX(48deg) translate(calc(50% - var(--cx, 50%)), calc(50% - var(--cy, 50%))); -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.hero-stage img, .hero-stage svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-stage img { opacity: 0.62; filter: contrast(1.2) brightness(0.86); }
.hero-stage path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2px; opacity: 0.85; }
.hero-stage .d-advanced, .hero-stage .d-expert, .hero-stage .d-extreme { stroke: #f4f7fa; }
.hero-stage .glow { stroke: var(--alpenglow); stroke-width: 11px; opacity: 0.35; }
.hero-stage .this { stroke-width: 4px; opacity: 1; }

/* a render of the game: the whole picture, no perspective of ours */
.hero-img { position: absolute; z-index: -2; inset: 0; margin: 0; }
.hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; background: #1b2a3d; }
/* the picture of Avoriaz has its old credit burned in, from 94.9 % of its height down: it needs it as og:image, out of our pages, and its bytes are what the Pages already has, so it is cut here,
   not in the file. 107 % high, whatever the window at most 93.5 % of it shows (tests/siteRedesign.test.ts); the credit in words is in the footer (pages.ts photosCredit) */
.hero-img.cut-credit { overflow: hidden; }
.hero-img.cut-credit img { height: 107%; }

/* the numbers, the whole width under the hero: the number first, its name under it */
.strip { background: var(--night); color: var(--snow); }
.nums { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 18px; }
.strip .nums { max-width: var(--page); margin: 0 auto; padding: 22px var(--gutter); }
.nums > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.nums dt { font-size: 13px; line-height: 1.3; color: var(--rock); }
.strip .nums dt { color: var(--haze); }
.nums dd { margin: 0; font-size: 34px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.strip .nums dd.hot { color: var(--alpenglow-soft); }
.nums dd.word { font-size: 24px; }
.nums dd small { font: 400 14px var(--ui); color: inherit; opacity: 0.85; }
.imperial { font-size: 14px; color: var(--rock); }
.method-list { padding-left: 18px; max-width: 760px; }
.method-list li { margin: 8px 0; }
.strip + .imperial { max-width: var(--page); margin: 8px auto 0; padding: 0 var(--gutter); }

/* the page's column: sections, cards, tiles, rows */
.split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 36px; }
.split > .col { flex: 999 1 620px; min-width: 0; }
.split > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; margin-top: 44px; align-items: start; }
.cols2 > * { min-width: 0; }
.cols2 h2 { margin-top: 0; font-size: clamp(22px, 2.2vw, 28px); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card h2 { margin: 0 0 10px; font-size: 20px; }
.card h3 { margin: 12px 0 4px; font-size: 15px; }
.card p { margin: 0 0 8px; font-size: 15px; }
.card .items { columns: auto; font-size: 15px; }
.more { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.block { margin-top: 48px; }
.block > h2:first-child, .card > h2:first-child { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; }
.tile { display: block; height: 100%; min-height: 44px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--night); transition: border-color 0.15s; }
.tile:hover { border-color: var(--glacier); color: var(--night); }
.tile b { display: flex; align-items: center; font-size: 16px; }
.tile span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--rock); font-variant-numeric: tabular-nums; }
.level .tile { border-top: 5px solid var(--c, var(--night)); }
.level .tile b { font-size: 18px; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; padding: 10px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--night); }
.row:hover { background: var(--ice); color: var(--night); }
.row .sq { width: 12px; height: 12px; border-radius: 3px; }
.row b { display: block; font-weight: 600; }
.row small { display: block; font-size: 13px; line-height: 1.35; }
.row .val { font: 500 13px var(--mono); color: var(--rock); text-align: right; }

.lead { font-size: 18px; }
.note, small { color: var(--rock); font-size: 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 1.5px #fff; flex: none; }
.original { margin: -2px 0 8px; font-size: 0.95em; color: var(--rock); }
.short p { font-size: 17px; max-width: 760px; }
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.ranks li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ranks b { display: block; font-size: 22px; }
.ranks span { color: var(--rock); font-size: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 8px 0; list-style: none; font-size: 14px; }
.sw { display: inline-block; width: 18px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.sw.dash { height: 0; border-radius: 0; border-top: 2px dashed #5b6b7c; }
.diffbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; }
.toplist ol { padding-left: 0; list-style: none; }
.items, .areas { padding-left: 0; list-style: none; columns: 2 260px; }
.items li, .areas li, .toplist li { break-inside: avoid; margin: 4px 0; }
.items li > a, .toplist li > a { display: inline-block; padding: 7px 0; }
.watch video { width: 100%; max-width: 420px; height: auto; border-radius: 12px; background: var(--night); }

/* what most readers never open: there for those who want it, and for the robots (a link in a closed <details> is still a link) */
.fold { border-top: 1px solid var(--line); }
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 0; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; flex: none; font: 500 22px/1 var(--mono); color: var(--rock); }
.fold[open] > summary::after { content: '−'; }
.fold > summary h2 { margin: 0; font-size: 20px; }
.fold-body { padding-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; padding: 8px 0; }
.faq p { margin: 0 0 12px; max-width: 760px; }
.facts, .ranking, .others { border-collapse: collapse; margin: 18px 0; }
.ranking, .others { min-width: 320px; }
.facts th, .facts td, .ranking th, .ranking td, .others th, .others td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); }
.facts th, .ranking th, .others th { font-weight: 500; color: var(--rock); }
.ranking td, .others td { font-variant-numeric: tabular-nums; }
.others { width: 100%; }
.others tr.ours td { font-weight: 600; }
.facts caption { caption-side: bottom; text-align: left; padding-top: 6px; font-size: 13px; color: var(--rock); }
.scroll { overflow-x: auto; }
.final { margin: 48px 0 0; padding: 22px 26px; border-radius: 20px; background: var(--night); color: var(--snow); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
/* (min-width: 0: a flex item is never narrower than its longest word, and overflow-wrap does not change that: the longest name of a run passed the window, QA defect 2) */
.final p { min-width: 0; margin: 0; font: 800 22px/1.15 var(--display); }

/* ---- the vector map (scripts/site/vmap.ts, /site/widgets.js): lines of a constant width on screen, thicker as one zooms in ---- */
.vmap { margin: 0; }
.vhead { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.vhead h2 { margin: 0; }
.vhead p { margin: 4px 0 0; font-size: 13px; color: var(--rock); }
.vfilter { display: flex; flex-wrap: wrap; gap: 8px; }
.vfilter button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--night); font: 600 14px var(--ui); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.vfilter button:not([data-f=''])::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c, #888888); }
.vfilter [data-f='green'] { --c: #2fa84f; } .vfilter [data-f='blue'] { --c: #2a6fdb; } .vfilter [data-f='red'] { --c: #d8262f; } .vfilter [data-f='black'] { --c: #111111; } .vfilter [data-f='other'] { --c: #e08a00; }
.vfilter button[aria-pressed='true'] { background: var(--night); color: var(--snow); border-color: var(--night); }
.vfilter [data-f='black'][aria-pressed='true'] { --c: #f4f7fa; }
.vbox { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #fff 0%, #e6eef6 60%, #d9e4ef 100%); border: 1px solid var(--line); border-radius: 20px; touch-action: pan-y; }
.vbox:focus-visible { outline-offset: 2px; }
.vbox.zoomed { touch-action: none; cursor: grab; }
.vbox svg { display: block; width: 100%; height: auto; -webkit-user-select: none; user-select: none; }
.vbox .relief { opacity: 0.5; }
.vbox path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.vbox a { transition: opacity 0.12s; }
.vbox .r path { stroke-width: calc(var(--k, 1) * 3px); }
.vbox .l path { stroke: #5b6b7c; stroke-width: calc(var(--k, 1) * 2px); stroke-dasharray: 6 4; }
.vbox .l.f path { stroke: var(--night); stroke-width: calc(var(--k, 1) * 4px); stroke-dasharray: none; }
.vbox .r.f path { stroke-width: calc(var(--k, 1) * 6px); }
.vbox path.case { stroke: #fff; stroke-width: calc(var(--k, 1) * 11px); }
.vbox .on path { stroke-width: calc(var(--k, 1) * 7px); }
.vbox .l.on path { stroke-width: calc(var(--k, 1) * 4px); stroke: var(--night); }
.vbox.hl a:not(.on) { opacity: 0.3; }
.vbox a:focus { outline: none; }
.vbox a:focus-visible path { stroke-width: calc(var(--k, 1) * 7px); }
.d-novice { stroke: #2fa84f; } .d-easy { stroke: #2a6fdb; } .d-intermediate { stroke: #d8262f; }
.d-advanced, .d-expert, .d-extreme { stroke: #111111; } .d-freeride { stroke: #e08a00; } .d-unknown { stroke: #888888; }
.vbox[data-f] .r { opacity: 0.12; }
.vbox[data-f='green'] .d-novice, .vbox[data-f='blue'] .d-easy, .vbox[data-f='red'] .d-intermediate, .vbox[data-f='black'] .d-advanced, .vbox[data-f='black'] .d-expert, .vbox[data-f='black'] .d-extreme, .vbox[data-f='other'] .d-freeride, .vbox[data-f='other'] .d-unknown { opacity: 1; }
.vbox[data-f='naGreen'] .d-novice, .vbox[data-f='naGreen'] .d-easy, .vbox[data-f='naBlue'] .d-intermediate, .vbox[data-f='naBlack'] .d-advanced, .vbox[data-f='naBlack'] .d-expert, .vbox[data-f='naBlack'] .d-extreme, .vbox[data-f='naBlack'] .d-freeride, .vbox[data-f='naOther'] .d-unknown { opacity: 1; }
/* the North American marks (TASK-0219; src/resorts/types.ts PISTE_MARKS): easy green, intermediate blue, freeride black */
[data-marks='na'] .d-easy { stroke: #2fa84f; } [data-marks='na'] .d-intermediate { stroke: #2a6fdb; } [data-marks='na'] .d-freeride { stroke: #111111; }
[data-marks='na'] .hero-stage .d-freeride { stroke: #f4f7fa; }
.vbox .mk text { font: 600 13px var(--ui); fill: #33445a; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.vbox .mk .mtop { fill: var(--night); stroke: #fff; stroke-width: 2.5px; }
.vbox .mk .mend { fill: #fff; stroke: var(--night); stroke-width: 3px; }
.vbox .mk .st { fill: var(--night); stroke: #fff; stroke-width: 2px; }
.vbox .mk .cur { fill: var(--alpenglow); stroke: #fff; stroke-width: 3px; }
.vbox .mk.off { display: none; }
.vtip { position: absolute; z-index: 2; left: 0; top: 0; max-width: 280px; padding: 10px 13px; border-radius: 12px; background: var(--night); color: var(--snow); box-shadow: 0 12px 28px rgba(14, 27, 44, 0.3); font-size: 14px; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); }
.vtip b { display: flex; align-items: center; font-size: 15px; }
.vtip span { display: block; margin-top: 3px; color: var(--mist); font: 500 12px/1.4 var(--mono); }
.vtip a { pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--alpenglow-soft); font-weight: 700; }
/* the corners say the least they can: the credit, north and the scale in small, grey, on no box */
.vcredit { position: absolute; z-index: 1; right: 10px; bottom: 8px; margin: 0; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.72); font-size: 11px; line-height: 1.35; color: var(--rock); }
.vcredit a { color: inherit; }
/* (not one of the map's lines: it does not fade with them, and it keeps the outline the lines give up for their own) */
.vbox.hl .vcredit a { opacity: 1; }
.vcredit a:focus-visible { outline: 2px solid var(--night); outline-offset: 1px; }
.vctl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.vctl button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); color: var(--night); font: 600 20px var(--ui); cursor: pointer; }
.vctl button:disabled { opacity: 0.45; cursor: default; }
.vnorth { position: absolute; left: 12px; bottom: 10px; width: 14px; height: 14px; fill: var(--rock); pointer-events: none; }
.vscale { position: absolute; left: 34px; bottom: 8px; font: 500 11px/1 var(--mono); color: var(--rock); }
.vscale i { display: block; height: 2px; margin-bottom: 3px; background: var(--rock); }
.vhint { position: absolute; z-index: 2; left: 50%; top: 14px; transform: translateX(-50%); max-width: calc(100% - 96px); padding: 8px 12px; border-radius: 10px; background: var(--night); color: var(--snow); font-size: 13px; text-align: center; pointer-events: none; }
.vleg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 10px 2px 0; list-style: none; font-size: 13px; color: var(--rock); }
.vleg li { display: inline-flex; align-items: center; }
.vkeys, .vmore { margin: 0; padding: 4px 2px 0; font-size: 13px; color: var(--rock); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; align-items: start; }
.duo > * { min-width: 0; }
.duo .vhead h2 { font-size: 20px; }
.duo .vhead p, .duo .vkeys { display: none; }

/* the elevation profile (scripts/site/vmap.ts profileWidget): coloured by the gradient of each stretch */
.vprof { margin: 0; }
.pbox { position: relative; touch-action: pan-y; }
.pbox:focus-visible { outline-offset: 4px; }
.pbox svg { display: block; width: 100%; height: 240px; }
.pbox .area { fill: var(--ice); }
.pbox .seg { fill: none; stroke-width: 5px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.pline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--night); pointer-events: none; }
.pline.steep { border-left-color: var(--alpenglow-ink); border-left-style: dotted; }
.pgap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--ice) 0 4px, transparent 4px 8px); pointer-events: none; }
.pdot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--alpenglow); box-shadow: 0 0 0 3px #fff; pointer-events: none; }
/* (a line of its own above the box, wrapping like any text: QA A1, TASK-0096) */
.pmark { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--alpenglow-ink); }
.pmissing { margin-top: 0; }
.paxis { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font: 500 12px var(--mono); color: var(--rock); }

/* ---- the list of areas and the home (TASK-0102): the night's ground, the areas' cards, the filter ---- */
body.dark, body.home { background: var(--night-deep); color: var(--snow); }
body.dark main a:not(.btn), .band.night a:not(.btn), .band.ink a:not(.btn) { color: var(--snow); }
body.dark main a:not(.btn):hover, .band.night a:not(.btn):hover, .band.ink a:not(.btn):hover { color: var(--alpenglow-pale); }
body.dark .foot, body.home .foot { margin-top: 0; }
body.dark .note, body.dark main small { color: var(--haze); }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; }
/* the home's index of the areas with pages, under the cards (TASK-0182: every area linked from the home, not only the eight cards) */
.area-index ul { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; }
.area-index a { display: inline-flex; align-items: center; min-height: 32px; }
.area { display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: transform 0.2s; }
.area:hover { transform: translateY(-3px); }
.area-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: #13243a; }
.area-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.area h2, .area h3 { margin: 4px 0 0; font-size: 24px; line-height: 1.1; }
.area h2 a, .area h3 a { text-decoration: none; }
.where { margin: 0; font-size: 14px; color: var(--haze); }
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; font: 500 12px var(--mono); color: var(--mist); }
.stats span { padding: 5px 9px; border: 1px solid #24364c; border-radius: 6px; background: #13243a; }
.area-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
body.dark .btn.ghost, .band.night .btn.ghost, .band.ink .btn.ghost { color: var(--snow); box-shadow: inset 0 0 0 1.5px rgba(244, 247, 250, 0.45); background: transparent; }
body.dark .btn.ghost:hover, .band.night .btn.ghost:hover, .band.ink .btn.ghost:hover { background: rgba(244, 247, 250, 0.14); color: #fff; }

/* the hub's top is shorter than an area's, and its filter needs no script: each chip is the label of a radio button before it */
.hero.hub { min-height: min(62vh, 480px); }
.hero.hub h1 { font-size: clamp(52px, 8vw, 112px); }
.hub-body { padding-top: 28px; padding-bottom: 8px; }
.hub-f { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chips label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid rgba(244, 247, 250, 0.45); border-radius: 999px; font: 600 15px var(--ui); cursor: pointer; }
#f-all:checked ~ .chips [for='f-all'], #f-alps:checked ~ .chips [for='f-alps'], #f-na:checked ~ .chips [for='f-na'], #f-sa:checked ~ .chips [for='f-sa'], #f-oc:checked ~ .chips [for='f-oc'], #f-other:checked ~ .chips [for='f-other'] { background: var(--snow); color: var(--night); border-color: var(--snow); }
#f-all:focus-visible ~ .chips [for='f-all'], #f-alps:focus-visible ~ .chips [for='f-alps'], #f-na:focus-visible ~ .chips [for='f-na'], #f-sa:focus-visible ~ .chips [for='f-sa'], #f-oc:focus-visible ~ .chips [for='f-oc'], #f-other:focus-visible ~ .chips [for='f-other'] { outline: 3px solid var(--alpenglow); outline-offset: 2px; }
#f-alps:checked ~ .areas-grid .area:not(.in-alps), #f-na:checked ~ .areas-grid .area:not(.in-na), #f-sa:checked ~ .areas-grid .area:not(.in-sa), #f-oc:checked ~ .areas-grid .area:not(.in-oc), #f-other:checked ~ .areas-grid .area:not(.in-other) { display: none; }
.ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 56px 0; padding: 32px; border-radius: 20px; background: var(--snow); color: var(--night); }
.ask h2 { margin: 0 0 6px; }
.ask p { margin: 0; color: var(--rock); }
.ask .btn { background: var(--night); color: var(--snow); }
.ask .btn:hover { background: var(--glacier); color: var(--snow); }

/* the home: a hero the whole window, then bands of the page's width */
.home .brand { color: var(--snow); text-decoration: none; }
.wordmark { font: 800 21px/1 var(--display); }
.wordmark .geo { opacity: 0.86; }
.home .langs { display: flex; align-items: center; }
.hero.home-hero { min-height: min(94vh, 780px); }
.home-hero .wrap { flex-direction: column; align-items: flex-start; padding-bottom: 44px; }
.home-hero .hero-text { flex: none; }
.home-hero h1 { font-size: clamp(64px, 10vw, 148px); max-width: 12ch; }
.home-hero .answer { max-width: 46ch; font-size: 20px; }
.band { padding: 64px 0; }
.band.night { background: var(--night-deep); color: var(--snow); }
.band.ink { background: var(--night); color: var(--snow); }
.band.light { background: var(--snow); color: var(--night); }
.band h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; }
.eyebrow { margin: 0 0 8px; font: 500 12px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #8fb3e6; }
.band-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 28px; }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 28px; }
.mode { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.mode h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.1; }
.mode p { margin: 0; color: var(--rock); }
.data { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
.data > * { min-width: 0; }
.data p { color: var(--mist); max-width: 48ch; }
.panel { padding: 24px; border: 1px solid #24364c; border-radius: 18px; background: #13243a; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font: 800 24px/1.1 var(--display); }
.panel .badge { font: 500 12px var(--mono); }
.panel .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel .nums dt { color: var(--haze); }
.panel .nums dd { font-size: 30px; }
.panel svg { display: block; width: 100%; height: auto; margin-top: 16px; }
.panel .fill { fill: #1f4e8c; opacity: 0.45; }
.panel .ln { fill: none; stroke: #8fb3e6; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.final-call h2 { margin-bottom: 22px; font-family: var(--poster); font-weight: 900; font-size: clamp(48px, 7vw, 96px); line-height: 0.92; text-transform: uppercase; max-width: 14ch; }
.reach { display: flex; flex-wrap: wrap; gap: 20px 48px; padding: 28px 0; }
.reach h2 { margin: 0 0 4px; font-size: 18px; }
.reach .social { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.reach .social a { display: inline-flex; align-items: center; min-height: 44px; }
.reach .mail { margin: 10px 0 0; }
/* "View this page in …?" (lang.js): fixed at the bottom, over the page, so nothing moves */
.langbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 6px 6px 6px 16px; border: 1px solid rgba(244, 247, 250, 0.3); border-radius: 999px; background: rgba(14, 27, 44, 0.94); font-size: 14px; }
.langbar a { color: var(--snow); }
.langbar button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--mist); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.langbar button:hover, .langbar button:focus-visible { color: var(--snow); background: rgba(244, 247, 250, 0.1); }

/* a finger's targets, and what only a mouse or a keyboard has */
@media (hover: none) and (pointer: coarse) {
  .vkeys { display: none; }
  .items li > a, .toplist li > a, .crumbs a { display: inline-block; padding: 11px 0; }
  .licence-line a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vbox a, .btn, .tile, .area { transition: none; }
  .btn.play:hover, .area:hover { transform: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .strip .nums { padding: 16px; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the bar in two rows: the lockup, the languages and Play; the ways in, sliding inside their own row */
  .bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'mark langs open' 'nav nav nav'; gap: 0 6px; padding-top: 2px; padding-bottom: 2px; }
  .mark { grid-area: mark; min-height: 48px; }
  .langs { grid-area: langs; }
  .open3d { grid-area: open; min-width: 44px; padding: 0 12px; }
  /* (the edge fades, to say there is more; the padding lets the last one clear it: no scrollbar says so here, QA defect 4) */
  .main-nav { grid-area: nav; min-width: 0; flex-wrap: nowrap; gap: 0 16px; overflow-x: auto; white-space: nowrap; font-size: 14px; scrollbar-width: none; padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .crumbs { line-height: 1.2; }
  .crumbs a { display: inline-block; padding: 11px 0; }
  .items li > a, .toplist li > a { padding: 11px 0; }
  /* on a phone the name, the answer and the way in, one under the other, as the page reads */
  /* (minmax(0, …): a track of 1fr is never narrower than its longest word, and overflow-wrap does not change that: QA R1) */
  .hero { min-height: 560px; padding-top: 108px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); display: grid; gap: 18px; padding-bottom: 20px; }
  /* (the lines above the words, not under them: QA defect 5) */
  .hero-stage { top: 30%; }
  .hero-text { flex: none; }
  .hero h1, .hero.hub h1, .home-hero h1 { font-size: 56px; }
  .hero.n-l h1 { font-size: 42px; }
  .hero.n-xl h1 { font-size: 32px; }
  .hero .answer { font-size: 16px; }
  .hero .btn { flex: 1 1 100%; }
  .home-hero .answer { font-size: 17px; }
  .nums dd { font-size: 26px; }
  .nums dd.word { font-size: 20px; }
  h2 { margin-top: 36px; }
  .cols2, .cols, .duo, .areas-grid, .modes, .data { grid-template-columns: minmax(0, 1fr); }
  .home .bar { grid-template-areas: 'mark mark open' 'langs langs langs' 'nav nav nav'; }
  .band { padding: 44px 0; }
  .ask { padding: 22px; margin: 36px 0; }
  .hero.home-hero { min-height: 640px; padding-top: 148px; }
  .hero.hub { min-height: 420px; padding-top: 108px; }
  .cols2 { margin-top: 36px; gap: 28px; }
  .split { margin-top: 24px; gap: 20px; }
  .pbox svg { height: 170px; }
  .vtip { max-width: 230px; }
  /* the zoom, the scale and the credit under the map, on no name of a village */
  .vbox { border-radius: 14px; }
  .vctl { position: static; flex-direction: row; justify-content: flex-end; padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); }
  .vnorth { bottom: 23px; }
  .vscale { bottom: 21px; }
  .vcredit { position: static; padding: 2px 10px 6px; background: #fff; border-radius: 0; }
  .vhint { top: 8px; max-width: calc(100% - 24px); }
}
/* a narrow phone: the notice on a row of its own, with no separator left at the end of the one before (QA 2 of TASK-0102, BAIXA 5) */
@media (max-width: 480px) {
  .licence-line .sep { display: none; }
  .licence-line .sep + a { display: flex; width: fit-content; }
}

/* TASK-0311: tokens do desenho aprovado; só afeta a chave explícita. */
@font-face{font-family:'Archivo Wide';font-style:normal;font-weight:800;font-stretch:62% 125%;font-display:swap;src:url('/site/fonts/archivo-800-w112-latin.woff2?v=a44904f568') format('woff2')}
@font-face{font-family:'Archivo Wide';font-style:normal;font-weight:800;font-stretch:62% 125%;font-display:swap;src:url('/site/fonts/archivo-800-w112-latin-ext.woff2?v=768891b980') format('woff2');unicode-range:U+0100-02FF,U+1E00-1EFF}
@font-face{font-family:'Plex Labels';font-style:normal;font-weight:600;font-display:swap;src:url('/site/fonts/plex-mono-600.woff2?v=cecb8f0bc5') format('woff2')}
[data-revitalized]{--page:1240px;--gutter:40px;--poster:'Archivo Wide',Arial,sans-serif;--display:'Archivo Wide',Arial,sans-serif;--line:#e2e8f0;--mono:'Plex Labels',monospace}
[data-revitalized] h1,[data-revitalized] .revival-levels h2{font-family:var(--poster);font-weight:800;font-stretch:112%;line-height:.92;text-transform:uppercase}
[data-revitalized] .bar{flex-wrap:nowrap;gap:22px;padding-top:12px;padding-bottom:12px}
[data-revitalized] .main-nav{font-size:14px;gap:28px;flex-wrap:nowrap}
[data-revitalized] .mark{flex-shrink:0}
[data-revitalized] .btn{font-family:var(--ui);font-weight:600;font-size:16px;min-height:52px}
[data-revitalized] .btn.small{min-height:44px;font-size:14px}
[data-revitalized] .hero{min-height:640px;padding-top:128px;justify-content:flex-start;background:#0e1b2c}
[data-revitalized] .hero::after{background:linear-gradient(90deg,rgba(14,27,44,.78),rgba(14,27,44,.25) 62%,rgba(14,27,44,.12)),linear-gradient(180deg,rgba(14,27,44,.12) 40%,#0e1b2c 100%)}
[data-revitalized] .hero .wrap{display:block;padding-top:12px;padding-bottom:80px}
[data-revitalized] .hero-text{max-width:100%}
[data-revitalized] .hero h1{font-size:clamp(56px,8.6vw,124px);margin:24px 0;overflow-wrap:anywhere}
[data-revitalized] .hero.n-l h1{font-size:clamp(42px,6vw,88px)}
[data-revitalized] .hero.n-xl h1{font-size:clamp(32px,4.2vw,62px)}
[data-revitalized] .hero .answer{max-width:580px;font-size:20px;color:#e2e8f0;line-height:1.5}
[data-revitalized] .hero .kicker{color:#f7a493;font:600 12px/1.5 var(--mono);letter-spacing:.1em}
[data-revitalized] .hero .crumbs{margin-bottom:18px}
[data-revitalized] .hero .cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:26px}
[data-revitalized] .hero .cta small{display:none}
[data-revitalized] .hero .btn.ghost{box-shadow:inset 0 0 0 1px #cbd5e1;color:#fff}
[data-revitalized] .hero .btn.ghost:hover{background:#13233a}
[data-revitalized] .hero-img img{object-fit:cover;object-position:var(--hero-position,65% 45%)}
[data-revitalized] .clean-relief{opacity:.7}
[data-revitalized] .hero-credit{right:40px;bottom:16px;color:#e2e8f0;font-size:12px;text-align:right;max-width:calc(100% - 80px)}
[data-revitalized] .strip{background:#0e1b2c}
[data-revitalized] .strip .nums{max-width:1240px;padding:24px 40px;gap:28px}
[data-revitalized] .strip .nums dd{font-family:'Archivo Wide',Arial,sans-serif;font-weight:800;font-size:34px}
[data-revitalized] .strip .nums dt{font-size:14px;color:#cbd5e1}
[data-revitalized] .revival-levels{padding-top:48px;padding-bottom:28px}
[data-revitalized] .revival-levels .eyebrow{margin:0 0 6px;font:600 12px/1.5 var(--mono);letter-spacing:.1em;color:#b03e2b}
[data-revitalized] .revival-levels h2{font-size:42px;margin:0 0 24px}
[data-revitalized] .revival-levels ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px}
[data-revitalized] .revival-levels a{height:100%;min-height:145px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:20px;color:#0e1b2c;text-decoration:none}
[data-revitalized] .revival-levels a:hover{border-color:#4b5b6e;background:#eef3f8}
[data-revitalized] .level-count{font-family:'Archivo Wide',Arial,sans-serif;font-size:30px;line-height:1}
[data-revitalized] .revival-levels small{color:#4b5b6e;font-size:14px}
[data-revitalized] .revival-content{display:grid;grid-template-columns:1.3fr 1fr;gap:28px}
[data-revitalized] .revival-content>*{min-width:0}
[data-revitalized] .revival-content h2{font:700 21px/1.3 var(--ui);margin:22px 0 12px}
[data-revitalized] .row{border:1px solid #e2e8f0;border-radius:16px;background:#fff;padding:16px 18px;min-height:70px;gap:16px}
[data-revitalized] .rows{display:grid;gap:12px}
[data-revitalized] .rows li{border:0}
[data-revitalized] .row .val{font-size:12px;font-family:var(--mono);background:#eef3f8;border-radius:5px;padding:2px 8px}
[data-revitalized] .more{display:inline-flex;align-items:center;min-height:44px;color:#b03e2b}
[data-revitalized] .run-hero{min-height:570px}
[data-revitalized] .run-hero::after{background:linear-gradient(90deg,rgba(14,27,44,.88),rgba(14,27,44,.65)),linear-gradient(180deg,transparent,#0e1b2c)}
[data-revitalized] .run-hero h1{font-size:clamp(48px,7vw,96px)}
[data-revitalized] .run-hero .answer{max-width:780px}
[data-revitalized] a:focus-visible,[data-revitalized] button:focus-visible{outline:3px solid #1f4e8c;outline-offset:4px}
[data-revitalized] .hero a:focus-visible,[data-revitalized] .top button:focus-visible{outline-color:#fff}
@media(max-width:1100px){[data-revitalized] .main-nav{gap:14px}[data-revitalized] .bar{gap:12px}[data-revitalized] .main-nav a:nth-child(2){display:none}}
@media(max-width:760px){
 [data-revitalized]{--gutter:16px}
 [data-revitalized] .bar{padding:20px 16px;gap:10px}
 [data-revitalized] .top .main-nav,[data-revitalized] .top .langs{display:none}
 [data-revitalized] .mark{margin-right:auto}
 [data-revitalized] .hero{min-height:560px;padding-top:340px;justify-content:flex-end}
 [data-revitalized] .hero .wrap{padding:16px 16px 22px}
 [data-revitalized] .hero h1{font-size:clamp(42px,12.6vw,62px);line-height:.98;margin:10px 0 14px;overflow-wrap:anywhere}
 [data-revitalized] .hero.n-l h1{font-size:clamp(32px,10vw,48px)}
 [data-revitalized] .hero.n-xl h1{font-size:32px}
 [data-revitalized] .hero .crumbs{display:none}
 [data-revitalized] .hero .answer{font-size:16px}
 [data-revitalized] .hero .cta{margin:14px 0 0;display:grid}
 [data-revitalized] .resort-hero .btn.ghost{display:none}
 [data-revitalized] .hero .kicker{font-size:12px}
 [data-revitalized] .hero-credit{position:relative;right:auto;bottom:auto;text-align:left;max-width:100%;padding:0 16px 12px;font-size:12px}
 [data-revitalized] .strip .nums{padding:16px;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
 [data-revitalized] .resort-hero+.strip .nums>div:nth-child(2),[data-revitalized] .resort-hero+.strip .nums>div:nth-child(4){display:none}
 [data-revitalized] .strip .nums dd{font-size:26px}
 [data-revitalized] .revival-levels{padding:20px 0}
 [data-revitalized] .revival-levels .eyebrow{display:none}
 [data-revitalized] .revival-levels h2{font:700 20px/1.3 var(--ui);text-transform:none;margin-bottom:12px}
 [data-revitalized] .revival-levels ul{display:grid;grid-template-columns:1fr;gap:10px}
 [data-revitalized] .revival-levels a{flex-direction:row;align-items:center;min-height:46px;padding:10px 16px;gap:12px}
 [data-revitalized] .level-count{margin-left:auto;font-size:22px}
 [data-revitalized] .revival-levels small{display:none}
 [data-revitalized] .revival-content{grid-template-columns:1fr}
 [data-revitalized] .run-hero{padding-top:140px;min-height:550px}
 [data-revitalized] .home-hero{padding-top:160px}
}
@media(prefers-reduced-motion:reduce){[data-revitalized] *{scroll-behavior:auto;transition:none}}

@media(min-width:900px){[data-revitalized] .run-hero .wrap{display:grid;grid-template-columns:1fr 1fr;gap:22px 40px}[data-revitalized] .run-hero .hero-text{grid-column:1}[data-revitalized] .run-hero .cta{grid-column:1;margin-top:0}[data-revitalized] .hero-profile{grid-column:2;grid-row:1/3;align-self:center}[data-revitalized] .run-hero h1{font-size:clamp(48px,6vw,86px)}[data-revitalized] .run-hero .answer{font-size:18px}}
[data-revitalized] .hero-profile{background:#13233a;border:1px solid #4b5b6e;border-radius:16px;padding:20px;color:#f4f7fa;min-width:0}
[data-revitalized] .hero-profile h2{font:600 16px var(--ui);color:#fff;margin:0 0 16px}
@media(max-width:899px){[data-revitalized] .hero-profile{margin-top:24px}}

[data-revitalized] .hero .site-difficulty{background:#fff;color:#0e1b2c;padding:8px 12px;border-radius:8px;text-transform:none;letter-spacing:0;font:600 16px var(--ui)}
[data-revitalized] .run-difficulty{margin-left:8px}
[data-revitalized] .vfilter button{display:inline-flex;align-items:center;gap:6px;min-height:44px}
/* Founder, 18/11: manter coral e texto branco previstos no protótipo. */
[data-revitalized] .btn.play,[data-revitalized] .btn.small:not(.ghost){background:#e8654f;color:#fff}
[data-revitalized] .btn.play:hover,[data-revitalized] .btn.small:not(.ghost):hover{background:#e8654f;color:#fff;filter:brightness(.94)}
[data-revitalized] .search-home-input b{background:#e8654f;color:#fff}

@font-face{font-family:'Plex Labels';font-style:normal;font-weight:600;font-display:swap;src:url('/site/fonts/plex-mono-600-latin-ext.woff2?v=9203938fd2') format('woff2');unicode-range:U+0100-02FF,U+1E00-1EFF}

/* Founder: as cores do site seguem o sistema regional, inclusive o mapa. */
[data-revitalized] .vbox .d-novice{stroke:var(--piste-novice)}
[data-revitalized] .vbox .d-easy{stroke:var(--piste-easy)}
[data-revitalized] .vbox .d-intermediate{stroke:var(--piste-intermediate)}
[data-revitalized] .vbox .d-advanced{stroke:var(--piste-advanced)}
[data-revitalized] .vbox .d-expert{stroke:var(--piste-expert)}
[data-revitalized] .vbox .d-extreme{stroke:var(--piste-extreme)}
[data-revitalized] .vbox .d-freeride{stroke:var(--piste-freeride)}
[data-revitalized] .vbox .d-unknown{stroke:var(--piste-unknown)}

[data-revitalized] .hero-credit{min-height:3em}
[data-revitalized] .directory-related ul{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0;margin:12px 0}
[data-revitalized] .directory-related li{padding:0}
[data-revitalized] .directory-related a{display:inline-flex;align-items:center;min-height:44px;border:1px solid #cbd5e1;border-radius:999px;padding:8px 14px;background:#fff;color:#0e1b2c;text-decoration:none;font-size:14px}
[data-revitalized] .directory-related a:hover{background:#eef3f8}

/* Tela D: identificação curta e perfil leve sobre a foto; o gráfico completo segue abaixo. */
[data-revitalized] .run-hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"text text" "actions profile";align-items:start;gap:24px 40px;padding-bottom:24px}
[data-revitalized] .run-hero .hero-text{grid-area:text;max-width:100%}
[data-revitalized] .run-hero h1{font-size:clamp(48px,8.6vw,124px)}
[data-revitalized] .run-hero.n-l h1{font-size:clamp(42px,6vw,88px)}
[data-revitalized] .run-hero.n-xl h1{font-size:clamp(32px,4.2vw,62px)}
[data-revitalized] .run-hero .answer{font-size:18px}
[data-revitalized] .run-hero .cta{grid-area:actions;align-self:start;margin:0}
[data-revitalized] .hero-profile-mini{grid-area:profile;position:static;width:100%;margin:0;color:#e2e8f0}
/* Crédito em linha própria, depois do perfil: a altura do texto pode variar por idioma. */
[data-revitalized] .run-hero .hero-credit{position:relative;inset:auto;align-self:center;width:100%;max-width:1240px;box-sizing:border-box;margin:0;padding:0 40px 20px;min-height:0;text-align:right}
[data-revitalized] .hero-profile-mini figcaption{font:600 12px/1.5 var(--mono);text-align:right;text-transform:uppercase;letter-spacing:.06em;margin-bottom:14px}
[data-revitalized] .hero-profile-mini svg{display:block;width:100%;height:130px}
[data-revitalized] .mini-area{fill:#fff;opacity:.16}
[data-revitalized] .mini-line{fill:none;stroke:#fff;stroke-width:3;vector-effect:non-scaling-stroke}
[data-revitalized] .hero-profile-mini circle{fill:#e8654f;stroke:#0e1b2c;stroke-width:1}
[data-revitalized] .run-facts{padding-top:24px;max-width:900px}
@media(max-width:760px){[data-revitalized] .run-hero .wrap{display:block;padding-bottom:24px}[data-revitalized] .run-hero .cta{margin-top:22px}[data-revitalized] .run-hero .hero-credit{padding:0 16px 16px;text-align:left}[data-revitalized] .run-hero h1{font-size:clamp(38px,11vw,62px)}[data-revitalized] .hero-profile-mini{position:relative;bottom:auto;right:auto;width:100%;margin:24px 0 0}[data-revitalized] .hero-profile-mini svg{height:110px}[data-revitalized] .hero-profile-mini figcaption{text-align:left}}

/* Tela M2: foto de 560px, título ajustado à largura e conteúdo curto junto à base. */
@media(max-width:760px){
 [data-revitalized] .resort-hero{min-height:560px;padding-top:260px}
 [data-revitalized] .resort-hero h1{font-size:clamp(56px,16.3vw,64px);letter-spacing:-.01em;line-height:.92}
 [data-revitalized] .resort-hero.n-l h1{font-size:clamp(32px,10vw,48px)}
 [data-revitalized] .resort-hero.n-xl h1{font-size:32px}
 [data-revitalized] .resort-hero .hero-credit{position:absolute;top:92px;left:16px;right:16px;bottom:auto;width:auto;max-width:calc(100% - 32px);padding:5px 8px;min-height:0;font-size:11px;background:rgba(14,27,44,.86);border-radius:4px}
 [data-revitalized] .resort-hero .answer{font-size:15px}
 [data-revitalized] .resort-hero .hero-img img{object-position:48% 30%}
 [data-revitalized] .resort-hero::after{background:linear-gradient(180deg,rgba(14,27,44,.6),rgba(14,27,44,0) 25%,rgba(14,27,44,.2) 50%,rgba(14,27,44,.95))}
}

/* Regras compartilhadas evitam repetir estilos em centenas de símbolos no HTML. */
[data-revitalized] .site-difficulty{display:inline-flex;align-items:center;gap:8px}
[data-revitalized] .difficulty-symbol{fill:currentColor;flex-shrink:0;vertical-align:middle}

/* Tela B: título em três linhas e busca logo abaixo, sem prosa entre os dois. */
[data-revitalized] .home-hero .hero-img img{object-position:center 55%}
[data-revitalized] .home-intro{padding-top:20px;padding-bottom:20px}
[data-revitalized] .home-intro p{max-width:760px;margin:0}
@media(min-width:761px){
 [data-revitalized] .home-hero{min-height:760px;padding-top:140px}
 [data-revitalized] .home-hero h1{font-size:clamp(72px,7.23vw,104px);max-width:12ch}
 [data-revitalized] .home-hero::after{background:linear-gradient(90deg,rgba(14,27,44,.86),rgba(14,27,44,.55) 42%,rgba(14,27,44,.05) 75%),linear-gradient(180deg,rgba(14,27,44,.55),transparent 22%,transparent 70%,rgba(14,27,44,.9))}
}

@media(max-width:760px){[data-revitalized].home .bar{display:flex}}

/* Founder TASK-0311: sem foto, relevo menor sobre azul; foto conserva o hero aprovado. */
[data-revitalized] .hero:has(.clean-relief){background:#0e1b2c}
/* Sem foto não há o que escurecer: o relevo aparece inteiro, sem a camada escura por cima (QA 2, M1). */
[data-revitalized] .hero:has(.clean-relief)::after{content:none}
[data-revitalized] .clean-relief{display:flex;align-items:center;justify-content:flex-end;padding:60px;box-sizing:border-box}
[data-revitalized] .clean-relief img{width:auto;height:auto;max-width:min(35vw,360px);max-height:360px;object-fit:contain;flex:none;background:transparent;border-radius:16px;box-shadow:0 0 0 1px #4b5b6e}
[data-revitalized] .run-hero .clean-relief{align-items:flex-start;padding-top:120px}
[data-revitalized] .run-hero .clean-relief img{max-height:200px}
@media(min-width:761px){
 /* O relevo segue a coluna do conteúdo (a mesma borda direita do botão Jogar) e começa na altura das migalhas;
    o topo acaba onde acaba o texto, sem a faixa azul vazia do min-height. */
 [data-revitalized] .hero:has(.clean-relief){min-height:0}
 [data-revitalized] .clean-relief{align-items:flex-start;padding:140px max(var(--gutter),calc((100% - var(--page))/2 + var(--gutter))) 24px}
 [data-revitalized] .clean-relief img{max-width:min(30vw,300px);max-height:min(300px,100%)}
 [data-revitalized] .run-hero .clean-relief{padding-top:140px}
 [data-revitalized] .run-hero .clean-relief img{max-width:240px;max-height:min(200px,100%)}
 [data-revitalized] .resort-hero:has(.clean-relief) .hero-text{max-width:calc(100% - min(30vw,300px) - 40px)}
 [data-revitalized] .run-hero:has(.clean-relief) .hero-text{max-width:calc(100% - 240px - 40px)}
 [data-revitalized] .resort-hero:has(.clean-relief) .wrap{padding-bottom:28px}
 [data-revitalized] .resort-hero:has(.clean-relief) .hero-credit{right:auto;bottom:auto;min-height:0;max-width:var(--page);padding:0 var(--gutter) 24px}
}
@media(max-width:760px){
 [data-revitalized] .resort-hero:has(.clean-relief) .hero-text{max-width:100%}
 [data-revitalized] .hero:has(.clean-relief){padding-top:340px;justify-content:flex-start}
 [data-revitalized] .clean-relief{align-items:flex-start;justify-content:center;padding:120px 16px 0}
 [data-revitalized] .clean-relief img{max-width:calc(100vw - 32px);max-height:200px}
}
/* Faixa de números: o complemento do número (ex.: "de 160 · empate") quebra inteiro, nunca no meio. */
[data-revitalized] .nums dd small{display:inline-block}
/* Rankings da estação: o número desce para a linha de baixo, alinhado ao nome, em vez de quebrar no meio (QA 2, BAIXA a 1024 px). */
[data-revitalized] .toplist li>svg{margin-right:6px}
[data-revitalized] .toplist li>.run-difficulty{white-space:nowrap}
[data-revitalized] .toplist li>small:last-child{display:block;padding-left:24px;margin-top:-6px}
/* Home no celular: o título cabe palavra por palavra (MOUNTAINS., MONTANHAS) em 360 e 390 px, sem letra solta na linha de baixo. */
@media(max-width:760px){[data-revitalized] .home-hero h1{font-size:clamp(32px,10.4vw,62px)}}
/* QA 3, 19/11 */
/* M-b: o servidor já manda esses rótulos em caixa alta com a unidade minúscula (upperKeepUnits). */
[data-revitalized] .resort-hero .kicker,[data-revitalized] .hero-profile-mini figcaption{text-transform:none}
/* BAIXA: a legenda do perfil não deixa "THE TOP" sozinho na linha. */
[data-revitalized] .hero-profile-mini figcaption{text-wrap:balance}
/* M-a: sem foto, no celular, o crédito desce para o pé do topo, abaixo do texto, e não encosta no relevo em 2 linhas. */
@media(max-width:760px){
 [data-revitalized] .resort-hero:has(.clean-relief) .hero-credit{position:relative;top:auto;left:auto;right:auto;bottom:auto;width:100%;max-width:100%;background:none;border-radius:0;padding:0 16px 16px;text-align:left}
 [data-revitalized] .resort-hero:has(.clean-relief) .wrap{padding-bottom:16px}
 [data-revitalized] .resort-hero:has(.clean-relief){padding-top:300px}
 [data-revitalized] .resort-hero .clean-relief{padding-top:84px}
 /* M-e (QA 4): com foto, um degradê escuro atrás do bloco de texto do topo, no lugar da sombra no destaque. */
 [data-revitalized] .home-hero .hero-text,[data-revitalized] .resort-hero:not(:has(.clean-relief)) .hero-text{position:relative}
 [data-revitalized] .home-hero .hero-text::before,[data-revitalized] .resort-hero:not(:has(.clean-relief)) .hero-text::before{content:'';position:absolute;z-index:-1;left:-16px;right:-16px;top:-72px;bottom:-480px;pointer-events:none;background:linear-gradient(180deg,rgba(14,27,44,0),rgba(14,27,44,.8) 64px)}
}

/* TASK-0311 · protótipos B e M1, estilos isolados da experiência legada. */
.search-open{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-width:44px;min-height:44px;border:0;background:transparent;color:inherit;cursor:pointer}
.search-open kbd{font:600 12px var(--mono,monospace);border:1px solid currentColor;border-radius:5px;padding:1px 6px}
.search-home{position:relative;width:min(100%,720px);margin:24px 0}
.search-home-input{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:10px 20px;border:0;border-radius:16px;background:#fff;color:#0e1b2c;font:500 20px 'IBM Plex Sans',sans-serif;text-align:left;box-shadow:0 20px 50px #0004;cursor:pointer}
.search-home-input span{flex:1}.search-home-input b{padding:12px 22px;border-radius:999px;background:#e8654f;color:#fff;font-size:16px}
.search-dialog{position:fixed;top:14vh;bottom:auto;width:min(720px,calc(100% - 48px));max-height:78dvh;padding:0;border:1px solid #e2e8f0;border-radius:16px;background:#fff;color:#0e1b2c;box-shadow:0 30px 70px #0006;overflow:auto;font:400 16px/1.5 'IBM Plex Sans',sans-serif;overscroll-behavior:contain}
.search-dialog::backdrop{background:#0e1b2c99}
.search-form{display:flex;gap:10px;align-items:center;margin:0;padding:14px 20px;border-bottom:1px solid #e2e8f0;background:#fff;position:sticky;top:0;z-index:1}
.search-field{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:50px;border:2px solid #0e1b2c;border-radius:14px;padding:0 14px}
.search-field svg{flex-shrink:0}.search-field input{border:0;outline:0;width:100%;min-width:0;background:transparent;color:#0e1b2c;font:500 20px 'IBM Plex Sans',sans-serif}
.search-cancel{min-height:44px;padding:0 6px;border:0;background:transparent;color:#0e1b2c;font:600 14px 'IBM Plex Sans',sans-serif;cursor:pointer}
.search-status{margin:0;padding:8px 20px;color:#4b5b6e;font-size:14px;min-height:24px}.search-status:empty{padding:0;min-height:0}
.search-group{font:600 12px 'IBM Plex Mono',monospace;letter-spacing:.1em;text-transform:uppercase;color:#4b5b6e;padding:12px 20px 4px}
.search-result{display:flex;align-items:center;gap:14px;padding:10px 20px;min-height:52px;box-sizing:border-box;text-decoration:none;color:#0e1b2c}.search-result:hover,.search-result[aria-selected=true]{background:#eef3f8;color:#0e1b2c}.search-result>svg{flex-shrink:0}.search-result-thumb{flex-shrink:0;width:48px;height:30px;object-fit:cover;border-radius:6px;background:#c9d6e3}.search-result-copy{display:flex;flex-direction:column;flex:1;min-width:0;overflow-wrap:anywhere}.search-result-copy b{font-size:16px}.search-result-copy small{font-size:13px;color:#4b5b6e}.search-result mark{background:transparent;color:inherit;text-decoration:underline}.search-result-meta{font:500 12px 'IBM Plex Mono',monospace;color:#4b5b6e;background:#eef3f8;border-radius:6px;padding:3px 8px;white-space:nowrap}
.search-footer{display:flex;flex-direction:column;gap:6px;border-top:1px solid #e2e8f0;margin-top:6px;padding:12px 20px;color:#4b5b6e;font-size:13px}.search-footer small{font-size:12px}.search-recent button{display:block;min-height:44px;padding:8px 20px;border:0;background:transparent;color:#4b5b6e;font:400 16px 'IBM Plex Sans',sans-serif;text-align:left;cursor:pointer}.search-recent .search-clear{font-size:13px;text-decoration:underline}
.search-open:focus-visible,.search-home-input:focus-visible,.search-cancel:focus-visible,.search-result:focus-visible,.search-recent button:focus-visible{outline:3px solid #c9432c;outline-offset:3px}.search-field:focus-within{outline:3px solid #c9432c;outline-offset:2px}
@media(max-width:600px){.search-open kbd{display:none}.search-home-input{font-size:16px;padding:10px 14px}.search-home-input b{display:none}.search-dialog{inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0}.search-form{padding:calc(16px + env(safe-area-inset-top)) 16px 12px}.search-field{padding:0 12px}.search-field input{font-size:17px}.search-group,.search-result{padding-left:16px;padding-right:16px}.search-result-meta{display:none}.search-footer>span{display:none}.search-footer{padding-bottom:calc(16px + env(safe-area-inset-bottom))}}

.search-dialog.search-anchored{margin:0;max-height:calc(100dvh - 24px)}
.search-dialog.search-anchored::backdrop{background:rgba(14,27,44,.55)}

.search-open{border-radius:999px;background:rgba(255,255,255,.14);padding:0 14px}
.search-open-label{font:400 14px 'IBM Plex Sans',sans-serif;white-space:nowrap}
/* QA 2, 19/11: abaixo de 1201 px o botão vira só a lupa (44 x 44); o atalho / continua valendo, sem o kbd espremido. */
@media(max-width:1200px){.search-open-label,.search-open kbd{display:none}.search-open{padding:0;width:44px}}
.search-open svg{flex-shrink:0}

/* Home desktop: campo original e painel a 10 px, inclusive pelo atalho /. */
.search-submit{display:none}
@media(min-width:601px){
.search-dialog.search-anchored{background:transparent;border:0;box-shadow:none;overflow:visible;max-height:none}
.search-anchored .search-form{min-height:64px;height:64px;padding:0 20px;gap:12px;border:0;border-radius:16px;margin-bottom:10px;box-shadow:0 20px 50px #0004}
.search-anchored .search-field{min-height:44px;border:0;padding:0;border-radius:0}
.search-anchored .search-field:focus-within{outline:0}
.search-anchored .search-field input:focus-visible{outline:2px solid #c9432c;outline-offset:3px;border-radius:4px}
.search-anchored .search-cancel{display:none}
.search-anchored .search-submit{display:block;min-height:44px;padding:0 22px;border:0;border-radius:999px;background:#e8654f;color:#fff;font:600 16px 'IBM Plex Sans',sans-serif;cursor:pointer}
.search-anchored .search-submit:focus-visible{outline:3px solid #0e1b2c;outline-offset:3px}
.search-anchored .search-panel{background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 30px 70px #0006;max-height:calc(var(--search-room,78dvh) - 74px);overflow:auto}
}

.search-open{flex-shrink:0}
#site-search-results[data-stale=true]{opacity:.65;pointer-events:none}
