/* /enter extras: the closed page and its sign-up, TBC places, the spreadsheet import, the declaration; /privacy and
   /refunds. Loaded after coach.css. */

/* ---------- buttons this page adds: tonal (secondary filled) and text (tertiary) ---------- */
.btn.tonal { background: var(--pale); color: var(--blue-2); }
.btn.tonal:hover { background: #DCE5F8; }
.btn.tonal:disabled:hover { background: var(--pale); }
.btn.text { background: transparent; color: var(--blue); padding-inline: var(--s3); }
.btn.text:hover { background: var(--pale); }
.btn .ic { font-size: 18px; }

/* ---------- closed: a launch hero. Copy and countdown on the left, the sign-up card on the right (stacked on a phone);
   below the band, what to have ready, in the home page's section pattern. ---------- */
.band.launch { padding-block: var(--band-y); }
.launch-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) {
  .launch-grid:not(.solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--s7); }
  .band.launch { padding-block: var(--s8); }
}
.band.launch p.lead { max-width: 52ch; margin-bottom: 0; }
/* Phone, before opening: the countdown and the sign-up card say it all, so the title and lead are kept for screen
   readers only and the countdown leads. */
@media (max-width: 899px) {
  .launch-grid.before .launch-copy h1, .launch-grid.before .launch-copy p.lead {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .launch-grid.before .hcd { margin-top: var(--s5); }
}
.launch .hcd { margin-top: var(--s6); }
.notify-card { position: relative; padding: var(--s5); color: var(--ink); border-radius: var(--r-sheet); box-shadow: 0 32px 64px -28px rgba(4,18,64,.7); }
.notify-badge { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--s4); border-radius: var(--r-ctl); background: var(--pale); color: var(--blue); font-size: var(--ic-lg); }
.notify-title { margin: 0 0 var(--s2); font-size: var(--fs-lg); }
.notify-text { margin: 0 0 var(--s5); font-size: var(--fs-sm); color: var(--muted); }
.notify-card .notify-form { display: grid; gap: var(--s3); }
.notify-card .notify-form label.f > span { margin: 0; }
.notify-card .err-text { margin: 0; }
.notify-card .notify-privacy { display: flex; gap: var(--s2); align-items: flex-start; margin-top: var(--s4); }
.notify-card .notify-privacy .ic { flex: none; font-size: var(--ic-sm); margin-top: 1px; color: var(--placeholder); }
.launch-after .notify-card { max-width: var(--measure); }
.ready { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 600px) { .ready { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ready > li.card { display: flex; gap: var(--s3); align-items: flex-start; margin: 0; }
.ready p { margin: 0; font-size: var(--fs-sm); }
.ready-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-ctl); background: var(--pale); color: var(--blue); font-size: var(--ic-md); }
.notify-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.notify-row input { flex: 1 1 220px; }
.notify-row .btn { flex: none; }
.notify-privacy { margin: var(--s2) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.notify-done { display: flex; gap: var(--s3); align-items: flex-start; }
.notify-done h2 { margin: 0 0 2px; font-size: var(--fs-lg); }
.notify-done p { margin: 0; color: var(--muted); }
.notify-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-size: 24px; }
.admin-preview { display: flex; gap: var(--s2); align-items: center; font-weight: 600; position: relative; margin-top: calc(-1 * var(--s7)); box-shadow: var(--shadow); }
/* The notice takes the step bar's overlap into the band, so the bar sits below it instead of on top of it. */
.admin-preview + .tabs { margin-top: 0; }

/* ---------- step 2: header with the import button, TBC places, adding places ---------- */
.step-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s2) var(--s4); }
.step-head .hint { margin-bottom: var(--s4); }
.import-open { flex: none; margin-bottom: var(--s3); }
.av.tbc { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px dashed var(--mid); color: var(--blue); background: var(--pale); font-weight: 800; font-size: 13px; }
.ath-name.tbc::placeholder { color: var(--blue); font-weight: 600; font-style: italic; }
.init-opt::before { display: none; }
.init-opt .ic { font-size: 15px; }
.init-opt.on { background: #EFE8F7; color: var(--purple); }
@media (max-width: 599px) {
  /* phones: the initials chip shrinks to its icon so a row keeps to one line */
  .init-word { display: none; }
  .init-opt { padding: 0 var(--s2); }
  /* with the note button too, tighter gaps keep the row (and its remove button) on one line */
  .ath { gap: 0 var(--s1); padding-right: var(--s1); }
  .ath-note { padding-left: 0; }
  .ath-name { flex-basis: 80px; }
}
.init-note { display: flex; gap: var(--s2); align-items: flex-start; margin: var(--s4) 0 0; font-size: var(--fs-sm); }
.init-note .ic { flex: none; margin-top: 2px; }

/* ---------- notes for the organisers: nothing shows until asked for. One quiet link opens the entry's note; each athlete
   row has a small note button (on hover or focus with a mouse, always on touch) that opens a one-line note under it, and
   stays as a filled icon once there is a note. ---------- */
.note-btn { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--placeholder); cursor: pointer;
  transition: opacity var(--mo-2) var(--e-settle), background-color var(--mo-2) var(--e-settle), color var(--mo-2) var(--e-settle); }
.note-btn .ic { font-size: 18px; }
.note-btn:hover { background: var(--pale); color: var(--blue); }
.note-btn.has, .note-btn.on { color: var(--blue); }
.note-btn.has { background: var(--pale); }
@media (hover: hover) {
  .note-btn:not(.has):not(.on) { opacity: 0; }
  .ath:hover .note-btn, .ath:focus-within .note-btn { opacity: 1; }
}
.ath-note { order: 10; flex-basis: 100%; padding: 0 0 var(--s1) 36px; }
.ath-note input { min-height: 34px; padding: var(--s1) var(--s2); font-size: var(--fs-sm); background: #FAFBFE; }
.org-note { margin-top: var(--s3); }
.org-note-open { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s2) 0; font-size: var(--fs-sm); }
.org-note-open .ic { font-size: 18px; }
.org-note-panel { display: grid; gap: var(--s2); padding-top: var(--s2); }
.org-note-panel label.f > span { margin: 0; }
.org-note-panel textarea { min-height: 88px; resize: vertical; font-size: var(--fs-ctl); line-height: 1.5; }
.org-note-hint { margin: 0; font-size: var(--fs-xs); }
.org-note-hint a { font-weight: 600; }
.review-note { display: flex; gap: var(--s2); align-items: flex-start; }
.review-note > .ic { flex: none; margin-top: 2px; font-size: 18px; color: var(--ic-tone); }
.review-note > span { display: grid; gap: 2px; min-width: 0; }
.review-note-text { white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.rg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s3); padding-top: var(--s2); }
.places { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.places-label { font-size: var(--fs-sm); color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: #fff; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; color: var(--blue); font-size: 20px; font-weight: 700; border-radius: 50%; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--pale); }
.stepper button:disabled { color: var(--placeholder); cursor: default; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.places-add { min-height: 38px; }

/* ---------- import: source → columns beside a live roster → add ---------- */
.imp { border: 1px solid var(--light); border-radius: var(--r-card); padding: var(--s4); background: #FBFCFF; }
.imp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.imp-title { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s1); font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .02em; }
.imp-title .ic { color: var(--blue); }
.imp-source { display: grid; gap: var(--s4); margin-top: var(--s3); }
.imp-drop { position: relative; display: grid; justify-items: center; gap: var(--s1); padding: var(--s5) var(--s4); border: 2px dashed var(--light); border-radius: var(--r-card); background: #fff; text-align: center; cursor: pointer;
  transition: border-color var(--mo-2) var(--e-settle), background-color var(--mo-2) var(--e-settle); }
.imp-drop:hover, .imp-drop:focus-within { border-color: var(--mid); background: var(--pale); }
.imp-drop > .ic { font-size: 32px; color: var(--blue); }
.imp-drop small { color: var(--muted); font-size: var(--fs-sm); }
.imp-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; padding: 0; }
.imp-paste { display: grid; gap: var(--s2); justify-items: start; }
.imp-paste textarea { min-height: 112px; resize: vertical; }
.imp-template { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin: var(--s4) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.imp-template a { font-weight: 700; }

.imp-grid { display: grid; gap: var(--s4); margin-top: var(--s3); }
.imp-file { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: var(--s2) var(--s3); border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line); }
.imp-file small { color: var(--muted); }
.imp-file .linkbtn { margin-left: auto; }
.imp-tick { display: flex; align-items: center; gap: var(--s2); margin: var(--s3) 0; font-size: var(--fs-sm); font-weight: 600; }
.imp-tick input { width: 20px; height: 20px; min-height: 0; }
.imp-cols { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.imp-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s2); align-items: center; padding: var(--s2); border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line);
  transition: opacity var(--mo-2) var(--e-settle), border-color var(--mo-2) var(--e-settle); }
.imp-col:not(.off) { border-color: var(--light); }
.imp-col.off { opacity: .7; }
.imp-col-src { min-width: 0; }
.imp-col-src b, .imp-col-src small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-col-src small { color: var(--muted); font-size: var(--fs-xs); }
.imp-col select { min-height: 40px; padding: var(--s2) var(--s2); font-size: var(--fs-ctl); }
.imp-default { margin-top: var(--s3); }

.imp-preview { position: relative; min-width: 0; display: grid; gap: var(--s3); align-content: start; padding: var(--s3); border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); }
.imp-total { font-size: var(--fs-sm); color: var(--muted); }
.imp-total > b { font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 2px; }
.imp-bad-count { color: var(--err); font-weight: 600; }
.imp-group header { display: flex; align-items: baseline; gap: var(--s2); padding: var(--s2) var(--s2); border-radius: 8px; background: var(--pale); color: var(--blue-2); }
.imp-group header small { flex: 1; min-width: 0; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-group.bad header { background: var(--err-bg); color: var(--err); align-items: center; }
.imp-group.bad header b { flex: 1; }
.imp-count { flex: none; min-width: 24px; padding: 0 var(--s2); border-radius: var(--r-pill); background: #fff; font-weight: 700; font-size: var(--fs-xs); text-align: center; font-variant-numeric: tabular-nums; }
.imp-group ul { list-style: none; margin: 0; padding: 2px 0 0; }
.imp-group li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s2); padding: var(--s1) var(--s2); border-bottom: 1px solid #F0F2F7; font-size: var(--fs-sm); background: #fff; }
.imp-group li .av { width: 24px; height: 24px; }
.imp-group li .av.tbc { width: 24px; height: 24px; font-size: 12px; }
.imp-name { flex: 1 1 120px; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-name.tbc { color: var(--blue); font-style: italic; }
.imp-tags { display: inline-flex; gap: var(--s1); flex-wrap: wrap; }
.imp-tag { font-size: 11px; font-weight: 600; padding: 1px var(--s2); border-radius: var(--r-pill); background: var(--bg); color: var(--muted); }
.imp-tag.on { background: var(--pale); color: var(--blue); }
.imp-group.bad li { background: #FFFBFB; }
.imp-n { flex: none; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 48px; }
.imp-why { flex: 1 1 100%; color: var(--err); font-size: var(--fs-xs); padding-left: var(--s8); }
.imp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s4); }
.imp-foot .hint { margin: 0; font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .imp { padding: var(--s5); }
  .imp-source { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .imp-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .imp-preview { position: sticky; top: var(--sticky-top); max-height: calc(100vh - var(--sticky-top) - var(--s4)); overflow: auto; }
}

/* ---------- step 4: the declaration ---------- */
.declare { display: flex; gap: var(--s3); align-items: flex-start; margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color var(--mo-2) var(--e-settle), background-color var(--mo-2) var(--e-settle); }
.declare input { flex: none; width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--blue); }
.declare b { display: block; font-weight: 600; font-size: var(--fs-sm); line-height: 1.45; }
.declare small { display: block; margin-top: var(--s1); font-size: var(--fs-xs); color: var(--muted); }
.declare.on { border-color: var(--light); background: var(--pale); }
.declare.bad { border-color: var(--err); background: var(--err-bg); }
.summary .secure a { color: inherit; font-weight: 600; }

/* ---------- /privacy, /refunds ---------- */
.policy { margin-top: calc(-1 * var(--s7)); } /* like .tabs and .overlap: the first card sits 24px into the band */
.policy-card { max-width: var(--measure); line-height: 1.6; }
.policy-card h2 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .03em; margin: var(--s6) 0 var(--s2); }
.policy-card p { margin: 0 0 var(--s3); }
.policy-card ul { margin: 0 0 var(--s3); padding-left: 1.25em; }
.policy-card li { margin-bottom: var(--s1); }
.policy-card a { font-weight: 600; overflow-wrap: anywhere; }
.policy-meta { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--muted); }
.policy-intro { font-size: var(--fs-md); }
.policy-contact { margin-top: var(--s6) !important; padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--muted); }
.foot-links { margin-top: var(--s2); }
.foot-links a { color: inherit; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .imp-drop, .imp-col, .declare, .note-btn { transition: none; }
}
/* step headings: a small icon in the brand tone */
.step-title { display: flex; align-items: center; gap: var(--s2); }
.step-ic { font-size: var(--ic-md); color: var(--ic-tone); }
.thanks-check.wait { background: var(--pale); color: var(--blue); }
.thanks-check.wait .ic { font-size: 28px; }
