/* Archivo, served from the theme (no Google Fonts): variable width 62–125 %, weight 100–900 */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  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: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-italic.woff2) format("woff2-variations"); }
/* Layout concept: the logo is the headline. One family (Archivo) carries everything,
   condensed and heavy for race facts, normal width for reading. Colour comes only from
   the two logo blues; honey marks the Le Rucher segment, red is kept for the course marking. */
:root {
  color-scheme: light;
  --navy: #184d8a;        /* logo rider */
  --sky: #5ab6e6;         /* logo peaks */
  --night: #0e2a4d;       /* deep navy for dark bands */
  --snow: #f2f7fb;        /* page ground, a glacier-tinted white */
  --ink: #12253d;         /* text */
  --muted: #4d6077;       /* secondary text, 6.4:1 on snow */
  --line: #d5e2ee;
  --surface: #ffffff;
  --honey: #f2b134;       /* segment Le Rucher */
  --marking: #d8261c;     /* course marking red (factual use only) */
  --on-dark: #eaf3fb;
  --on-dark-muted: #b4c9de;
  --asphalt: #2f3a48;
  --dirt: #5ab6e6;
  --single: #184d8a;
  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1200px;
  --r-sm: 4px;
  --r-md: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font); font-stretch: 72%; font-weight: 800; line-height: 1; letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); color: var(--navy); }
h3 { font-size: 1.6rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.lead { color: var(--muted); max-width: 58ch; }
.fact { font-stretch: 72%; font-weight: 700; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55em 1.25em; border-radius: var(--r-sm); border: 2px solid transparent; font: inherit; font-stretch: 80%; font-weight: 750; font-size: 1.08rem; text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--sky); color: var(--night); }
.btn-primary:hover { background: #7ac6ee; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #12406f; }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: rgba(255,255,255,.1); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--night); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; font-size: .98rem; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--sky); }
.site-header .nav a { color: #fff; }
.lang { display: flex; gap: 2px; font-size: .85rem; }
.lang button, .lang a { background: none; border: 0; padding: 6px 8px; min-height: 32px; cursor: pointer; color: var(--on-dark-muted); font: inherit; border-radius: var(--r-sm); }
.lang button[aria-pressed="true"], .lang a[aria-current] { color: #fff; font-weight: 700; background: rgba(255,255,255,.12); }
.header-cta { min-height: 42px; padding: .4em 1em; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }
@media (max-width: 960px) {
  .nav, .lang, .header-cta { display: none; }
  .menu-btn { display: block; }
  .site-header.open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px var(--gutter) 16px; }
  .site-header.open .nav a { padding-block: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-header.open .nav .lang-m { display: flex; border: 0; padding-top: 12px; }
  .site-header.open .nav .lang-m a { border: 0; padding: 8px 12px; min-height: 44px; }
}
.nav .lang-m { display: none; }

/* hero: photo, logo, date, one action */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, 50% 50%); }
@media (max-width: 600px) { .hero-media img { object-position: var(--hero-pos-m, var(--hero-pos, 50% 50%)); } }   /* phones: the rider sits right of the text */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,42,77,.86) 0%, rgba(14,42,77,.55) 42%, rgba(14,42,77,0) 72%); }
.hero .wrap { min-height: clamp(540px, 78vh, 760px); display: grid; align-content: end; gap: 22px; padding-block: 48px clamp(40px, 7vw, 72px); }
.hero-title { font-size: clamp(3.2rem, 9vw, 7.6rem); font-weight: 900; font-stretch: 66%; line-height: .9; letter-spacing: -0.01em; max-width: 9ch; text-wrap: balance; }
.hero-date { font-stretch: 72%; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; }
.hero-date span { display: block; font-stretch: 100%; font-weight: 500; font-size: .42em; line-height: 1.4; color: #e6eef7; margin-top: 8px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.hero-row { display: flex; align-items: flex-end; gap: 18px 24px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown { display: grid; gap: 6px; }
.cd-note { font-size: .95rem; font-weight: 600; color: #fff; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.cd-label { font-size: 1rem; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); margin-top: 6px; }
.cd-tiles { display: flex; gap: 10px; }
.cd-tile { display: grid; justify-items: center; min-width: clamp(64px, 8vw, 92px); padding: 10px 8px 8px; border-radius: var(--r-md); background: rgba(14,42,77,.72); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cd-tile .n { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; font-stretch: 66%; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cd-tile .u { font-size: .8rem; font-weight: 600; color: var(--sky); margin-top: 4px; }
.cd-tile:first-child { background: var(--sky); border-color: var(--sky); }
.cd-tile:first-child .n { color: var(--night); }
.cd-tile:first-child .u { color: var(--night); }
@media (max-width: 560px) { .countdown { width: 100%; } .cd-tiles { gap: 6px; } .cd-tile { min-width: 0; flex: 1; padding: 8px 2px 6px; } .cd-tile .u { font-size: .62rem; letter-spacing: .04em; } }
.hero-note { color: #fff; font-size: 1rem; font-weight: 500; background: rgba(14,42,77,.78); padding: 8px 14px; border-radius: var(--r-sm); text-shadow: 0 1px 2px rgba(0,0,0,.35); }   /* own backdrop: readable over any part of the photo */
.hero-note strong { color: var(--sky); font-weight: 700; font-variant-numeric: tabular-nums; }

/* series strip under the hero */
.series { background: var(--night); color: var(--on-dark-muted); }
.series .wrap { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding-block: 14px; font-size: .95rem; }
.series img { height: 30px; width: auto; background: #fff; border-radius: var(--r-sm); padding: 3px 6px; }

section.block { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; }

/* races */
.races { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .races { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .races { grid-template-columns: 1fr; } }
.race { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--r-md); overflow: hidden; text-decoration: none; border: 1px solid var(--line); }
.race:hover .race-img img { transform: scale(1.03); }
.race-img { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.race-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bib { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--night); border-radius: 3px; padding: 8px 12px 2px; font-stretch: 62%; font-weight: 900; font-size: 2.5rem; line-height: 1; transform: rotate(-3deg); box-shadow: 0 3px 10px rgba(14,42,77,.35); border-top: 5px solid var(--navy); }
.bib small { font-size: .45em; font-weight: 800; margin-left: 2px; }
.race-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.race-body h3 { color: var(--navy); }
.race-meta { color: var(--muted); font-size: .95rem; }
.spark { width: 100%; height: 46px; }
.race-link { font-weight: 700; font-size: .95rem; color: var(--navy); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }
.race[data-soon] .race-link { color: var(--muted); text-decoration: none; }

/* phase band */
.band { color: var(--on-dark); background: url(../img/contours-herens.svg) 50% 60% / cover, var(--navy); }   /* real contour lines of the Val d'Hérens */
.band .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 6vw, 72px); }
@media (max-width: 820px) { .band .wrap { grid-template-columns: 1fr; } }
.band h2 { color: #fff; margin-bottom: 14px; }
.band p { color: var(--on-dark-muted); max-width: 54ch; }
.perks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.perks li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.perks svg { width: 20px; height: 20px; color: var(--sky); margin-top: 3px; }
.band-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* kids */
.kids { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .kids { grid-template-columns: 1fr; } }
.kids-photo { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; }
.kids-photo img { width: 100%; height: 100%; object-fit: cover; }
.kids-text { display: grid; gap: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 700; color: var(--navy); }
.champions { color: var(--muted); font-size: .95rem; }
.champions strong { color: var(--ink); font-weight: 600; }

/* news */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } }
.post { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.post-img { aspect-ratio: 3/2; border-radius: var(--r-md); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post time { color: var(--muted); font-size: .88rem; }
.post h3 { font-stretch: 100%; font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.post:hover h3 { color: var(--navy); text-decoration: underline; text-decoration-color: var(--sky); }
.post p { color: var(--muted); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.partners { display: flex; gap: clamp(24px, 5vw, 56px); align-items: center; flex-wrap: wrap; justify-content: center; padding-block: 36px; border-top: 1px solid var(--line); }
.partners img { height: 52px; width: auto; }
.partners .rucher { font-family: Georgia, serif; font-style: italic; font-size: 1.45rem; color: var(--navy); }
footer { background: url(../img/contours-herens.svg) 50% 30% / cover, var(--night); color: var(--on-dark-muted); font-size: .95rem; }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-block: 48px; }
footer h4 { margin: 0 0 8px; color: #fff; font-stretch: 72%; font-weight: 800; font-size: 1.35rem; }
footer a { color: var(--on-dark); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; font-size: .85rem; }
footer .foot-logo { height: 70px; width: auto; margin-bottom: 10px; }

/* ---------- course page ---------- */
.course-hero { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; }
.course-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.course-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14,42,77,.9) 0%, rgba(14,42,77,.35) 60%, rgba(14,42,77,.1) 100%); }
.course-hero .wrap { padding-block: clamp(110px, 15vw, 180px) 72px; display: grid; gap: 14px; }
.crumbs { font-size: .9rem; color: var(--on-dark-muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.course-hero h1 { font-size: clamp(3.6rem, 11vw, 8rem); font-weight: 900; font-stretch: 62%; line-height: .88; }
.course-hero h1 span { display: block; font-size: .42em; font-weight: 700; font-stretch: 80%; color: var(--sky); margin-top: .12em; }
.course-hero .lead { color: #dce9f5; font-size: 1.08rem; }
.marking { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.marking i { width: 26px; height: 6px; border-radius: 3px; background: var(--marking); display: inline-block; }
.stats-wrap { position: relative; z-index: 2; margin-top: -40px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0; overflow: hidden; }
.stats div { padding: 16px 18px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { color: var(--muted); font-size: .88rem; }
.stats dd { margin: 4px 0 0; font-stretch: 72%; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stats dd small { font-size: .55em; color: var(--muted); margin-left: 3px; font-weight: 700; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div { border-bottom: 1px solid var(--line); } .stats div:nth-child(2n) { border-right: 0; } .stats div:last-child { grid-column: 1 / -1; border-bottom: 0; } }

/* tour: map and profile stacked on the left, key points on the right; sizes never depend on content */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; scroll-margin-top: 84px; }
.map-wrap { grid-column: 1; grid-row: 1; position: relative; height: clamp(320px, calc(100vh - 320px), 560px); background: var(--night); }
#map { position: absolute; inset: 0; }
[hidden] { display: none !important; }   /* components set their own display, so hidden must win everywhere */
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-dark-muted); text-align: center; padding: 24px; }
.map-tools { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; gap: 8px; }
.map-tools .basemap { display: flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(14,42,77,.25); }
.map-tools .basemap button { min-height: 34px; padding: 6px 10px; box-shadow: none; background: transparent; }
.map-tools .basemap button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.map-tools button { min-height: 40px; border: 0; border-radius: var(--r-sm); padding: 8px 12px; background: rgba(255,255,255,.95); color: var(--navy); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; box-shadow: 0 2px 10px rgba(14,42,77,.25); }
.profile-wrap { grid-column: 1; grid-row: 2; padding: 10px 14px 6px; border-top: 1px solid var(--line); }
.poi-panel { grid-column: 2; grid-row: 1 / span 2; position: relative; border-left: 1px solid var(--line); min-width: 0; }
.poi-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.poi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.poi-top h3 { color: var(--navy); font-size: 1.4rem; }
.poi-top .btn { min-height: 40px; font-size: .98rem; padding: .35em .9em; }
.poi-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 0; }
.poi-list button { width: 100%; display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; text-align: left; background: none; border: 0; border-radius: var(--r-sm); padding: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.poi-list button:hover { background: var(--snow); }
.poi-list .n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--snow); color: var(--navy); font-weight: 800; font-size: .85rem; border: 2px solid var(--navy); }
.poi-list .n.cut { border-color: var(--marking); }
.poi-list .nm { font-weight: 700; line-height: 1.2; }
.poi-list .sub { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.poi-list .sub svg { width: 15px; height: 15px; color: var(--navy); }
.poi-list .sub svg.cut { color: var(--marking); }
.poi-list .sub svg.segment { color: #b07800; }
.poi-list button[aria-current="step"] { background: var(--navy); color: #fff; }
.poi-list button[aria-current="step"] .n { background: var(--sky); color: var(--night); border-color: #fff; }
.poi-list button[aria-current="step"] .sub, .poi-list button[aria-current="step"] .sub svg { color: var(--on-dark-muted); }
.poi-list button.passed .n { background: var(--navy); color: #fff; }
.poi-fallback { padding: 12px 14px; border-top: 1px solid var(--line); }
.poi-gpx { padding: 12px 14px; border-top: 1px solid var(--line); }
.poi-gpx .btn { width: 100%; gap: 8px; color: var(--navy); font-size: 1rem; white-space: nowrap; }
.poi-gpx .btn:hover { background: var(--navy); color: #fff; }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .map-wrap { height: clamp(360px, 62vh, 520px); }
  .poi-panel { grid-column: 1; grid-row: 3; border-left: 0; border-top: 1px solid var(--line); }
  .poi-inner { position: static; }
  .poi-list { overflow: visible; }
}

/* information bubble on the map */
.stop-pop .maplibregl-popup-content { padding: 0; border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(14,42,77,.35); font-family: var(--font); }
.stop-pop .maplibregl-popup-close-button { width: 36px; height: 36px; font-size: 22px; color: var(--muted); border-radius: 0 var(--r-md) 0 0; }
.pop { width: 340px; max-height: var(--pop-max, 380px); overflow-y: auto; padding: 14px 16px 12px; display: grid; gap: 9px; align-content: start; color: var(--ink); }
.map-sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 4; background: var(--surface); border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(14,42,77,.35); max-height: 58%; overflow-y: auto; }
.map-sheet .pop { width: auto; max-height: none; }
.map-sheet .x { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.pop .meta { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; padding-right: 26px; }
.pop h4 { margin: 0; font-stretch: 72%; font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--navy); }
.pop .tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.pop .tags li { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 3px 9px 3px 5px; border-radius: 99px; background: var(--snow); color: var(--navy); }
.pop .tags li svg { width: 16px; height: 16px; }
.pop .tags li.cut { background: #fdecea; color: #a1180f; }
.pop .tags li.segment { background: #fdf2dc; color: #7a4f00; }
.pop .txt { font-size: .92rem; line-height: 1.5; }
.pop .txt p + p { margin-top: 6px; }
.pop .acts { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.pop .acts .btn { min-height: 38px; font-size: .95rem; padding: .3em .9em; }
.text-btn { background: none; border: 0; padding: 8px 4px; min-height: 38px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--navy); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; cursor: pointer; }
.dwell { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.dwell i { display: block; height: 100%; width: 0; background: var(--sky); animation: dwell var(--dwell, 7s) linear forwards; }
@keyframes dwell { to { width: 100%; } }

/* photo: small thumbnail in the bubble, opens over the map */
.pop-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding-right: 22px; }
.pop-head:not(:has(.thumb)) { grid-template-columns: minmax(0, 1fr); }   /* key points without a photo */
.thumb { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; background: var(--snow); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.thumb:hover img { transform: scale(1.08); }
.thumb .zoom { position: absolute; right: 3px; bottom: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(14,42,77,.82); color: #fff; display: grid; place-items: center; }
.thumb .zoom svg { width: 13px; height: 13px; }
.pop-head .meta { padding-right: 0; }
.map-lightbox { position: absolute; inset: 0; z-index: 6; background: rgb(8,22,42); }
.map-lightbox figure { margin: 0; position: absolute; inset: 52px 16px 64px; }
.map-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.map-lightbox figcaption { position: absolute; left: 0; right: 0; bottom: -54px; color: var(--on-dark); font-size: .9rem; line-height: 1.4; text-align: center; }
.map-lightbox figcaption span { color: var(--on-dark-muted); }
@media (max-width: 600px) { .map-lightbox figure { inset: 60px 10px 92px; } .map-lightbox figcaption { bottom: -84px; font-size: .82rem; } }
.map-lightbox .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.map-lightbox .x:hover { background: rgba(255,255,255,.24); }

/* map markers */
.pin { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy); border: 2px solid var(--navy); display: grid; place-items: center; font: 800 .85rem/1 var(--font); box-shadow: 0 2px 8px rgba(14,42,77,.4); cursor: pointer; padding: 0; }
.pin.cut { border-color: var(--marking); }
.pin.active { background: var(--sky); color: var(--night); border-color: #fff; box-shadow: 0 0 0 7px rgba(90,182,230,.4), 0 2px 10px rgba(14,42,77,.5); }
.pin.pop-in { animation: popin .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes popin { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mini { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--marking); }
.mini::before, .mini::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--marking); transform: translate(-50%, -50%); }
.mini::before { width: 8px; height: 2px; }
.mini::after { width: 2px; height: 8px; }
.seg-label { font: 700 .82rem/1 var(--font); color: #5a3a00; background: var(--honey); padding: 5px 8px; border-radius: var(--r-sm); box-shadow: 0 2px 8px rgba(0,0,0,.25); white-space: nowrap; width: max-content; }
.peak { font: 700 .82rem/1 var(--font); color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); white-space: nowrap; width: max-content; }
.rider { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); box-shadow: 0 0 0 4px rgba(255,255,255,.45), 0 2px 8px rgba(0,0,0,.4); }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .85rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 22px; height: 5px; border-radius: 3px; display: inline-block; }
.legend em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
#profile { width: 100%; height: 150px; display: block; touch-action: pan-y; cursor: crosshair; }
#profile text { font: 11px var(--font); fill: var(--muted); }
.scrub { display: flex; align-items: center; gap: 14px; padding: 2px 0 6px 32px; }
.scrub input { flex: 1; min-width: 0; height: 28px; accent-color: var(--navy); cursor: grab; }
.scrub input:active { cursor: grabbing; }
.scrub output { flex: none; width: 15.5em; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.scrub output strong { color: var(--navy); }
@media (max-width: 560px) { .scrub { flex-wrap: wrap; padding-left: 0; gap: 2px; } .scrub output { width: 100%; text-align: left; } }
#profile .pnum { font-weight: 800; fill: var(--navy); font-size: 10px; }
.example-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.two-col h3 { color: var(--navy); margin-bottom: 14px; }
.info-list { border-top: 1px solid var(--line); }
.info-list details { border-bottom: 1px solid var(--line); }
.info-list summary { cursor: pointer; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.info-list summary::-webkit-details-marker { display: none; }
.info-list summary::after { content: "+"; color: var(--navy); font-size: 1.3rem; line-height: 1; }
.info-list details[open] summary::after { content: "–"; }
.info-list .body { padding: 0 0 16px; color: var(--muted); }
.info-list ul { margin: 0; padding-left: 1.1em; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline time { font-stretch: 72%; font-weight: 800; font-size: 1.15rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline li.mine span { font-weight: 700; }

.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.prices { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.prices th, .prices td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prices thead th { font-weight: 700; color: var(--navy); vertical-align: bottom; }
.prices thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.prices td.p, .prices th.p { text-align: right; font-variant-numeric: tabular-nums; }
.prices .now { background: #e8f4fb; }
.prices thead th.now { box-shadow: inset 0 3px 0 var(--sky); }
.prices tbody tr:last-child td { border-bottom: 0; }
.tier-note { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: .95rem; flex-wrap: wrap; color: var(--muted); }
.tier-note .pill { font-size: .8rem; font-weight: 700; background: var(--sky); color: var(--night); padding: 3px 10px; border-radius: 99px; }
.cta-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: var(--r-md); padding: 24px 26px; margin-top: 28px; }
.cta-strip h3 { color: #fff; }
.cta-strip p { color: var(--on-dark-muted); }
.other-races { display: flex; gap: 10px; flex-wrap: wrap; }
.other-races a { text-decoration: none; font-stretch: 72%; font-weight: 800; font-size: 1.3rem; color: var(--navy); padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }

/* series, accommodation, partners */
.series-block { background: var(--surface); color: var(--ink); }
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .series-grid { grid-template-columns: 1fr; } }
.serie { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; text-decoration: none; padding: 22px; border-radius: var(--r-md); background: var(--snow); border: 1px solid var(--line); }
.serie:hover { border-color: var(--sky); }
.serie img { width: 96px; height: 96px; object-fit: contain; }
.serie h3 { color: var(--navy); margin-bottom: 8px; }
.serie p { color: var(--muted); }
.serie-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 3px; }
.stay-main .serie-link { color: var(--sky); }
.stay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stay-grid { grid-template-columns: 1fr; } }
.stay { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; }
a.stay:hover { border-color: var(--sky); }
.stay h3 { color: var(--navy); font-size: 1.4rem; }
.stay p { color: var(--muted); }
.stay-main { grid-row: span 2; background: var(--navy); border-color: var(--navy); }
.stay-main h3 { color: #fff; font-size: 2rem; }
.stay-main p { color: var(--on-dark-muted); }
.stay-tag { justify-self: start; font-size: .82rem; font-weight: 700; color: var(--night); background: var(--sky); padding: 3px 10px; border-radius: 99px; }
@media (max-width: 900px) { .stay-main { grid-row: auto; grid-column: 1 / -1; } }
.partners-block { background: var(--surface); }
.partner-panel { background: var(--navy); color: var(--on-dark); border-radius: var(--r-md); padding: 6px clamp(18px, 3vw, 32px); }
.partner-panel .ptier:first-child { border-top: 0; }
.ptier { padding-block: 22px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: 180px 1fr; gap: 16px 32px; align-items: center; }
.ptier h3 { font-size: 1.1rem; font-stretch: 90%; font-weight: 700; color: var(--on-dark-muted); }
.ptier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; }
/* logos are white masks so the hover colour can change; the link text is visually hidden */
.plogo { display: block; height: var(--h); max-width: var(--mw); background-color: #fff; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; transition: background-color .2s ease, transform .2s ease; }
.plogo:hover, .plogo:focus-visible { background-color: var(--sky); transform: translateY(-2px); }
.plogo:focus-visible { outline: 2px solid var(--sky); outline-offset: 6px; }
.ptier-1 { --h: 92px; --mw: 220px; }
.ptier-2 { --h: 38px; --mw: 165px; }
.ptier-3 { --h: 30px; --mw: 130px; }
.plogo-morand { --h: 42px; }
.plogo-anako { --h: 46px; }   /* stacked wordmark: a little taller than the one-line logos */
@media (max-width: 760px) { .ptier { grid-template-columns: 1fr; } .ptier ul { gap: 22px 36px; } .ptier-1 { --h: 72px; } .ptier-2 { --h: 32px; --mw: 135px; } .ptier-3 { --h: 26px; --mw: 110px; } .plogo-morand { --h: 36px; } }
@media (prefers-reduced-motion: reduce) { .plogo:hover, .plogo:focus-visible { transform: none; } }

/* section photos */
.series-title { font-size: clamp(1.9rem, 4.2vw, 3.4rem); white-space: nowrap; margin-bottom: 28px; }
@media (max-width: 520px) { .series-title { white-space: normal; } }
.series-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.series-layout .series-grid { grid-template-columns: 1fr; }
.series-photo { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 9 / 11; }
.series-photo img, .wide-photo img, .podium-photo img, .side-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .series-layout { grid-template-columns: 1fr; } .series-photo { aspect-ratio: 16 / 10; } }
.wide-photo { margin: 0 0 18px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1500 / 560; }
.podium-photo { margin: 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1000 / 620; }
.prize-side { display: grid; gap: 18px; align-content: start; }
.side-photo { margin: 18px 0 0; }
.side-photo img { border-radius: var(--r-md); aspect-ratio: 3 / 2; height: auto; }   /* the shared height: 100% stretched it past the column */
.side-photo figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.band .perks { border-top: 0; gap: 8px; }
.photos-head { grid-template-columns: 1fr auto; align-items: end; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 10px; }
.shot { position: relative; overflow: hidden; border-radius: var(--r-sm); background: var(--night); }
.shot:first-child { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }
.shot span { position: absolute; left: 0; bottom: 0; right: 0; padding: 28px 14px 10px; color: #fff; font-stretch: 72%; font-weight: 800; font-size: 1.35rem; line-height: 1; background: linear-gradient(transparent, rgba(14,42,77,.75)); }
.shot:first-child span { font-size: 2rem; padding: 40px 20px 16px; }
@media (max-width: 700px) { .photos-head { grid-template-columns: 1fr; } .shots { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; } .shot:first-child { grid-column: span 2; grid-row: span 2; } .shot:last-child { grid-column: span 2; } }
main.page { min-height: 70vh; }
.page-wrap { padding-block: 40px 80px; max-width: 900px; }
main.page h1 { color: var(--navy); font-size: clamp(2.4rem, 6vw, 3.6rem); font-stretch: 66%; font-weight: 900; line-height: 1; margin: 6px 0 14px; }
main.page .crumbs, main.page .crumbs a { color: var(--muted); }
.news-all { margin-top: 28px; }
.news-page .page-wrap { max-width: none; }
.article .meta { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.article .chapo { font-size: 1.2rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.article figure { margin: 22px 0 26px; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16/9; }
.article figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article .body { max-width: 68ch; }
.article .body h3 { color: var(--navy); font-size: 1.5rem; font-stretch: 72%; margin: 30px 0 8px; }
.article .body p.q { font-weight: 700; color: var(--navy); margin-top: 22px; }
.article .back { display: inline-block; margin-top: 30px; }
.more-news { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.more-news h2 { color: var(--navy); font-size: 1.8rem; margin: 0 0 16px; }
.legal-page h2 { color: var(--navy); font-size: 1.6rem; margin: 34px 0 8px; }
.legal-page h3 { color: var(--navy); font-size: 1.15rem; margin: 20px 0 4px; }
.legal-page p { max-width: 68ch; }
.legal-date { color: var(--muted); font-size: .9rem; margin-top: 30px; }
.page-404 .page-wrap { padding-top: 60px; }
.big-404 { font-size: clamp(6rem, 22vw, 12rem); font-weight: 900; font-stretch: 62%; line-height: .8; color: var(--sky); margin: 0; }
.actions-404 { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 30px; }
.links-404 { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.links-404 a { color: var(--navy); font-weight: 600; }
.mso-status { margin-top: 18px; }
.programme-block { background: var(--surface); }
.programme-wrap { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.programme-cover { display: block; transform: rotate(-3deg); box-shadow: 0 18px 40px rgba(14,42,77,.28), 0 2px 6px rgba(14,42,77,.2); border-radius: 4px; overflow: hidden; transition: transform .3s ease; }
.programme-cover:hover { transform: rotate(-1deg) translateY(-4px); }
.programme-cover img { display: block; width: 100%; height: auto; }
.programme-block h2 { color: var(--navy); margin-bottom: 10px; }
.programme-points { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); }
@media (max-width: 700px) { .programme-wrap { grid-template-columns: 1fr; } .programme-cover { max-width: 220px; } }
.reader-wrap { max-width: 1240px; }
.reader-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.reader-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reader-tools .btn { min-height: 42px; padding: .4em .9em; color: var(--navy); }
.reader-tools .btn-primary { color: var(--night); }
.reader-count { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); }
.reader-note, .reader-hint { color: var(--muted); font-size: .92rem; }
.reader-stage { position: relative; margin: 18px 0 8px; padding: clamp(14px, 3vw, 36px); border-radius: var(--r-md); background: radial-gradient(ellipse at 50% 40%, #24548c, var(--night)); min-height: 420px; display: grid; place-items: center; }
.reader-stage:fullscreen { border-radius: 0; padding: 2vh 2vw; }
#flipbook { width: 100%; max-width: 1150px; margin: 0 auto; }
#flipbook .page img { width: 100%; height: 100%; object-fit: contain; display: block; }
.reader-loading { position: absolute; color: #fff; }
.gallery-wrap { max-width: none; }
.find-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 32px; align-items: end; margin: 26px 0 30px; padding: 22px 24px; border-radius: var(--r-md); background: var(--navy); color: #fff; }
.find-photos h2 { color: #fff; font-size: 1.7rem; margin: 0 0 4px; }
.find-photos p { margin: 0; color: var(--on-dark-muted); }
.find-row { display: flex; gap: 8px; }
.find-row input { flex: 1; min-width: 0; min-height: 46px; border: 0; border-radius: var(--r-sm); padding: 0 14px; font: inherit; }
.find-info { grid-column: 1 / -1; background: rgba(255,255,255,.12); border-radius: var(--r-sm); padding: 10px 14px; color: #fff !important; }
@media (max-width: 760px) { .find-photos { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; } }
.find-photos > * { min-width: 0; }
@media (max-width: 420px) { .find-row { flex-wrap: wrap; } .find-row .btn { flex: 1 0 100%; } }
/* gallery albums */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 18px; }
.album { display: grid; gap: 2px; text-decoration: none; color: var(--ink); }
.album-img { display: block; aspect-ratio: 4/3; border-radius: var(--r-md); overflow: hidden; background: var(--night); margin-bottom: 8px; }
.album-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.album:hover .album-img img, .album:focus-visible .album-img img { transform: scale(1.04); }
.album strong { color: var(--navy); font-size: 1.3rem; font-stretch: 80%; font-weight: 800; }
.album small { color: var(--muted); font-size: .95rem; }
.album-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 30px; color: var(--muted); }
.album-nav a { padding: .35em .9em; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; background: var(--surface); }
.album-nav a:hover { border-color: var(--navy); }
/* Kids Coaching Day page */
.kcd-page { max-width: 1100px; }
.kcd-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.kcd-top .facts { margin: 22px 0 24px; }
@media (max-width: 860px) { .kcd-top { grid-template-columns: 1fr; } }
.kcd-block { margin-top: 60px; scroll-margin-top: 90px; }
.kcd-block h2 { color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; }
.kcd-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.kcd-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; color: var(--muted); }
.kcd-list strong { display: block; color: var(--navy); font-size: 1.12rem; margin-bottom: 4px; }
.riders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }
.kcd-rider { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rider-img { aspect-ratio: 1; background: var(--navy); display: grid; place-items: center; color: #fff; font-size: 3.4rem; font-weight: 900; font-stretch: 66%; }
.rider-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rider-text { padding: 16px 18px 20px; }
.kcd-rider h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.3rem; }
.kcd-rider p { margin: 0; color: var(--muted); font-size: .95rem; }
.kcd-form-wrap { background: var(--navy); color: #fff; border-radius: var(--r-md); padding: clamp(22px, 4vw, 40px); }
.kcd-form-wrap h2 { color: #fff; }
.kcd-form-wrap .lead { color: var(--on-dark-muted); }
.kcd-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; margin-top: 22px; }
.kcd-form label { display: grid; gap: 6px; font-weight: 600; }
.kcd-form input { font: inherit; padding: .65em .85em; min-height: 48px; border-radius: var(--r-sm); border: 2px solid transparent; background: #fff; color: var(--ink); width: 100%; }
.kcd-form input:focus { outline: 3px solid var(--sky); outline-offset: 1px; }
.kcd-form input[aria-invalid="true"] { border-color: #ff8a7a; }
.kcd-cat { align-self: end; display: flex; align-items: center; gap: .4em; min-height: 48px; padding: .6em .9em; border-radius: var(--r-sm); background: rgba(255,255,255,.1); }
.kcd-cat strong { color: var(--sky); font-size: 1.15rem; }
.kcd-cat.bad { background: rgba(255,138,122,.18); }
.kcd-cat.bad strong { color: #ffb3a8; font-size: 1rem; }
.kcd-form .opt { font-weight: 400; color: var(--on-dark-muted); }
.kcd-form .btn { justify-self: start; align-self: end; }
.kcd-msg { grid-column: 1 / -1; margin: 0; padding: .8em 1em; border-radius: var(--r-sm); background: rgba(255,255,255,.12); }
.kcd-msg.bad { background: rgba(255,138,122,.2); }
.kcd-cats { margin: 22px 0 0; color: var(--on-dark-muted); font-size: .95rem; }
.kcd-cats strong { color: #fff; font-weight: 600; }
@media (max-width: 640px) { .kcd-form { grid-template-columns: 1fr; } }
.kids-text .btn { justify-self: start; }

.gallery-count { color: var(--muted); margin: 0 0 12px; }
.gallery { columns: 4 260px; column-gap: 10px; }
.gallery button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--night); cursor: zoom-in; break-inside: avoid; }
.gallery img { display: block; width: 100%; height: auto; transition: transform .4s ease, opacity .2s; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,20,38,.94); display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.glb-x, .glb-nav { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; cursor: pointer; }
.glb-x { top: 14px; right: 14px; }
.glb-nav { top: 50%; transform: translateY(-50%); } .glb-prev { left: 14px; } .glb-next { right: 14px; }
.glb-bar { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; align-items: center; gap: 18px; }
.glb-count { color: #fff; font-size: .9rem; }
.glb-dl { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; text-decoration: none; }
.glb-dl:hover, .glb-dl:focus-visible { background: rgba(255,255,255,.26); }
.gallery-wrap .lead { margin-bottom: 28px; }
.album-year + .album-year { margin-top: 36px; }
@media (max-width: 600px) { .glb-nav { top: auto; bottom: 8px; transform: none; } .glb-bar { bottom: 64px; } }
.mso-status:empty { display: none; }
.band .perks li { border: 0; background: rgba(14,42,77,.45); border-radius: var(--r-sm); padding: 12px 14px; }


/* prizes and palmarès */
.prize-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .prize-grid { grid-template-columns: 1fr; } }
.prize-card { display: grid; gap: 14px; align-content: start; }
.prize-card h3, .sub-h { color: var(--navy); }
.sub-h { margin: 34px 0 14px; }
.prize-table { min-width: 0; }
.prize-table td.todo { color: var(--muted); font-style: italic; }
.prize-rules { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }
.prize-card.record { background: var(--navy); color: #fff; border-radius: var(--r-md); padding: 22px; }
.prize-card.record h3 { color: #fff; }
.records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.records dt { color: var(--on-dark-muted); font-size: .9rem; }
.records dd { margin: 2px 0 4px; font-stretch: 72%; font-weight: 800; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.records p { color: var(--on-dark-muted); font-size: .92rem; }
.records .bonus { color: #fff; font-weight: 700; margin-top: 6px; }
.prize-note { color: var(--on-dark-muted); font-size: .9rem; }
.specials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .specials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .specials { grid-template-columns: 1fr; } }
.specials > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.specials h4 { margin: 0 0 6px; color: var(--navy); font-size: 1.05rem; }
.specials p { color: var(--muted); font-size: .95rem; }
.palmares table { min-width: 460px; }
.palmares tbody th { font-stretch: 72%; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; width: 90px; }
.variants { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); width: fit-content; max-width: 100%; }
.variants a { display: grid; align-content: center; min-height: 44px; padding: 6px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 750; color: var(--navy); }
.variants a small { font-weight: 500; font-size: .82rem; color: var(--muted); }
.variants a[aria-current] { background: var(--navy); color: #fff; }
.variants a[aria-current] small { color: var(--on-dark-muted); }
.variants button { display: grid; align-content: center; min-height: 44px; padding: 6px 16px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-weight: 750; color: var(--navy); cursor: pointer; }
.variants button[aria-selected="true"] { background: var(--navy); color: #fff; }
.zone-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; }
.zone-legend li, .zone-legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; flex: none; }
.sw-box { width: 16px; height: 12px; border-radius: 3px; background: var(--c); border: 1.5px solid var(--night); }
.sw-line { width: 22px; height: 5px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px rgba(14,42,77,.25); }
.sw-dash { width: 22px; height: 5px; background: repeating-linear-gradient(90deg, var(--c) 0 6px, transparent 6px 10px); box-shadow: 0 0 0 1px rgba(14,42,77,.35); }
.zn { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 800; vertical-align: 1px; box-shadow: 0 0 0 1px var(--navy); }
.view-tabs { margin-top: 2px; }
.view-pick { display: grid; gap: 6px; justify-items: start; }
.view-hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .9rem; font-weight: 600; color: var(--navy); }
.view-hint svg { color: var(--sky); flex: none; }
.view-tabs button[aria-selected="false"] { text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.zone-info { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; }
.zone-info h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 4px; }
.zone-info .where { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.zone-info dl { margin: 0 0 12px; }
.zone-info dl div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.zone-info dt { font-weight: 750; color: var(--navy); }
.zone-info .zgo { cursor: pointer; border-radius: var(--r-sm); padding-inline: 8px; margin-inline: -8px; }
.zone-info .zgo:hover dt { text-decoration: underline; }
.zone-info dd { margin: 3px 0 0; font-size: .95rem; }
.zone-info .zone-legend { font-size: .85rem; margin-bottom: 14px; }
.zone-info .btn { width: 100%; color: var(--navy); }
.tour.zone-mode .poi-top, .tour.zone-mode .poi-list, .tour.zone-mode .poi-gpx, .tour.zone-mode .profile-wrap { display: none; }
.zmark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; border: 2.5px solid #fff; font-weight: 800; font-size: .9rem; box-shadow: 0 2px 8px rgba(14,42,77,.45); cursor: default; }
.zmark { cursor: pointer; padding: 0; font-family: var(--font); transition: transform .12s ease; }
.zmark:hover, .zmark.on { transform: scale(1.15); background: var(--sky); color: var(--night); }
.zpop { padding: 14px 16px 12px; }
.zpop .meta { margin: 0 0 4px; }
.zpop h4 { color: var(--navy); font-size: 1.15rem; margin: 0 0 4px; }
.zpop p:last-child { margin: 0; font-size: .92rem; }
.zone-info .zgo.on { background: var(--snow); box-shadow: inset 3px 0 0 var(--sky); }
.zmarks-small .zmark { width: 20px; height: 20px; border-width: 2px; font-size: .7rem; }
@media (max-width: 860px) { .zone-info { overflow: visible; } }
.zn + .zn { margin-left: -2px; }
.pal-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; margin-bottom: 14px; }
.pal-tabs button { min-height: 40px; padding: 6px 18px; border: 0; border-radius: 99px; background: none; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.pal-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.palmares .flag { height: 14px; width: auto; vertical-align: -2px; margin-left: 6px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(14,42,77,.15); }
.rec { font-size: .75rem; font-weight: 700; color: var(--night); background: var(--sky); padding: 1px 7px; border-radius: 99px; margin-left: 4px; vertical-align: 1px; }

/* prototype controls */
.proto { position: fixed; z-index: 100; left: 0; right: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 24px); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 6px; align-items: center; background: #1b2532; color: #e3eaf2; border-radius: var(--r-md); padding: 8px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font: 500 .8rem/1.2 var(--font); }
.proto > span { padding-inline: 4px; color: #9fb0c3; }
.proto button { font: inherit; border: 1px solid #344356; background: #232f3e; color: #e3eaf2; padding: 7px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.proto button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--night); font-weight: 700; }
.proto .x { background: none; border: 0; color: #9fb0c3; font-size: 1.1rem; padding: 4px 8px; }
@media (max-width: 700px) { .proto { overflow-x: auto; font-size: .74rem; } .proto > span { display: none; } }
.toast { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 120; font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100% - 32px); }
.spacer-bottom { height: 72px; }

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

/* ---------- WordPress ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--sky); color: var(--night); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.entry-content > * + * { margin-top: 1em; }
.entry-content img { height: auto; border-radius: var(--r-sm); }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.entry-content .wp-block-image img, .entry-content p img { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--navy); font-weight: 700; text-decoration: none; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.post-img.no-img { background: url(../img/contours-herens.svg) 50% 50% / cover, var(--navy); }
.kcd-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.price-soon { padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--navy); font-weight: 700; }
.reader-stage canvas { display: block; }
.lang-note { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
/* photos inside an article keep their own shape (only the main image is cropped to 16:9) */
.article .body figure { aspect-ratio: auto; margin: 22px 0; }
.article .body figure img { height: auto; object-fit: contain; }
.article .body figcaption { color: var(--muted); font-size: .9rem; padding: 6px 2px 0; }

.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta-strip .mso-status { margin-top: 0; }
.band { scroll-margin-top: 78px; }

.kcd-form-wrap .kcd-note { margin: 8px 0 0; color: var(--on-dark-muted); font-size: .95rem; }
.kcd-submit { grid-column: 1 / -1; }
/* Evolène Région Tourisme: thin lettering, shown a little larger than the other sponsors */
.ptier-2 .plogo-ert { --h: 50px; --mw: 180px; }

/* registration status read from MSO Chrono, in the colours of the site */
.mso-badge { display: inline-grid; grid-template-columns: auto auto; align-items: center; gap: 4px 18px; padding: 12px 16px; border: 1.5px solid rgba(255,255,255,.35); border-radius: var(--r-md); background: rgba(14,42,77,.35); color: #fff; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.mso-badge:hover, .mso-badge:focus-visible { border-color: var(--sky); background: rgba(14,42,77,.6); }
.mso-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-stretch: 80%; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.mso-state i { width: 10px; height: 10px; border-radius: 50%; background: var(--on-dark-muted); }
.is-open .mso-state i { background: #4cd38a; box-shadow: 0 0 0 4px rgba(76,211,138,.25); }
.mso-count { justify-self: end; color: var(--on-dark-muted); font-size: .95rem; }
.mso-count strong { color: var(--sky); font-size: 1.25rem; font-stretch: 80%; font-variant-numeric: tabular-nums; }
.mso-by { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; color: var(--on-dark-muted); font-size: .82rem; }
.mso-badge:hover .mso-by { color: var(--sky); }

.price-late { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--honey); background: var(--surface); color: var(--ink); font-size: .95rem; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
