/* Golden Trees brand pass (Oct 10, 2026). Loaded right after fonts.css; every selector starts with
   html (tokens) or "html body" (components) so it wins over the inline board CSS and the styles the
   gt-*.js modules inject at runtime, without editing those files.
   Colour-use rule (agreed with Matt):
   - forest green = structure: header, field, selected tab, primary buttons, toasts
   - gold = the single most important action or highlight on a screen: Start the clock, the sub that's
     due now, Upgrade, Share at full time. The logo canopy stays gold.
   - cream backgrounds, everything else neutral (ink, lines, sunken)
   - warnings and errors = warm red-orange (--off), tinted wash (--off-wash), never default red
   - goal / keeper keeps its dark-gold data colour (--cone) so goal bars and GK cards stay readable */

/* ---- tokens ---- */
html:root{
  --on:#1E4D32;                 /* coming on = forest (was a second, brighter green #2A7A4B) */
  --off:#A9431A; --off-wash:#FBE7DC;   /* warm red-orange (was brick red #B23A26) */
  --scrim:rgba(28,26,18,.45);
}
@media (prefers-color-scheme: dark){
  html:root:not([data-theme="light"]){ --on:#32D74B; --off:#FF6B57; --off-wash:#3A1712; --scrim:rgba(0,0,0,.62); }
}
html:root[data-theme="dark"]{ --on:#32D74B; --off:#FF6B57; --off-wash:#3A1712; --scrim:rgba(0,0,0,.62); }

/* ---- structure: forest ---- */
html body header.top{border-bottom:2px solid var(--turf)}
html body .tabs button[aria-selected="true"],
html body .btn.primary,
html body .zb button.p,
html body .ci-go:not(:disabled){background:var(--turf);border-color:var(--turf);color:var(--btn-ink)!important}
html body .tl.pitch{border-left-color:var(--turf)}
html body .tl.pitch.gk,html body .tl.pitch.quick{border-left-color:var(--cone)}
html body .teamsel{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6350'/%3E%3C/svg%3E")}
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) body .teamsel{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23948C74'/%3E%3C/svg%3E")}
}
html[data-theme="dark"] body .teamsel{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23948C74'/%3E%3C/svg%3E")}

/* ---- gold: one action per screen ---- */
/* Live, not running: Start the clock / Start 2nd half */
html body .runbtn:not(.running):not(:disabled){background:var(--gold);border-color:var(--gold);color:var(--gold-ink)!important}
/* Live, running: Pause is a calm secondary; the gold moves to the sub that's due */
html body .runbtn.running{background:var(--surface);border-color:var(--turf);color:var(--turf)!important}
html body .zn.due{border-left-color:var(--gold)}
html body .zn.due .zb button.p{background:var(--gold);border-color:var(--gold);color:var(--gold-ink)!important}
html body .lv.alerting::before{border-color:var(--gold)}
/* Paywall: Upgrade is the gold action; the inline "Unlock Pro" buttons on other screens stay forest */
html body .gt-go{background:var(--gold);color:var(--gold-ink);border-radius:3px}
html body .gt-lock button{border-radius:3px}
/* Full time: Share is the gold action; the referral card steps back to neutral + forest */
html body .gts{border-left-color:var(--gold)}
html body .gts-btn{background:var(--gold);border-color:var(--gold);color:var(--gold-ink);border-radius:3px;
  font-family:"Oswald",sans-serif;font-weight:500;letter-spacing:.07em;text-transform:uppercase}

/* ---- neutral status chips ---- */
html body .tl.leaving .mn i{background:var(--ink-2);color:var(--surface)!important}           /* NEXT OFF: neutral, not an error */
html body .tl.coming .mn i{background:var(--turf);color:var(--btn-ink)!important}             /* COMING ON: forest */
html body .tl.gloves .mn i,html body .tl.pitch.quick .mn i,html body .nextgk.quick{background:var(--cone);color:var(--solid-ink)!important}
html body .gt-refcard{border-left:4px solid var(--turf);border-radius:4px}
html body .gt-acct .gt-banner{background:var(--sunken);border:1px solid var(--line);border-left:3px solid var(--turf);border-radius:0 3px 3px 0}
html body .gt-tag{color:var(--ink-2);border-color:var(--line-strong)}
html body .gt-card .gt-why{color:var(--turf)}

/* ---- warnings and errors: warm red-orange, tinted ---- */
html body .warn{border-left-color:var(--turf);background:var(--sunken);color:var(--ink-2)}            /* plain .warn is an info note: neutral */
html body .warn.bad{border-left-color:var(--off);background:var(--off-wash);color:var(--ink-2)}    /* real problems: warm red-orange */
html body .warn.soft{background:var(--sunken);border-left-color:var(--line-strong);color:var(--ink-3)}
html body .sbar.low{background:var(--off-wash);border-bottom-color:var(--off);color:var(--off)}
html body .zn.inj,html body .zn.rec{border-left-color:var(--off);background:var(--off-wash)}
html body .btn.armed,html body .sharebar button.armed,html body .lv-more button.armed{background:var(--off);border-color:var(--off);color:var(--solid-ink)!important}

/* ---- consistent shapes: sheets 10px top, cards and buttons 3 to 4px ---- */
html body .gt-scrim{background:var(--scrim)}
html body .gt-btn,html body .gt-no{border-radius:3px}
html body .gt-no{font-family:"Oswald",sans-serif;font-weight:500;font-size:14px;letter-spacing:.06em;text-transform:uppercase}
