/* Athlete-facing pages (booking, sign-in, my reports). Plain CSS, no build step.
   The palette below is a placeholder taken from RUNNR's pitch deck. When the brand guidebook
   arrives, change these variables and the Cal.com colours in templates/bookings/book.html. */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../dist/css/files/geist-latin-wght-normal.a147f99cd533.woff2") format("woff2-variations");
}

:root {
  --athlete-ink: #2c2419;
  --athlete-ink-soft: #463a2a;
  --athlete-cream: #eae5dd;
  --athlete-paper: #f6f3ee;
  --athlete-line: #d9d2c7;
  --athlete-sand: #b89a72;
  --athlete-muted: #7a7167;
  --athlete-accent: #b0803a;
}

* { box-sizing: border-box; }

body.athlete {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--athlete-cream);
  color: var(--athlete-ink);
  font-family: "Geist Variable", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.athlete-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: var(--athlete-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.athlete-brand { display: inline-flex; flex-direction: column; gap: 6px; text-decoration: none; }
.athlete-brand img { display: block; height: 20px; width: auto; }
.athlete-brand small {
  color: var(--athlete-cream);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
}

.athlete-hero {
  padding: clamp(40px, 7vw, 84px) clamp(18px, 4vw, 54px) clamp(88px, 11vw, 132px);
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px),
    var(--athlete-ink);
  color: var(--athlete-cream);
}

.athlete-wrap { width: 100%; max-width: 1100px; margin: 0 auto; }

.athlete-kicker {
  margin: 0;
  color: var(--athlete-sand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.athlete-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.athlete-hero h1 em { font-style: italic; font-weight: 800; }

.athlete-lede {
  max-width: 34rem;
  margin: 20px 0 0;
  color: rgba(234, 229, 221, 0.72);
  font-size: 1.02rem;
}

.athlete-main {
  flex: 1;
  padding: 0 clamp(12px, 4vw, 54px) clamp(40px, 6vw, 72px);
}

/* The calendar card overlaps the hero so the page reads as one piece. */
.athlete-card {
  margin-top: clamp(-84px, -7vw, -56px);
  overflow: hidden;
  background: var(--athlete-paper);
  border: 1px solid var(--athlete-line);
  border-radius: 14px;
}

.athlete-card-pad { padding: clamp(24px, 5vw, 44px); }
.athlete-card h2 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.athlete-card p { margin: 8px 0 0; color: var(--athlete-muted); }

.athlete-footer {
  padding: 22px clamp(18px, 4vw, 54px);
  background: var(--athlete-ink);
  color: rgba(234, 229, 221, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Header links: language switch, sign in, sign out. */
.athlete-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 22px); }
.athlete-nav form { margin: 0; }
.athlete-nav a,
.athlete-nav button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--athlete-cream);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.8;
}
.athlete-nav a:hover,
.athlete-nav button:hover { opacity: 1; }

/* Cards after the first sit below it instead of overlapping the hero. */
.athlete-card-flat { margin-top: 18px; }
.athlete-card-narrow { max-width: 560px; }
.athlete-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.athlete-small { margin-top: 14px; font-size: 0.86rem; }
.athlete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }

.athlete-facts { display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--athlete-line); }
.athlete-facts > div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--athlete-line);
}
.athlete-facts dt {
  padding-top: 3px;
  color: var(--athlete-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.athlete-facts dd { margin: 0; }
.athlete-facts dd strong { display: block; font-size: 1.08rem; font-weight: 700; }
.athlete-facts dd span { display: block; margin-top: 2px; color: var(--athlete-muted); font-size: 0.92rem; }

.athlete-note {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--athlete-cream);
  border-radius: 10px;
}
.athlete-note h2 { font-size: 1.1rem; }
.athlete-note p:first-child { margin-top: 0; }

.athlete-steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.athlete-steps li {
  position: relative;
  padding: 0 0 22px 48px;
  counter-increment: step;
}
.athlete-steps li:last-child { padding-bottom: 0; }
.athlete-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--athlete-line);
  border-radius: 50%;
  background: var(--athlete-paper);
  color: var(--athlete-muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.athlete-steps li::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 4px;
  width: 1px;
  background: var(--athlete-line);
}
.athlete-steps li:last-child::after { display: none; }
.athlete-steps li.is-done::before { content: "✓"; background: var(--athlete-ink); border-color: var(--athlete-ink); color: var(--athlete-paper); }
.athlete-steps li.is-now::before { border-color: var(--athlete-sand); background: var(--athlete-sand); color: var(--athlete-ink); }
.athlete-steps strong { display: block; padding-top: 3px; font-weight: 700; }
.athlete-steps span { display: block; margin-top: 2px; color: var(--athlete-muted); font-size: 0.94rem; }

.athlete-form { display: grid; gap: 10px; margin-top: 6px; }
.athlete-form label {
  color: var(--athlete-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.athlete-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--athlete-line);
  border-radius: 10px;
  background: #fff;
  color: var(--athlete-ink);
  font: inherit;
}
.athlete-form input:focus { outline: 2px solid var(--athlete-sand); outline-offset: 1px; }
.athlete-card p.athlete-error { margin: 0; color: #9b2c1f; font-size: 0.9rem; }

.athlete-button {
  display: inline-block;
  justify-self: start;
  margin-top: 6px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--athlete-ink);
  color: var(--athlete-paper);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.athlete-button:hover { background: var(--athlete-ink-soft); }
.athlete-link { color: var(--athlete-ink); font-weight: 700; text-underline-offset: 3px; }
.athlete-link-dev { color: var(--athlete-muted); font-weight: 400; font-size: 0.86rem; }

.athlete-status {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--athlete-line);
  border-radius: 999px;
  color: var(--athlete-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.athlete-status-confirmed { border-color: var(--athlete-ink); background: var(--athlete-ink); color: var(--athlete-paper); }
.athlete-status-requested { border-color: var(--athlete-sand); color: var(--athlete-ink); }

.athlete-list { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--athlete-line); }
.athlete-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--athlete-line);
}
.athlete-list strong { display: block; font-weight: 700; }
.athlete-list small { color: var(--athlete-muted); font-size: 0.86rem; }

.athlete-pre {
  margin: 14px 0 0;
  padding: 16px;
  overflow-x: auto;
  background: var(--athlete-cream);
  border-radius: 10px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 520px) {
  .athlete-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .athlete-brand small { display: none; }
  .athlete-nav { gap: 14px; }
  .athlete-nav a,
  .athlete-nav button { font-size: 0.64rem; letter-spacing: 0.08em; white-space: nowrap; }
  .athlete-nav-home { display: none; }
}

/* ---- Reports: the athlete's score, profile and history ---- */
.athlete-eyebrow {
  margin: 0;
  color: var(--athlete-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.athlete-card p.athlete-eyebrow { margin: 0; }
.athlete-card p.athlete-gap { margin-top: 16px; }
.athlete-card p.athlete-big { margin: 2px 0 0; color: var(--athlete-ink); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.athlete-card p.athlete-tight { margin-top: 4px; }
.athlete-card p.athlete-prose { margin: 14px 0 0; color: var(--athlete-ink); font-size: 1.02rem; line-height: 1.65; }
.athlete-card p.athlete-delta { margin: 4px 0 0; font-size: 0.9rem; }

.athlete-dial { position: relative; flex: none; width: 150px; height: 150px; }
.athlete-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.athlete-dial circle { fill: none; stroke-width: 7; }
.athlete-dial-track { stroke: var(--athlete-line); }
.athlete-dial-fill { stroke: var(--athlete-accent); stroke-linecap: round; stroke-dasharray: 263.89; }
.athlete-dial-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.athlete-dial-center strong { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.athlete-dial-center span { margin-top: 2px; color: var(--athlete-muted); font-size: 0.7rem; letter-spacing: 0.1em; }
.athlete-dial-small { width: 58px; height: 58px; }
.athlete-dial-small circle { stroke-width: 9; }
.athlete-dial-small .athlete-dial-center strong { font-size: 1rem; letter-spacing: -0.02em; }
.athlete-dial-small .athlete-dial-center span { display: none; }

.athlete-latest { display: grid; grid-template-columns: 1.25fr 1fr; }
.athlete-latest-score { padding: clamp(24px, 4vw, 40px); }
.athlete-latest-dial { display: flex; align-items: center; gap: clamp(18px, 3vw, 30px); margin-top: 18px; }
.athlete-latest-photo { min-height: 260px; background-size: cover; background-position: center; background-color: #7a6044; background-blend-mode: luminosity; }

.athlete-axes { display: grid; gap: 14px; margin-top: 26px; }
.athlete-axis-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.athlete-axis-head span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.athlete-axis-head strong { font-size: 1.1rem; font-weight: 800; }
.athlete-axis-head small { color: var(--athlete-muted); font-size: 0.7rem; font-weight: 400; }
.athlete-axis-track { height: 8px; margin-top: 6px; overflow: hidden; border-radius: 999px; background: var(--athlete-line); }
.athlete-axis-fill { height: 100%; border-radius: 999px; background: var(--athlete-ink); }

.athlete-change { font-weight: 800; white-space: nowrap; }
.athlete-change-up { color: #2f6b3f; }
.athlete-change-down { color: #9b2c1f; }

.athlete-history { display: flex; align-items: flex-end; gap: clamp(14px, 3vw, 28px); height: 190px; margin: 14px 0 26px; padding: 0 4px; border-bottom: 1px solid var(--athlete-line); }
.athlete-history-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; width: 72px; height: 100%; color: var(--athlete-ink); text-decoration: none; }
.athlete-history-bar strong { margin-bottom: 6px; font-size: 1rem; font-weight: 800; }
.athlete-history-fill { display: block; width: 100%; min-height: 4px; border-radius: 8px 8px 0 0; background: var(--athlete-sand); }
.athlete-history-bar:last-child .athlete-history-fill { background: var(--athlete-ink); }
.athlete-history-bar small { position: relative; top: 24px; height: 0; color: var(--athlete-muted); font-size: 0.7rem; white-space: nowrap; }
.athlete-history + .athlete-reports { margin-top: 40px; }

.athlete-reports li { padding: 0; }
.athlete-reports a { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 0; color: var(--athlete-ink); text-decoration: none; }
.athlete-reports a > span:nth-child(2) { flex: 1; }
.athlete-reports a:hover .athlete-arrow { transform: translateX(4px); }
.athlete-arrow { font-size: 1.2rem; transition: transform 0.15s ease; }

.athlete-report-top { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
.athlete-report-top .athlete-latest-dial { margin-top: 0; }
.athlete-notices ul { margin: 10px 0 0; padding-left: 18px; color: var(--athlete-muted); font-size: 0.9rem; }

.athlete-profile { background-color: #7a6044; background-blend-mode: luminosity; background-size: cover; background-position: center; border: 0; }
.athlete-profile-body { padding: clamp(28px, 6vw, 64px) clamp(24px, 5vw, 44px); background: linear-gradient(90deg, rgba(28, 22, 14, 0.94) 0%, rgba(28, 22, 14, 0.78) 55%, rgba(28, 22, 14, 0.25) 100%); }
.athlete-profile .athlete-eyebrow { color: var(--athlete-sand); }
.athlete-profile h2 { margin-top: 6px; color: var(--athlete-paper); font-size: clamp(2rem, 6vw, 3.4rem); font-style: italic; line-height: 1; }
.athlete-profile p.athlete-prose { max-width: 34rem; color: rgba(246, 243, 238, 0.86); }

.athlete-domains { display: grid; gap: 0; margin-top: 8px; }
.athlete-domain { padding: 22px 0; border-bottom: 1px solid var(--athlete-line); }
.athlete-domain:last-child { padding-bottom: 0; border-bottom: 0; }
.athlete-card p.athlete-chip { display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: 8px; background: var(--athlete-cream); font-size: 0.8rem; }
.athlete-chip strong { color: var(--athlete-ink); }

.athlete-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.95rem; }
.athlete-table th { padding: 8px 0; color: var(--athlete-muted); font-size: 0.66rem; letter-spacing: 0.14em; text-align: right; text-transform: uppercase; }
.athlete-table td { padding: 12px 0; border-top: 1px solid var(--athlete-line); text-align: right; }
.athlete-table td:first-child { text-align: left; font-weight: 700; }
.athlete-table tr.is-main td { font-size: 1.1rem; font-weight: 800; }

.athlete-measures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; margin: 16px 0 0; overflow: hidden; border: 1px solid var(--athlete-line); border-radius: 10px; }
.athlete-measures > div { padding: 14px; outline: 1px solid var(--athlete-line); }
.athlete-measures dt { color: var(--athlete-muted); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.athlete-measures dd { margin: 6px 0 0; font-size: 1.15rem; font-weight: 800; }
.athlete-measures small { color: var(--athlete-muted); font-size: 0.72rem; font-weight: 400; }

.athlete-plan { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: plan; }
.athlete-plan li { position: relative; padding: 18px 18px 18px 58px; border: 1px solid var(--athlete-line); border-radius: 10px; counter-increment: plan; }
.athlete-plan li::before { content: counter(plan); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--athlete-ink); color: var(--athlete-paper); font-size: 0.8rem; font-weight: 700; }
.athlete-plan strong { font-weight: 800; }
.athlete-dose { display: block; margin-top: 2px; color: var(--athlete-muted); font-size: 0.78rem; letter-spacing: 0.04em; }
.athlete-plan p { color: var(--athlete-ink); }

.athlete-report-foot { margin-top: 26px; color: var(--athlete-muted); font-size: 0.78rem; line-height: 1.6; }
.athlete-report-foot p { margin: 4px 0 0; }

/* The dark card: the score, and the call to come back. One per page top and one near the end,
   so a long report is not a single run of identical cards. */
.athlete-card-dark { border-color: rgba(255, 255, 255, 0.1); background: #3a2f21; color: var(--athlete-paper); }
.athlete-card-dark .athlete-eyebrow { color: var(--athlete-sand); }
.athlete-card-dark p,
.athlete-card-dark p.athlete-prose { color: rgba(246, 243, 238, 0.86); }
.athlete-card-dark p.athlete-big,
.athlete-card-dark .athlete-dial-center strong,
.athlete-card-dark .athlete-axis-head { color: var(--athlete-paper); }
.athlete-card-dark .athlete-dial-center span,
.athlete-card-dark .athlete-axis-head small { color: rgba(246, 243, 238, 0.6); }
.athlete-card-dark .athlete-dial-track { stroke: rgba(255, 255, 255, 0.14); }
.athlete-card-dark .athlete-dial-fill { stroke: #d9a85a; }
.athlete-card-dark .athlete-axis-track { background: rgba(255, 255, 255, 0.14); }
.athlete-card-dark .athlete-axis-fill { background: var(--athlete-paper); }
.athlete-card-dark .athlete-change-up { color: #a9d08a; }
.athlete-card-dark .athlete-change-down { color: #f0a48f; }
.athlete-card-dark .athlete-button { background: var(--athlete-paper); color: var(--athlete-ink); }
.athlete-card-dark .athlete-button:hover { background: #ffffff; }
.athlete-card-dark .athlete-link { color: var(--athlete-paper); }

@media (max-width: 760px) {
  .athlete-latest { grid-template-columns: 1fr; }
  .athlete-latest-photo { min-height: 180px; order: -1; }
  .athlete-report-top { grid-template-columns: 1fr; }
  .athlete-dial:not(.athlete-dial-small) { width: 120px; height: 120px; }
  .athlete-dial:not(.athlete-dial-small) .athlete-dial-center strong { font-size: 2rem; }
}

@media print {
  .athlete-header, .athlete-footer, .athlete-actions { display: none; }
  .athlete-hero { padding-bottom: 40px; }
  .athlete-card { margin-top: 14px; break-inside: avoid; }
}

/* ---- Visit: icons, place, countdown, the "how to get ready" checklist (3 October 2026) ----
   Emojis are used as small icons only, never inside sentences. */

/* Steps: an icon in the circle instead of a number. */
.athlete-steps li::before { content: none; display: none; }
.athlete-steps li::after { left: 19px; top: 44px; }
.athlete-steps li { padding-left: 58px; min-height: 40px; }
.athlete-steps .athlete-step-icon {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid var(--athlete-line);
  border-radius: 50%;
  background: var(--athlete-paper);
  font-size: 1.15rem;
  line-height: 1;
  filter: grayscale(0.35);
}
.athlete-steps li.is-done .athlete-step-icon { border-color: var(--athlete-ink); background: var(--athlete-cream); filter: none; }
.athlete-steps li.is-now .athlete-step-icon { border: 2px solid var(--athlete-accent); background: #f3e6cf; filter: none; box-shadow: 0 0 0 4px rgba(176, 128, 58, 0.14); }
.athlete-steps strong { padding-top: 8px; }
.athlete-step-tick { margin-left: 6px; color: #2f6b3f; font-style: normal; font-weight: 800; }

/* Facts: icon before each label, a map link under the address. */
.athlete-fact-icon { display: inline-block; width: 1.4em; margin-right: 2px; font-size: 0.95rem; letter-spacing: 0; }
.athlete-facts > div { grid-template-columns: 8rem 1fr; }
.athlete-facts dd .athlete-map-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--athlete-ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* A photo strip at the top of the booked card, with the countdown on it. */
.athlete-visual {
  position: relative;
  height: clamp(150px, 22vw, 220px);
  background-color: #7a6044;
  background-size: cover;
  background-position: center 40%;
  background-blend-mode: luminosity;
}
.athlete-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 36, 25, 0) 40%, rgba(44, 36, 25, 0.55) 100%);
}
.athlete-countdown {
  position: absolute;
  left: clamp(20px, 4vw, 40px);
  bottom: 18px;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--athlete-paper);
  color: var(--athlete-ink);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(28, 22, 14, 0.25);
}
.athlete-countdown-inline { position: static; padding: 6px 12px; font-size: 0.72rem; letter-spacing: 0.06em; box-shadow: none; border: 1px solid var(--athlete-line); }
.athlete-head-tags { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.athlete-hero-emoji { display: inline-block; margin-right: 4px; font-size: 1.25em; font-style: normal; vertical-align: -0.1em; }

.athlete-note-icon { display: flex; gap: 14px; align-items: flex-start; }
.athlete-note-icon > span { font-size: 1.6rem; line-height: 1.2; }
.athlete-note-icon p:first-child { margin-top: 0; }

/* The checklist. */
.athlete-prep-badge { font-size: 1.8rem; line-height: 1; }
.athlete-prep-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.athlete-prep-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--athlete-line);
  border-radius: 12px;
  background: #fbf9f5;
  font-size: 0.95rem;
  line-height: 1.45;
}
.athlete-prep-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--athlete-cream);
  font-size: 1.15rem;
}
.athlete-empty-icon { margin: 0 0 6px; font-size: 2rem; line-height: 1; }

@media (max-width: 520px) {
  .athlete-facts > div { grid-template-columns: 1fr; }
  .athlete-prep-list { grid-template-columns: 1fr; }
  .athlete-card-head { flex-wrap: wrap; }
}

/* ---- Before the visit: the one page (profile + consent), 6 October 2026 ---- */
.visit-form .athlete-card h2 { margin-bottom: 4px; }
.visit-note { margin-top: 0; }
.visit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 16px; }
.visit-field { display: grid; gap: 6px; align-content: start; }
.visit-field-wide { grid-column: 1 / -1; }
.visit-label {
  color: var(--athlete-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.visit-field input:not([type="radio"]), .visit-field select, .visit-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--athlete-line);
  border-radius: 10px;
  background: #fff;
  color: var(--athlete-ink);
  font: inherit;
}
.visit-field textarea { min-height: 84px; resize: vertical; }
.visit-field input:focus, .visit-field select:focus, .visit-field textarea:focus { outline: 2px solid var(--athlete-sand); outline-offset: 1px; }
.visit-field.has-error input, .visit-field.has-error select, .visit-field.has-error textarea { border-color: #9b2c1f; }
.visit-radios { display: flex; gap: 22px; padding: 10px 0; }
.visit-radios label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.visit-radios input, .visit-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--athlete-ink); }

.visit-consent-text { margin: 14px 0 6px; border: 1px solid var(--athlete-line); border-radius: 10px; background: #fff; }
.visit-consent-text summary { padding: 14px 16px; font-weight: 700; cursor: pointer; }
.visit-legal { max-height: 380px; overflow-y: auto; padding: 4px 18px 16px; font-size: 0.86rem; line-height: 1.6; }
.visit-legal h3 { margin: 16px 0 6px; font-size: 0.84rem; }
.visit-legal p { margin: 0 0 10px; }

.visit-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 0.92rem; line-height: 1.5; cursor: pointer; }
.visit-check input { flex: none; margin-top: 2px; }
.visit-check.has-error span { color: #9b2c1f; }
.visit-photos { margin: 20px 0 0; padding: 14px 16px 16px; border: 1px solid var(--athlete-line); border-radius: 10px; min-width: 0; }
.visit-photos legend { padding: 0 6px; font-weight: 700; font-size: 0.88rem; }
.visit-photos .visit-check { margin-top: 10px; }
.visit-photos.has-error { border-color: #9b2c1f; }

.visit-submit { margin: 22px 0 8px; }
.visit-button { width: 100%; padding: 18px 26px; font-size: 1.05rem; text-align: center; }
.visit-banner { margin: 0 0 16px; padding: 14px 18px; border: 1px solid #9b2c1f; border-radius: 10px; background: var(--athlete-paper); color: #9b2c1f; }
.visit-status .athlete-list { margin-top: 14px; }

@media (max-width: 640px) {
  .visit-fields { grid-template-columns: 1fr; }
}

/* The questionnaire's pictures: step bar, section icons, answer tiles, hints. */
.visit-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--athlete-line);
  border-radius: 14px;
  background: var(--athlete-paper);
  position: relative;
  z-index: 1;
}
.visit-steps a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--athlete-line);
  color: var(--athlete-ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.visit-steps a:hover { border-color: var(--athlete-sand); }
.visit-steps-icon { font-size: 1.05rem; line-height: 1; }
.visit-steps-time { margin-left: auto; color: var(--athlete-muted); font-size: 0.82rem; font-weight: 700; }

.visit-section-head { display: flex; gap: 14px; align-items: flex-start; }
.visit-section-head h2 { margin: 2px 0 2px; }
.visit-section-head p { margin: 0; color: var(--athlete-muted); font-size: 0.92rem; }
.visit-section-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--athlete-cream);
  font-size: 1.35rem;
}

.visit-required { color: var(--athlete-accent); font-style: normal; }
.visit-help { margin: 0; color: var(--athlete-muted); font-size: 0.82rem; line-height: 1.45; }

.visit-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.visit-tiles label { position: relative; cursor: pointer; }
.visit-tiles input { position: absolute; opacity: 0; pointer-events: none; }
.visit-tiles span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--athlete-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}
.visit-tiles label:hover span { border-color: var(--athlete-sand); }
.visit-tiles input:checked + span { border-color: var(--athlete-ink); background: var(--athlete-ink); color: var(--athlete-paper); }
.visit-tiles input:focus-visible + span { outline: 2px solid var(--athlete-sand); outline-offset: 2px; }
.visit-field.has-error .visit-tiles span { border-color: #9b2c1f; }

@media (max-width: 640px) {
  .visit-steps-time { margin-left: 0; }
  .visit-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.visit-steps-first { margin-top: clamp(-84px, -7vw, -56px); }

/* Line icons instead of emoji (6 October 2026) and the English lines under the consent. */
.visit-icon { display: block; flex: none; }
.visit-section-icon { color: var(--athlete-ink); }
.visit-steps-icon { color: var(--athlete-accent); display: inline-flex; }
.visit-steps-time { display: inline-flex; align-items: center; gap: 6px; }
.visit-title-icon { display: flex; align-items: center; gap: 10px; }
.visit-title-icon .visit-icon { color: var(--athlete-accent); }
.athlete-card-dark .visit-title-icon .visit-icon { color: var(--athlete-sand); }
.visit-consent-text summary { display: flex; align-items: center; gap: 8px; }
.visit-consent-text summary::before { content: "▸"; color: var(--athlete-muted); }
.visit-consent-text[open] summary::before { content: "▾"; }
.visit-consent-text summary::-webkit-details-marker { display: none; }
.visit-consent-text summary { list-style: none; }
.visit-help { display: flex; gap: 6px; align-items: flex-start; }
.visit-help .visit-icon { margin-top: 1px; color: var(--athlete-sand); }
.visit-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.visit-clause { display: grid; gap: 4px; }
.visit-translation { color: var(--athlete-muted); font-size: 0.86rem; font-style: italic; }
.visit-legal-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--athlete-cream); }

/* The read-only summary once the profile is done. */
.visit-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 16px 0 0; border-top: 1px solid var(--athlete-line); }
.visit-answers > div { padding: 12px 0; border-bottom: 1px solid var(--athlete-line); }
.visit-answers dt { color: var(--athlete-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.visit-answers dd { margin: 4px 0 0; font-weight: 600; white-space: pre-line; }
.visit-cancel { text-align: center; }
@media (max-width: 640px) { .visit-answers { grid-template-columns: 1fr; } }
