/* Young Born Leaders — shared brand system */
:root {
  --ink: #0d0d0d;
  --ink-2: #1c1c1c;
  --red: #d71920;
  --red-dark: #a8121a;
  --green: #1a9a4b;
  --green-dark: #127a3a;
  --paper: #ffffff;
  --bg: #f5f4f0;
  --line: #e4e2dc;
  --muted: #6b6a66;
  --soft-red: #fdeced;
  --soft-green: #e7f6ed;
  --soft-amber: #fff5dc;
  --amber: #b77900;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: .01em; line-height: 1.05; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 2px solid transparent; border-radius: 999px;
  padding: .75em 1.4em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  font-size: .9rem; text-decoration: none; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s;
  background: var(--ink); color: #fff;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.btn:active { transform: none; }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: #fff; }
.btn-sm { padding: .45em .9em; font-size: .78rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Top bar */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand b { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: .02em; display: block; line-height: 1; }
.brand small { display: block; font-size: .7rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { white-space: nowrap; text-decoration: none; font-weight: 600; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; padding: .5em .8em; border-radius: 8px; }
.nav a.link:hover { background: var(--bg); }
@media (max-width: 760px) {
  .nav a.link:not(.keep) { display: none; }
  .nav .btn-quiet { display: none; }
  .brand small { display: none; }
  .brand b { font-size: 1.1rem; }
  .brand img { width: 40px; height: 40px; }
}

.stripe-red { background: var(--red); color: #fff; text-align: center; font-family: var(--display); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 8px 16px; font-size: 1.05rem; }
.stripe-black { background: var(--ink); color: #fff; }
.tricolor { height: 5px; background: linear-gradient(90deg, var(--red) 0 33.3%, var(--ink) 33.3% 66.6%, var(--green) 66.6%); }

/* Cards & forms */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }
@media (max-width: 600px) { .pad { padding: 18px; } }

label.field { display: block; }
.field > span { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field > span em { color: var(--red); font-style: normal; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; font: inherit; color: var(--ink);
  padding: .72em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(13,13,13,.08); }
.field.invalid .input { border-color: var(--red); background: #fffafa; }
.field .err { display: none; color: var(--red); font-size: .78rem; margin-top: 4px; font-weight: 600; }
.field.invalid .err { display: block; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.span2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
}

/* Choice chips & toggles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5em 1em; font-weight: 600; font-size: .88rem; background: #fff;
  transition: all .15s;
}
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(13,13,13,.15); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: .4em 1.2em; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:checked + span.yes { background: var(--green); }
.seg input:checked + span.no { background: var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); margin-top: 2px; flex: none; }
.check.invalid { border-color: var(--red); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: .18em .7em; font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.active { background: var(--soft-green); color: var(--green-dark); }
.pill.pending { background: var(--soft-amber); color: var(--amber); }
.pill.waitlist { background: #eceaff; color: #4b3fc4; }
.pill.inactive { background: #eee; color: #666; }
.pill.red { background: var(--soft-red); color: var(--red-dark); }
.pill.plain::before { display: none; }

/* Toast */
.toast { transition: transform .3s, visibility .3s; position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(calc(100% + 40px)); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; z-index: 100; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10,10,10,.55); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 18px; width: min(860px, 100%); max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; }
.icon-btn { border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; font-size: 1.2rem; line-height: 1; }

/* Printable registration summary (mirrors the Registration Summary PDF) */
.summary-doc { padding: 28px; font-size: .92rem; }
.summary-doc .doc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; margin-bottom: 18px; }
.summary-doc .doc-head img { width: 64px; }
.summary-doc h4 { font-size: 1rem; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 6px; margin: 18px 0 10px; }
.qa { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 18px; }
.qa div b { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 640px) { .qa { grid-template-columns: 1fr 1fr; } }
table.doc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.doc-table th, table.doc-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
table.doc-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0; }
  .modal-bg { background: none; position: static; }
  .modal { box-shadow: none; max-height: none; }
  .modal-head { display: none; }
}
