/* RecOfficials.com */
:root {
    --brand: #0b5d3b;        /* park green */
    --brand-dark: #08452c;
    --accent: #f2a900;       /* whistle gold */
    --ink: #1d2327;
    --muted: #5b6670;
    --line: #d9e1dc;
    --bg: #f5f7f5;
    --card: #ffffff;
    --on: #e3f2ea;
    --error: #b42318;
    --error-bg: #fdecea;
    --ok-bg: #e6f4ea;
    --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
}
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 8px; }
h2 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 20px; max-width: 720px; }
.muted { color: var(--muted); margin: 0 0 8px; }
.hint { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.hint.warn { color: var(--error); }

/* Header / footer */
.site-header { background: var(--brand); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { color: #fff; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; }
.wordmark span { color: var(--accent); }
.site-footer { color: var(--muted); font-size: 14px; padding: 32px 0 40px; margin-top: 48px; border-top: 1px solid var(--line); }
.site-footer .by { display: block; font-size: 12.5px; margin-top: 4px; }
main.wrap { padding-top: 20px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 20px; border-radius: 8px; border: 2px solid transparent;
    font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
    font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--on); }
.btn-link { background: none; border: none; color: var(--brand); padding: 6px 0; font-size: 15px; text-decoration: underline; }
.btn-lg { padding: 14px 28px; font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 24px; }
.actions .count { margin-right: auto; color: var(--muted); font-weight: 600; }
.sticky-actions {
    position: sticky; bottom: 0; background: var(--bg);
    padding: 12px 0; border-top: 1px solid var(--line); margin-top: 16px;
}

/* Flash / errors */
.flash { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-weight: 600; }
.flash-error { background: var(--error-bg); color: var(--error); }
.flash-success { background: var(--ok-bg); color: var(--brand-dark); }
.field-error { color: var(--error); font-size: 14px; margin: 6px 0 10px; padding-left: 18px; }
p.field-error { padding-left: 0; }

/* Cards / forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.narrow { max-width: 520px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
input[type=text] {
    width: 100%; padding: 10px 12px; font-size: 16px; font-family: inherit;
    border: 1px solid #b8c4bd; border-radius: 6px; background: #fff; color: var(--ink);
}
input[type=text]:focus { border-color: var(--brand); }
input[aria-invalid=true] { border-color: var(--error); }

/* Stepper */
.stepper ol { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.stepper li { flex: 1 1 0; min-width: 120px; }
.stepper li > a, .stepper li > span {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border-radius: 8px; background: #e9eeeb; color: var(--muted);
    font-size: 14px; font-weight: 600; text-decoration: none;
}
.stepper .num {
    display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
    align-items: center; justify-content: center; background: #fff; font-size: 12px;
}
.stepper li.done > a { background: var(--on); color: var(--brand-dark); }
.stepper li.current > span { background: var(--brand); color: #fff; }
.stepper li.current .num { color: var(--brand); }
.org-name { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* Landing */
.hero { text-align: center; padding: 48px 0 24px; }
.hero h1 { font-size: 40px; max-width: 780px; margin: 0 auto 14px; color: var(--brand-dark); }
.hero .lead { margin: 0 auto 26px; }
.sport-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.badge {
    display: inline-block; background: var(--accent); color: #2b2100; font-weight: 800;
    letter-spacing: .5px; text-transform: uppercase; font-size: 14px;
    padding: 6px 14px; border-radius: 999px; margin: 0 0 16px;
}
.coming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 36px; }
.coming-grid h2 { font-size: 18px; color: var(--brand-dark); margin-bottom: 4px; }
.coming-grid p { margin: 0; color: var(--muted); }
.notify { max-width: 640px; margin: 28px auto 0; text-align: center; }
.notify p { color: var(--muted); margin: 0 0 16px; }
.sport-strip span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--muted); }

/* Sports x leagues grid */
.grid-scroll { overflow-x: auto; }
.program-grid { border-collapse: separate; border-spacing: 6px; margin: 0 auto 0 -6px; }
.program-grid th button {
    background: none; border: none; font: inherit; font-weight: 700; color: var(--ink);
    cursor: pointer; padding: 6px 8px; border-radius: 6px; width: 100%;
}
.program-grid th button:hover { background: var(--on); color: var(--brand-dark); }
.program-grid thead th { font-size: 15px; }
.program-grid tbody th { text-align: left; white-space: nowrap; }
.program-grid tbody th button { text-align: left; }
.program-grid .corner { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; }
.program-grid td { padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.program-grid td.on { background: var(--on); border-color: var(--brand); }
.program-grid .cell { display: flex; align-items: center; justify-content: center; width: 96px; height: 52px; margin: 0; cursor: pointer; }
.program-grid input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--brand); cursor: pointer; }

/* Officials step */
.sport-group { margin-top: 28px; }
.sport-group > h2 { font-size: 22px; color: var(--brand-dark); border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.program-card { margin: 14px 0 0; }
.program-card legend { font-weight: 700; font-size: 17px; padding: 0 6px; }
.program-card.has-error { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.count-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.count-label { font-weight: 600; margin-right: 6px; }
.pill { margin: 0; }
.pill input { position: absolute; opacity: 0; }
.pill span {
    display: inline-flex; width: 42px; height: 38px; align-items: center; justify-content: center;
    border: 2px solid var(--line); border-radius: 8px; font-weight: 700; cursor: pointer; background: #fff;
}
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.positions { display: grid; gap: 8px; }
.pos-head, .pos-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 150px; gap: 10px; align-items: center; }
.pos-head { font-size: 13px; font-weight: 600; color: var(--muted); }
.pos-row[hidden] { display: none; }
.pos-num { color: var(--muted); font-weight: 700; text-align: center; }
.money { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--muted); }
.copy-note { color: var(--brand); font-size: 14px; margin-left: 8px; }

/* Review */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.review-card h2 { font-size: 18px; margin-bottom: 2px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pay-table th, .pay-table td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; }
.pay-table thead th { color: var(--muted); font-size: 13px; }
.pay-table tfoot th, .pay-table tfoot td { border-bottom: none; font-weight: 700; }
.pay-table .num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    h1 { font-size: 24px; }
    .hero h1 { font-size: 28px; }
    .program-grid { border-spacing: 4px; margin-left: -4px; }
    .program-grid .cell { width: 54px; height: 46px; }
    .program-grid thead th, .program-grid tbody th { font-size: 13px; }
    .program-grid tbody th { white-space: normal; max-width: 80px; }
    .program-grid th button { padding: 4px 2px; }
    .pos-head, .pos-row { grid-template-columns: 20px minmax(0, 1fr) 104px; gap: 6px; }
    .stepper ol { flex-wrap: nowrap; }
    .stepper li { min-width: 0; flex: 0 0 auto; }
    .stepper li.current { flex: 1 1 auto; }
    .stepper li > a, .stepper li > span { font-size: 13px; padding: 6px; white-space: nowrap; }
    .stepper li:not(.current) .label { display: none; }
    .count-label { width: 100%; }
    .actions .btn { flex: 1 1 auto; }
}
