/* =========================================================
   JTSRF CLUB — jetsurf riding + maintenance
   ========================================================= */

:root {
  --bg:            #0a0c0f;
  --bg-elev:       #12161c;
  --bg-elev-2:     #1a2029;
  --line:          #262d38;
  --text:          #eef2f6;
  --text-dim:      #9aa7b4;
  --brand:         #1B6CA8;   /* jtsrf blue */
  --brand-deep:    #0f4a75;
  --brand-bright:  #66A3BF;
  --brand-mint:    #C8DFD8;
  --brand-cream:   #F2EFE7;
  --white:         #ffffff;
  --radius:        14px;
  --maxw:          1180px;
  --font-display:  "Archivo Black", "Arial Black", system-ui, sans-serif;
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { color: var(--text-dim); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 16px;
  display: inline-block;
}

.lede { font-size: 1.15rem; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-bright); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--brand-bright); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.brand img { height: 24px; width: auto; max-width: 130px; display: block; }
.brand span { color: var(--brand-bright); }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-top: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  flex-shrink: 1;
  min-width: 0;
}
.nav__links li { flex-shrink: 0; }
.nav__links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color .15s ease;
}
.nav__links a:hover { color: #fff; }
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: var(--bg);
}
.hero__inner {
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}
.hero__art {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 24px;
}
.hero__art img {
  display: block;
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  mix-blend-mode: screen;
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  margin: 0 auto 16px;
}
.hero p {
  font-size: 1.2rem;
  margin: 0 auto 34px;
  max-width: 54ch;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 640px;
  margin: 40px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__trust strong { color: #fff; }

/* ---------- section heading ---------- */
.sec-head { max-width: 640px; margin-bottom: 54px; }
.sec-head p { margin-top: 14px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- offerings ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--brand-deep); transform: translateY(-4px); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}
.card__price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 auto; }
.card li { font-size: 0.9rem; color: var(--text-dim); padding-left: 22px; position: relative; }
.card li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 2px; background: var(--brand-bright);
}
.card .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ---------- feature strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature { border-left: 2px solid var(--brand); padding: 6px 0 6px 20px; }
.feature h3 { font-size: 1rem; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 20px; border-top: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brand-deep);
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* ---------- split (boards) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.split--flip .split__media { order: -1; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.board-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #12161c;
}
.board-grid figure img {
  background: linear-gradient(180deg, var(--brand-cream) 0%, var(--brand-mint) 100%);
  padding: 22px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  width: 100%;
}
.board-grid figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 12px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.split ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.split li { padding-left: 26px; position: relative; color: var(--text-dim); font-size: 0.95rem; }
.split li::before { content: "→"; position: absolute; left: 0; color: var(--brand-bright); }

/* ---------- board lineup (horizontal scroll) ---------- */
.board-lineup__group {
  margin: 46px 0 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.board-lineup__group:first-child { margin-top: 0; }
.board-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 18px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}
.board-row::-webkit-scrollbar { height: 8px; }
.board-row::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.board-row::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; }
.board-row::-webkit-scrollbar-thumb:hover { background: var(--brand-bright); }
.board-card {
  flex: 0 0 clamp(260px, 78vw, 320px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
}
.board-card__img {
  display: block;
  background: linear-gradient(180deg, var(--brand-cream) 0%, var(--brand-mint) 100%);
  aspect-ratio: 1 / 1;
  padding: 14px;
}
.board-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.board-card__body h3 a { color: inherit; }
.board-card__body h3 a:hover { color: var(--brand-bright); }
.board-card__body { padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.board-card__body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.board-card__kicker {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 8px;
}
.board-card__body p { font-size: 0.88rem; color: var(--text-dim); }

/* ---------- catalog covers (full-bleed image cards) ---------- */
.catalog-cover {
  flex: 0 0 clamp(200px, 56vw, 240px);
  scroll-snap-align: start;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0f12;
}
.catalog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.catalog-cover:hover img { transform: scale(1.05); }
.catalog-cover__year {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- comparison table ---------- */
.compare {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}
.compare::-webkit-scrollbar { height: 8px; }
.compare::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.compare::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; }
.compare::-webkit-scrollbar-thumb:hover { background: var(--brand-bright); }
.compare table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.82rem; }
.compare th, .compare td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}
.compare tr td:last-child, .compare tr th:last-child { border-right: 0; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .compare--wrap { white-space: normal; min-width: 190px; }
.compare thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-elev-2);
  color: var(--text);
}
.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-elev-2);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: normal;
  min-width: 130px;
}
.compare thead th:first-child {
  left: 0;
  z-index: 3;
}
.compare__head { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 132px; }
.compare__head img {
  width: 104px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 5px;
}
.compare__head strong { font-size: 0.8rem; letter-spacing: 0.02em; }
.compare__head a.compare__head-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-size: inherit;
  letter-spacing: normal;
}
.compare__head a.compare__head-link:hover strong { color: var(--brand-bright); }
.compare__head a { font-size: 0.66rem; color: var(--brand-bright); letter-spacing: 0.03em; }
.compare tbody td { color: var(--text-dim); }
.compare .compare--yes { color: var(--brand-bright); font-weight: 700; }
.compare .compare--no { color: #4b5560; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: rgba(255, 255, 255, 0.03); }

/* ---------- racing ---------- */
.race-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.race-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: border-color .2s ease, transform .2s ease;
}
.race-card:hover { border-color: var(--brand-deep); transform: translateY(-4px); }
.race-card__tag {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.race-card h3 { font-size: 1rem; }
.race-card p { font-size: 0.88rem; color: var(--text-dim); }
.race-card .badge-soon,
.race-card .badge-ready { margin-top: auto; }
.race-board-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}
.race-card__by {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.race-card__by strong { color: var(--brand-bright); font-weight: 600; }
.race-card--add {
  border-style: dashed;
  justify-content: center;
}
.race-card--add h3 { color: var(--text-dim); }
.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--brand);
  border-radius: 5px;
}
.checklist li strong { color: var(--text); font-weight: 600; }

/* ---------- featured spot ---------- */
.spot-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}
.spot-feature__media {
  position: relative;
  background: repeating-linear-gradient(45deg, var(--bg-elev-2) 0 14px, var(--bg-elev) 14px 28px);
  min-height: 230px;
}
.spot-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-feature__media[data-empty]::after {
  content: attr(data-empty);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spot-feature__body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-left: 1px solid var(--line);
}
.spot-feature__body h3 { font-size: 1.15rem; }
.spot-feature__body p { font-size: 0.9rem; color: var(--text-dim); }
.spot-feature__by { margin-top: auto; padding-top: 6px; font-size: 0.74rem; color: var(--text-dim); }
.spot-feature__by strong { color: var(--brand-bright); font-weight: 600; }
.spot-feature__map { border-left: 1px solid var(--line); min-height: 230px; }
.spot-feature__map iframe {
  width: 100%;
  height: 100%;
  min-height: 230px;
  border: 0;
  display: block;
  filter: grayscale(0.3) contrast(1.05) brightness(0.85);
}
@media (max-width: 860px) {
  .spot-feature { grid-template-columns: 1fr; }
  .spot-feature__body { border-left: 0; border-top: 1px solid var(--line); }
  .spot-feature__map { border-left: 0; border-top: 1px solid var(--line); }
  .spot-feature__media, .spot-feature__map, .spot-feature__map iframe { min-height: 200px; }
}

/* ---------- board detail page ---------- */
.bd-hero__media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-cream) 0%, var(--brand-mint) 100%);
}
.bd-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 26px; mix-blend-mode: multiply; }
.bd-hero__kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 14px;
}
.bd-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.bd-hero p { font-size: 1.1rem; color: var(--text-dim); margin-bottom: 26px; }

.spec-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-tile { background: var(--bg-elev); padding: 22px; }
.spec-tile dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.spec-tile dd {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fff;
}
.spec-tile dd small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--text-dim); }

.spec-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-sheet__group {
  padding: 12px 20px;
  background: var(--bg-elev-2);
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-bright);
}
.spec-sheet__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 16px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.spec-sheet__row dt { color: var(--text-dim); }
.spec-sheet__row dd { color: var(--text); }
@media (max-width: 520px) {
  .spec-sheet__row { grid-template-columns: 1fr; gap: 3px; }
}
.race-group {
  margin: 46px 0 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-bright);
}

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 340px;
  gap: 14px;
}
.gallery figure { overflow: hidden; border-radius: 10px; background: #000; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .wide { grid-column: span 2; }
.gallery .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--line);
  background: var(--bg-elev);
  color: var(--text-dim);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.5;
}
.gallery .ph small { font-family: var(--font-body); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--brand-bright); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.quote p { color: var(--text); font-size: 1rem; margin-bottom: 16px; }
.quote footer { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.stars { color: var(--brand-bright); letter-spacing: 2px; margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-bright); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(10,12,15,.78), rgba(10,12,15,.78)),
    url("../img/rider-water.jpg") center 30% / cover no-repeat;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band p { max-width: 48ch; margin: 0 auto 30px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-elev); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo {
  background: var(--brand-cream);
  border-radius: 10px;
  padding: 14px;
  width: 220px;
  margin-bottom: 18px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 0.9rem; color: var(--text-dim); }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 18px; }
.footer__social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.footer__social a:hover { color: #fff; border-color: var(--brand); background: var(--brand-deep); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- page hero (interior) ---------- */
.page-hero {
  padding: 130px 0 70px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 20% 0%, #14202c 0%, var(--bg) 60%);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 18px; }
.page-hero p { max-width: 58ch; font-size: 1.1rem; }
.page-hero--boards {
  background-color: #000;
  background-image:
    linear-gradient(90deg, #000 0%, #000 15%, rgba(0,0,0,.72) 30%, rgba(0,0,0,.2) 52%, rgba(0,0,0,0) 100%),
    url("../img/boards-banner.jpg");
  background-repeat: no-repeat;
  background-position: 0% 50%, 76% 50%;
  background-size: cover, cover;
}
.page-hero--boards .eyebrow,
.page-hero--boards h1,
.page-hero--boards p { text-shadow: 0 2px 14px rgba(0,0,0,.85); }
@media (max-width: 700px) {
  .page-hero--boards {
    background-image:
      linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.76)),
      url("../img/boards-banner.jpg");
    background-position: center, center;
    background-size: cover, cover;
  }
}

/* ---------- tutorial library ---------- */
.tut-source {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
#jtsrf-club { scroll-margin-top: 90px; }
.tut-source + .tut-grid { margin-bottom: 4px; }
.tut-grid + .tut-source { margin-top: 60px; }
.tut-source h3 { font-size: 1.5rem; }
.tut-source__count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bright);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 3px 10px;
}
.tut-source p {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 64ch;
  margin: 0;
}
.tut-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 18px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}
.tut-grid::-webkit-scrollbar { height: 8px; }
.tut-grid::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.tut-grid::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; }
.tut-grid::-webkit-scrollbar-thumb:hover { background: var(--brand-bright); }
.tut {
  flex: 0 0 clamp(258px, 80vw, 320px);
  scroll-snap-align: start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tut__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.tut__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, opacity .2s ease;
}
.tut:hover .tut__thumb img { transform: scale(1.05); }
.tut__thumb--soon {
  background: linear-gradient(135deg, var(--bg-elev) 0%, var(--line) 100%);
}
/* PDF-cover thumbnail (owner's manuals) */
.tut__thumb--doc {
  aspect-ratio: 4 / 3;
  background: #c9ccce;
}
.tut__thumb--doc img {
  object-fit: cover;
  object-position: center top;
}
.tut__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background .2s ease, transform .2s ease;
}
.tut:hover .tut__play { background: var(--brand); transform: scale(1.08); }
.tut__play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(2px);
}
.tut__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tut__tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand-deep);
  color: #fff;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
/* colour-code the tag by category family */
.tut[data-cat~="start"] .tut__tag,
.tut[data-cat~="riding"] .tut__tag { background: #1f7a4d; }
.tut[data-cat~="cleaning"] .tut__tag,
.tut[data-cat~="storage"] .tut__tag { background: #0e6f79; }
.tut[data-cat~="engine"] .tut__tag,
.tut[data-cat~="fuel"] .tut__tag,
.tut[data-cat~="exhaust"] .tut__tag,
.tut[data-cat~="drivetrain"] .tut__tag,
.tut[data-cat~="servicing"] .tut__tag { background: #a8641e; }
.tut[data-cat~="electrical"] .tut__tag,
.tut[data-cat~="electric"] .tut__tag,
.tut[data-cat~="controls"] .tut__tag { background: #1B6CA8; }
.tut[data-cat~="troubleshooting"] .tut__tag { background: #9c3030; }
.tut h3 { font-size: 1.1rem; }
.tut h3 a { color: var(--text); transition: color .15s ease; }
.tut h3 a:hover { color: var(--brand-bright); }
.tut p { font-size: 0.9rem; flex: 1; }
.tut__meta { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.badge-soon {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.badge-ready {
  align-self: flex-start;
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bright);
  transition: background .15s ease, color .15s ease;
}
.badge-ready:hover { background: var(--brand); color: #fff; }

/* ---------- library search + filter ---------- */
.tut-source[hidden], .tut-grid[hidden], .tut[hidden],
.tut-empty[hidden], .tut-filter__count[hidden], .tut-filter__clear[hidden] { display: none !important; }
.tut-filter { margin: 4px 0 44px; }
.tut-filter__search { position: relative; max-width: 540px; }
.tut-filter__search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-dim); pointer-events: none;
}
.tut-filter__search input {
  width: 100%; padding: 14px 44px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 0.95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tut-filter__search input::placeholder { color: var(--text-dim); }
.tut-filter__search input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.25);
}
.tut-filter__search input::-webkit-search-cancel-button { display: none; }
.tut-filter__clear {
  position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--line); color: var(--text);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  transition: background .15s ease;
}
.tut-filter__clear:hover { background: var(--brand); color: #fff; }
.tut-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-elev-2);
  color: var(--text); font: inherit; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.chip:hover { filter: brightness(1.15); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* colour each filter chip by its category family */
.chip[data-cat="start"], .chip[data-cat="riding"] { color: #5cc492; border-color: #2b5f47; background: #16241d; }
.chip[data-cat="cleaning"], .chip[data-cat="storage"] { color: #46bcc7; border-color: #1e535a; background: #102326; }
.chip[data-cat="engine"], .chip[data-cat="fuel"], .chip[data-cat="exhaust"],
.chip[data-cat="drivetrain"], .chip[data-cat="servicing"] { color: #e0a05f; border-color: #6a4a24; background: #271c11; }
.chip[data-cat="electrical"], .chip[data-cat="controls"], .chip[data-cat="electric"] { color: #64aae0; border-color: #244a63; background: #10222d; }
.chip[data-cat="troubleshooting"] { color: #e07a7a; border-color: #653232; background: #271414; }

.chip[data-cat="start"].is-active, .chip[data-cat="riding"].is-active { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.chip[data-cat="cleaning"].is-active, .chip[data-cat="storage"].is-active { background: #0e6f79; border-color: #0e6f79; color: #fff; }
.chip[data-cat="engine"].is-active, .chip[data-cat="fuel"].is-active, .chip[data-cat="exhaust"].is-active,
.chip[data-cat="drivetrain"].is-active, .chip[data-cat="servicing"].is-active { background: #a8641e; border-color: #a8641e; color: #fff; }
.chip[data-cat="electrical"].is-active, .chip[data-cat="controls"].is-active, .chip[data-cat="electric"].is-active { background: #1B6CA8; border-color: #1B6CA8; color: #fff; }
.chip[data-cat="troubleshooting"].is-active { background: #9c3030; border-color: #9c3030; color: #fff; }
.tut-filter__count { margin-top: 16px; font-size: 0.85rem; color: var(--text-dim); }
.tut-empty { padding: 20px 0 60px; font-size: 1rem; color: var(--text-dim); }

/* filtering mode — every match pooled into one grid, source rows hidden */
.tut-results { margin: 8px 0 4px; }
.is-filtering .tut-grid {
  flex-wrap: wrap; overflow: visible;
  scroll-snap-type: none; padding-bottom: 0;
}
.is-filtering .tut { flex: 1 1 258px; max-width: 340px; scroll-snap-align: none; }
@media (min-width: 700px) { .is-filtering .tut { flex-basis: calc(33.333% - 15px); } }
@media (min-width: 1040px) { .is-filtering .tut { flex-basis: calc(25% - 17px); } }

/* ---------- sample tutorial ---------- */
.tutorial-doc { max-width: 820px; margin: 0 auto; }
.tutorial-doc h2 { margin-bottom: 10px; }
.tutorial-doc .doc-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); margin-bottom: 36px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.tutorial-doc h3 { margin: 34px 0 14px; font-size: 1.15rem; }
.tutorial-doc h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.tutorial-doc .note a { color: var(--brand-bright); font-weight: 600; }
.tutorial-doc ol, .tutorial-doc ul { margin-left: 20px; color: var(--text-dim); display: flex; flex-direction: column; gap: 10px; }
.tutorial-doc ol li { padding-left: 6px; }
.callout {
  border-left: 3px solid var(--brand);
  background: var(--bg-elev);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-size: 0.92rem;
}
.callout strong { color: #fff; }
.callout--warn { border-left-color: #e0a63a; }

/* ---------- misc ---------- */
.note {
  background: var(--bg-elev);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.note strong { color: var(--brand-bright); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .cards, .steps, .quotes { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--flip .split__media { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    transition: transform .28s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 0; font-size: 0.95rem; }
  .nav__links .btn { margin-top: 12px; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .features, .gallery, .footer__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
}

/* ---------- spot submission modal ---------- */
.modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  padding: 0;
  width: min(560px, calc(100vw - 40px));
  max-height: min(720px, calc(100vh - 56px));
  position: fixed;
  inset: 0;
  margin: auto;
}
.modal::backdrop { background: rgba(5, 7, 10, 0.72); backdrop-filter: blur(2px); }
.modal__inner { padding: 28px 26px 26px; overflow-y: auto; max-height: min(720px, calc(100vh - 56px)); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.modal__head h3 { font-size: 1.3rem; }
.modal__close {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.modal__close:hover { border-color: var(--brand-bright); color: #fff; }
.modal p.lede { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 20px; }
.mform { display: flex; flex-direction: column; gap: 16px; }
.mform label {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-dim); margin-bottom: 6px;
}
.mform label .opt { text-transform: none; font-weight: 400; font-size: 0.78rem; }
.mform input, .mform textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg-elev-2); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 0.92rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.mform textarea { resize: vertical; min-height: 64px; }
.mform input::placeholder, .mform textarea::placeholder { color: var(--text-dim); opacity: 0.7; }
.mform input:focus, .mform textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.25);
}
.mform__actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.mform__note { font-size: 0.78rem; color: var(--text-dim); }

/* ---------- guide pages: previous / next + sidebar index ---------- */
.guide-pager {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
}
.guide-pager__link, .guide-pager__index {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 16px 18px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.guide-pager__link:hover, .guide-pager__index:hover { border-color: var(--brand-bright); background: var(--bg-elev-2); }
.guide-pager__link--next { text-align: right; align-items: flex-end; }
.guide-pager__index { align-items: center; text-align: center; justify-content: center; }
.guide-pager__label {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-bright);
}
.guide-pager__index .guide-pager__label { color: var(--text-dim); }
.guide-pager__title { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
@media (max-width: 640px) {
  .guide-pager { grid-template-columns: 1fr; }
  .guide-pager__spacer { display: none; }
  .guide-pager__index { order: 3; }
}

.guide-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 55;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--brand); color: #fff; border: 0;
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: background .15s ease;
}
.guide-fab:hover { background: var(--brand-bright); }
.guide-index-open .guide-fab { display: none; }

.guide-scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0, 0, 0, 0.55);
}
.guide-index {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 61;
  width: min(380px, 90vw);
  display: flex; flex-direction: column;
  background: var(--bg); border-right: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
  transform: translateX(-102%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.guide-index.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
.guide-index-open { overflow: hidden; }
.guide-index__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 14px;
}
.guide-index__heading { font-size: 1.2rem; margin: 0; }
.guide-index__close {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.guide-index__close:hover { border-color: var(--brand-bright); color: #fff; }
.guide-index__search { margin: 0 20px; max-width: none; }
.guide-index__search input { padding-top: 11px; padding-bottom: 11px; font-size: 0.9rem; }
.guide-index__count { margin: 10px 20px 8px; font-size: 0.78rem; color: var(--text-dim); }
.guide-index__list {
  position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 12px 28px;
}
.guide-index__group { margin-top: 14px; }
.guide-index__cat {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 8px 8px 6px; background: var(--bg);
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text);
}
.guide-index__cat::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright);
}
.guide-index__n { margin-left: auto; color: var(--text-dim); font-weight: 600; }
.guide-index__group[data-cat="start"] .guide-index__cat::before,
.guide-index__group[data-cat="riding"] .guide-index__cat::before { background: #5cc492; }
.guide-index__group[data-cat="cleaning"] .guide-index__cat::before,
.guide-index__group[data-cat="storage"] .guide-index__cat::before { background: #46bcc7; }
.guide-index__group[data-cat="engine"] .guide-index__cat::before,
.guide-index__group[data-cat="fuel"] .guide-index__cat::before,
.guide-index__group[data-cat="exhaust"] .guide-index__cat::before,
.guide-index__group[data-cat="drivetrain"] .guide-index__cat::before,
.guide-index__group[data-cat="servicing"] .guide-index__cat::before { background: #e0a05f; }
.guide-index__group[data-cat="troubleshooting"] .guide-index__cat::before { background: #e07a7a; }
.guide-index__list ul { list-style: none; margin: 0; padding: 0; }
.guide-index__link {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 8px; border-left: 3px solid transparent;
  color: var(--text); text-decoration: none;
}
.guide-index__link:hover { background: var(--bg-elev); }
.guide-index__link.is-current { background: var(--bg-elev-2); border-left-color: var(--brand); }
.guide-index__title { font-size: 0.9rem; line-height: 1.35; }
.guide-index__source { font-size: 0.72rem; color: var(--text-dim); }
.guide-index__empty { padding: 20px 8px; font-size: 0.88rem; color: var(--text-dim); }
.guide-index [hidden], .guide-scrim[hidden] { display: none !important; }
@media (max-width: 520px) {
  .guide-fab { left: 16px; bottom: 16px; }
}
.guide-index__words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-index__link--thumb { flex-direction: row; align-items: center; gap: 12px; }
.guide-index__thumb {
  flex: 0 0 auto; width: 76px; height: 44px; object-fit: contain;
  background: var(--bg-elev); border-radius: 6px;
}
.guide-index__group[data-cat="gas"] .guide-index__cat::before { background: #e0a05f; }
.board-pager { padding-block: 0 72px; }
.board-pager .guide-pager { max-width: 820px; margin: -40px auto 0; }
.race-card__img {
  margin: -22px -22px 8px; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; background: #fff;
}
.race-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

/* ---------- guide tables (fuel mixing, DFI charger) ---------- */
.mix-ratio {
  font-family: var(--font-display); font-size: clamp(4.5rem, 16vw, 8rem);
  line-height: 0.9; color: #fff; margin: 0 0 8px;
}
.mix-ratio span { color: var(--brand-bright); }
.guide-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.guide-table th, .guide-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.guide-table th {
  background: var(--bg-elev); color: var(--text-dim);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.guide-table td { color: var(--text-dim); }
.guide-table td:first-child { color: var(--text); }
.guide-table td strong { color: var(--brand-bright); }
.guide-table tr:last-child td { border-bottom: 0; }
.mix-calc {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.mix-calc__inputs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.mix-calc__field { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.mix-calc__field span { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); }
.mix-calc__field input, .mix-calc__field select {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg-elev-2); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 1rem;
}
.mix-calc__field input:focus, .mix-calc__field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27, 108, 168, 0.25);
}
.mix-calc__results { display: flex; flex-wrap: wrap; gap: 12px; }
.mix-calc__result {
  flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 18px; border-radius: 10px; background: var(--brand); color: #fff;
}
.mix-calc__result--alt { background: var(--brand-deep); }
.mix-calc__num { font-family: var(--font-display); font-size: 2.2rem; line-height: 1.1; }
.mix-calc__label { font-size: 0.85rem; opacity: 0.9; }
.mix-calc__note { margin-top: 10px; font-size: 0.85rem; }
.tutorial-doc .mix-gear { margin-top: 4px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .tutorial-doc .mix-gear { grid-template-columns: 1fr; } }
.tutorial-doc .mix-gear h3 { margin: 0; font-size: 1rem; }
.mix-faq { max-width: none; }
.tutorial-doc .guide-gear { margin-top: 4px; }
.tutorial-doc .guide-gear h3 { margin: 0; font-size: 1rem; }
.guide-note { margin-top: 10px; font-size: 0.85rem; }
.tutorial-doc .callout a, .tutorial-doc > p a, .tutorial-doc > ol a, .tutorial-doc > ul a { color: var(--brand-bright); font-weight: 600; }
.tutorial-doc > p + ul, .tutorial-doc > p + ol, .tutorial-doc > ul + p, .tutorial-doc > ol + p { margin-top: 12px; }
.guide-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 560px) { .guide-figs { grid-template-columns: 1fr; } }
.guide-figs figure, .guide-fig { margin: 0; }
.guide-fig { margin: 4px 0 18px; }
.guide-figs img, .guide-fig img {
  width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.guide-figs figcaption, .guide-fig figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--text-dim); }

/* maintenance page — the library is the first thing on the page */
.library-top { padding-top: 44px; }
.library-top .sec-head { max-width: none; margin-bottom: 24px; }
.library-top .sec-head p { max-width: 72ch; }
.library-top h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.library-top .tut-filter { margin-bottom: 36px; }
@media (max-width: 960px) { .library-top { padding-top: 28px; } }
@media (max-width: 700px) {
  /* one swipeable row of categories instead of five stacked rows */
  .library-top .tut-filter__chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -24px; padding-inline: 24px; padding-bottom: 4px;
  }
  .library-top .tut-filter__chips::-webkit-scrollbar { display: none; }
  .library-top .sec-head .winter-tip { display: none; }
}
.chip--manuals {
  display: inline-flex; align-items: center; text-decoration: none;
  color: var(--brand-cream); border-color: #5b5546; background: #1f1d18;
}
.chip--manuals:hover { border-color: var(--brand-cream); }
#manuals { scroll-margin-top: 72px; }

/* ---------- spots: search + horizontal rail ---------- */
.spot-finder { margin: 0 0 30px; }
.spot-finder__search { max-width: 560px; }
.spot-finder__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.spot-finder__btn { padding: 11px 20px; font-size: 0.82rem; }
.spot-finder__btn svg { flex: 0 0 auto; }
.spot-finder__btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.spot-finder__status { margin-top: 14px; font-size: 0.85rem; color: var(--text-dim); }
.spot-finder__status strong { color: var(--text); }
.spot-finder__status button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--brand-bright);
  font-weight: 600; cursor: pointer;
}
.spot-rail {
  display: flex; gap: 20px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; padding-bottom: 18px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--brand) transparent;
}
.spot-rail::-webkit-scrollbar { height: 8px; }
.spot-rail::-webkit-scrollbar-track { background: var(--line); border-radius: 999px; }
.spot-rail::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 999px; }
.spot-rail > * { flex: 0 0 clamp(270px, 82vw, 360px); scroll-snap-align: start; }
.spot-rail .spot-feature { display: flex; flex-direction: column; }
.spot-rail .spot-feature[hidden] { display: none; }
.spot-rail .spot-feature__media { min-height: 0; aspect-ratio: 16 / 10; }
.spot-rail .spot-feature__body { border-left: 0; border-top: 1px solid var(--line); flex: 1; padding: 20px 22px; }
.spot-rail .spot-feature__map { border-left: 0; border-top: 1px solid var(--line); min-height: 0; }
.spot-rail .spot-feature__map iframe { min-height: 0; height: 190px; }
.spot-feature__place { font-size: 0.8rem; color: var(--text-dim); margin-top: -4px; }
.spot-feature__distance {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 10px;
}
.spot-feature__distance[hidden] { display: none; }
.spot-rail .spot-feature.is-nearest { border-color: var(--brand); }
.spot-rail-empty { padding: 22px 0; color: var(--text-dim); }
.spot-rail-empty[hidden] { display: none; }
.spot-add {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 26px; padding: 28px 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(27, 108, 168, 0.18), rgba(27, 108, 168, 0.04) 60%), var(--bg-elev);
}
.spot-add__text { flex: 1 1 420px; max-width: 70ch; }
.spot-add .eyebrow { margin-bottom: 8px; }
.spot-add h3 { font-size: 1.35rem; margin-bottom: 10px; }
.spot-add p { font-size: 0.95rem; }
.spot-add__small { margin-top: 8px; font-size: 0.82rem !important; }
.spot-add__btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .spot-add { padding: 22px 20px; }
  .spot-add__btn { width: 100%; justify-content: center; }
}

/* guide steps — clickable video timestamps */
.tutorial-doc .ts {
  display: inline-flex; align-items: center; gap: 6px;
  margin-right: 4px; padding: 2px 10px 2px 8px;
  font: inherit; font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--brand-bright); background: var(--bg-elev-2);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tutorial-doc .ts:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.tutorial-doc .ts:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.ts__icon {
  width: 0; height: 0; border-style: solid;
  border-width: 4.5px 0 4.5px 7px; border-color: transparent transparent transparent currentColor;
}

/* ---------- glossary ---------- */
.glossary__search { max-width: 520px; margin-bottom: 8px; }
.glossary__count { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; }
.glossary__group { font-size: 1.1rem; margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.glossary__group[hidden] { display: none; }
.glossary { display: grid; gap: 2px; }
.glossary__item { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.glossary__item[hidden] { display: none; }
.glossary dt { font-weight: 700; color: var(--text); }
.glossary dd { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.glossary dd a { color: var(--brand-bright); font-weight: 600; white-space: nowrap; }
.glossary__empty { color: var(--text-dim); }
.glossary__empty a { color: var(--brand-bright); font-weight: 600; }
@media (max-width: 640px) { .glossary__item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- toolbox checklist ---------- */
.toolbox-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 40px; font-size: 0.85rem; }
.toolbox-jump span { color: var(--text-dim); margin-right: 2px; }
.toolbox-jump a {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text); font-weight: 600;
  transition: border-color .15s ease, color .15s ease;
}
.toolbox-jump a:hover { border-color: var(--brand-bright); color: #fff; }
.toolbox-jump + .sec-head, .race-grid + .sec-head { scroll-margin-top: 90px; }

/* ---------- board finder quiz ---------- */
.finder__questions { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; }
.finder__q { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 20px 22px; transition: border-color .15s ease; }
.finder__q.is-done { border-color: var(--brand-deep); }
.finder__q h3 { font-size: 1rem; margin-bottom: 14px; }
.finder__opts { display: flex; flex-direction: column; gap: 8px; }
.finder__opts label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.finder__opts label:hover { border-color: var(--brand-bright); }
.finder__opts input { margin-top: 3px; accent-color: var(--brand); flex: 0 0 auto; }
.finder__opts label:has(input:checked) { border-color: var(--brand); background: rgba(27, 108, 168, 0.14); }
.finder__opts span { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; }
.finder__opts em { font-style: normal; font-size: 0.8rem; color: var(--text-dim); }
.finder__bar { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.finder__progress { font-size: 0.85rem; color: var(--text-dim); }
.finder__reset { padding: 9px 18px; font-size: 0.78rem; }
.finder__result { margin-top: 30px; padding: 26px 28px; border: 1px solid var(--brand-deep); border-radius: var(--radius); background: linear-gradient(120deg, rgba(27,108,168,0.16), rgba(27,108,168,0.03) 60%), var(--bg-elev); }
.finder__result[hidden] { display: none; }
.finder__resultTitle { font-size: 1.5rem; }
.finder__resultLead { margin: 8px 0 20px; font-size: 0.92rem; }
.finder__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.finder__card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.finder__card--lead { border-color: var(--brand); }
.finder__card img { width: 100%; height: 120px; object-fit: contain; background: #fff; border-radius: 8px; padding: 6px; }
.finder__badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-bright); }
.finder__card--lead .finder__badge { color: #fff; background: var(--brand); border-radius: 999px; padding: 3px 10px; align-self: flex-start; }
.finder__card h3 { font-size: 1.05rem; }
.finder__card p { font-size: 0.88rem; }
.finder__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.finder__note { margin-top: 16px; font-size: 0.85rem; }
.finder__note a, .finder__resultLead a { color: var(--brand-bright); font-weight: 600; }
@media (max-width: 860px) {
  .finder__questions, .finder__cards { grid-template-columns: 1fr; }
  .finder__result { padding: 22px 20px; }
}

/* ---------- site-wide search ---------- */
.nav__search {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--text-dim); font: inherit; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color .15s ease;
}
.nav__search:hover { color: #fff; }
.nav__search svg { width: 17px; height: 17px; }
.site-search {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 8, 11, 0.72); backdrop-filter: blur(6px);
  display: flex; justify-content: center; padding: 10vh 20px 20px;
}
.site-search[hidden] { display: none; }
.site-search__panel {
  width: min(680px, 100%); max-height: 78vh; display: flex; flex-direction: column;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.site-search__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.site-search__head svg { width: 20px; height: 20px; color: var(--text-dim); flex: 0 0 auto; }
.site-search__head input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 1.05rem; }
.site-search__head input::-webkit-search-cancel-button { display: none; }
.site-search__close {
  flex: 0 0 auto; border: 1px solid var(--line); background: none; color: var(--text-dim);
  border-radius: 8px; padding: 4px 9px; font: inherit; font-size: 0.72rem; cursor: pointer;
}
.site-search__close:hover { color: #fff; border-color: var(--brand-bright); }
.site-search__results { overflow-y: auto; padding: 8px; }
.site-search__hit { display: block; padding: 11px 12px; border-radius: 10px; color: var(--text); }
.site-search__hit:hover, .site-search__hit.is-active { background: var(--bg-elev-2); }
.site-search__hit b { color: var(--brand-bright); font-weight: 700; }
.site-search__top { display: flex; align-items: center; gap: 9px; }
.site-search__kind {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-bright); border: 1px solid var(--brand-deep); border-radius: 999px; padding: 2px 8px;
}
.site-search__title { font-weight: 600; font-size: 0.97rem; }
.site-search__snip { margin-top: 3px; font-size: 0.83rem; color: var(--text-dim); }
.site-search__msg { padding: 22px 14px; color: var(--text-dim); font-size: 0.9rem; }
.site-search__foot { padding: 9px 16px; border-top: 1px solid var(--line); font-size: 0.72rem; color: var(--text-dim); display: flex; gap: 14px; }
@media (max-width: 860px) { .nav__search span { display: none; } .site-search { padding-top: 6vh; } }
.spot-cond { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.spot-cond[hidden] { display: none; }
.spot-cond span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; color: var(--text);
  background: var(--bg-elev-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.spot-cond span i { font-style: normal; color: var(--text-dim); font-weight: 500; }
.spot-cond .spot-cond__wind--high { border-color: #653232; color: #e07a7a; }
.spot-cond__stamp { margin-top: 10px; font-size: 0.72rem; color: var(--text-dim); }
.doc-narrow { max-width: 820px; margin: 0 auto; }
.doc-narrow .note { margin-top: 24px; }
