/* ==========================================================================
   L35 E00 -- design system
   DESIGN_SYSTEM_V1_2026_09_21

   Every value taken from the Claude Design mock. Pages use these tokens and
   classes; no page hardcodes a colour or a size.

   The mock had no media queries at all: it was drawn for a wide screen, with
   fixed grids and a 112px hero. Everything responsive below is a design
   decision made here, not a transcription. See spec section 2.2.
   ========================================================================== */

:root {
  /* Surfaces */
  --ink:          #0A0A0A;
  --ink-alt:      #0E0E0E;
  --paper:        #F3F1EC;
  --accent:       #FF2E86;
  --accent-deep:  #C1145C;

  /* Text, in the four weights the mock actually uses */
  --text:         var(--paper);
  --text-strong:  rgba(243, 241, 236, .92);
  --text-muted:   rgba(243, 241, 236, .78);
  --text-faint:   rgba(243, 241, 236, .60);
  --text-dim:     rgba(243, 241, 236, .45);

  /* Lines */
  --border:       rgba(243, 241, 236, .16);
  --border-soft:  rgba(243, 241, 236, .14);
  --border-firm:  rgba(243, 241, 236, .28);

  /* Event kinds */
  --kind-ride:     #FF2E86;
  --kind-race:     #F3F1EC;
  --kind-training: #7FD1C0;

  /* Power zones */
  --z1: #3FBFA0;
  --z2: #4FC24F;
  --z3: #7FD1C0;
  --z4: #F2A73B;
  --z5: #E9603F;

  /* Type */
  --font-display: Anton, Impact, sans-serif;
  --font-cond:    'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    Barlow, system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, Menlo, Consolas, monospace;

  /* Fluid scale: the mock's desktop sizes are the ceilings. */
  --fs-hero:    clamp(44px, 9vw,   112px);
  --fs-h2:      clamp(34px, 5.2vw,  66px);
  --fs-h3:      clamp(28px, 4vw,    52px);
  --fs-lead:    clamp(16px, 1.4vw,  19px);
  --fs-body:    clamp(15px, 1.2vw,  18px);
  --fs-label:   13px;
  --fs-small:   14px;
  --fs-tiny:    12px;

  /* Rhythm */
  --container:  1320px;
  --gutter:     32px;
  --section-y:  clamp(52px, 7vw, 88px);
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
}

body {
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--paper); }

/* Keyboard users must be able to see where they are. The mock, being a mock,
   had no focus styles at all. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section        { border-top: 1px solid var(--border-soft); }
.section--alt   { background: var(--ink-alt); }
.section__inner { max-width: var(--container); margin: 0 auto; padding: var(--section-y) var(--gutter); }

/* Two-column splits collapse to one below the tablet breakpoint. */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--lead   { grid-template-columns: 1.15fr .85fr; }
.split--even   { grid-template-columns: 1fr 1fr; }
.split--trail  { grid-template-columns: .9fr 1.1fr; }
.split--cerbere{ grid-template-columns: 1.1fr .9fr; }

@media (max-width: 1099px) {
  .split--lead, .split--even, .split--trail, .split--cerbere {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--wide { letter-spacing: .32em; }

.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: .86;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: .88;
  text-transform: uppercase;
}

.h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: .95;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
  text-wrap: pretty;
}

.meta {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: var(--fs-tiny);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Buttons -- the cut corner is the club's signature, keep it exact
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 26px;
  cursor: pointer;
  border: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn--solid {
  background: var(--accent);
  color: var(--ink);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn--solid:hover { background: var(--paper); color: var(--ink); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--text-dim);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--small { font-size: var(--fs-label); padding: 9px 16px; letter-spacing: .14em; }

/* --------------------------------------------------------------------------
   Chips and filters
   -------------------------------------------------------------------------- */

.chip {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--border-firm);
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* --------------------------------------------------------------------------
   Signature motifs
   -------------------------------------------------------------------------- */

/* The checker bar that precedes the hero eyebrow. */
.checker {
  display: inline-block;
  height: 10px;
  width: 64px;
  background: repeating-conic-gradient(var(--paper) 0 25%, var(--ink) 0 50%) 0 0 / 10px 10px;
}

/* Hairline grid: a 2px gap over a light background reads as a 1px rule
   between cells, with no per-cell borders to align. */
.grid-rule {
  display: grid;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.grid-rule > * { background: var(--ink); }
.grid-rule--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 767px) { .grid-rule--3 { grid-template-columns: 1fr; } }

@keyframes l35marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker {
  background: var(--accent);
  color: var(--ink);
  overflow: hidden;
  padding: 13px 0;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 36px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .24em;
  text-transform: uppercase;
  animation: l35marquee 26s linear infinite;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__brand { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header__brand img { filter: invert(1); display: block; }
.header__mark { height: 44px; width: 44px; }
.header__wordmark { height: 19px; }

.nav { display: flex; align-items: center; gap: 18px; justify-content: flex-end; flex: 1 1 auto; }

.nav__link {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav__link[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

.nav__cta {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 18px;
  flex: 0 0 auto;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.nav__cta:hover { background: var(--paper); color: var(--ink); }

/* Eight nav items plus a CTA stop fitting well before the tablet breakpoint,
   so the menu collapses at 1100px rather than at 768px. */
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-firm);
  color: var(--text);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
}

@media (max-width: 1099px) {
  .nav__toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px var(--gutter) 20px;
  }
  .header[data-open="true"] .nav { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .nav__link:hover { border-bottom-color: var(--border-soft); }
  .nav__cta { margin-top: 16px; text-align: center; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { border-top: 1px solid var(--border); background: var(--ink); }
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 1099px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px)  { .footer__inner { grid-template-columns: 1fr; gap: 28px; } }

.footer__col h3 {
  margin: 0 0 14px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: var(--fs-label);
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { color: var(--text-muted); font-size: var(--fs-small); }
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding: 18px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: var(--fs-tiny);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { display: grid; gap: 7px; font-family: var(--font-cond); font-weight: 600;
         letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-label);
         color: var(--text-faint); }

.input {
  font-family: var(--font-body);
  font-size: 16px; /* below 16px, iOS Safari zooms the page on focus */
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
  background: var(--ink);
  border: 1px solid var(--border-firm);
  padding: 13px 14px;
  width: 100%;
}
.input:focus { border-color: var(--accent); outline: none; }
.input::placeholder { color: var(--text-dim); }

textarea.input { resize: vertical; min-height: 120px; }

/* ANTIBOT_V1 honeypot. Hidden from sight and from assistive technology, but
   present in the DOM and submitted -- which is the point. Not display:none:
   some bots skip fields that are outright hidden. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: var(--fs-small); color: var(--text-faint); }
.form-error {
  border-left: 3px solid var(--accent);
  background: rgba(255, 46, 134, .10);
  padding: 12px 16px;
  font-size: var(--fs-small);
}
.form-ok {
  border-left: 3px solid var(--kind-training);
  background: rgba(127, 209, 192, .10);
  padding: 12px 16px;
  font-size: var(--fs-small);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.stack   { display: flex; flex-direction: column; }
.stack-6 { gap: 6px; }  .stack-14 { gap: 14px; } .stack-22 { gap: 22px; }
.stack-26{ gap: 26px; } .stack-36 { gap: 36px; }
.row     { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.row--between { justify-content: space-between; align-items: flex-end; }
.accent  { color: var(--accent); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Home page
   ========================================================================== */

.hero {
  position: relative;
  height: clamp(460px, 62vw, 640px);
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__slide.is-active { opacity: 1; }

/* The wash keeps the headline legible whichever photo is showing, and carries
   the accent into the right edge. */
.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10, 10, 10, .94) 0%,
    rgba(10, 10, 10, .72) 46%,
    rgba(193, 20, 92, .35) 100%);
}
@media (max-width: 767px) {
  /* Sideways on a narrow screen there is no room for a gradient to work; go
     vertical so the text sits on the dark end. */
  .hero__wash {
    background: linear-gradient(180deg,
      rgba(10, 10, 10, .70) 0%,
      rgba(10, 10, 10, .88) 55%,
      rgba(193, 20, 92, .30) 100%);
  }
}

.hero__watermark {
  position: absolute;
  right: -90px;
  top: -60px;
  height: 760px;
  filter: invert(1);
  opacity: .07;
  pointer-events: none;
}
@media (max-width: 1099px) { .hero__watermark { display: none; } }

.hero__body {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 26px);
  padding-block: clamp(48px, 8vw, 96px);
}

.hero__dots { position: absolute; bottom: 28px; right: var(--gutter); z-index: 2; display: flex; gap: 8px; }
.hero__dot {
  height: 4px; width: 14px; border: 0; padding: 0; cursor: pointer;
  background: rgba(243, 241, 236, .35);
  transition: width .4s ease, background .4s ease;
}
.hero__dot.is-active { width: 34px; background: var(--accent); }

/* ---- Cerbère ------------------------------------------------------------ */

.cerbere { position: relative; background: var(--ink); border-bottom: 1px solid var(--border-soft); }
.cerbere__banner { position: relative; height: clamp(200px, 26vw, 300px); overflow: hidden; }
.cerbere__banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.cerbere__fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.1) 40%, var(--ink) 100%);
}

.cerbere__grid { padding-bottom: var(--section-y); }
/* The overlap onto the banner is the mock's signature here; on a narrow
   screen it collides with the text, so it only applies from tablet up. */
.cerbere__text { position: relative; }
@media (min-width: 1100px) {
  .cerbere__text { margin-top: -70px; }
  .cerbere__illu { margin-top: -140px; }
}

.cerbere__logo { background: var(--paper); padding: 12px; display: flex; }
.cerbere__logo img { height: 66px; display: block; }
.cerbere__head { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; color: var(--accent); }
.cerbere__climb {
  font-family: var(--font-cond); font-weight: 600; font-size: 16px;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1.15;
}

.cerbere__illu { position: relative; border: 1px solid var(--border); margin: 0; }
.cerbere__illu img { width: 100%; display: block; }
.cerbere__illu figcaption {
  padding: 18px 20px; display: flex; justify-content: space-between;
  align-items: baseline; gap: 12px; background: var(--ink);
}
.cerbere__count { font-family: var(--font-display); font-size: 18px; color: var(--accent); }

/* ---- Club --------------------------------------------------------------- */

.stat__value { font-family: var(--font-display); font-size: clamp(34px, 4vw, 44px); line-height: 1; color: var(--accent); }

.emblem {
  position: relative;
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  background: linear-gradient(180deg, rgba(255, 46, 134, .12), rgba(10, 10, 10, 0));
}
.emblem img { width: min(230px, 60%); filter: invert(1); }
.emblem__motto {
  margin: 0; text-align: center;
  font-family: var(--font-cond); font-weight: 600;
  letter-spacing: .20em; text-transform: uppercase;
  font-size: var(--fs-small); color: var(--text-muted); line-height: 1.7;
}

/* ---- News cards --------------------------------------------------------- */

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1099px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .news-grid { grid-template-columns: 1fr; } }

.news-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.news-card__image {
  display: block; aspect-ratio: 3 / 2;
  background-size: cover; background-position: center;
  background-color: var(--ink-alt);
}
.news-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.news-card__title {
  font-family: var(--font-display); font-size: 22px; line-height: 1.05;
  text-transform: uppercase;
}
.news-card:hover .news-card__title { color: var(--accent); }
.news-card__excerpt { font-size: var(--fs-small); color: var(--text-faint); line-height: 1.5; }

/* ---- Join banner -------------------------------------------------------- */

.join { position: relative; background: var(--accent); color: var(--ink); border-top: 1px solid var(--border-soft); }
.join .h2 { color: var(--ink); }
.join__btn { background: var(--ink); color: var(--paper);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.join__btn:hover { background: var(--paper); color: var(--ink); }
.join__btn--ghost { background: transparent; color: var(--ink); border: 1px solid rgba(10, 10, 10, .45); clip-path: none; }
.join__btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---- Page banner -------------------------------------------------------- */

.banner {
  position: relative;
  min-height: var(--banner-h, 400px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
@media (max-width: 767px) { .banner { min-height: min(var(--banner-h, 400px), 340px); } }

.banner__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__wash {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.70) 52%, rgba(193,20,92,.30) 100%);
}
@media (max-width: 767px) {
  .banner__wash {
    background: linear-gradient(180deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.90) 60%, rgba(193,20,92,.26) 100%);
  }
}
.banner__body {
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding-block: clamp(48px, 7vw, 80px);
  width: 100%;
}
.banner__title { font-size: var(--fs-h2); }

/* ---- Cards -------------------------------------------------------------- */

.card-grid { display: grid; gap: 2px; background: var(--border-soft); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1099px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
}

.card { background: var(--ink); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.card--price { gap: 14px; }
.card__title {
  font-family: var(--font-cond); font-weight: 700; font-size: 18px;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.15;
}
.card__price { font-family: var(--font-display); font-size: 38px; line-height: 1; color: var(--accent); }
.card__text { font-size: var(--fs-small); color: var(--text-faint); line-height: 1.6; }

.grid-rule--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1099px) { .grid-rule--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .grid-rule--4 { grid-template-columns: 1fr; } }

.staff__name { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; }
.step__num { font-family: var(--font-display); font-size: 30px; color: var(--accent); line-height: 1; }

/* ---- Timeline ----------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border-soft); }
@media (max-width: 1099px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px)  { .timeline { grid-template-columns: 1fr; } }

.timeline__item { background: var(--ink); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--accent); }
.timeline__year { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--accent); }
.timeline__title { font-family: var(--font-cond); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
.timeline__text { font-size: var(--fs-small); color: var(--text-faint); line-height: 1.6; }

/* ---- Definition list ---------------------------------------------------- */

.deflist { margin: 0; display: grid; gap: 0; }
.deflist__row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.deflist__row dd { margin: 0; }
@media (max-width: 767px) { .deflist__row { grid-template-columns: 1fr; gap: 4px; } }

/* ---- Riders ------------------------------------------------------------- */

.rider { background: var(--ink); padding: 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.rider__bib { font-family: var(--font-display); font-size: 15px; color: var(--accent); letter-spacing: .1em; }
.rider__name { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; line-height: 1; }
.rider__note { font-size: var(--fs-small); color: var(--text-faint); line-height: 1.5; font-style: italic; }
.rider__stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: var(--fs-tiny); color: var(--text-dim); margin-top: 4px; }

/* ---- Rules -------------------------------------------------------------- */

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--border-soft); }
.rules__item { background: var(--ink); padding: 20px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.rules__num { font-family: var(--font-display); font-size: 26px; color: var(--accent); line-height: 1; }
.rules__text { color: var(--text-muted); line-height: 1.6; }

/* ---- Framed figure ------------------------------------------------------ */

.figure-framed { margin: 0; border: 1px solid var(--border); }
.figure-framed img { width: 100%; display: block; }
.figure-framed figcaption { padding: 16px 20px; background: var(--ink); display: block; }

/* ---- Products ----------------------------------------------------------- */

.product { background: var(--ink); display: flex; flex-direction: column; }
.product__image { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: 50% 30%; background-color: #E8E6E1; }
.product__image--todo {
  background: repeating-linear-gradient(135deg, #161616 0 8px, #1E1E1E 8px 16px);
  display: grid; place-items: center;
}
.product__todo { font-family: var(--font-cond); font-weight: 600; font-size: var(--fs-tiny); letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.product__body { display: flex; flex-direction: column; gap: 9px; padding: 20px; }
.product__title { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; line-height: 1.05; }
.product__price { font-family: var(--font-display); font-size: 26px; color: var(--accent); margin-top: 4px; }

/* ---- Table -------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.table th {
  font-family: var(--font-cond); font-weight: 700; font-size: var(--fs-tiny);
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint);
  background: var(--ink-alt);
}
.table tr:last-child td { border-bottom: 0; }
.table__key { font-family: var(--font-display); font-size: 18px; color: var(--accent); }

/* ---- Prose (article bodies) --------------------------------------------- */

.prose { font-size: var(--fs-lead); line-height: 1.7; color: var(--text-muted); max-width: 66ch; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; color: var(--text); margin: 1.6em 0 .5em; }
.prose h3 { font-family: var(--font-cond); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.prose blockquote { margin: 1.2em 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--text-faint); }

/* ---- Comments ----------------------------------------------------------- */

.comment { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.comment__avatar {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(255, 46, 134, .16); color: var(--accent);
  font-family: var(--font-cond); font-weight: 700; font-size: var(--fs-label); letter-spacing: .08em;
}
.comment__head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.comment__name { font-family: var(--font-cond); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: var(--fs-small); }

/* ---- Aside cards -------------------------------------------------------- */

.aside-card { border: 1px solid var(--border); padding: 26px 22px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(255, 46, 134, .10), rgba(10, 10, 10, 0)); }
.aside-card__title { font-family: var(--font-display); font-size: 30px; text-transform: uppercase; line-height: .95; }

.related { display: flex; flex-direction: column; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.related:hover { color: var(--accent); }
.related__title { font-family: var(--font-cond); font-weight: 600; font-size: 16px; line-height: 1.25; }

/* ---- FAQ ---------------------------------------------------------------- */

.faq { border-bottom: 1px solid var(--border-soft); padding: 14px 0; }
.faq__q { cursor: pointer; font-family: var(--font-cond); font-weight: 600; font-size: 17px; letter-spacing: .04em; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before { content: "+ "; color: var(--accent); }
.faq[open] .faq__q::before { content: "− "; }
.faq__a { margin: 10px 0 4px; font-size: var(--fs-small); color: var(--text-faint); line-height: 1.6; }

/* ==========================================================================
   Calendar
   ========================================================================== */

.calendar-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: start; }
@media (max-width: 1099px) { .calendar-layout { grid-template-columns: 1fr; } }

.legend { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-cond);
  font-weight: 600; font-size: var(--fs-tiny); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.legend__dot { width: 10px; height: 10px; display: inline-block; }

.calendar { width: 100%; border-collapse: collapse; table-layout: fixed; }
.calendar th {
  font-family: var(--font-cond); font-weight: 600; font-size: var(--fs-tiny);
  letter-spacing: .16em; color: var(--text-dim); padding: 8px 0; text-align: center;
}
.calendar__cell {
  height: 74px; vertical-align: top; padding: 7px 8px;
  border: 1px solid var(--border-soft);
}
.calendar__cell.is-blank { border-color: transparent; }
.calendar__cell.is-selected { border-color: var(--accent); background: rgba(255, 46, 134, .14); }
.calendar__cell.is-today .calendar__day { color: var(--accent); font-weight: 700; }
.calendar__day { font-family: var(--font-mono); font-size: var(--fs-tiny); color: var(--text-faint); }
.calendar__marks { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.calendar__mark { width: 100%; height: 4px; display: block; }

/* Below the tablet breakpoint the month grid is unusable at 7 columns: the
   agenda list carries the same information and stays legible. */
@media (max-width: 767px) { .calendar { display: none; } }

.agenda {
  display: grid; grid-template-columns: 58px 1fr; gap: 16px;
  padding: 16px; border: 1px solid var(--border-soft);
  background: var(--ink); color: var(--text);
}
.agenda:hover { border-color: var(--accent); color: var(--text); }
.agenda.is-selected { border-color: var(--accent); background: rgba(255, 46, 134, .08); }
.agenda__date { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.agenda__dow { font-family: var(--font-cond); font-weight: 600; font-size: var(--fs-tiny); letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.agenda__num { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.agenda__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.agenda__head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.agenda__kind { font-family: var(--font-cond); font-weight: 700; font-size: var(--fs-tiny); letter-spacing: .16em; text-transform: uppercase; }
.agenda__title { font-family: var(--font-cond); font-weight: 600; font-size: 17px; line-height: 1.2; }

.detail { border: 1px solid var(--border); padding: 26px 22px; position: sticky; top: 92px; }
@media (max-width: 1099px) { .detail { position: static; } }
.detail__image { width: 100%; display: block; border: 1px solid var(--border-soft); }

.stat-cell { padding: 16px 14px; display: flex; flex-direction: column; gap: 5px; }
.stat-cell__v { font-family: var(--font-display); font-size: 20px; color: var(--accent); line-height: 1; }

.blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border-soft); }
.blocks__item { background: var(--ink); padding: 11px 14px; font-size: var(--fs-small); color: var(--text-muted); }

.zones { display: grid; gap: 9px; }
.zones__row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; }
.zones__label { font-family: var(--font-cond); font-weight: 700; font-size: var(--fs-label); letter-spacing: .1em; }
.zones__bar { height: 8px; background: rgba(243, 241, 236, .10); display: block; }
.zones__fill { height: 100%; display: block; }

/* ==========================================================================
   Authentication pages
   ========================================================================== */

.auth { min-height: 70vh; display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 15% 0%, rgba(255,46,134,.10), transparent 60%); }
.auth__inner { width: 100%; padding-block: clamp(48px, 8vw, 96px); align-items: center; }
.auth__pitch { position: relative; }
.auth__wolf { width: min(200px, 45%); filter: invert(1); opacity: .12; margin-top: 10px; }

.auth__box {
  border: 1px solid var(--border);
  background: var(--ink-alt);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  max-width: 460px; width: 100%;
}
@media (max-width: 1099px) { .auth__box { max-width: none; } }
