/* Nabız Stüdyo — a cycling stage profile in daylight. Cobalt sky fields, road-book paper, navy ink, five zone
   colours with hatching that tightens with effort. Saira (condensed widths) for figures and headings, Libre
   Franklin for reading. */

@font-face { font-family: 'Saira'; font-style: normal; font-weight: 100 900; font-stretch: 50% 125%; font-display: swap;
  src: url(../fonts/saira-latin-ext.woff2) format('woff2');
  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: 'Saira'; font-style: normal; font-weight: 100 900; font-stretch: 50% 125%; font-display: swap;
  src: url(../fonts/saira-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: 'Libre Franklin'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/franklin-latin-ext.woff2) format('woff2');
  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: 'Libre Franklin'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/franklin-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; }

:root {
  --ink: #0f1a2b;
  --ink-2: #2b3648;
  --muted: #566173;
  --paper: #f3f5f7;
  --paper-2: #e6eaf0;
  --white: #ffffff;
  --sky: #1d5fd1;
  --sky-d: #1650b8;
  --sky-p: #e3edff;
  --road: #141d2c;
  --z1: #4fb06d;
  --z2: #a9c93a;
  --z3: #f1c232;
  --z4: #ee8a2a;
  --z5: #e0432c;
  --z5-text: #c2331f;
  --focus: var(--ink);
  --head: 'Saira', 'Arial Narrow', sans-serif;
  --text: 'Libre Franklin', 'Segoe UI', sans-serif;
  --gut: clamp(1.1rem, 4vw, 3rem);
  --sec: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
html:not(.anim) { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--text); font-variant-numeric: tabular-nums; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-stretch: 78%; font-weight: 750; line-height: 1.02; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); margin-bottom: 1.1rem; }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); margin-bottom: .5rem; }
p { margin: 0 0 1rem; max-width: 68ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--z3); color: var(--ink); }
input, textarea { caret-color: var(--sky); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--sky) var(--paper-2); }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--sky); border: 3px solid var(--paper-2); border-radius: 8px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--z3); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }
.example { font: 600 .8125rem/1.4 var(--head); font-stretch: 85%; letter-spacing: .02em; color: var(--muted); margin: .6rem 0 0; }
.ph { color: var(--muted); font-style: italic; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem 1.15rem; border-radius: 6px;
  font: 700 1rem/1.1 var(--head); font-stretch: 85%; letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--go { background: var(--z3); color: var(--ink); border-color: var(--z3); }
.btn--go:hover { background: #ffd34d; border-color: #ffd34d; }
.btn--line { background: transparent; border-color: currentColor; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--on-sky { color: var(--white); }
.btn--on-sky:hover { background: var(--white); color: var(--sky-d); border-color: var(--white); }
.btn--big { min-height: 54px; font-size: 1.15rem; padding-inline: 1.6rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- header: the page as a stage ---------- */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); display: flex; align-items: center; gap: 1.25rem; padding-inline: var(--gut);
  background: var(--sky-d); color: var(--white); --focus: var(--z3); }
.mark { display: inline-flex; align-items: baseline; gap: .35rem; text-decoration: none; flex: none; }
.mark__n { font: 850 1.55rem/1 var(--head); font-stretch: 112%; letter-spacing: .02em; }
.mark__s { font: 500 .95rem/1 var(--head); font-stretch: 80%; color: var(--sky-p); }
.stage-nav { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; }
.stage-nav__strip { position: absolute; left: 0; right: 0; bottom: 4px; width: 100%; height: 18px; pointer-events: none; }
.stage-nav__strip .s-fill { fill: rgba(255, 255, 255, .16); }
.stage-nav__strip .s-done { fill: var(--z3); }
.stage-nav__strip .s-line { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; }
.stage-nav__strip .s-dot { fill: var(--z3); stroke: var(--sky-d); stroke-width: 2; }
.stage-nav__list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; width: 100%; justify-content: space-between; gap: .25rem; }
.stage-nav__list a { display: block; padding: .3rem .35rem; font: 600 .9rem/1 var(--head); font-stretch: 82%; text-decoration: none; color: var(--sky-p); border-radius: 3px; white-space: nowrap; }
.stage-nav__list a:hover, .stage-nav__list a[aria-current="true"] { color: var(--white); }
.stage-nav__list a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--z3); }
.bar__tools { display: flex; align-items: center; gap: .6rem; flex: none; }
.lang { display: inline-flex; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 6px; overflow: hidden; }
.lang button { background: none; border: 0; padding: .4rem .55rem; font: 700 .85rem/1 var(--head); color: var(--sky-p); cursor: pointer; min-height: 36px; min-width: 38px; }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--sky-d); }
.motion-btn { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 6px; color: var(--white);
  padding: .4rem .6rem; min-height: 36px; font: 600 .85rem/1 var(--head); font-stretch: 85%; cursor: pointer; }
.motion-btn__dot { width: 22px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .3); position: relative; }
.motion-btn__dot::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); }
.motion-btn[aria-pressed="true"] .motion-btn__dot { background: var(--z3); }
.motion-btn[aria-pressed="true"] .motion-btn__dot::after { transform: translateX(10px); background: var(--ink); }
.menu-btn { display: none; background: none; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 6px; color: var(--white); padding: .4rem .7rem; min-height: 36px;
  font: 700 .9rem/1 var(--head); font-stretch: 85%; cursor: pointer; }
.bar__cta { min-height: 40px; padding: .4rem .9rem; }

@media (max-width: 1240px) {
  .menu-btn { display: inline-flex; }
  .stage-nav { position: absolute; top: var(--bar-h); left: 0; right: 0; height: auto; display: none; background: var(--sky-d); padding: .5rem var(--gut) 1rem; border-top: 1px solid rgba(255, 255, 255, .2); }
  .menu-open .stage-nav { display: block; }
  .stage-nav__strip { display: none; }
  .stage-nav__list { flex-direction: column; margin: 0; }
  .stage-nav__list a { font-size: 1.15rem; padding: .7rem .2rem; }
  .bar { justify-content: space-between; }
}
@media (max-width: 640px) {
  :root { --bar-h: 58px; }
  .bar { gap: .5rem; }
  .mark__s { display: none; }
  .motion-btn [data-t] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar__cta { display: none; }
  .bar__tools { gap: .4rem; }
}

/* ---------- profile (SVG) ---------- */
.np { width: 100%; overflow: visible; }
.np .np-z1 { fill: var(--z1); } .np .np-z2 { fill: var(--z2); } .np .np-z3 { fill: var(--z3); } .np .np-z4 { fill: var(--z4); } .np .np-z5 { fill: var(--z5); }
.np .np-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.np .np-base { stroke: var(--ink); stroke-width: 1.5; }
.np .np-grid line { stroke: rgba(15, 26, 43, .08); stroke-width: 1; }
.np .np-labels text { font: 650 13.5px/1 var(--head); font-stretch: 78%; fill: var(--ink); }
.np .np-labels .np-min { fill: var(--muted); font-weight: 500; }
.np .np-drop { stroke: rgba(15, 26, 43, .4); stroke-width: 1; stroke-dasharray: 2 3; }
.np .np-water rect { fill: var(--white); stroke: var(--sky); stroke-width: 1.5; }
.np .np-labels g.np-water text { font: 800 10px/1 var(--head); fill: var(--sky-d); }
.np .np-flag line { stroke: var(--ink); stroke-width: 1.5; }
.np .np-flag path { fill: var(--ink); }
.np .np-flag text { font: 800 11px/1 var(--head); fill: var(--white); }
.np .np-flag5 path { fill: var(--z5-text); }
.np .np-ticks line { stroke: var(--ink); stroke-width: 1; }
.np .np-ticks text { font: 600 11.5px/1 var(--head); font-stretch: 85%; fill: var(--muted); }
.np .np-finish line { stroke: var(--ink); stroke-width: 1.5; }
.np .np-finish .b { fill: var(--ink); } .np .np-finish .w { fill: var(--white); }
.np .np-hl { fill: rgba(29, 95, 209, .13); stroke: var(--sky); stroke-width: 1.5; stroke-dasharray: 4 3; }
.np .np-marker-line { stroke: var(--sky-d); stroke-width: 1.5; }
.np .np-marker-dot { fill: var(--white); stroke: var(--sky-d); stroke-width: 3; }
.np--sky .np-grid line { stroke: rgba(255, 255, 255, .12); }
.np--sky .np-labels text, .np--sky .np-ticks text { fill: var(--white); }
.np--sky .np-labels .np-min { fill: var(--sky-p); }
.np--sky .np-drop { stroke: rgba(255, 255, 255, .55); }
.np--sky .np-ticks line, .np--sky .np-base { stroke: var(--white); }
.np--sky .np-finish line { stroke: var(--white); }
.np--sky .np-flag line { stroke: var(--white); }

/* zone bar (time in each zone) */
.zonebar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .2); margin: .8rem 0; }
.zonebar span { display: block; height: 100%; transition: flex-grow .4s var(--ease); }
.zonebar .z1 { background: var(--z1); } .zonebar .z2 { background: var(--z2); } .zonebar .z3 { background: var(--z3); } .zonebar .z4 { background: var(--z4); } .zonebar .z5 { background: var(--z5); }
.zonebar--paper { background: var(--paper-2); }
.zonebar--big { height: 20px; }

/* ---------- hero ---------- */
.hero { --focus: var(--z3); }
.hero__sky { background: var(--sky); color: var(--white); padding: clamp(1.6rem, 3.5vw, 2.6rem) var(--gut) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); column-gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.hero__copy { min-width: 0; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 6rem); font-weight: 820; font-stretch: 72%; line-height: .92; letter-spacing: -0.02em; margin-bottom: 1rem; max-width: 12ch; }
.hero__lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: #eef4ff; max-width: 52ch; }
.info { background: var(--white); color: var(--ink); border-radius: 12px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: 0 18px 40px -18px rgba(5, 20, 60, .55); --focus: var(--ink); position: relative; z-index: 2; }
.info__when { font: 700 .95rem/1.2 var(--head); font-stretch: 85%; color: var(--sky-d); margin-bottom: .2rem; }
.info__when b { font-size: 1.1rem; }
.info__name { font: 800 2rem/1 var(--head); font-stretch: 75%; margin-bottom: .35rem; }
.info__meta { font-size: .92rem; color: var(--ink-2); margin-bottom: 0; }
.info .zonebar { background: var(--paper-2); }
.info__sum { font-size: .92rem; color: var(--ink-2); margin-bottom: .9rem; }
.info__act { display: flex; flex-wrap: wrap; gap: .5rem; }
.info__act .btn--line { color: var(--ink); }
.info__act .btn--line:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.hero__profile { grid-column: 1 / -1; margin: clamp(.5rem, 1.5vw, 1.2rem) calc(var(--gut) * -1) 0; min-width: 0; }
.hero__scroll { padding-inline: var(--gut); }
.hero__profile svg { height: clamp(250px, 32vh, 330px); }
.hero__profile .example { color: var(--sky-p); padding: .2rem var(--gut) .7rem; margin: 0; }
.hero__road { background: var(--road); color: var(--white); padding: 1rem var(--gut) 1.4rem; --focus: var(--z3); }
.days { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .8rem; }
.days button { background: none; border: 1.5px solid rgba(255, 255, 255, .25); color: #c9d3e3; border-radius: 6px; padding: .35rem .7rem; min-height: 38px; font: 700 .95rem/1 var(--head); font-stretch: 85%; cursor: pointer; }
.days button[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.days button:hover { border-color: var(--white); color: var(--white); }
.days button[aria-pressed="true"]:hover { color: var(--ink); }
.stages { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-color: var(--sky) var(--road); }
.stage { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; text-align: left; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .16);
  color: var(--white); border-radius: 8px; padding: .55rem .75rem; cursor: pointer; min-height: 64px; transition: background-color .18s var(--ease), border-color .18s var(--ease); }
.stage:hover { border-color: rgba(255, 255, 255, .6); }
.stage[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.stage__t { font: 800 1.35rem/1 var(--head); font-stretch: 80%; grid-row: span 2; }
.stage__n { font: 700 1rem/1.1 var(--head); font-stretch: 82%; }
.stage__m { font-size: .8rem; color: #b9c4d6; }
.stage[aria-pressed="true"] .stage__m { color: var(--ink-2); }

@media (max-width: 900px) {
  .hero__sky { grid-template-columns: 1fr; }
  .info { order: 3; margin: 0 0 1.4rem; }
  .hero__profile { order: 2; }
  .hero__scroll { overflow-x: auto; }
  .hero__scroll svg { min-width: 680px; }
}

/* ---------- how to read ---------- */
.read { background: var(--paper); }
.read__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); grid-template-areas: 'head head' 'fig legend'; column-gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.read__head { grid-area: head; margin-bottom: 1.6rem; }
.read__fig { grid-area: fig; margin: 0; min-width: 0; background: var(--white); border-radius: 12px; padding: 1rem 1rem .8rem; box-shadow: 0 10px 30px -18px rgba(15, 26, 43, .35); }
.read__fig svg { height: clamp(300px, 42vh, 420px); }
.legend { grid-area: legend; list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.legend li { padding: .7rem .9rem; border-radius: 8px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.legend b { display: block; font: 750 1.08rem/1.2 var(--head); font-stretch: 82%; margin-bottom: .15rem; }
.legend span { font-size: .95rem; color: var(--ink-2); }
.anim .read.is-pinned .legend li { color: #5f6a7b; }
.anim .read.is-pinned .legend li span { color: inherit; }
.anim .read.is-pinned .legend li.on { background: var(--white); color: var(--ink); box-shadow: 0 6px 20px -12px rgba(15, 26, 43, .35); }
.anim .read.is-pinned .legend li.on span { color: var(--ink-2); }
@media (max-width: 900px) {
  .read__in { grid-template-columns: 1fr; grid-template-areas: 'head' 'fig' 'legend'; }
  .read__scroll { overflow-x: auto; }
  .read__scroll svg { min-width: 640px; }
  .legend { margin-top: 1.2rem; }
}

/* ---------- five zones ---------- */
.zones { background: var(--paper); }
.zones__intro { padding-block: var(--sec) clamp(3rem, 6vw, 5rem); }
.zone { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; color: var(--ink); }
.zone--1 { background: var(--z1); } .zone--2 { background: var(--z2); } .zone--3 { background: var(--z3); } .zone--4 { background: var(--z4); } .zone--5 { background: #cc3b25; color: var(--white); --focus: var(--white); }
.zone__num { position: absolute; top: 0; left: var(--gut); height: 100%; pointer-events: none; }
.zone__num { font: 900 6rem/1 var(--head); font-stretch: 70%; letter-spacing: -0.02em; padding-top: 2.4rem; opacity: .9; }
.zone__body { grid-column: 1; align-self: center; padding: 9rem var(--gut) 4rem calc(var(--gut) + 0rem); max-width: 40rem; justify-self: end; width: 100%; }
.zone__body h3 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); font-stretch: 75%; margin-bottom: .6rem; }
.zone__tag { display: inline-block; font-size: .5em; vertical-align: middle; border: 2px solid currentColor; border-radius: 4px; padding: .05em .3em; margin-right: .15em; }
.zone__talk { font: 700 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--head); font-stretch: 85%; margin-bottom: .8rem; }
.zone__swatch { grid-column: 2; width: 100%; height: 100%; min-height: 40vh; }
.zone--5 .zone__body p { color: var(--white); }
@media (max-width: 760px) {
  .zone { grid-template-columns: 1fr; min-height: auto; }
  .zone__body { padding: 7.5rem var(--gut) 2rem; }
  .zone__swatch { grid-column: 1; min-height: 160px; height: 160px; }
  .zone__num { font-size: 4.5rem; padding-top: 1.4rem; }
}

/* ---------- rooms ---------- */
.rooms { background: var(--white); }
.rooms__lede { font-size: 1.12rem; }
.rooms__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2rem; }
.room { min-width: 0; border-top: 6px solid var(--ink); padding-top: 1.2rem; }
.room--str { border-top-color: var(--z4); }
.room--bike { border-top-color: var(--sky); }
.room__kit { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.room__kit li { font: 600 .92rem/1 var(--head); font-stretch: 85%; background: var(--paper); border-radius: 4px; padding: .45rem .6rem; }
.room__fig { margin: 1.4rem 0 0; min-width: 0; }
.room__fig svg { height: 230px; }
.room__fig figcaption { font: 600 .9rem/1.3 var(--head); font-stretch: 85%; color: var(--muted); margin-top: .4rem; }
@media (max-width: 860px) { .rooms__grid { grid-template-columns: 1fr; } }

/* ---------- timetable ---------- */
.program { background: var(--paper); }
.program__head { max-width: 60rem; margin-bottom: 1.6rem; }
.filters { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; margin-bottom: 1rem; }
.seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-width: 0; }
.seg legend { font: 700 .82rem/1 var(--head); font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; padding: 0; width: 100%; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .8rem; border: 1.5px solid var(--paper-2); background: var(--white); border-radius: 6px; font: 650 .95rem/1 var(--head); font-stretch: 85%; transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.program__count { font: 700 1rem/1.3 var(--head); font-stretch: 85%; color: var(--ink-2); margin: .4rem 0 1rem; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.day { min-width: 0; }
.day__h { font: 800 1rem/1 var(--head); font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em; padding: .6rem .2rem; border-bottom: 3px solid var(--ink); margin: 0 0 .5rem; }
.day__h.is-today { border-bottom-color: var(--sky); color: var(--sky-d); }
.day__list { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.day__empty { font-size: .85rem; color: var(--muted); padding: .4rem .2rem; }
.cls { width: 100%; display: grid; text-align: left; gap: .1rem; background: var(--white); border: 1.5px solid transparent; border-radius: 8px; padding: .55rem .6rem .5rem; cursor: pointer; box-shadow: 0 4px 14px -10px rgba(15, 26, 43, .45);
  transition: border-color .15s var(--ease), transform .15s var(--ease); }
.cls:hover { border-color: var(--ink); }
.cls[aria-pressed="true"] { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky); }
.cls__t { font: 800 1.15rem/1 var(--head); font-stretch: 80%; }
.cls__n { font: 700 .98rem/1.15 var(--head); font-stretch: 82%; }
.cls__m { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.cls svg { height: 34px; margin: .3rem 0 .15rem; }
.cls__room { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .3rem; vertical-align: 1px; }
.cls__room--str { background: var(--z4); } .cls__room--bike { background: var(--sky); } .cls__room--both { background: linear-gradient(90deg, var(--z4) 50%, var(--sky) 50%); }
.detail { margin-top: 2rem; background: var(--white); border-radius: 12px; padding: clamp(1rem, 2.5vw, 1.8rem); box-shadow: 0 16px 40px -22px rgba(15, 26, 43, .5); }
.detail:focus { outline: none; }
.detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.detail__when { font: 700 1rem/1.2 var(--head); font-stretch: 85%; color: var(--sky-d); margin-bottom: .2rem; }
.detail__name { font-size: clamp(2rem, 4vw, 3rem); font-stretch: 75%; }
.detail__meta { color: var(--ink-2); margin: 0; }
.detail__scroll svg { height: 280px; }
.detail__cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; margin-top: 1.2rem; }
.detail__spots { font: 700 1rem/1.3 var(--head); font-stretch: 85%; }
.detail__act { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.book-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.book-table caption { text-align: left; font: 750 1.05rem/1.2 var(--head); font-stretch: 82%; margin-bottom: .5rem; }
.book-table th { text-align: left; font: 700 .8rem/1.2 var(--head); font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding: .4rem .5rem .4rem 0; }
.book-table td { border-bottom: 1px solid var(--paper-2); padding: .45rem .5rem .45rem 0; }
.book-table td:first-child, .book-table td:nth-child(3) { font-family: var(--head); font-weight: 700; }
.zchip { display: inline-block; min-width: 2.3em; text-align: center; font: 800 .8rem/1 var(--head); padding: .25em .4em; border-radius: 3px; color: var(--ink); }
.zchip--1 { background: var(--z1); } .zchip--2 { background: var(--z2); } .zchip--3 { background: var(--z3); } .zchip--4 { background: var(--z4); } .zchip--5 { background: var(--z5-text); color: var(--white); }
@media (max-width: 1100px) {
  .week { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.4rem; }
}
@media (max-width: 700px) {
  .week { grid-template-columns: 1fr 1fr; }
  .detail__cols { grid-template-columns: 1fr; }
  .detail__scroll { overflow-x: auto; }
  .detail__scroll svg { min-width: 620px; }
}
@media (max-width: 440px) { .week { grid-template-columns: 1fr; } }

/* ---------- first class ride ---------- */
.ride { background: var(--sky); color: var(--white); --focus: var(--z3); overflow: hidden; }
.ride__head p { color: #eef4ff; }
.ride__profile { padding-inline: var(--gut); margin: 1.4rem 0 1.6rem; }
.ride__profile svg { height: 220px; }
.ride .np .np-labels text, .ride .np .np-ticks text { fill: var(--white); }
.ride .np .np-labels .np-min { fill: var(--sky-p); }
.ride .np .np-ticks line, .ride .np .np-base, .ride .np .np-finish line, .ride .np .np-flag line { stroke: var(--white); }
.ride .np .np-drop { stroke: rgba(255, 255, 255, .55); }
.ride .np .np-grid line { stroke: rgba(255, 255, 255, .12); }
.ride .np .np-marker-line { stroke: var(--z3); }
.ride .np .np-marker-dot { stroke: var(--ink); fill: var(--z3); }
.ride__track { list-style: none; margin: 0; padding: 0 var(--gut); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stop { background: var(--white); color: var(--ink); border-radius: 12px; padding: 1.1rem 1.2rem 1rem; }
.stop__t { font: 850 2.2rem/1 var(--head); font-stretch: 75%; color: var(--sky-d); margin-bottom: .5rem; }
.stop p:last-child { margin-bottom: 0; font-size: .97rem; }
.anim .ride.is-pinned .ride__track { display: flex; width: max-content; gap: 1.2rem; }
.anim .ride.is-pinned .stop { width: min(380px, 78vw); flex: none; }
.anim .ride.is-pinned .stop.on { box-shadow: 0 0 0 4px var(--z3); }
@media (max-width: 1000px) { .ride__track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ride__track { grid-template-columns: 1fr; } .ride__profile { overflow-x: auto; } .ride__profile svg { min-width: 600px; } }

/* ---------- builder ---------- */
.builder { background: var(--paper); }
.builder__head { max-width: 60rem; }
.builder__stage { background: var(--sky); margin-top: 1.6rem; color: var(--white); --focus: var(--z3); }
.builder__view { max-width: 1320px; margin: 0 auto; padding: 1rem var(--gut) 1.2rem; }
.glview { display: none; position: relative; height: clamp(300px, 46vh, 460px); margin-bottom: .6rem; }
.glview canvas { width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.glview.on { display: block; }
.builder__plan svg { height: 210px; }
.builder__stage .np-labels text, .builder__stage .np-ticks text { fill: var(--white); }
.builder__stage .np .np-labels .np-min { fill: var(--sky-p); }
.builder__stage .np .np-ticks line, .builder__stage .np .np-base, .builder__stage .np .np-finish line, .builder__stage .np .np-flag line { stroke: var(--white); }
.builder__stage .np .np-drop { stroke: rgba(255, 255, 255, .55); }
.builder__stage .np .np-grid line { stroke: rgba(255, 255, 255, .12); }
.builder__stage .np .np-hl { fill: rgba(255, 255, 255, .16); stroke: var(--white); }
.builder__stage .np .np-marker-line { stroke: var(--z3); }
.builder__stage .np .np-marker-dot { fill: var(--z3); stroke: var(--ink); }
.builder__playbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; }
.builder__playbar .btn--line { color: var(--white); }
.builder__playbar .btn--line:hover { background: var(--white); color: var(--sky-d); border-color: var(--white); }
.builder__now { margin: 0; font: 700 1.05rem/1.3 var(--head); font-stretch: 85%; }
.builder__tools { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: 1.8rem; }
.palette__list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.4rem; }
.pal { display: inline-flex; align-items: center; gap: .4rem; background: var(--white); border: 1.5px solid var(--paper-2); border-radius: 6px; padding: .35rem .6rem; min-height: 40px; cursor: pointer; font: 650 .93rem/1 var(--head); font-stretch: 85%; }
.pal:hover { border-color: var(--ink); }
.pal i { width: 12px; height: 12px; border-radius: 2px; flex: none; }
.field--inline select { width: 100%; }
select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
  width: 100%; min-height: 46px; background: var(--white); border: 1.5px solid #b9c2cf; border-radius: 6px; padding: .55rem .7rem; accent-color: var(--sky); }
select { appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230f1a2b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; }
select:hover, input:hover, textarea:hover { border-color: var(--ink); }
.palette .btn { margin-top: .7rem; }
.blocks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.blk { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: .6rem; background: var(--white); border-radius: 8px; padding: .35rem .4rem .35rem .5rem; box-shadow: 0 3px 10px -8px rgba(15, 26, 43, .5); }
.blk.is-active { box-shadow: 0 0 0 2px var(--sky); }
.blk__c { width: 10px; height: 30px; border-radius: 2px; }
.blk__n { font: 700 1rem/1.15 var(--head); font-stretch: 82%; min-width: 0; }
.blk__n small { display: block; font: 500 .78rem/1.2 var(--text); color: var(--muted); }
.blk__ctl { display: flex; align-items: center; gap: .15rem; }
.ib { width: 34px; height: 34px; display: inline-grid; place-items: center; background: none; border: 1.5px solid transparent; border-radius: 6px; cursor: pointer; color: var(--ink); }
.ib:hover { border-color: var(--ink); }
.ib[disabled] { opacity: .3; cursor: default; border-color: transparent; }
.ib svg { width: 16px; height: 16px; }
.blk__min { font: 800 1.05rem/1 var(--head); min-width: 2.6em; text-align: center; }
.blocks__hint { font-size: .9rem; color: var(--muted); margin-top: .7rem; min-height: 1.4em; }
.record__stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin: 0 0 .4rem; }
.record__stats div { border-top: 2px solid var(--ink); padding-top: .35rem; }
.record__stats dt { font: 700 .78rem/1.2 var(--head); font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.record__stats dd { margin: 0; font: 800 1.9rem/1.05 var(--head); font-stretch: 78%; }
.zonekey { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .2rem; font: 650 .8rem/1.2 var(--head); font-stretch: 85%; }
.zonekey li b { display: block; font-size: .95rem; }
.match { background: var(--white); border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem; box-shadow: 0 6px 18px -14px rgba(15, 26, 43, .5); }
.match p { margin: 0 0 .5rem; font-size: .95rem; }
.match strong { font-family: var(--head); font-stretch: 82%; font-size: 1.15rem; }
.match .btn { margin-top: .2rem; min-height: 40px; }
.field__hint { font-size: .88rem; color: var(--ink-2); margin: .5rem 0 0; min-height: 1.3em; }
@media (max-width: 1000px) { .builder__tools { grid-template-columns: 1fr 1fr; } .record { grid-column: 1 / -1; } }
@media (max-width: 640px) { .builder__tools { grid-template-columns: 1fr; } .builder__plan { overflow-x: auto; } .builder__plan svg { min-width: 620px; } }

/* ---------- studio plan ---------- */
.studio { background: var(--white); }
.studio__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.places { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: .25rem; }
.places button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--paper-2); padding: .65rem .3rem; min-height: 44px; font: 650 1.05rem/1.2 var(--head); font-stretch: 85%; cursor: pointer; }
.places button:hover, .places button.on { color: var(--sky-d); border-bottom-color: var(--sky); }
.facts { margin: 0; display: grid; gap: .7rem; }
.facts dt { font: 700 .8rem/1.2 var(--head); font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.plan { margin: 0; min-width: 0; }
.plan svg { width: 100%; height: auto; background: var(--paper); border-radius: 12px; }
.plan__areas rect { fill: var(--white); stroke: var(--ink); stroke-width: 2; transition: fill .2s var(--ease); }
.plan__areas rect[data-area="su"] { fill: var(--sky); stroke: none; }
.plan__areas rect.on { fill: var(--sky-p); }
.plan__areas rect[data-area="su"].on { fill: var(--z3); }
.plan__kit .bikes rect { fill: none; stroke: var(--sky); stroke-width: 2; }
.plan__kit .racks rect { fill: none; stroke: var(--z4); stroke-width: 2; }
.plan__kit .door { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.plan__labels line { stroke: var(--ink); stroke-width: 1; }
.plan__labels circle { fill: var(--ink); }
.plan__labels text { font: 700 13px/1 var(--head); font-stretch: 82%; fill: var(--ink); }
.plan__labels .bg { fill: var(--paper); }
@media (max-width: 860px) { .studio__in { grid-template-columns: 1fr; } }

/* ---------- coaches: start list ---------- */
.coaches { background: var(--paper); }
.startlist-wrap { overflow-x: auto; margin-top: 1.6rem; }
.startlist { width: 100%; border-collapse: collapse; min-width: 560px; }
.startlist th { text-align: left; font: 700 .8rem/1.2 var(--head); font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 3px solid var(--ink); padding: .5rem .8rem .5rem 0; }
.startlist td { border-bottom: 1px solid #d4dae3; padding: .9rem .8rem .9rem 0; vertical-align: middle; }
.bibno { display: inline-grid; place-items: center; width: 3.2rem; height: 2.5rem; background: var(--white); border: 2px solid var(--ink); border-radius: 4px; font: 850 1.35rem/1 var(--head); font-stretch: 80%; position: relative; }
.bibno::before, .bibno::after { content: ''; position: absolute; top: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.bibno::before { left: 4px; } .bibno::after { right: 4px; }
.coach__n { font: 750 1.15rem/1.2 var(--head); font-stretch: 82%; }
.coach__n small { display: block; font: italic 400 .85rem/1.3 var(--text); color: var(--muted); }
.leads { display: flex; flex-wrap: wrap; gap: .3rem; }
.leads span { font: 600 .85rem/1 var(--head); font-stretch: 85%; background: var(--white); border-radius: 4px; padding: .35rem .5rem; }

/* ---------- memberships ---------- */
.member { background: var(--white); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.tier { background: var(--paper); border-radius: 12px; padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; }
.tier h3 { font-size: 1.9rem; font-stretch: 75%; }
.tier ul { margin: .4rem 0 1.2rem; padding: 0 0 0 1.1rem; }
.tier li { margin-bottom: .35rem; }
.tier li::marker { color: var(--sky); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier--first { background: var(--sky); color: var(--white); --focus: var(--z3); }
.tier--first .ph { color: var(--sky-p); }
.tier--first li::marker { color: var(--z3); }
.tier__price { font-size: 1rem; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- guidance + planner ---------- */
.guide { background: var(--paper); }
.guide__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
blockquote { margin: 1.2rem 0; padding: 1.2rem 1.4rem; background: var(--white); border-radius: 12px; font: 600 1.15rem/1.45 var(--text); }
blockquote p:last-child { margin-bottom: 0; }
.guide__tr { font-size: .97rem; color: var(--ink-2); }
.source { font-size: .9rem; color: var(--muted); }
.planner { background: var(--white); border-radius: 12px; padding: 1.4rem; box-shadow: 0 12px 32px -22px rgba(15, 26, 43, .5); }
.stepper { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--paper-2); }
.stepper__label { font: 650 1.02rem/1.2 var(--head); font-stretch: 85%; }
.stepper__b { width: 42px; height: 42px; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--paper-2); border-radius: 6px; cursor: pointer; }
.stepper__b:hover { border-color: var(--ink); }
.stepper__v { font: 850 1.6rem/1 var(--head); min-width: 1.6em; text-align: center; }
.pm { position: relative; width: 14px; height: 14px; display: block; }
.pm::before, .pm::after { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: currentColor; border-radius: 1px; }
.pm--minus::after { display: none; }
.pm--plus::after { transform: rotate(90deg); }
.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; margin: 1.2rem 0 .8rem; align-items: end; height: 120px; }
.weekstrip div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 2px; }
.weekstrip i { display: block; border-radius: 2px; }
.weekstrip i.b { background: var(--sky); } .weekstrip i.s { background: var(--z4); }
.weekstrip span { font: 700 .75rem/1 var(--head); text-align: center; color: var(--muted); margin-top: .3rem; }
.planner__out { font: 700 1.1rem/1.35 var(--head); font-stretch: 85%; }
.planner__note { font-size: .88rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .guide__in { grid-template-columns: 1fr; } }

/* ---------- what to bring ---------- */
.bring { background: var(--white); }
.bring__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 5rem); }
.bring__count { font: 750 1.2rem/1.2 var(--head); font-stretch: 82%; color: var(--sky-d); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.checks label { display: flex; gap: .8rem; align-items: center; padding: .7rem .3rem; border-bottom: 1px solid var(--paper-2); cursor: pointer; font-size: 1.05rem; }
.checks input, .field--check input { appearance: none; flex: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 5px; background: var(--white); display: grid; place-items: center; margin: 0; cursor: pointer; }
.checks input::after, .field--check input::after { content: ''; width: 12px; height: 7px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .18s var(--ease); }
.checks input:checked, .field--check input:checked { background: var(--z3); }
.checks input:checked::after, .field--check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.checks input:checked + span { text-decoration: line-through; text-decoration-color: var(--z4); text-decoration-thickness: 2px; color: var(--ink-2); }
@media (max-width: 820px) { .bring__in { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__in { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 5rem); }
.faq details { border-bottom: 1px solid #ccd3dd; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 2.4rem 1.05rem 0; position: relative; font: 700 1.2rem/1.3 var(--head); font-stretch: 82%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: .5rem; top: 1.3rem; width: 10px; height: 10px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq summary:hover { color: var(--sky-d); }
.faq details p { padding-bottom: 1rem; color: var(--ink-2); }
@media (max-width: 820px) { .faq__in { grid-template-columns: 1fr; } }

/* ---------- booking ---------- */
.book { background: var(--white); }
.book__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; margin-top: 1.4rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > label, .field legend { font: 700 .98rem/1.3 var(--head); font-stretch: 85%; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field__err { color: var(--z5-text); font-size: .9rem; font-weight: 600; margin: 0; min-height: 0; }
.field__err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--z5-text) !important; }
.seg--form legend { text-transform: none; letter-spacing: 0; font-size: .98rem; color: var(--ink); }
.field--check label { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; }
.field--check span { font-size: .95rem; }
.form .btn--big { justify-self: start; }
.bib-wrap { position: sticky; top: calc(var(--bar-h) + 1.5rem); }
.bib { position: relative; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 1.6rem 1.6rem 1.4rem; text-align: center; box-shadow: 0 22px 46px -26px rgba(15, 26, 43, .6); }
.bib__pins i { position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.bib__pins i:nth-child(1) { left: 12px; top: 12px; } .bib__pins i:nth-child(2) { right: 12px; top: 12px; } .bib__pins i:nth-child(3) { left: 12px; bottom: 12px; } .bib__pins i:nth-child(4) { right: 12px; bottom: 12px; }
.bib__top { font: 800 .95rem/1 var(--head); font-stretch: 110%; letter-spacing: .14em; color: var(--sky-d); margin: 0 auto .4rem; }
.bib__num { font: 900 clamp(4rem, 9vw, 6rem)/1 var(--head); font-stretch: 72%; letter-spacing: -0.02em; margin: 0 auto .3rem; }
.bib__class { font: 700 1.05rem/1.3 var(--head); font-stretch: 85%; margin: 0 auto .6rem; }
.bib svg { height: 70px; margin: .4rem 0; }
.bib__name { font: 600 1rem/1.3 var(--head); font-stretch: 90%; margin: 0 auto; min-height: 1.3em; }
.bib.is-ready { border-color: var(--sky); }
.bib__act { margin-top: 1rem; }
.bib__text { width: 100%; margin-top: .8rem; font-size: .85rem; }
@media (max-width: 900px) { .book__in { grid-template-columns: 1fr; } .bib-wrap { position: static; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { background: var(--road); color: #d5dceb; position: relative; padding-bottom: 2.4rem; --focus: var(--z3); }
.foot__profile { width: 100%; height: 90px; margin-top: -1px; background: var(--white); }
.foot__profile path { fill: var(--road); }
.foot__in { padding-top: 1.6rem; }
.foot__mark { font: 850 2rem/1 var(--head); font-stretch: 112%; color: var(--white); }
.foot__mark span { font: 500 1rem/1 var(--head); font-stretch: 80%; color: var(--sky-p); }
.foot a { color: var(--white); }

/* ---------- motion states (only with html.anim) ---------- */
.anim .read__pin, .anim .rooms__pin, .anim .ride__pin { will-change: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* ---------- class catalogue ---------- */
.catalog { background: var(--paper); }
.catalog__head { max-width: 60rem; margin-bottom: 2rem; }
.catalog__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cat { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 220px); gap: clamp(1rem, 3vw, 2.4rem); align-items: center; padding: 1.6rem 0; border-top: 2px solid var(--ink); }
.cat:last-child { border-bottom: 2px solid var(--ink); }
.cat h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-stretch: 74%; margin-bottom: .3rem; }
.cat__meta { font: 650 .92rem/1.3 var(--head); font-stretch: 85%; color: var(--ink-2); margin-bottom: .5rem; }
.cat__desc { font-size: .97rem; margin: 0; }
.cat__fig { min-width: 0; }
.cat__fig svg { height: 150px; }
.cat__act { display: grid; gap: .5rem; justify-items: start; }
.cat__when { font: 650 .9rem/1.35 var(--head); font-stretch: 85%; color: var(--ink-2); margin: 0; }
.cat__act .btn { min-height: 42px; font-size: .95rem; }
@media (max-width: 1000px) { .cat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .cat__fig { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 700px) { .cat { grid-template-columns: 1fr; } .cat__fig { grid-row: auto; overflow-x: auto; } .cat__fig svg { min-width: 560px; } }

/* ---------- second pass ---------- */
.seg--form span { border-color: #b9c2cf; }
.week-days { display: none; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.week-days button { background: var(--white); border: 1.5px solid #b9c2cf; border-radius: 6px; padding: .35rem .7rem; min-height: 40px; font: 700 .95rem/1 var(--head); font-stretch: 85%; cursor: pointer; }
.week-days button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (max-width: 700px) {
  .week-days { display: flex; }
  .week { grid-template-columns: 1fr; }
  .week .day:not(.is-sel) { display: none; }
}
@media (max-width: 640px) {
  .blk { grid-template-columns: 10px minmax(0, 1fr); }
  .blk__ctl { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
.bib__num.is-empty { color: var(--muted); }
.seg--form { display: flex; flex-wrap: wrap; gap: .35rem; }
@media (max-width: 640px) {
  .glview { height: 250px; }
  .startlist { min-width: 0; }
  .startlist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .startlist tr { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; padding: .9rem 0; border-bottom: 1px solid #d4dae3; }
  .startlist td { border: 0; padding: 0; }
  .startlist td:first-child { grid-row: span 3; }
  .startlist td:nth-child(3) { font-size: .9rem; color: var(--ink-2); margin: .2rem 0 .4rem; }
}
