/* ==========================================================================
   National Deaf Football League — black / red / blue / white
   Palette taken from the league's own mark (ndfl-logo.svg fills #FBFBFB white,
   #14458E blue, #AB3143 red, #152444 navy), so the site matches its logo.

   Roles are split by MEANING, not decoration:
     --accent  BLUE  = navigation, links, active states, emphasis
     --cta     RED   = calls to action only (Donate, Register, Join)

   ⚠ The logo colours do NOT survive a dark ground: #AB3143 measures 3.05:1 and
   #14458E just 2.13:1 on near-black, so dark mode uses brightened siblings and
   light mode uses the logo values as-is. Every pairing below was measured;
   the weakest is 5.06:1 and most clear AAA.
   ========================================================================== */
:root{
  --bg:#0b0b0d; --bg-2:#101318; --surface:#14181f; --surface-2:#1b2230;
  --ink:#e8eaee; --ink-bold:#ffffff; --muted:#a2a8b4;
  /* blue: 7.75:1 on bg, 7.01:1 on surface */
  --accent:#6aa5f2; --accent-focus:#93bffa; --accent-ink:#08172b;
  /* red CTA: white-on-red 6.22:1. NB white on a *brightened* red fails (4.24:1),
     which is why the button keeps the deeper #c1121f in both modes. */
  --cta:#c1121f; --cta-focus:#d81f2d; --cta-ink:#ffffff;
  /* red as TEXT needs its own value — the CTA red is a background colour and
     only manages 3.16:1 on this ground. #ff5c69 clears bg/surface/surface-2
     at 6.54 / 5.92 / 5.30. */
  --emph:#ff5c69;
  /* third leadership-card colour. 7.00:1 on the card surface, sitting between
     red 5.92 and blue 7.01 so no one card shouts louder than the others. */
  --silver:#9aa3b2;
  --line:#262c38; --confirm:#79bd9a; --reject:#df405a;
  --maxw:1120px; --radius:14px; --pad:clamp(1rem,4vw,2rem);
  --font: system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
@media (prefers-color-scheme:light){
  :root{
    --bg:#ffffff; --bg-2:#f4f6f9; --surface:#ffffff; --surface-2:#eef2f8;
    --ink:#1a1d23; --ink-bold:#000000; --muted:#5b636f;
    /* the logo blue works unmodified on white: 9.24:1 */
    --accent:#14458e; --accent-focus:#0f3670; --accent-ink:#ffffff;
    --cta:#c1121f; --cta-focus:#a30f1a; --cta-ink:#ffffff;
    --emph:#c1121f;   /* on white the deeper red reads better: 6.22:1 */
    --silver:#5f6773; /* 5.72:1 on white — a light grey would drop to 2-3:1 */
    --line:#d9dee6; --confirm:#4E8A6B; --reject:#df405a;
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto} *{animation:none!important;transition:none!important}}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:16px/1.65 var(--font); -webkit-font-smoothing:antialiased;
}
h1,h2,h3{color:var(--ink-bold); line-height:1.08; margin:0 0 .5rem; letter-spacing:.005em}
h1,h2{text-transform:uppercase; font-weight:800}
h3{font-weight:700}
p{margin:0 0 1rem}
a{color:var(--accent)}
a:hover{color:var(--accent-focus)}
img{max-width:100%;height:auto;display:block}
:focus-visible{outline:3px solid var(--accent-focus); outline-offset:2px; border-radius:3px}

.container{max-width:var(--maxw); margin-inline:auto; padding-inline:var(--pad)}
.skip{position:absolute; left:-999px; top:.5rem; background:var(--accent); color:var(--accent-ink);
  padding:.6rem 1rem; border-radius:8px; z-index:100; font-weight:700}
.skip:focus{left:.5rem}

/* buttons */
.btn{display:inline-block; font-weight:800; text-decoration:none; border-radius:10px;
  padding:.8rem 1.4rem; border:2px solid transparent; cursor:pointer; font-size:1rem}
.btn-primary{background:var(--cta); color:var(--cta-ink)}
.btn-primary:hover{background:var(--cta-focus); color:var(--cta-ink)}
.btn-ghost{border-color:var(--line); color:var(--ink); background:transparent}
.btn-ghost:hover{border-color:var(--accent); color:var(--accent)}
@media (prefers-reduced-motion:no-preference){.btn{transition:filter .12s, background .12s, border-color .12s}}

/* brand mark */
.brand-mark{display:inline-grid; place-items:center; background:var(--accent); color:var(--accent-ink);
  font-weight:900; letter-spacing:.02em; border-radius:9px; padding:.35rem .5rem; font-size:.85rem}
.brand-emoji{height:2.5rem; width:auto; display:block}
.footer-brand .brand-emoji{height:2rem}

/* header / nav */
.site-header{position:sticky; top:0; z-index:50; background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(8px); border-bottom:1px solid var(--line)}
.nav{display:flex; align-items:center; gap:1rem; min-height:68px}
.brand{display:flex; align-items:center; gap:.6rem; text-decoration:none; color:var(--ink-bold); margin-right:auto}
.brand-name{font-weight:800; text-transform:uppercase; font-size:.82rem; line-height:1.05; letter-spacing:.02em}
.nav-menu{display:flex; gap:.3rem; list-style:none; margin:0; padding:0; flex-wrap:wrap}
.nav-menu a{display:block; padding:.5rem .7rem; border-radius:8px; text-decoration:none; color:var(--ink);
  font-weight:600; font-size:.92rem}
.nav-menu a:hover{background:var(--surface-2); color:var(--accent)}
.nav-menu a[aria-current=page]{color:var(--accent)}
.nav-toggle{display:none; align-items:center; gap:.5rem; background:transparent; color:var(--ink);
  border:1px solid var(--line); border-radius:8px; padding:.5rem .8rem; font-weight:700; cursor:pointer}
.nav-toggle-bar{width:18px; height:2px; background:currentColor; box-shadow:0 6px currentColor,0 -6px currentColor}

/* registration agreements + e-signature */
/* Submit-gate status. NOT .form-status -- that class already belongs to
   forms.js's post-submit banner and carries display:none. */
.submit-status{display:block; margin:.5rem 0 0; font-size:.9rem; font-weight:700}
.submit-status.is-blocked{color:var(--reject)}
.submit-status.is-ready{color:var(--confirm)}
.agreements .doc{border:1px solid var(--line); border-radius:var(--radius); padding:1.1rem 1.2rem; margin:1rem 0;
  background:var(--surface)}
.agreements .doc-head{display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap}
.agreements .doc-head h3{margin:0; font-size:1.02rem}
.agreements .doc h4{margin:0 0 .2rem; font-size:.95rem}
.doc-section{display:flex; gap:1rem; align-items:flex-start; padding:.85rem 0; border-top:1px solid var(--line)}
.doc-section-body{flex:1 1 20rem}
.doc-section .initials{flex:0 0 auto; min-width:7rem}
.doc-section .initials input{text-transform:uppercase; letter-spacing:.12em; font-weight:700}
.agree{display:flex; gap:.6rem; align-items:flex-start; margin-top:.8rem; cursor:pointer}
.agree input{margin-top:.25rem; flex:0 0 auto; width:1.05rem; height:1.05rem; accent-color:var(--accent)}
.agreements .sign{background:var(--bg-2)}
/* A field the browser marks invalid gets a visible cue -- this audience gets no
   audio feedback, and :invalid alone is silent until submit is attempted. */
.agreements input:required:invalid:not(:placeholder-shown){border-color:var(--reject)}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0}
@media (max-width:600px){
  .doc-section{flex-direction:column; gap:.4rem}
  .doc-section .initials{min-width:0}
}

/* nav dropdown ("Sign Up") */
.has-submenu{position:relative}
.submenu-toggle{display:flex; align-items:center; gap:.35rem; padding:.5rem .7rem; border:0; border-radius:8px;
  background:transparent; color:var(--ink); font:inherit; font-weight:600; font-size:.92rem; cursor:pointer}
.submenu-toggle:hover{background:var(--surface-2); color:var(--accent)}
.submenu-toggle[data-current=true]{color:var(--accent)}
.submenu-caret{width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent;
  border-top:5px solid currentColor; transition:transform .15s ease}
.submenu-toggle[aria-expanded=true] .submenu-caret{transform:rotate(180deg)}
.submenu{display:none; position:absolute; top:calc(100% + .35rem); left:0; z-index:60; min-width:12rem;
  list-style:none; margin:0; padding:.35rem; background:var(--surface); border:1px solid var(--line);
  border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.28)}
.submenu.is-open{display:block}
.submenu a{white-space:nowrap}

@media (max-width:840px){
  .nav-toggle{display:inline-flex}
  .nav-menu{display:none; flex-direction:column; width:100%; margin-top:.5rem}
  .nav-menu.is-open{display:flex}
  .submenu-toggle{width:100%; justify-content:space-between}
  .submenu{position:static; min-width:0; margin:.25rem 0 .25rem .75rem; box-shadow:none;
    background:transparent; border:0; border-left:2px solid var(--line); border-radius:0; padding:0 0 0 .5rem}
}

/* sections */
section{padding-block:clamp(2.5rem,7vw,4.5rem)}
.section-head{max-width:46ch; margin-bottom:2rem}
.eyebrow{color:var(--emph); text-transform:uppercase; letter-spacing:.24em; font-weight:700;
  font-size:.72rem; margin:0 0 .8rem}

/* hero */
.hero{position:relative; padding-block:clamp(3.5rem,10vw,7rem); overflow:hidden;
  background:radial-gradient(1100px 520px at 15% -20%, var(--bg-2), transparent 60%)}
.hero::after{content:""; position:absolute; inset:0; pointer-events:none; opacity:.05;
  background:repeating-linear-gradient(90deg, transparent 0 88px, var(--ink) 88px 90px)}
.hero .container{position:relative}
.hero h1{font-size:clamp(2.4rem,7vw,4.6rem); max-width:16ch}
.hero .lead{font-size:clamp(1.05rem,2.4vw,1.35rem); color:var(--ink); max-width:52ch; margin-bottom:1.8rem}
.hero .actions{display:flex; gap:.8rem; flex-wrap:wrap}
.hero-bar{width:72px; height:5px; background:var(--emph); border-radius:3px; margin:1.2rem 0}

/* division cards */
.cards{display:grid; gap:1.2rem; grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.card{background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:1.6rem; display:flex; flex-direction:column}
.card .tag{align-self:flex-start; background:var(--surface-2); color:var(--emph);
  font-weight:800; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase;
  padding:.3rem .7rem; border-radius:999px; margin-bottom:1rem}
.card h3{font-size:1.5rem; text-transform:uppercase}
.card p{color:var(--muted)}
.card .btn{margin-top:auto; align-self:flex-start}

/* schedule / game rows */
.games{display:grid; gap:.6rem}
.game{display:grid; grid-template-columns:auto 1fr auto; gap:1rem; align-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:.9rem 1.1rem}
.game .when{color:var(--muted); font-weight:700; font-size:.85rem; min-width:6.5rem}
.game .teams{font-weight:700; color:var(--ink-bold)}
.game .teams .vs{color:var(--muted); font-weight:600; margin-inline:.4rem}
.game .div{color:var(--emph); font-weight:800; font-size:.72rem; text-transform:uppercase; letter-spacing:.1em}
@media (max-width:560px){.game{grid-template-columns:1fr; gap:.3rem}}

/* about + cta band */
.band{background:var(--bg-2); border-block:1px solid var(--line)}
.cta-band{text-align:center}
.cta-band .actions{display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; margin-top:1.4rem}

.grid-2{display:grid; gap:2rem; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); align-items:center}
.muted{color:var(--muted)}
.placeholder{border-left:3px solid var(--emph); padding-left:.8rem; color:var(--muted); font-style:italic}

/* footer */
.site-footer{background:var(--bg-2); border-top:1px solid var(--line); margin-top:2rem;
  padding-block:2.5rem 1.5rem}
.footer-inner{display:flex; gap:2rem; flex-wrap:wrap; justify-content:space-between; align-items:start}
.footer-brand{display:flex; align-items:center; gap:.6rem}
.footer-brand p{margin:0; font-weight:800; text-transform:uppercase; font-size:.85rem}
.footer-nav ul{list-style:none; margin:0; padding:0; display:flex; gap:.4rem 1.2rem; flex-wrap:wrap}
.footer-nav a{color:var(--ink); text-decoration:none; font-size:.9rem}
.footer-nav a:hover{color:var(--accent)}
.footer-legal{margin-top:1.6rem; padding-top:1.2rem; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem}
.footer-legal p{margin:.15rem 0}

/* ---- sub-page hero ---- */
.page-hero{padding-block:clamp(2.2rem,6vw,3.4rem); background:radial-gradient(900px 380px at 12% -30%, var(--bg-2), transparent 60%); border-bottom:1px solid var(--line)}
.page-hero h1{font-size:clamp(1.9rem,5vw,3rem)}
.page-hero .lead{color:var(--ink); opacity:.88; max-width:62ch; margin:.6rem 0 0}
/* two-column hero when the page supplies a heroImage (e.g. /about/) */
.page-hero.has-media .hero-grid{display:grid; grid-template-columns:minmax(0,1fr) auto;
  gap:clamp(1.5rem,4vw,3rem); align-items:center}
.hero-media{justify-self:end}
.hero-media img{display:block; width:min(380px,38vw); height:auto}
@media (max-width:840px){
  .page-hero.has-media .hero-grid{grid-template-columns:1fr}
  .hero-media{justify-self:center}
  .hero-media img{width:min(340px,78vw)}
}

/* ---- prose (about, bylaws) ---- */
.prose{max-width:72ch}
.prose h2{margin-top:2rem; font-size:1.5rem}
.prose h3{margin-top:1.6rem; color:var(--emph); text-transform:uppercase; font-size:1.02rem; letter-spacing:.03em}
.prose ul{padding-left:1.2rem} .prose li{margin:.25rem 0}
.prose .note{color:var(--muted)}
.prose hr{border:0; border-top:1px solid var(--line); margin:2.5rem 0}

/* ---- roster (team cards) ---- */
.roster{display:grid; gap:1rem; grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.team{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:1.2rem; text-align:center}
.team h4{font-size:1.05rem; text-transform:uppercase; letter-spacing:.02em; margin:0}
.team dl{margin:.45rem 0 0; font-size:.85rem}
.team dt{color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; margin-top:.4rem}
.team dd{margin:0; color:var(--ink)}
.team .loc{display:inline-block; margin-top:.7rem; background:var(--surface-2); color:var(--emph); font-weight:700; font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; padding:.25rem .6rem; border-radius:999px}

/* ---- board / people ---- */
.people{display:grid; gap:1rem; grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.person{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:1.2rem; text-align:center}
.person .avatar{width:110px; height:110px; border-radius:16px; display:grid; place-items:center; margin:0 auto .8rem; border:3px solid var(--surface-2); background:var(--surface-2); color:var(--emph); font-weight:900; font-size:2.2rem}
.person h3{font-size:1.05rem; margin:0}
.person p{color:var(--muted); margin:.25rem 0 0; font-size:.8rem; text-transform:uppercase; letter-spacing:.06em}
/* Same 110px rounded square as a leadership headshot -- but object-fit:contain,
   not cover: a crest cropped to fill would lose its own edges. */
.team .crest-card{width:110px; height:110px; border-radius:16px; border:2px solid var(--surface-2); background:var(--bg-2); padding:.5rem; margin:0 auto .8rem; display:grid; place-items:center}
.team .crest{max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; display:block}
.person .photo{width:110px; height:110px; border-radius:16px; object-fit:cover; display:block; margin:0 auto .8rem; border:3px solid var(--surface-2)}
/* Leadership cards cycle red -> blue -> silver so the group reads as one set
   rather than eight identical tiles. Applied to the headshot frame, which
   already carried a border, and to the card's own edge. Colour is decorative
   here -- name and role stay full-contrast text, so nothing depends on it. */
.person:nth-child(3n+1) .photo, .person:nth-child(3n+1) .avatar{border-color:var(--emph)}
.person:nth-child(3n+2) .photo, .person:nth-child(3n+2) .avatar{border-color:var(--accent)}
.person:nth-child(3n+3) .photo, .person:nth-child(3n+3) .avatar{border-color:var(--silver)}
.person:nth-child(3n+1){border-color:color-mix(in srgb, var(--emph) 55%, transparent)}
.person:nth-child(3n+2){border-color:color-mix(in srgb, var(--accent) 55%, transparent)}
.person:nth-child(3n+3){border-color:color-mix(in srgb, var(--silver) 55%, transparent)}

/* ---- fixtures (schedule / standings) ---- */
.fixtures{display:grid; gap:.7rem}
.fixture{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:1rem 1.2rem}
.fixture .matchup{font-weight:800; color:var(--ink-bold); font-size:1.05rem}
.fixture .matchup .vs{color:var(--muted); font-weight:600; margin-inline:.5rem}
.fixture .meta{display:flex; gap:1.2rem; flex-wrap:wrap; color:var(--muted); font-size:.88rem; margin-top:.4rem}
.fixture .div{color:var(--emph); font-weight:800; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase}

/* ---- notice / coming-soon / contact / fees ---- */
.notice{background:var(--surface-2); border:1px solid var(--line); border-left:4px solid var(--emph); border-radius:10px; padding:1rem 1.2rem; color:var(--ink); max-width:72ch}
.notice strong{color:var(--ink-bold)}
.coming-soon{text-align:center; padding:3.5rem 1rem; color:var(--muted)}
.coming-soon .big{font-size:clamp(1.6rem,5vw,2.2rem); color:var(--ink-bold); text-transform:uppercase; font-weight:800; margin-bottom:.4rem}
.contact-methods{display:grid; gap:.6rem; margin:1.4rem 0; font-size:1.05rem}
.fees{display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); margin:1.6rem 0}
.fee{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:1.5rem}
.fee h3{text-transform:uppercase; font-size:1.1rem; margin-bottom:.3rem}
.fee .amt{font-size:2.4rem; font-weight:800; color:var(--emph); line-height:1}

/* ==========================================================================
   v1.1 — forms (contact / join / new-team) + PayPal (team fee / donate)
   ========================================================================== */

/* progressive enhancement: html gets .has-js from an inline head script */
.js-only{display:none}
.has-js .js-only{display:block}
.has-js .no-js-fallback{display:none}

/* form shell */
.form{max-width:46rem; margin-top:1.4rem}
.form .field{margin-bottom:1.25rem}
.form label{display:block; font-weight:700; color:var(--ink-bold); margin-bottom:.4rem}
.form .req{color:var(--emph); margin-left:.15rem}
.form .hint{display:block; color:var(--muted); font-weight:400; font-size:.85rem; margin-top:.25rem}
.form input, .form select, .form textarea{
  width:100%; font:inherit; color:var(--ink); background:var(--surface);
  border:1px solid var(--line); border-radius:10px; padding:.7rem .85rem}
.form textarea{min-height:8rem; resize:vertical}
.form input::placeholder, .form textarea::placeholder{color:var(--muted)}
.form select{appearance:none; padding-right:2.5rem;
  background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);
  background-position:calc(100% - 20px) 55%,calc(100% - 15px) 55%; background-size:6px 6px,6px 6px; background-repeat:no-repeat}
.form input:focus, .form select:focus, .form textarea:focus{border-color:var(--accent)}

/* two-up rows on wider screens */
.form .row{display:grid; gap:0 1rem; grid-template-columns:1fr 1fr}
@media (max-width:560px){.form .row{grid-template-columns:1fr}}

/* radio-card group (division select) — native radio stays visible (works without :has) */
.form fieldset{border:0; margin:0 0 1.25rem; padding:0}
.form legend{font-weight:700; color:var(--ink-bold); margin-bottom:.5rem; padding:0}
.radio-cards{display:grid; gap:.7rem; grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.radio-card{display:flex; gap:.7rem; align-items:flex-start; background:var(--surface);
  border:1px solid var(--line); border-radius:12px; padding:1rem 1.1rem; cursor:pointer}
.radio-card input[type=radio]{margin:.15rem 0 0; width:1.15rem; height:1.15rem; accent-color:var(--accent); flex:none}
.radio-card .rc-title{font-weight:800; color:var(--ink-bold); text-transform:uppercase; font-size:.95rem}
.radio-card .rc-sub{display:block; color:var(--muted); font-size:.85rem; margin-top:.15rem}
.radio-card:hover{border-color:var(--accent)}
.radio-card:has(input:checked){border-color:var(--accent); background:var(--surface-2)}

/* honeypot — off-screen from humans + AT, tempting to naive bots */
.hp{position:absolute!important; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}

/* submit + live status region */
.form-actions{display:flex; align-items:center; gap:1rem; flex-wrap:wrap; margin-top:.5rem}
.form-actions .btn[disabled]{opacity:.6; cursor:progress}
.form-status{margin:1.3rem 0 0; padding:1rem 1.2rem; border-radius:10px; border:1px solid var(--line); display:none; max-width:46rem}
.form-status.is-visible{display:block}
.form-status.is-success{border-left:4px solid var(--confirm); background:color-mix(in srgb,var(--confirm) 12%,var(--surface)); color:var(--ink-bold)}
.form-status.is-error{border-left:4px solid var(--reject); background:color-mix(in srgb,var(--reject) 12%,var(--surface)); color:var(--ink-bold)}
.field.has-error input, .field.has-error select, .field.has-error textarea{border-color:var(--reject)}
.field-error{color:var(--reject); font-size:.85rem; margin-top:.3rem; font-weight:600}

/* ---- PayPal ---- */
.pay-grid{display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); margin:1.6rem 0}
.pay-card{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:1.5rem; display:flex; flex-direction:column}
.pay-card h3{text-transform:uppercase; font-size:1.1rem; margin-bottom:.2rem}
.pay-card .amt{font-size:2.4rem; font-weight:800; color:var(--accent); line-height:1; margin:.1rem 0 .3rem}
.pay-card .muted{margin-bottom:1.1rem}
.pay-card .paypal-form, .pay-card > .pay-btn{margin-top:auto}
/* PayPal-gold action button (fixed brand color, not themed) */
.pay-btn{display:inline-flex; align-items:center; justify-content:center; gap:.5rem; width:100%;
  font-weight:800; font-size:1rem; border:0; border-radius:10px; padding:.85rem 1.2rem; cursor:pointer;
  background:#ffc439; color:#0c1116}
.pay-btn:hover{filter:brightness(.96)}
@media (prefers-reduced-motion:no-preference){.pay-btn{transition:filter .12s}}
.pay-note{color:var(--muted); font-size:.85rem; margin-top:.6rem}

/* donate — presets + custom amount + SDK button mount */
.donate-box{max-width:34rem; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:1.5rem; margin:1.6rem 0}
.amount-presets{display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem}
.amount-preset{flex:1 1 auto; min-width:4.5rem; text-align:center; background:var(--bg-2); color:var(--ink);
  border:1px solid var(--line); border-radius:10px; padding:.7rem .3rem; font-weight:800; cursor:pointer}
.amount-preset[aria-pressed=true]{border-color:var(--accent); background:var(--surface-2); color:var(--accent)}
.amount-field{display:flex; align-items:center; gap:.5rem; margin-bottom:1.1rem}
.amount-field .cur{font-weight:800; font-size:1.4rem; color:var(--muted)}
.amount-field input{font-size:1.3rem; font-weight:800; max-width:11rem}
#paypal-donate{min-height:3rem}

/* JotForm embeds (player + team registration).
   The form body is a CROSS-ORIGIN iframe, so this stylesheet cannot reach inside it --
   the form's own colours are set in JotForm (see deploy/jotform/custom-css.css).
   What we control is the frame around it: matching the surface colour means no white
   flash while the iframe loads, which is otherwise very obvious on a dark page. */
.jotform-embed {
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color-scheme: dark;            /* stops the UA painting a white iframe background */
}
.jotform-embed iframe {
  display: block;
  width: 100%;
  background: var(--surface);
}

/* Callout for an authoritative document that a page only summarises.
   Visually separates "this is the governing text" from "this is the gist". */
.doc-callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}
.doc-callout h2 { margin-top: 0; }

/* Tables (Game Rules: divisions, scoring, discipline schedules, playoff bracket).
   The site had no table styling at all, so these rendered as browser defaults —
   no padding, no rules, and a header row indistinguishable from the body. */
.table-wrap {
  overflow-x: auto;              /* wide tables scroll themselves, never the page */
  margin: 1.25rem 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-wrap table { margin: 0; border: none; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  line-height: 1.5;
}
thead th {
  background: var(--surface-2);
  color: var(--ink-bold);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
th, td {
  text-align: left;              /* browser default centres <th>, which looked wrong */
  vertical-align: top;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
/* Row headers are labels, not headings — keep them readable but not shouty, and stop
   the label column collapsing while the prose column hogs the width. */
tbody th[scope="row"] {
  font-weight: 600;
  color: var(--ink-bold);
  width: 34%;
  min-width: 12rem;
}
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 35%, transparent); }
