/* Colours taken from the Spherical Cycling logo (assets/logo-*.svg). */
:root {
  --brand: #1e2a44;
  --brand-top: #14587a;
  --brand-bottom: #272d47;
  --lime: #8bd01d;
  --teal: #03ae91;
  --accent: #7ac732;
  --accent-ink: #1e2a44;
  --ink: #1b1f24;
  --muted: #6b7280;
  --line: #e3e6ea;
  --bg: #f6f7f9;
  --card: #fff;
  --ok: #1a7f37;
  --warn: #b45309;
  --bad: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 1.8rem; line-height: 1.2; margin: 1.5rem 0 .75rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: #374151; }

.top { background: linear-gradient(90deg, var(--brand-top), var(--brand-bottom)); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand img { height: 34px; width: auto; }
.brand b { display: block; font-weight: 600; font-style: italic; font-size: 1.15rem; letter-spacing: .02em; }
.brand small { display: block; font-weight: 500; font-style: italic; font-size: .62rem; letter-spacing: .45em; color: var(--accent); margin-top: 3px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.top nav a { color: #dbe4f0; text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: #fff; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.45); }
.btn:hover { filter: brightness(1.05); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.top .btn { color: var(--accent-ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; }
.panel { margin: 1rem 0; }
.panel h2:first-child { margin-top: 0; }
.steps li { margin-bottom: .5rem; }

#add-rider { margin-bottom: 1rem; }
.form fieldset { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 16px; margin: 0 0 1rem; }
.form legend { font-weight: 700; padding: 0 6px; }
.form.narrow { max-width: 360px; }
label { display: block; font-size: .9rem; font-weight: 600; margin: .5rem 0; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit; font-weight: 400; border: 1px solid #cfd4da; border-radius: 6px; background: #fff; }
input[type=checkbox], input[type=radio] { display: inline; width: auto; margin: 0 6px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.check { font-weight: 400; display: flex; align-items: flex-start; gap: 4px; }
.check small { color: var(--muted); margin-left: 4px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.label { font-weight: 600; font-size: .9rem; margin: .75rem 0 0; }
.contract { white-space: pre-wrap; font: .85rem/1.5 inherit; font-family: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; max-height: 240px; overflow: auto; }
.contract.full { max-height: none; background: #fff; }

.errors { background: #fef3f2; border: 1px solid #fecdca; color: var(--bad); border-radius: 8px; padding: 10px 14px; }
.flash { background: #ecfdf3; border: 1px solid #abefc6; color: var(--ok); border-radius: 8px; padding: 10px 14px; margin-top: 1rem; }
.warn { color: var(--warn); }

table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: .5rem 0 1rem; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f2f5; font-size: .85rem; color: #4b5563; }
.num { text-align: right; white-space: nowrap; }
tr.total td { font-weight: 700; }
table.edit input { margin: 0; }
.ratings td, .ratings th { text-align: center; }
.ratings td:first-child { text-align: left; }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: #eef1f4; color: #4b5563; vertical-align: middle; }
.tag.active, .tag.paid { background: #dcfae6; color: var(--ok); }
.tag.pending, .tag.draft { background: #fff4d6; color: var(--warn); }
.tag.overdue, .tag.inactive { background: #fee4e2; color: var(--bad); }
.tag.sent { background: #e0eaff; color: #2943a8; }
.tag.warn { background: #fff4d6; color: var(--warn); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-decoration: none; color: var(--muted); }
.stat span { display: block; font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: .5rem 0 1rem; }
.filters input, .filters select { width: auto; margin: 0; }
.tabs a { margin-right: 12px; text-decoration: none; color: var(--muted); }
.tabs a.on { color: var(--brand); font-weight: 700; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 16px; }
.roll { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 1rem; }
.check.big { font-size: 1rem; padding: 6px 0; }
.check.big input { transform: scale(1.3); margin-right: 10px; }

.doc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin: 1.5rem 0; }
.doc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-head h1 { margin-top: 0; }
.right { text-align: right; }
.bars { margin: 1rem 0; }
.bar { display: grid; grid-template-columns: 180px 1fr 40px; align-items: center; gap: 10px; margin: 6px 0; font-size: .95rem; }
.track { background: #eef1f4; border-radius: 99px; height: 10px; overflow: hidden; }
.track i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--teal)); border-radius: 99px; }

.foot { color: var(--muted); font-size: .85rem; padding: 2rem 16px; }
@media (max-width: 600px) {
  .bar { grid-template-columns: 1fr 40px; }
  .bar .track { grid-column: 1 / -1; grid-row: 2; }
  table { display: block; overflow-x: auto; }
}
@media print {
  .top, .foot, .site-foot, .cta-band, .crumbs, .noprint { display: none; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
}

/* ---------- Public site ---------- */
.site { background: #fff; overflow-x: hidden; }
.site .wrap { max-width: 1120px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.site .top { position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site .top .wrap { min-height: 68px; flex-wrap: nowrap; }
.site .brand img { height: 36px; }
.site .top nav { align-items: center; gap: 4px 22px; }
.site .top nav a { font-weight: 500; }
.site .top nav a[aria-current=page] { color: #fff; box-shadow: 0 2px 0 var(--lime); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
.menu-btn i { position: absolute; left: -999px; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .site .top nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--brand-bottom); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .site .top nav.open { display: flex; }
  .site .top nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .site .top nav a.btn { margin-top: 12px; text-align: center; border: 0; padding: 12px; }
}

.site h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .8rem; }
.site h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.2; margin: 0 0 .75rem; }
.site h3, .site .h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
.site p { margin: 0 0 1rem; }
.site .lead { font-size: 1.12rem; color: #3b4556; max-width: 46rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--lime); margin-bottom: .6rem !important; }

.hero-band { background: radial-gradient(1200px 500px at 85% 20%, rgba(3,174,145,.25), transparent 60%), linear-gradient(180deg, var(--brand-top), var(--brand-bottom)); color: #fff; padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; }
.hero-band .lead { color: #dbe4f0; }
.hero-logo { width: 100%; height: auto; max-width: 420px; justify-self: center; filter: drop-shadow(0 12px 30px rgba(0,0,0,.25)); }
.hero-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #dbe4f0; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--lime); font-weight: 700; margin-right: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.25rem; }
.cta-actions .btn { padding: 13px 22px; }
@media (max-width: 760px) {
  .hero-band { padding: 36px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-logo { max-width: 230px; order: -1; justify-self: start; }
}

.page { padding-top: 8px; padding-bottom: 8px; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.crumbs a { color: var(--muted); }
.page-head { padding: 28px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.section { padding: 40px 0 8px; }
.section-title { text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 1.5rem !important; }

.site .cards { gap: 16px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.page .cta-band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.site .card { border-radius: 14px; padding: 22px; border-color: #e6e9ee; }
.site .card p { color: #4a5568; margin: 0; }
.link-card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; }
.link-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,42,68,.12); border-color: var(--teal); }
.link-card .more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--teal); }
.icon { width: 46px; height: 46px; color: var(--teal); margin-bottom: 10px; }
.panel .icon { width: 26px; height: 26px; vertical-align: -6px; margin: 0 4px 0 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.site .panel { border-radius: 14px; padding: 24px; margin: 0; }
.accent-panel { background: linear-gradient(160deg, #f3fbe8, #e6f7f3); border-color: #d3eedb; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 14px; color: #3b4556; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--lime), var(--teal)); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticks strong { color: var(--ink); }

.steps-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps-row li { background: var(--bg); border-radius: 14px; padding: 22px; }
.steps-row span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps-row p { color: #4a5568; margin: 0; }

.faq { border-top: 1px solid var(--line); margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #4a5568; padding-right: 36px; }

.table-wrap { overflow-x: auto; }
.schedule { border-radius: 14px; }
.schedule td:first-child { font-weight: 600; }

.coach { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-weight: 700; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--lime), var(--teal)); }

.cta-band { background: linear-gradient(120deg, var(--brand-top), var(--brand-bottom)); color: #fff; margin-top: 48px; padding: 40px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { color: #dbe4f0; margin: 0; }
.cta-band .cta-actions { margin: 0; }

.site-foot { background: #161f33; color: #b9c3d4; padding: 48px 0 20px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-foot h2 { color: #fff; font-size: 1rem; margin: 0 0 .7rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: #b9c3d4; text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot img { width: 170px; height: auto; margin-bottom: 10px; }
.site-foot .copy { margin: 28px auto 0; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; font-size: .82rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.site .form { margin-top: 16px; }
.site .form fieldset { border-radius: 14px; padding: 16px 20px 20px; }
.site .doc { border-radius: 14px; }

.gate { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(180deg, var(--brand-top), var(--brand-bottom)); padding: 16px; }
.gate-card { width: 100%; max-width: 360px; text-align: center; color: #fff; }
.gate-card img { width: 220px; height: auto; margin-bottom: 12px; }
.gate-card label { color: #dbe4f0; text-align: left; }
.gate-card .btn { width: 100%; margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }