/* Shared styles for coach.html and adjudicate.html. index.html keeps its own inline copy. */
:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --ink: #0E1A2B;
  --muted: #56657A;
  --line: #D5DBE4;
  --prop: #1D4ED8;
  --opp: #D9421F;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B121C; --surface: #121C2A; --ink: #E8EDF5; --muted: #93A3B8;
    --line: #243245; --prop: #7DA0FF; --opp: #FF7A59;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 18px; line-height: 1.55;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--prop); outline-offset: 2px; }

header { padding: 20px 0; }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mark { font-family: var(--font-display); font-stretch: 75%; font-weight: 900; font-size: 26px; letter-spacing: -0.01em; text-decoration: none; }
.mark i { font-style: normal; color: var(--opp); }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { font-weight: 600; font-size: 16px; text-decoration: none; padding-bottom: 1px; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { border-bottom-color: var(--prop); }

h1, h2 { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; line-height: 0.98; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 8vw, 84px); }
h2 { font-size: clamp(34px, 5vw, 48px); }
h1 em { font-style: normal; color: var(--opp); }

.intro { padding: 28px 0 56px; max-width: 44em; }
.intro p.lede { font-size: 20px; margin: 22px 0 0; color: var(--muted); }

.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 18px;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 4px;
  padding: 14px 26px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--prop); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.fine { font-size: 15px; color: var(--muted); margin-top: 14px; }

section { padding: 56px 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--font-display); font-stretch: 75%; font-weight: 900; font-size: 44px; line-height: 1; color: var(--prop); display: block; margin-bottom: 8px; }
.steps h3 { margin: 0 0 4px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }

/* Form */
.form-head { max-width: 40em; margin-bottom: 28px; }
.form-head p { color: var(--muted); margin: 12px 0 0; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
fieldset { margin: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 22px 22px 8px; min-width: 0; }
fieldset.p { border-top: 6px solid var(--prop); }
fieldset.o { border-top: 6px solid var(--opp); }
legend { padding: 0; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 24px; float: left; width: 100%; margin-bottom: 14px; }
fieldset.p legend { color: var(--prop); } fieldset.o legend { color: var(--opp); }
fieldset > .field:first-of-type { clear: both; }
.field { margin-bottom: 16px; }
label, .lab { display: block; font-weight: 600; font-size: 16px; margin-bottom: 5px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; font-size: 16px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--opp); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--prop); }
.submit-row { grid-column: 1 / -1; }
.error { color: var(--opp); font-weight: 600; font-size: 15px; min-height: 1.4em; margin: 0 0 10px; }

.done { display: none; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--prop); border-radius: 6px; padding: 28px; max-width: 40em; }
.done h3 { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 32px; margin: 0 0 8px; line-height: 1; }
.done p { margin: 0 0 8px; }
.done .preview-note { color: var(--opp); font-size: 15px; font-weight: 600; }

footer { padding: 32px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  form, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
