/* Apex Georgia shared styles. Loaded by every page. */
:root {
  --black: #000000;
  --asphalt: #161618;
  --tarmac: #232326;
  --white: #ffffff;
  --grey: #b9b9bf;
  --red: #e1212b;
  --red-deep: #b3161f;
  --red-text: #e4323b; /* red for small text on black: 4.6:1, the base red is 4.45:1 */
  --display: "Chakra Petch", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline-offset: 2px; }
main:focus { outline: none; }
/* Skip link: first tab stop on every page, visible only while focused */
.skip-link { position: absolute; left: 16px; top: -120px; z-index: 20; padding: 10px 14px; background: var(--red); color: var(--white); font-family: var(--display); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid #2a2a2e;
  backdrop-filter: blur(6px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: 44px; }
.brand span { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 20px; letter-spacing: .02em; }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .04em;
  color: var(--grey);
}
.menu a:hover { color: var(--white); }
.menu a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--red); }
.menu a.cta { color: var(--white); background: var(--red); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); padding: 8px 18px; }
.menu a.cta[aria-current="page"] { box-shadow: none; background: var(--red-deep); }
.menu a { white-space: nowrap; }
.brand { flex: none; }
.brand span { white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid #3a3a3e; color: var(--white); font-family: var(--display); font-size: 14px; padding: 8px 12px; cursor: pointer; }
@media (max-width: 1060px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--black); border-bottom: 1px solid #2a2a2e; padding: 8px 12px 16px; }
  .menu.open { display: flex; }
  .menu a { padding: 12px; font-size: 17px; }
  .menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); }
  .menu a.cta { margin-top: 8px; text-align: center; }
}

/* Hero (home) */
.hero { background: var(--black); }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; }
.hero-copy { padding: 30px 0 48px; }
.hero-copy .actions { margin-top: 22px; }
.hero h1 {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -.01em;
  margin: 0 0 12px; max-width: 14ch;
}
.hero p { margin: 0; max-width: 46ch; color: var(--grey); font-size: 18px; }
@media (min-width: 900px) {
  /* Image shown whole (the logo is baked into it), copy fills the black to its right. */
  .hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; max-width: 1600px; margin: 0 auto; }
  .hero-media img { width: auto; max-width: none; height: min(70vh, 640px, 40vw); }
  .hero-media::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 160px; background: linear-gradient(to right, rgba(0,0,0,0), var(--black)); pointer-events: none; }
  .hero-copy { padding: 40px 48px 40px 0; }
  .hero-copy .wrap { margin: 0; padding: 0 0 0 24px; max-width: 560px; }
}

/* Page header (inner pages) */
.page-head { padding: 56px 0 8px; }
.page-head h1 {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 14px;
}
.page-head .lead { margin-bottom: 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; text-decoration: none; padding: 13px 26px;
  font-family: var(--display); font-weight: 700; font-style: italic; font-size: 17px; letter-spacing: .03em;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  background: var(--red); color: var(--white);
}
.btn:hover { background: var(--red-deep); }
.btn.ghost { background: var(--white); color: var(--black); }
.btn.ghost:hover { background: var(--grey); }

/* Slanted divider: the one recurring device, echoing the logo's cut */
.rule { height: 6px; background: var(--red); transform: skewX(-20deg); width: 120px; margin: 0 0 22px; }

section { padding: 72px 0; }
section + section { border-top: 1px solid #1f1f22; }
.page-head + section { border-top: 0; padding-top: 40px; }
h2 {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: clamp(30px, 4vw, 42px); line-height: 1.05; margin: 0 0 22px; letter-spacing: -.01em;
}
h3 { font-family: var(--display); font-style: italic; font-size: 22px; margin: 0 0 12px; }
.lead { font-size: 20px; max-width: 58ch; margin: 0 0 18px; }
p { max-width: 62ch; }
.muted { color: var(--grey); }
.more { display: inline-block; margin-top: 8px; font-family: var(--display); font-style: italic; font-weight: 700; text-decoration: none; color: var(--white); }
.more:hover { color: var(--red-text); }

/* Home teasers */
.teasers { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .teasers { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.teasers li { background: var(--asphalt); border-top: 4px solid var(--red); padding: 22px 22px 24px; display: flex; flex-direction: column; }
.teasers strong { font-family: var(--display); font-style: italic; font-size: 22px; display: block; margin-bottom: 8px; }
.teasers p { color: var(--grey); margin: 0 0 14px; flex: 1; }
.teasers .more { margin-top: auto; }

/* About */
.about-copy { display: grid; gap: 36px; }
.about-media img { width: 100%; }
@media (min-width: 900px) {
  .about-copy { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
  .about-media { position: sticky; top: 88px; }
}
.pillars { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 16px; }
.pillars li { border-left: 4px solid var(--red); padding: 2px 0 2px 16px; }
.pillars strong { font-family: var(--display); font-style: italic; font-size: 19px; display: block; margin-bottom: 2px; }
.pillars span { color: var(--grey); }

/* Events */
.events { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid #2a2a2e; }
.events li { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid #2a2a2e; align-items: start; }
.events time { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; line-height: 1; color: var(--white); }
.events time small { display: block; font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--red-text); margin-top: 4px; }
.events strong { display: block; font-size: 18px; font-weight: 600; }
.events span { color: var(--grey); }
.events .track strong::after { content: "track"; font-family: var(--display); font-style: italic; font-size: 12px; letter-spacing: .06em; color: var(--black); background: var(--white); padding: 2px 8px; margin-left: 10px; vertical-align: 2px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.events-foot { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* Track day */
.trackday { display: grid; gap: 36px; align-items: start; grid-template-areas: "media" "main"; }
.trackday-main { grid-area: main; }
.trackday-media { grid-area: media; }
.trackday-media img { width: 100%; }
@media (min-width: 900px) {
  .trackday { grid-template-columns: 1.1fr .9fr; grid-template-areas: "main media"; gap: 36px 56px; }
  .trackday-media { position: sticky; top: 88px; }
}
.register-steps { margin-top: 30px; }
@media (min-width: 760px) { .join-steps.register-steps { grid-template-columns: 1fr; gap: 16px; } }
.register-steps li::before { font-size: 22px; }
.trackday .small { font-size: 15px; }
.flyer-link { display: inline-block; margin-top: 18px; color: var(--grey); }
.flyer-link:hover { color: var(--red-text); }
.facts { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; max-width: 520px; }
.facts li { border-top: 2px solid #2f2f33; padding-top: 10px; }
.facts b { font-family: var(--display); font-style: italic; font-size: 24px; display: block; line-height: 1.1; }
.facts span { color: var(--grey); font-size: 15px; }

/* Join */
.join { background: var(--red); color: var(--white); }
.join .rule { background: var(--white); }
.join h1, .join h2 { max-width: 16ch; }
.join-hero { padding-top: 56px; }
.join-hero h1 { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 14px; }
.join p { color: #ffe3e5; }
.join .btn { background: var(--white); color: var(--black); }
.join .btn:hover { background: var(--black); color: var(--white); }
.join-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 760px) { .join-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.join-steps li { counter-increment: step; border-top: 2px solid #2f2f33; padding-top: 14px; }
.join-steps li::before { content: "0" counter(step); font-family: var(--display); font-style: italic; font-weight: 700; font-size: 28px; color: var(--red); display: block; line-height: 1; margin-bottom: 8px; }
.join-steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.join-steps span { color: var(--grey); }

/* Contact */
.contact ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; max-width: 520px; }
.contact li { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid #2a2a2e; padding: 12px 0; }
.contact li span { color: var(--grey); font-family: var(--display); font-weight: 600; letter-spacing: .04em; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--red-text); }

/* 404 */
.notfound { padding: 96px 0; }
.notfound h1 { font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(40px, 8vw, 96px); line-height: 1; margin: 0 0 12px; }

footer { padding: 28px 0 40px; color: var(--grey); font-size: 14px; border-top: 1px solid #1f1f22; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--white); }

/* Accounts: login, signup, reset, account, members */
.auth-wrap > * { max-width: 460px; }
.auth-card, .card { background: var(--asphalt); border-top: 4px solid var(--red); padding: 24px 22px 26px; }
.card h2 { font-size: 28px; margin-bottom: 8px; }
.card .lead { font-size: 17px; }
.card .facts { margin: 18px 0; max-width: none; }
.providers { display: grid; gap: 10px; }
.provider {
  display: block; text-align: center; text-decoration: none; padding: 12px 16px;
  font-family: var(--display); font-weight: 700; font-style: italic; font-size: 16px; letter-spacing: .03em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.provider.discord { background: #5865f2; color: var(--white); }
.provider.google { background: var(--white); color: var(--black); }
.provider.apple { background: var(--black); color: var(--white); border: 1px solid #3a3a3e; clip-path: none; }
.provider:hover { filter: brightness(1.12); }
.or { display: flex; align-items: center; gap: 12px; color: var(--grey); font-size: 14px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #2f2f33; }
.form { display: grid; gap: 14px; }
.form label { display: block; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--grey); }
.form input { display: block; width: 100%; margin-top: 6px; font: 17px var(--body); padding: 11px 12px; background: var(--black); color: var(--white); border: 1px solid #3a3a3e; border-radius: 0; }
.form input:focus { border-color: var(--red); }
.form .btn, .logout .btn, form .btn { border: 0; cursor: pointer; font: inherit; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 17px; letter-spacing: .03em; }
.form .btn { justify-self: start; margin-top: 4px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 15px; }
.auth-links a { color: var(--grey); }
.auth-links a:hover { color: var(--white); }
.notice { padding: 12px 16px; margin: 0 0 22px; border-left: 4px solid var(--grey); background: var(--asphalt); max-width: none; }
.notice.ok { border-color: #3fb950; }
.notice.err { border-color: var(--red); }
.account-grid, .rsvp-grid, .register-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .account-grid, .rsvp-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } .rsvp-grid .card:first-child { grid-row: span 2; } .register-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
/* Registered: the schedule and arrival sheets in full, with the key times pulled out. */
.done-docs { margin: 0 0 22px; }
.done-docs .key-times { margin: 0 0 24px; max-width: none; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.done-docs .key-times b { font-size: 22px; }
.done-docs .key-times span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.done-doc { margin: 0 0 28px; }
.done-doc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin: 0 0 10px; }
.done-doc-head h3 { margin: 0; font-size: 24px; }
.done-doc-head .doc-tools { margin: 0; }
.done-doc .paper { max-width: none; }

/* Registration walkthrough: progress bar plus one step card at a time. */
.wizard { max-width: 820px; }
.progress { margin: 0 0 22px; }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.progress-label { font-family: var(--display); font-style: italic; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--grey); }
.progress-pct { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 24px; line-height: 1; color: var(--white); }
.progress-track { height: 10px; background: #2f2f33; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--red); transition: width .6s ease; }
.progress-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: pstep; }
.progress-steps li { counter-increment: pstep; font-family: var(--display); font-weight: 600; letter-spacing: .04em; font-size: 13px; color: var(--grey); }
.progress-steps li::before { content: "0" counter(pstep) "  "; color: var(--grey); }
.progress-steps li:nth-child(2) { text-align: center; }
.progress-steps li:nth-child(3) { text-align: right; }
.progress-steps li.current { color: var(--white); }
.progress-steps li.current::before { color: var(--red-text); }
.progress-steps li.done { color: #3fb950; }
.progress-steps li.done::before { content: "\2713  "; }
.progress-steps a { color: inherit; text-decoration: none; pointer-events: none; }
.progress-steps li.done a, .progress-steps li.current a { pointer-events: auto; }
.progress-steps li.done a:hover { text-decoration: underline; }
.step h2 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 36px); line-height: 1.05; }
.step > .muted { margin-bottom: 18px; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.step-actions .btn { margin: 0; }
.step-actions a.muted { text-decoration: none; }
.step-actions a.muted:hover { color: var(--white); }
.wizard-docs { margin-top: 6px; }
.review { grid-template-columns: 96px 1fr; }
.review-edit { margin: 14px 0 20px; }
.review-edit a { text-decoration: none; }
.review-edit a:hover { color: var(--red-text); }
.done-banner { padding: 14px 16px; margin: 0 0 16px; border-left: 4px solid #3fb950; background: #16181c; max-width: none; }
.done-banner .done-all { font-family: var(--display); font-weight: 700; font-style: italic; letter-spacing: .04em; color: #3fb950; margin-right: 6px; }
/* Registration steps: rider, bike + gear, then documents. The documents card stays dimmed until step 2 is saved. */
.step-tag { margin: 0 0 4px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); }
.step-card h3 { margin-top: 0; }
.docs-locked { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border: 1px dashed #3a3a40; color: var(--grey); font-size: 15px; max-width: none; }
.docs-locked .lock { flex: none; width: 12px; height: 15px; border: 2px solid var(--grey); border-radius: 2px 2px 3px 3px; position: relative; margin-top: 4px; }
.docs-locked .lock::before { content: ""; position: absolute; left: 1px; top: -9px; width: 6px; height: 8px; border: 2px solid var(--grey); border-bottom: 0; border-radius: 6px 6px 0 0; }
[data-docs-locked] .doc-links { opacity: .6; }
.doc-status.locked { background: #3a3a40; color: var(--grey); }
.docs-card .actions { margin-top: 4px; }
[data-register-hint] { margin: 10px 0 0; }
.details { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0 0 18px; }
.details dt { color: var(--grey); font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; padding-top: 2px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.tag { display: inline-block; font-family: var(--display); font-style: italic; font-size: 12px; letter-spacing: .06em; color: var(--black); background: #3fb950; padding: 1px 8px; margin-left: 6px; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.logout { margin-top: 28px; }
.riders { margin: 0; padding-left: 22px; columns: 2; column-gap: 24px; }
.riders li { padding: 4px 0; break-inside: avoid; }
.riders li.wait { color: var(--grey); }
.riders small { font-family: var(--display); font-style: italic; font-size: 12px; letter-spacing: .06em; color: var(--red); margin-left: 8px; }

.form .hint { display: block; font-family: var(--body); font-weight: 400; letter-spacing: 0; font-size: 14px; color: var(--grey); margin-top: 2px; }
.form .check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-family: var(--body); font-weight: 400; letter-spacing: 0; font-size: 15px; color: var(--grey); }
.form .check input { display: inline-block; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); }
.form select, .form textarea { display: block; margin-top: 6px; font: 17px var(--body); padding: 11px 12px; background: var(--black); color: var(--white); border: 1px solid #3a3a3e; border-radius: 0; width: 100%; }
.form textarea { resize: vertical; min-height: 120px; }
.form select:focus, .form textarea:focus { border-color: var(--red); }
.prefs { margin-top: 20px; padding-top: 18px; border-top: 1px solid #2f2f33; }
.details dd small { display: block; margin-top: 4px; font-size: 14px; }
.organizer .btn.ghost { margin-top: 4px; }
.form h3 { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #2f2f33; }
.form h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form .row { display: grid; gap: 14px; }
@media (min-width: 520px) { .form .row { grid-template-columns: 1fr 1fr; } .form .row.three { grid-template-columns: 1.4fr .7fr .9fr; } }
.form .opt { font-weight: 400; letter-spacing: 0; text-transform: none; color: #7c7c84; }
.form input:read-only { color: var(--grey); border-style: dashed; }
.form .small { margin: 0; font-size: 15px; }
.form .check strong { color: var(--white); font-weight: 600; }
.profile-wrap > * { max-width: 620px; }
.danger { margin-top: 36px; border-top: 1px solid #2f2f33; padding-top: 16px; max-width: 560px; }
.danger summary { cursor: pointer; color: var(--grey); font-family: var(--display); font-weight: 600; letter-spacing: .04em; }
.danger summary:hover { color: var(--white); }
.danger[open] summary { color: var(--white); margin-bottom: 8px; }
.danger .form { margin-top: 12px; }
.danger-btn { background: #2a2a2e; color: var(--white); }
.danger-btn:hover { background: var(--red-deep); }
.menu a.admin { color: var(--white); border: 1px solid #3a3a3e; padding: 7px 14px; }
.menu a.admin:hover { border-color: var(--red); }
.menu li[hidden] { display: none; }

/* Track day registration */
.register-wrap .details { grid-template-columns: 96px 1fr; }
.bike { border: 1px solid #2f2f33; padding: 14px 14px 12px; margin: 0 0 12px; min-width: 0; }
.bike legend { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--white); padding: 0 6px; }
.bike .row { gap: 10px; }
@media (min-width: 520px) { .form .row.four { grid-template-columns: .7fr 1fr 1.1fr .9fr; } }
.link-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--white); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--red); }
.bike .link-btn { font-size: 14px; color: var(--grey); margin-top: 10px; }
.cancel-reg { margin-top: 18px; padding-top: 14px; border-top: 1px solid #2f2f33; }
.cancel-reg .link-btn { color: var(--grey); font-size: 15px; }

/* Track day documents (/documents/) */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .doc-list { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.doc-card { display: flex; flex-direction: column; }
.doc-card p { flex: 1; margin: 0 0 12px; }
.doc-card .actions { margin-top: 14px; }
.doc-status { display: inline-block; font-family: var(--display); font-style: italic; font-size: 13px; letter-spacing: .05em; padding: 3px 10px; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); color: var(--black); background: var(--grey); align-self: flex-start; }
.doc-status.need { background: var(--red); color: var(--white); }
.doc-status.done { background: #3fb950; }
.doc-status.partial { background: #f0b429; }
.doc-back { margin-top: 28px; }
.doc-links { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.doc-links li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: center; border-bottom: 1px solid #2f2f33; padding-bottom: 8px; }
.doc-links a { text-decoration: none; }
.doc-links a:hover { color: var(--red); }
.doc-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; max-width: none; }
.doc-next .done-all { font-family: var(--display); font-weight: 600; font-style: italic; letter-spacing: .04em; color: #3fb950; }
.paper .doc-next.below { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #ccc; }
.paper .doc-next.below .muted { color: #666; }
.doc-tools { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 18px; font-size: 15px; color: var(--grey); }
.doc-tools a, .doc-tools .link-btn { color: var(--grey); font-size: 15px; }
.doc-tools a:hover, .doc-tools .link-btn:hover { color: var(--white); }
.doc-wrap > * { max-width: 920px; }

/* The document itself: a white sheet so it reads (and prints) like paper. */
.paper { background: var(--white); color: #111; padding: 28px 22px 26px; border-top: 6px solid var(--red); font-size: 15px; line-height: 1.5; }
@media (min-width: 700px) { .paper { padding: 40px 48px 36px; } }
.paper a { color: var(--red-deep); }
.paper .muted { color: #666; }
.doc-head { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 2px solid #111; }
.doc-head img { width: 56px; height: 56px; flex: none; }
.doc-head h2 { font-size: clamp(24px, 4vw, 34px); margin: 0; color: #111; line-height: 1; }
.doc-head p { margin: 4px 0 0; font-family: var(--display); font-weight: 600; letter-spacing: .06em; font-size: 13px; color: var(--red-deep); }
.doc-foot { margin-top: 26px; padding-top: 10px; border-top: 1px solid #ccc; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .06em; color: #666; text-align: center; }
.paper section { padding: 0; border-top: 0; }
.paper h3 { font-family: var(--display); font-style: normal; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: #111; margin: 18px 0 4px; }
.paper .clause p { max-width: none; margin: 0; }
.paper .clause + .clause { margin-top: 10px; }
.paper .clause p + p { margin-top: 8px; }
.paper .clause ul { margin: 4px 0 0; padding-left: 22px; }
.paper .clause li { margin: 4px 0; }

/* Waiver header fields and signature lines */
.fields { display: grid; grid-template-columns: 1fr; gap: 10px 28px; margin: 0 0 18px; }
@media (min-width: 640px) { .fields { grid-template-columns: 1.4fr 1fr; } }
.field, .sig-line { display: grid; grid-template-columns: 112px 1fr; gap: 8px; align-items: end; }
.field .lbl, .sig-line .lbl { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .05em; color: #111; padding-bottom: 6px; }
.field .val, .sig-line .val { border-bottom: 1px solid #111; padding: 2px 4px 4px; min-height: 26px; overflow-wrap: anywhere; }
.val.pending { color: #888; font-style: italic; border-bottom-style: dashed; }
.paper input[type="text"], .paper input[type="date"] { font: 15px var(--body); width: 100%; border: 0; border-bottom: 1px solid #111; background: #fff6f6; padding: 4px; border-radius: 0; color: #111; }
.paper input[type="text"]:focus, .paper input[type="date"]:focus { background: #ffecec; border-bottom-color: var(--red); }
.sig-line .hint { grid-column: 2; font-size: 12px; color: #666; margin-top: 2px; }
/* Phones: the label sits above the signature pad instead of beside it, so the pad fits the screen. */
@media (max-width: 520px) { .sig-line { grid-template-columns: 1fr; gap: 2px; } .sig-line .lbl { padding-bottom: 0; } .sig-line .hint, .sig-line .miss { grid-column: 1; } }
.acks ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.acks li.checked::before { content: "\2611"; margin-right: 8px; font-size: 16px; }
.acks li.unchecked::before { content: "\2610"; margin-right: 8px; font-size: 16px; }
.sig-line .val.sig-blank { min-height: 48px; }
.acks .ack, .consent .ack, .guardian .ack { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 8px 0; cursor: pointer; }
.ack input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.sig-row { display: grid; gap: 18px; margin: 22px 0 0; }
@media (min-width: 760px) { .sig-row { grid-template-columns: 1fr 1fr; } .sig-row.three { grid-template-columns: 1fr 1.3fr .7fr; } }
.sig-block { display: grid; gap: 10px; }
.sig-img { max-width: 100%; height: 64px; width: auto; display: inline-block; border-bottom: 1px solid #111; background: #fff; }
.pad { position: relative; border: 1px dashed #999; background: #fff; }
.pad canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; }
.pad .pad-clear { position: absolute; top: 6px; right: 8px; font-size: 12px; color: #666; }
.pad .pad-hint { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #aaa; pointer-events: none; }
.pad.inked .pad-hint { display: none; }
.guardian { margin-top: 22px; padding-top: 14px; border-top: 1px solid #ccc; }
.guardian p { max-width: none; margin: 0 0 6px; }
.guardian .na { font-size: 13px; }
.guardian-fields { display: grid; gap: 10px; margin-top: 8px; }
.missed { outline: 2px solid var(--red); outline-offset: 4px; }
.paper .miss { display: block; margin-top: 2px; color: var(--red-deep); font-size: 13px; font-weight: 600; }
.field .miss, .sig-line .miss, .ack .miss { grid-column: 2; }
.consent { margin-top: 22px; padding-top: 16px; border-top: 2px solid #111; }
.consent .notice { margin: 12px 0; }
.consent .btn, .cosign .btn { margin-top: 8px; }
.audit { margin-top: 18px; padding: 12px 14px; background: #f4f4f5; border-left: 4px solid var(--red); font-size: 12.5px; color: #333; overflow-wrap: anywhere; }
.cosign { margin-top: 22px; padding-top: 16px; border-top: 2px solid #111; display: grid; gap: 12px; }
.cosign h3 { margin: 0; }
.cosign p { max-width: none; margin: 0; }
.cosign .notice { margin: 0; }

/* Schedule */
.info-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; border: 1px solid #ccc; padding: 12px 14px; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-grid li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.info-grid span { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .05em; }
.info-grid b { font-weight: 600; }
.legend { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.legend li { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .05em; padding: 4px 10px 4px 4px; border: 1px solid #ddd; }
.legend b { display: inline-block; min-width: 28px; text-align: center; padding: 2px 6px; color: #111; }
.sessions { width: 100%; border-collapse: collapse; font-size: 14px; }
.sessions th { text-align: left; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .06em; background: #111; color: #fff; padding: 8px 10px; }
.sessions td { padding: 7px 10px; border-bottom: 1px solid #fff; }
.sessions .time { font-family: var(--display); font-weight: 700; width: 92px; white-space: nowrap; }
.sessions .group { width: 72px; text-align: center; }
.sessions .lunch td { background: #ececec; font-weight: 600; }
.g-b b, .sessions .g-b td { background: #ffd6d9; } .g-b .group b { background: #ffb5bb; }
.g-c b, .sessions .g-c td { background: #d4e6ff; } .g-c .group b { background: #b4d1ff; }
.g-d b, .sessions .g-d td { background: #d6f2dd; } .g-d .group b { background: #b6e6c3; }
.g-l b, .sessions .g-l td { background: #e7dbff; } .g-l .group b { background: #d2bdff; }
.g-mini b, .sessions .g-mini td { background: #fff1c2; } .g-mini .group b { background: #ffe38f; }
.sessions .group b { padding: 1px 8px; display: inline-block; }
.notes { margin-top: 14px; font-size: 13px; }
.notes p { margin: 2px 0; max-width: none; }

/* /waivers/: every document one after another, with the signing status and button per waiver. */
.doc-jump { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-jump a { display: inline-block; padding: 7px 14px; border: 1px solid #3a3a3e; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--white); }
.doc-jump a:hover { border-color: var(--red); }
.pub-doc { padding: 0; border-top: 0; margin: 0 0 40px; scroll-margin-top: 76px; }
.pub-doc .done-doc-head h2 { margin: 0; font-size: 26px; }
.pub-doc .done-doc-head p { margin: 0; max-width: none; }
.pub-doc .paper { max-width: none; }
.pub-doc .doc-next { margin: 10px 0 16px; }
.pub-doc .doc-next .doc-status { margin: 0; }

/* Arrival info */
.info-section + .info-section { margin-top: 18px; }
.info-section h3 { color: var(--red-deep); font-size: 16px; }
.info-section ul { margin: 4px 0 0; padding-left: 22px; }
.info-section li { margin: 4px 0; }
.info-section ul ul { list-style: circle; }
.info-section ul ul ul { list-style: square; }
.info-section p { max-width: none; margin: 4px 0; }
.info-section .lines { padding-left: 22px; }

@media print {
  body { background: #fff; color: #111; font-size: 12px; }
  .nav, footer, .page-head, .doc-tools, .doc-next, .notice, .cosign, .pad-clear, .pad-hint, .doc-back, .doc-jump { display: none !important; }
  .pub-doc { break-before: page; margin: 0; }
  .pub-doc:first-child { break-before: auto; }
  section { padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .doc-wrap > * { max-width: none; }
  .paper { padding: 0; border-top: 0; font-size: 11.5px; }
  .doc-head h2 { font-size: 24px; }
  .sig-img { height: 54px; }
  .audit { break-inside: avoid; }
  a { text-decoration: none; }
}

/* Legal pages: /privacy/, /terms/, /accessibility/ */
.legal { max-width: 72ch; }
.legal .updated { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin: 0 0 24px; }
.legal .toc { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legal .toc a { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: var(--grey); text-decoration: none; }
.legal .toc a:hover { color: var(--white); }
.legal h2 { font-family: var(--display); font-style: italic; font-size: 24px; margin: 36px 0 10px; scroll-margin-top: 80px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--grey); }
.legal p { margin: 0 0 12px; max-width: none; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 6px 0; }
.legal li strong, .legal p strong { color: var(--white); }
.legal a { color: var(--white); }
.legal .contact-box { margin-top: 36px; border-left: 4px solid var(--red); padding: 4px 0 4px 16px; }
.legal .contact-box p { margin: 0 0 6px; }
