/* 2026-11-15 (Izhar: fix the dimmed zone on every screen of every console on mobile): iOS 26 dims and softens roughly the top 95pt of a Home Screen app. --gtd-top-clear is how far down anything at the top of a full-screen surface must start: just the safe-area inset in a normal browser, and at least 95pt when running as a Home Screen app on a phone. Use it as padding-top (or inside calc()) wherever a header or first line sits at the top of the screen. */
:root { --gtd-top-clear: env(safe-area-inset-top, 0px); }
@media (display-mode: standalone) and (max-width: 900px) { :root { --gtd-top-clear: max(env(safe-area-inset-top, 0px), 95px); } }
/* ============================================================
   GTD LEAGUE — UNIFIED THEME  (merged build)
   Design: Home + Draft Day glass nav system
   ============================================================ */

/* Home load speed: Lato is served from our own domain (the identical Google Fonts v25 woff2 files; Lato is SIL OFL). It used to come in through a cross-origin stylesheet import at the top of this file,
   which made this render-blocking stylesheet wait for a second connection (DNS + TCP + TLS) and then a third for the font files: about 1.2s of blocked paint on a weak phone connection.
   Same family, weights, subsets and font-display. */
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/lato-v25-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/lato-v25-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/lato-v25-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/lato-v25-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:url('/assets/fonts/lato-v25-900-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:url('/assets/fonts/lato-v25-900-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  /* ⚠️ LOAD-BEARING — DO NOT recolor these to a new brand (learned the hard way, v4.6.25→v4.6.28).
     These are NOT just a first-paint flash. The LEGACY tenants (gtd/test2/thickslicepi, stored
     var(--gtd-primary,#241a3d)/var(--gtd-accent,#d9a441)) are deliberately left on THIS :root by the legacy guard in js/site.js
     (isLegacyBrand) and admin/index.html (applyAdminTheme, line ~2371) — they render FROM these
     values and never re-apply their stored colors. So changing this block REPAINTS GTD's live
     public site AND admin console. v4.6.25 flipped it to navy and turned GTD navy on prod; v4.6.28
     reverted it. New leagues do NOT need this changed — they store navy (#0B132B/#1565FF) as a
     column default and apply it at runtime via applyLeagueTheme/applyAdminTheme; the login flash is
     handled by the anti-flash localStorage cache (`hqpal`), not by this default. If you want a navy
     platform default, first remove the legacy palette guard so GTD applies its own stored purple —
     never repaint the guarded tenants by editing this block. */
  --gtd-primary:       #241a3d;
  --gtd-primary-dark:  #150f26;
  --gtd-primary-light: #362a54;
  --gtd-accent:        #d9a441;
  --gtd-accent-light:  #f0c675;
  --gtd-on-accent:     var(--gtd-primary-dark,#150f26);  /* readable text/icon on the accent (JS recomputes per tenant) */
  --gtd-text:          #f5f2ec;
  --gtd-text-dim:      #b9aecf;
  --gtd-border:        rgba(255,255,255,0.12);
  --gtd-card:          color-mix(in srgb,var(--gtd-primary,#241a3d) 72%,transparent);
  /* v4.9.35: both now Lato (Izhar's call, applies everywhere these vars are read -- public site,
     commissioner admin, mobile and desktop). font-display keeps the heavier 900 weight at its
     call sites (most --font-display usages already set their own font-weight/size, e.g.
     .award-value{font-family:var(--font-display);font-size:24px}) so the size/weight hierarchy
     built on top of Anton's always-bold look is preserved even though both vars are now the same
     family -- only the typeface itself changed, not each usage's own size/weight/letter-spacing. */
  --font-display: 'Lato',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-body:    'Lato',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  /* Per-page overlay (applied in each page's inline style) */
  --page-overlay: linear-gradient(180deg,rgba(20,16,42,0.55),rgba(20,16,42,0.78) 55%,rgba(20,16,42,0.94));
}

*, *::before, *::after { box-sizing: border-box; }

body.help-hidden .gtd-help { display: none !important; }


html { height: 100%; }
body {
  margin: 0; padding: 0;
  min-height: 100%;
  background-color: var(--gtd-primary-dark);
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center center;
  color: var(--gtd-text);
  font-family: var(--font-body);
}
a { color: var(--gtd-accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Glass Nav ─────────────────────────────────────────────── */
/* Env banner (non-prod only): push the fixed floating header down by the
   banner height so it never sits under the red bar. Normal-flow pages (admin,
   platform-admin) are handled by body padding-top in each banner script. */
.has-env-banner .site-header { top: 40px; }
@media (max-width:640px) { .has-env-banner .site-header { top: 34px; } }
.site-header {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  z-index: 100; width: calc(100% - 32px); max-width: 1100px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 10px 10px;
  background: color-mix(in srgb,var(--gtd-primary-dark,#150f26) 55%,transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  flex-wrap: wrap; gap: 10px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--gtd-text);
}
.brand img { height: 38px; width: 38px; object-fit: contain; border-radius: 50%; transition: transform .12s ease; }
.brand:active img { transform: scale(.92); }   /* v4.23.0 (Home-return option A): the logo is the Home button -- it now has a pressed state */
/* ...and on phones, on every page except Home, it wears a small house badge so it reads as a button. Home itself stays plain. The hamburger is unchanged. */
@media (max-width: 700px) {
  .brand[data-home="0"] { position: relative; }
  /* v4.27.1: on phones the header logo is the SAME size as the profile photo (32px; it was 38px, so it looked bigger and crowded the Insider hero card below it). The house badge is re-placed for the smaller logo. */
  .site-header .brand img { width: 32px; height: 32px; }
  .brand[data-home="0"]::after {
    content: ''; position: absolute; left: 19px; top: 19px; width: 15px; height: 15px; border-radius: 50%;
    background: var(--gtd-accent, #d9a441) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23150f26' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11.5 12 4l8.5 7.5'/%3E%3Cpath d='M6 10.5V20h12v-9.5'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
    box-shadow: 0 0 0 2px var(--gtd-primary, #1a0a30);
    pointer-events: none;
  }
}
.brand .name {
  font-family: var(--font-display); font-size: 16px; letter-spacing: 1px;
  color: var(--gtd-text); line-height: 1;
}
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  padding: 8px 13px; border-radius: 999px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--gtd-text-dim); text-decoration: none;
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(255,255,255,0.08); color: var(--gtd-text); text-decoration: none; }
.site-nav a.active { background: var(--gtd-accent); color: var(--gtd-primary-dark); }
.gear-btn {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--gtd-text-dim); flex-shrink: 0; padding: 0;
  transition: background .15s, color .15s;
}
.gear-btn:hover { color: var(--gtd-text); background: rgba(255,255,255,0.14); }

/* ── Page structure ─────────────────────────────────────────── */
.page-wrap {
  max-width: 1100px; margin: 0 auto;
  padding: calc(110px + env(safe-area-inset-top, 0px)) 24px 60px;
}
.page-hero { text-align: center; margin-bottom: 32px; }
.page-hero .eyebrow,
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px; letter-spacing: 4px; font-weight: 600;
  color: var(--gtd-accent); text-transform: uppercase; margin-bottom: 8px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px,5vw,52px); margin: 0; letter-spacing: 2px; line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--gtd-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--gtd-border);
  border-radius: 16px; padding: 24px; margin-bottom: 20px;
}
/* Shared small circular manager avatar (js/site.js gtdAvatar) */
.gtd-avatar { border-radius:50%; object-fit:cover; flex:none; vertical-align:middle; }
.gtd-avatar-fallback { display:inline-flex; align-items:center; justify-content:center; background:var(--gtd-primary-light, rgba(255,255,255,0.12)); color:var(--gtd-text); font-weight:700; }
.gtd-name-with-avatar { display:inline-flex; align-items:center; gap:7px; min-width:0; }
.card h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gtd-accent-light); margin: 0 0 18px;
}
.empty-note {
  color: var(--gtd-text-dim); text-align: center; padding: 40px 20px;
  font-size: 14px;
}
/* Shared 3-state data messages (loading / empty / errored) — see gtdRenderState.
   Distinct so an outage never reads as "no content yet". */
.gtd-state { text-align: center; padding: 22px 18px; font-size: 13.5px; line-height: 1.5; border-radius: 12px; }
.gtd-state-loading { color: var(--gtd-text-dim); }
.gtd-state-empty { color: var(--gtd-text-dim); }
.gtd-state-error { color: #e6a2a2; background: rgba(224,97,107,0.08); border: 1px solid rgba(224,97,107,0.22); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer:empty { display: none; }   /* v4.20.1: js/site.js empties and hides the footer after load; never show the empty bordered box before that */
.site-footer {
  margin-top: 60px; padding: 24px 28px; text-align: center;
  color: var(--gtd-text-dim); font-size: 12px; letter-spacing: 0.5px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: color-mix(in srgb,var(--gtd-primary-dark,#150f26) 60%,transparent); backdrop-filter: blur(10px);
}

/* ── Forms ──────────────────────────────────────────────────── */
button, input, select, textarea { font-family: var(--font-body); font-size: 14px; }
input, select, textarea {
  background: rgba(255,255,255,0.05); border: 1px solid var(--gtd-border);
  color: var(--gtd-text); border-radius: 10px; padding: 9px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gtd-accent); }
/* v4.10.6 (desktop UX pass, session 1): ONE keyboard-focus system for the public site and the admin console.
   :where() keeps specificity at zero, so any component that already draws its own focus style (e.g. .la-card) simply wins.
   Buttons/links/summaries get a gold ring; fields keep their border change and add a soft halo. Mouse clicks never trigger it (:focus-visible). */
:where(a[href], button, summary, [role="button"], [role="tab"], [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--gtd-accent-light, #f0c675); outline-offset: 2px; }
:where(input, select, textarea):focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gtd-accent, var(--gtd-accent,#d9a441)) 38%, transparent); }
/* v4.10.10: Text size preference on DESKTOP (phones use text-size-adjust, which desktop browsers ignore). Scales the content areas only. */
@media (min-width: 761px) { .page-wrap, .hero-inner, .league-archive { zoom: var(--gtd-font-zoom, 1); } }
/* 2026-11-05 (Izhar): at Small on a TOUCH tablet (>= 761px, js/site.js sets html.gtd-hdr-scaled and --gtd-hdr-zoom = the size's factor: 0.85 Small, 0.75 Extra small since 2026-12-03) the header's text scales with the content below. The fixed .site-header pill itself is NOT zoomed
   (its width, top offset and centring stay exactly as they are); only its text children are, so the pill gets shorter/narrower on its own. The nav links' 44px touch hit area is re-sized for the zoom (26px effective link + 2 x 12px x 0.81). */
@media (min-width: 761px) {
  html.gtd-hdr-scaled .site-header .site-nav, html.gtd-hdr-scaled .site-header .brand .name, html.gtd-hdr-scaled #gtd-tenant-switcher { zoom: var(--gtd-hdr-zoom, 1); }
}
@media (pointer: coarse) and (min-width: 761px) {
  html.gtd-hdr-scaled .site-nav a::before { inset: -12px -2px; }
  /* 2026-12-03: the hit area is sized FROM the zoom, so it is 45px rendered at Small (0.85) and Extra small (0.75) alike: 45 / zoom tall in the link's own (zoomed) coordinates, centred on it. */
  html.gtd-hdr-scaled .site-nav a::before { top: calc(50% - 22.5px / var(--gtd-hdr-zoom, 1)); bottom: calc(50% - 22.5px / var(--gtd-hdr-zoom, 1)); }
}
/* At >= 761px the zoom above already does the scaling. Android Chrome (tablets, e.g. Galaxy Tab) ALSO honours the text-size-adjust that gtdApplyFontSize() sets on <html>, so at Large the type was scaled
   twice (1.15 x 1.15) while the boxes only grew once: text outgrew its outlines and the Home matchup boxes misaligned. Wide layouts take the zoom only. Phones (<= 760px) keep text-size-adjust. */
/* Re-inspected 2026-11-05: the pairing is complete and gap-free. <= 760px: no zoom, text-size-adjust (set inline on <html> by gtdApplyFontSize) scales text only. >= 761px: zoom scales the page once and this !important rule
   beats the inline value, so nothing scales twice. The bottom nav opts out of text-size-adjust itself (js/site.js), so it never reflows. Measured by forcing text-size-adjust 130/150/200% on a 360px phone: no horizontal scroll, no
   card overflow, nav gaps unchanged; at 800px wide the card text stays 11px (no double scaling). What a stock Android "Font size" setting multiplies on top of this cannot be tested without a device; layouts use wrap/ellipsis + min-width:0 so any extra factor reflows instead of overflowing. */
@media (min-width: 761px) { html { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; } }
/* Shared hover for things that are clickable but had no hover state. Fine pointers only, so phones never get a stuck hover. */
@media (hover: hover) and (pointer: fine) {
  :where([onclick]:not(button, a, input, select, textarea), [data-on-click]:not(button, a, input, select, textarea), summary, [role="button"], .po-summary, .sched-card, .nav-row, .dd-util-tile, .pmt-navcard, .survey-review-row, .hist-item-summary, .mgr-health-tile, .tma-season, .agd-item-card, .hq-bcard, .rc-card, .rc-row, .award-card):hover { filter: brightness(1.13); border-color: color-mix(in srgb, var(--gtd-accent, var(--gtd-accent,#d9a441)) 45%, transparent); }
  :where([onclick]:not(button, a, input, select, textarea), [data-on-click]:not(button, a, input, select, textarea), summary, [role="button"], .po-summary, .sched-card, .nav-row, .dd-util-tile, .pmt-navcard, .survey-review-row, .hist-item-summary, .mgr-health-tile, .tma-season, .agd-item-card, .hq-bcard, .rc-card, .rc-row, .award-card) { transition: filter .12s ease, border-color .12s ease; }
}
button {
  background: rgba(255,255,255,0.06); border: 1px solid var(--gtd-border);
  color: var(--gtd-text); border-radius: 10px; padding: 10px 18px; cursor: pointer;
  transition: background .15s;
}
button:hover { background: rgba(255,255,255,0.12); }
button.primary {
  background: var(--gtd-accent); border-color: var(--gtd-accent);
  color: var(--gtd-primary-dark); font-weight: 700;
}
button.primary:hover { filter: brightness(1.08); }
button.danger { color: #ff9090; }

.field-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.field-row label { width: 180px; font-size: 13px; color: var(--gtd-text-dim); flex-shrink: 0; }
.field-row input:not([type="checkbox"]):not([type="radio"]), .field-row select, .field-row textarea { flex: 1; min-width: 200px; }
.field-row input[type="checkbox"], .field-row input[type="radio"] { width: 16px; height: 16px; flex: none; min-width: 0; margin: 0; accent-color: var(--gtd-accent); cursor: pointer; }
/* P2-19: native date inputs carry their own metrics (picker widget, box model),
   so a type=date sat taller/offset from the text inputs next to it in the Draft
   Day Info panel. Match the box model + height so it aligns with its siblings. */
.field-row input[type="date"] { box-sizing: border-box; min-height: 38px; }
/* v4.9.112: iOS Safari gives native date/time inputs an intrinsic width wider than a phone card, so the
   Draft date field ran off the right edge (and centered its value). Strip the native appearance so the
   normal width:100% rules win, cap at the container, and left-align the value like the text inputs. */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
  -webkit-appearance: none; appearance: none; max-width: 100%; min-width: 0; box-sizing: border-box;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--gtd-border);
  color: var(--gtd-text-dim); padding: 8px 16px; border-radius: 10px; cursor: pointer;
}
.tab-btn.active {
  color: var(--gtd-primary-dark); border-color: var(--gtd-accent);
  background: var(--gtd-accent); font-weight: 700;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Status messages ─────────────────────────────────────────── */
.status-msg { font-size: 13px; color: var(--gtd-text-dim); }
.status-msg.error { color: #ff9090; }
.status-msg.ok { color: #7be0a1; }

/* ── Help icons ─────────────────────────────────────────────── */
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--gtd-text-dim);
  font-size: 11px; font-weight: 700; font-style: normal;
  font-family: var(--font-body);
  margin-left: 6px; cursor: pointer; vertical-align: middle; flex-shrink: 0;
}
.help-icon:hover { background: rgba(255,255,255,0.16); color: var(--gtd-text); }
/* Keeps the icon glued to its preceding label text -- without this, a plain
   inline .help-icon can legitimately line-wrap onto its own line on narrow
   viewports, since it's just inline flow like any other text, visually
   disconnecting it from the header it's meant to annotate. Applies globally
   to any short label/header containing one, rather than patching each page
   individually. */
:is(h1, h2, h3, h4, .hero-label, .l):has(> .help-icon) { white-space: nowrap; }
.help-tip {
  position: fixed; z-index: 9999; width: 240px;
  background: var(--gtd-card); border: 1px solid var(--gtd-border);
  border-radius: 10px; padding: 12px 14px; font-size: 12px; font-weight: 400;
  line-height: 1.5; color: var(--gtd-text-dim);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fade-in-up { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fade-in-up 0.4s ease-out both; }
.card, .hero-card, .record-card, .manager-card, .season-block, .quick-item {
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.manager-card:hover, .quick-item:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion:reduce) {
  .fade-in { animation:none; }
  .card, .hero-card, .record-card, .manager-card, .season-block, .quick-item { transition:none; }
  .manager-card:hover, .quick-item:hover { transform:none; }
}


/* ================================================================
   MOBILE — Sprint 3
   ================================================================ */

/* Nav: horizontal scroll on small screens */
@media (max-width: 700px) {
  .site-header {
    top: 8px; padding: 8px 10px 8px 8px;
    flex-wrap: nowrap; gap: 6px;
  }
  .brand .name { display: none; }   /* hide text, keep owl */
  .site-nav {
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 12px 12px; font-size: 11px; white-space: nowrap; }  /* Phase 11.3: taller tap target */
  .page-wrap { padding: calc(90px + env(safe-area-inset-top, 0px)) 14px 40px; }
  .page-title { font-size: clamp(26px,8vw,42px); }
}

/* Records: 3+3 grid → 1 col on mobile */
@media (max-width: 640px) {
  .records-content { grid-template-columns: 1fr !important; }
  .rec-stat-card { flex: 0 0 auto !important; }
  .rec-center-card { min-height: 300px; }
}

/* HOF: 4-col → 2-col → 1-col */
@media (max-width: 900px) {
  .managers-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
  .managers-grid { grid-template-columns: 1fr; }
}

/* Seasons: banner grid responsive */
@media (max-width: 700px) {
  .banners-grid { grid-template-columns: repeat(3, 100px) !important; gap: 10px 12px !important; }
  .banner-img { width: 100px !important; }
  .season-banner { width: 100px !important; }
}
@media (max-width: 400px) {
  .banners-grid { grid-template-columns: repeat(2, 110px) !important; }
  .banner-img { width: 110px !important; }
}

/* Seasons detail: single column on mobile */
@media (max-width: 700px) {
  .sea-detail.open { grid-template-columns: 1fr !important; }
  .sea-cards-grid { grid-template-columns: 1fr !important; }
  .sea-year-list { flex-direction: row !important; flex-wrap: wrap !important; }
  .yr-item { padding: 6px 12px !important; font-size: 15px !important; }
  .sea-quad-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* HOF modal: full-width on mobile */
@media (max-width: 560px) {
  .mgr-panel { padding: 20px 16px; }
  .mgr-stat-grid { grid-template-columns: repeat(2,1fr); }
}

/* Bug fix: the global min-height:44px tap-target (below) was stretching the
   fixed-size header burger/gear (34-38px wide) to 44px tall -> ovals. Lock them
   to a 44x44 flex-centered tap target; keeps the touch size. Borderless per the
   Record Book design (no circular outline / background chip -- just the icon). */
@media (max-width: 700px) {
  .site-header .nav-burger, .site-header .gear-btn {
    width: 44px; height: 44px; min-width: 44px; min-height: 44px;
    border: none; background: none; border-radius: 0; padding: 0; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center; line-height: 1;
    color: var(--gtd-text);
  }
}

/* General mobile touch targets */
@media (max-width: 640px) {
  button { min-height: 44px; }
  input, select, textarea { font-size: 16px !important; } /* prevent iOS zoom */
  .card { padding: 16px 14px; }
}

/* Rules: ensure content readable on mobile */
@media (max-width: 640px) {
  .rules-outer { padding-top: 90px !important; }
  .rules-mid { padding: 16px 14px 40px !important; }
}

/* Home: countdown responsive */
@media (max-width: 480px) {
  .cd-unit .n { font-size: clamp(28px,10vw,44px); }
  .cd-sep { font-size: clamp(20px,8vw,32px); padding-top: 14px; }
  .cta-btn-home { padding: 14px 22px; font-size: 13px; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width:900px) {
  .page-wrap { padding: calc(100px + env(safe-area-inset-top, 0px)) 18px 40px; }
  .site-header { max-width: calc(100% - 24px); }
}
/* Tablet portrait (701-860px, e.g. a 768px iPad): logo + league name + five nav links + gear/avatar do not fit on one line, so the pill wrapped and the profile photo dropped onto a second
   row (header 104px tall instead of 60px, on every public page). Drop the name text (the logo is the Home link) and tighten the links so it stays one line. */
@media (min-width:701px) and (max-width:860px) {
  .site-header .brand .name { display: none; }
  .site-header { flex-wrap: nowrap; gap: 6px; }
  .site-nav { flex-wrap: nowrap; }
  .site-nav a { padding: 8px 10px; font-size: 12.5px; letter-spacing: .3px; white-space: nowrap; }
}
@media (max-width:640px) {
  .site-header { padding: 8px 12px 8px 8px; top: calc(8px + env(safe-area-inset-top, 0px)); }   /* v4.55.96 (Izhar 2026-11-12): the 4pt trim of v4.55.91 put the title text inside the iOS 26 dim zone (about 95pt) and dimmed it, so the original 8px is back; a web page cannot draw over the system status bar, the only lever is where the text starts */
  .brand .name { font-size: 13px; }
  .site-nav a { padding: 12px 12px; font-size: 12px; }  /* Phase 11.3: taller tap target */
  .page-wrap { padding: calc(88px + env(safe-area-inset-top, 0px)) 14px 30px; }
  .page-hero h1 { font-size: 28px; }
  .card { padding: 16px; }
  .field-row { flex-direction: column; align-items: stretch; }
  .field-row label { width: auto; margin-bottom: 2px; }
}
/* .hq-desktop / .hq-mobile visibility gate — also kept here in the global
   stylesheet (not only the JS-injected framework style) so the split holds even
   if the framework JS hasn't run yet or errored, preventing the desktop layout
   from showing on mobile. */
.hq-mobile { display: none; }
@media (max-width:700px) { .hq-desktop { display: none !important; } .hq-mobile { display: block; } }

/* #7: on mobile, the wired pages (those carrying a static .hq-mobile section)
   show their image in the hero CARD, so the full-page tenant body background —
   set inline by _applyTenantBackground + the anti-flash replay, or by a page's
   own body CSS — would duplicate it. Suppress it here (html+:has outranks the
   inline/!important); the body stays a solid dark ground. Desktop keeps its bg,
   and non-framework mobile pages (index/draft/keepers/surveys) are untouched. */
@media (max-width:700px) {
  html body:has(.hq-mobile), html body.gtd-flat-bg { background-image: none !important; background-color: var(--gtd-primary-dark, #080c17) !important; }   /* .gtd-flat-bg (2026-11-11): the manager profile and matchup pages get the same solid ground as Records, Seasons and the Hall of Fame */
}
/* #6: on mobile the header bar is transparent so the hero-card image shows
   through behind it (no opaque pill). Controls get a shadow to stay legible. */
@media (max-width:700px) {
  /* v4.55.98 (Izhar 2026-11-12: "the top banner is transparent now so when you scroll you see the page behind the top bar"): on phones the header is a SOLID full-width bar from the very top edge, in the page ground colour, so scrolled content never shows through it or through the strip above it. The text starts exactly where it did before (top 0 + padding replaces top 8px + padding 8px; 24px replaces 14 + 10 for 641 to 700px). The hero-image-behind-the-header look of #6 is gone on purpose. */
  .site-header {
    background: var(--gtd-primary-dark, #080c17); backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0; border-bottom: 1px solid rgba(255,255,255,0.10); box-shadow: none; border-radius: 0;
    left: 0; right: 0; transform: none; width: 100%; max-width: none;
    top: 0; padding: calc(24px + env(safe-area-inset-top, 0px)) 18px 10px 10px;
  }
  .has-env-banner .site-header { padding-top: 10px; }
  .site-header .brand .name,
  .site-header #gtd-mobile-wordmark { text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
  .site-header .nav-burger svg,
  .site-header .gear-btn svg { filter: drop-shadow(0 1px 6px rgba(0,0,0,0.85)); }
}
@media (max-width:640px) {
  .site-header { padding: calc(16px + env(safe-area-inset-top, 0px)) 12px 8px 8px; }
  .has-env-banner .site-header { padding-top: 8px; }
}

/* ── OVR Badge ── */
.ovr-badge {
  display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  border-radius:8px;min-width:52px;padding:5px 9px;font-family:var(--font-display);font-weight:900;letter-spacing:-1px;
}
.ovr-badge .ovr-num { font-size:26px;line-height:1; }
.ovr-badge .ovr-lbl { font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:700;margin-top:1px; }
.ovr-elite  { background:linear-gradient(135deg,#b8860b,#ffd700);color:#1a0a00; }
.ovr-gold   { background:linear-gradient(135deg,#cd7f32,var(--gtd-accent,#d9a441));color:#1a0a00; }
.ovr-silver { background:linear-gradient(135deg,#708090,#c0c0c0);color:#1a0a00; }
.ovr-bronze { background:linear-gradient(135deg,#8b4513,#cd853f);color:#fff; }
.ovr-low    { background:linear-gradient(135deg,#2d2d2d,#555);color:#aaa; }

/* ── OVR progress bar ── */
.m-progress-wrap { height:7px;background:rgba(255,255,255,0.08);border-radius:999px;overflow:hidden;margin:4px 0; }
.m-progress-fill { height:100%;border-radius:999px;background:linear-gradient(90deg,var(--gtd-accent-light,#f0c675),var(--gtd-accent,#d9a441));transition:width 0.8s cubic-bezier(0.22,0.8,0.25,1);width:0; }

/* ── Award cards ── */
.awards-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:14px; }
.award-card {
  /* Tenant-driven: was a hard-coded dark purple from the old template, which
     ignored the league's branding colors. Now uses the palette tokens so the
     award "square" follows the commissioner's primary color. */
  background:linear-gradient(160deg,var(--gtd-primary),var(--gtd-primary-dark));
  border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:16px;
  position:relative;overflow:hidden;transition:all 0.2s ease;
}
.award-card:hover { border-color:color-mix(in srgb,var(--gtd-accent,#d9a441) 40%,transparent);transform:translateY(-2px); }
.award-card::after { content:attr(data-icon);position:absolute;right:-6px;bottom:-8px;font-size:64px;opacity:0.06;pointer-events:none;line-height:1; }
.award-icon { font-size:26px;margin-bottom:6px; }
.award-type { font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--gtd-accent);margin-bottom:3px; }
.award-title { font-family:var(--font-body);font-weight:700;font-size:14px;letter-spacing:0.5px;color:#fff;line-height:1.2; }
.award-winner { font-size:13px;font-weight:700;color:var(--gtd-accent-light);margin-top:5px; }
.award-value { font-family:var(--font-display);font-size:24px;color:var(--gtd-accent-light);line-height:1;margin:3px 0; }
.award-year { font-size:11px;color:var(--gtd-text-dim);margin-top:2px; }
@keyframes scale-in { from{opacity:0;transform:scale(0.94)} to{opacity:1;transform:scale(1)} }
.scale-in { animation:scale-in 0.35s ease-out both; }
@media(max-width:640px) { .awards-grid { grid-template-columns:repeat(2,1fr); } }

/* ── Prevent horizontal scroll on mobile ── */
@media (max-width: 768px) {
  /* v4.9.89: "Audit Log's sticky filter header still scrolls away" (Izhar, confirmed again after
     the v4.9.87 fix) -- root cause found here, not in the sticky element itself. `overflow-x:hidden`
     on an ancestor, even with overflow-y left unset, makes that axis compute to `auto` per the CSS
     Overflow spec (non-'visible' on one axis forces the other off 'visible' too) -- so .page-wrap
     silently became position:sticky's containing block instead of the viewport, for EVERY sticky
     element anywhere inside it (.dd-sticky-controls on Draft Room has almost certainly had this
     same bug, just never reported). Since .page-wrap has no height cap of its own, it never actually
     produces a real scrollbar, so nothing inside it can ever visibly "stick". `overflow: clip`
     blocks the same horizontal overflow without establishing a scroll container, so sticky childen
     correctly resolve against the real viewport instead. */
  body { overflow-x: hidden; }
  .page-wrap { overflow-x: clip; }

  /* Tables scroll horizontally within container. Framework mobile tables
     (.hq-stand, .mini-standings) manage their own layout/scroll wrapper, so
     display:block here would stop their columns from filling the width. */
  .standings, table:not(.hq-stand):not(.mini-standings) { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Records grid: 1-col on mobile */
  .records-grid { grid-template-columns: 1fr !important; }

  /* Card padding tighter on mobile */
  .card { padding: 14px 12px; }

  /* Admin field rows stack on mobile */
  .field-row { flex-direction: column; align-items: flex-start; }
  .field-row label { width: auto; margin-bottom: 4px; }
  .field-row input, .field-row select, .field-row textarea { width: 100%; min-width: 0; }

  /* Combine control grid: 1-col on mobile */
  #adminActiveSection > div[style*="grid-template-columns"] {
    display: flex !important; flex-direction: column !important;
  }

  /* Draft room timer big display smaller on mobile */
  #adminTimerDisplay { font-size: 48px !important; }
  #commTimerDisplay  { font-size: 48px !important; }
  .big-timer { font-size: clamp(40px,12vw,80px) !important; }

  /* Phase 11.4: wrap the admin tab bar to multiple rows on mobile so ALL tabs
     stay visible. The previous horizontal-scroll strip silently hid the
     commissioner console's tabs 6-8 (Records/Seasons/Navigation) off-screen
     with no scroll affordance. Platform-admin's 3 tabs are unaffected (they fit). */
  .tabs { flex-wrap: wrap; }

  /* Draft room 3-col grid: 1-col on mobile */
  #setupGrid, #setupGrid + div { grid-template-columns: 1fr !important; }
}

/* v4.17.0: form controls do not inherit the page font on their own -- keep them on Lato like everything else (public site + commissioner admin). */
button,input,select,textarea{font-family:inherit}

/* ============================================================
   v4.50 DESKTOP FRAME (U1 of docs/PLANNING/PLAN-DESKTOP-UNIFORMITY-2026-10-28.md)
   One shared frame for public pages at 1024px and wider. Nothing here applies below 1024px, so
   phones and the native shells are untouched. Pages opt in by using these classes:
     .hq-d-frame (+ .hq-d-wide 1180px | .hq-d-reading 760px)  page container
     .hq-d-head                                              eyebrow / title / subtitle / actions
     .hq-d-panel                                             the one panel style
     .hq-d-split + .hq-d-side                                left menu + content
     .hq-d-only                                              visible only in this frame
   ============================================================ */
.hq-d-only { display: none; }
@media (min-width: 1024px) {
  .hq-d-only { display: block; }
  .hq-d-frame { margin: 0 auto; padding: 112px 24px 96px; box-sizing: border-box; width: 100%; }
  .hq-d-frame.hq-d-wide { max-width: 1180px; padding: 112px 24px 96px; }
  .hq-d-frame.hq-d-reading { max-width: 760px; padding: 112px 24px 96px; }
  /* Pages that already have a centered hero (.page-hero / .sea-hero) take the shared header look inside the frame. */
  .hq-d-frame .page-hero { display: flex; flex-direction: column; }
  .hq-d-frame .page-hero .eyebrow { order: -1; }
  .hq-d-frame .page-hero, .hq-d-frame .sea-hero { text-align: left; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--gtd-border); }
  .hq-d-frame .page-hero .eyebrow, .hq-d-frame .sea-hero .eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--gtd-accent-light); margin: 0 0 6px; }
  .hq-d-frame .page-hero h1, .hq-d-frame .sea-hero h1 { font-size: 34px; font-weight: 400; letter-spacing: .5px; text-transform: uppercase; text-shadow: none; line-height: 1.1; }
  .hq-d-frame .page-hero h1::after { margin-left: 0; }
  .hq-d-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 22px; padding: 0 0 18px; border-bottom: 1px solid var(--gtd-border); }
  .hq-d-head .hq-d-eb { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gtd-accent-light); margin: 0 0 6px; }
  .hq-d-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 34px; letter-spacing: .5px; text-transform: uppercase; margin: 0; color: var(--gtd-text); text-wrap: balance; }
  .hq-d-head .hq-d-sub { margin: 6px 0 0; font-size: 14px; color: var(--gtd-text-dim); max-width: 60ch; }
  .hq-d-head .hq-d-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .hq-d-panel { background: var(--gtd-card); border: 1px solid var(--gtd-border); border-radius: 14px; padding: 18px; box-sizing: border-box; }
  .hq-d-split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
  .hq-d-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 4px; padding: 10px; background: var(--gtd-card); border: 1px solid var(--gtd-border); border-radius: 14px; }
  .hq-d-side .hq-d-sidelabel { font-size:11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gtd-text-dim); padding: 6px 10px 4px; }
  .hq-d-side button, .hq-d-side a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--gtd-text-dim); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
  .hq-d-side button:hover, .hq-d-side a:hover, .hq-d-side button:focus-visible, .hq-d-side a:focus-visible { background: color-mix(in srgb, var(--gtd-accent) 10%, transparent); color: var(--gtd-text); outline: none; }
  .hq-d-side [aria-pressed="true"], .hq-d-side [aria-current="page"] { background: color-mix(in srgb, var(--gtd-accent) 16%, transparent); color: var(--gtd-accent-light); font-weight: 700; }
  .hq-d-side small { font-size: 12px; opacity: .8; }
}

/* League HQ icon set (assets/ui): follows the league skin. --gtd-icon-hue is set from the accent colour (js/site.js _applyPalette); 0deg = the pack as drawn (blue).
   .ui-g keeps the gold parts (trophy, coin) on a separate layer so they are not rotated. */
/* This default IS the legacy purple/gold palette's icon hue (gold accent #d9a441 -> 187deg): legacy leagues (GTD on prod) keep the stylesheet defaults and never run _applyPalette, so the icons follow their gold.
   Leagues with their own colours get --gtd-icon-hue from _applyPalette. scripts/icon-skin-test.mjs fails if this number drifts from gtdIconHue('#d9a441'). */
:root { --gtd-icon-hue: 187deg; --gtd-icon-filter: url(#gtd-icon-gold); }
.ui-ic { filter: var(--gtd-icon-filter, hue-rotate(var(--gtd-icon-hue, 0deg))); }   /* warm (gold) leagues: the #gtd-icon-gold SVG matrix injected by js/site.js; every other league: hue-rotate */
.ui-g { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.ui-g > img { display: block; width: 100%; height: 100%; }
.ui-g::after { content: ""; position: absolute; inset: 0; background: var(--ui-gold) center / contain no-repeat; pointer-events: none; }

/* ============================================================
   UI POLISH (2026-11): touch targets, reduced-motion, wide-screen rhythm.
   Additive only: no existing rule above is changed.
   ============================================================ */
/* Invisible hit-area extenders so small visible controls still give a 44px tap target
   without changing how they look (the visible size and layout are untouched). */
.brand { position: relative; }
.brand::before { content: ''; position: absolute; inset: -6px -4px; }
@media (min-width: 701px) { .brand::before { inset: -3px -4px; } }
/* Touch tablets (Galaxy Tab 1280x800, iPad) use the desktop header, whose nav links are 32px tall and gear 34px: extend the hit area to 44px without changing the look (2026-11-05 audit) */
@media (pointer: coarse) and (min-width: 701px) {
  .site-nav a, .site-header .gear-btn { position: relative; }
  .site-nav a::before, .site-header .gear-btn::before { content: ""; position: absolute; inset: -6px -2px; }
  .dash-viewall, .cc-all { display: inline-block; padding: 14px 6px; margin: -14px -6px; }
}
/* v4.55.42: every touch device (phones and tablets): the small "i" help icons and in-card "View all" links get a 44px hit area through an invisible ::before (look and layout unchanged); sidebar list rows are 44px tall. */
@media (pointer: coarse) {
  .help-icon, .lk-card .lk-more { position: relative; }
  .help-icon::before { content: ""; position: absolute; inset: -14px; }
  .lk-card .lk-more::before { content: ""; position: absolute; inset: -14px -6px; }
  body .rec-nav-item, body .locker-nav .ln-item { min-height: 44px; }
}
.hqs-arw { position: absolute; }
.hqs-arw::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
.hqs-dot { position: relative; }
.hqs-dot::before { content: ''; position: absolute; inset: -18px -3px; }
/* Anything the pages mark [hidden] must stay hidden even where a class sets display. */
.hq-mobile[hidden], .hq-d-only[hidden], .hq-desktop[hidden] { display: none !important; }
/* Keyboard focus is visible on the dark chrome, including inside the fixed header and bottom bar. */
.site-header :where(a, button):focus-visible,
#gtd-bottom-nav :where(a, button):focus-visible { outline: 2px solid var(--gtd-accent-light, #f0c675); outline-offset: -2px; border-radius: 10px; }
.site-nav a:focus-visible { outline-offset: 1px; }
/* Skip to content users: the sticky floating header never covers a focused/anchor target. */
html { scroll-padding-top: calc(86px + env(safe-area-inset-top, 0px)); }
@media (max-width: 700px) { html { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); } }
/* Long names / emails / URLs wrap instead of pushing the page sideways. */
.page-wrap, .card, .hq-d-panel, .mgr-panel { overflow-wrap: break-word; }
/* Phone landscape and tablets: tables keep a readable minimum so the scroll container (not the page) scrolls. */
@media (max-width: 768px) {
  .page-wrap table:not(.hq-stand):not(.mini-standings) { max-width: 100%; }
}
/* Tablet (701-1023px): content uses the room instead of a phone-width column; award/manager grids get a third column. */
@media (min-width: 701px) and (max-width: 1023px) {
  .page-wrap { padding-left: 24px; padding-right: 24px; }
  .managers-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .brand img, .award-card, .m-progress-fill { transition: none !important; }
}

/* ── Uniform card surface + text styling (public pages) ─────────────────
   One definition, measured from the Records panel and the Locker Room
   (rules.html) cards: 72% brand-navy glass, 10px blur, 1px 12%-white border,
   14px radius. Pages reference these instead of hard-coding their own values. */
:root {
  --hq-card-bg: var(--gtd-card);
  --hq-card-border: var(--gtd-border);
  --hq-card-blur: blur(10px);
  --hq-card-radius: 14px;
  --hq-card-shadow: none;
  --hq-card-pad: 18px;
  --hq-tile-bg: rgba(255,255,255,0.03);        /* inner tile sitting on a card */
  --hq-tile-border: var(--gtd-border);
  --hq-text: var(--gtd-text);
  --hq-text-dim: var(--gtd-text-dim);
  --hq-label-color: var(--gtd-accent-light);   /* gold section label */
  --hq-label-size: 11.5px;
  --hq-label-spacing: 1.6px;
  --hq-label-weight: 700;
}
.hq-card { background: var(--hq-card-bg); -webkit-backdrop-filter: var(--hq-card-blur); backdrop-filter: var(--hq-card-blur); border: 1px solid var(--hq-card-border); border-radius: var(--hq-card-radius); box-shadow: var(--hq-card-shadow); }
.hq-label { font-family: var(--font-body); font-size: var(--hq-label-size); font-weight: var(--hq-label-weight); letter-spacing: var(--hq-label-spacing); text-transform: uppercase; color: var(--hq-label-color); }

/* 2026-11-05 (Izhar): no double-tap zoom. These are phone-sized app screens, so a double tap should only be a tap. Pinch zoom still works (accessibility). */
html, body { touch-action: manipulation; }

/* iOS focus-zoom guard (2026-11-05, iOS PWA audit). Safari/iPadOS zoom the whole page when a text field with a rendered font-size under 16px takes focus, and then
   stay zoomed. "Rendered" includes the Text size preference: measured in the iOS 26 simulator, a 16px input zoomed the page 1.177x (16/13.6) inside `zoom:.85` (the admin Small
   size and the public site at >= 761px) and 1.177x under `text-size-adjust:85%` (public phones); an 18.8px input in the same `zoom:.85` did not zoom (1.000), and a 14px input
   zoomed 1.142x. The old guard only set 16px at <= 640px, so iPads, landscape phones and every Small-text-size user still got the zoom. --gtd-font-zoom is the same factor
   (0.85-0.9 / 1 / 1.15, set on <html> by both the public site and the admin console), so dividing by it keeps the RENDERED size at 16px, and max() leaves Default/Large at 16px.
   Touch screens only (a mouse pointer never zooms). Checkboxes, radios, ranges, files, colours and buttons are not text fields. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
  select, textarea { font-size: max(16px, calc(16px / var(--gtd-font-zoom, 1))) !important; }
}

/* ═══ League Insider weekly-recap reading overlay (#gtd-insider-overlay), >= 701px ONLY (2026-11-05, Izhar: "the weekly insider overlay on desktop and tablet can be bigger, it looks like
   its never been adjusted from mobile"). Until now every width got the shared 460px phone card (js/site.js _gtdOverlay) with 13px text. At >= 701px this makes it a reading panel:
   a centred card up to 1080px wide (the viewport minus 24px margins on a tablet), 17px body text capped at a ~70-character measure, bigger headings, and the report's own sections
   flowed into two columns when the panel is wide enough (CSS multi-column, so the section ORDER is untouched and a missing section just leaves a shorter column).
   Phones (<= 700px) are not touched by anything below: every rule is inside min-width:701px. Scoped by id, so the Announcements / Suggestion / Help overlays that share the
   shell keep their own look. The renderer's inline styles are what make the !importants necessary (js/insider-render.js marks each block with an ins-* class).
   Text size: the panel is a fixed overlay, so it is NOT zoomed (zoom would break its size math). Type is scaled with --gtd-font-zoom instead, the same factor the page content gets
   (>= 761px; 701-760px keeps 1, as there the page uses text-size-adjust). */
@media (min-width: 701px) {
  #gtd-insider-overlay { --ins-z: 1; padding: max(24px, var(--gtd-top-clear, env(safe-area-inset-top))) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); overscroll-behavior: contain; }
  #gtd-insider-overlay .gov-scrim { cursor: pointer; }
  #gtd-insider-overlay .gov-card { max-width: 760px; width: 100%; max-height: 100%; border-radius: 20px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; outline: none; scrollbar-width: thin; }
  #gtd-insider-overlay .gov-head { padding: 14px 20px 14px 36px; z-index: 3; border-bottom: 1px solid rgba(255,255,255,.08); background: color-mix(in srgb, var(--gtd-primary-dark, #0e0720) 92%, #1b1535); }
  #gtd-insider-overlay .gov-head h3 { font-size: calc(20px * var(--ins-z)); }
  #gtd-insider-overlay .gov-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 17px; transition: background .15s, border-color .15s; }
  #gtd-insider-overlay .gov-close:hover { background: rgba(255,255,255,.14); border-color: var(--gtd-accent); }
  #gtd-insider-overlay .gov-close:focus-visible, #gtd-insider-overlay .ins-cta a:focus-visible { outline: 3px solid var(--gtd-accent); outline-offset: 2px; }
  #gtd-insider-overlay .gov-body { padding: 0; }
  #gtd-insider-overlay .ins-cols, #gtd-insider-overlay .ins-plain, #gtd-insider-overlay .ins-fb-text, #gtd-insider-overlay .ins-fb-title, #gtd-insider-overlay .ins-headline { overflow-wrap: anywhere; }

  /* header band */
  #gtd-insider-overlay .ins-hero { margin: 0 !important; padding: 28px 28px 22px !important; }
  #gtd-insider-overlay .ins-eyebrow { font-size: calc(13px * var(--ins-z)) !important; letter-spacing: 4px !important; margin-bottom: 12px !important; }
  #gtd-insider-overlay .ins-headline { font-size: calc(28px * var(--ins-z)) !important; line-height: 1.12 !important; max-width: 24ch; margin: 0 auto; }

  /* the report's sections, flowed in reading order */
  #gtd-insider-overlay .ins-cols { padding: 24px 28px 6px; column-count: 1; column-gap: 32px; }
  #gtd-insider-overlay .ins-band { margin: 0 0 30px !important; padding: 0 !important; background: none !important; break-inside: avoid; }
  #gtd-insider-overlay .ins-lbl { font-size: calc(13px * var(--ins-z)) !important; letter-spacing: 2.5px !important; margin-bottom: 12px !important; }
  #gtd-insider-overlay .ins-p { font-size: calc(15px * var(--ins-z)) !important; line-height: 1.65 !important; max-width: 70ch; color: var(--gtd-text) !important; }
  #gtd-insider-overlay .ins-quip { font-size: calc(13.5px * var(--ins-z)) !important; line-height: 1.55 !important; max-width: 70ch; margin-bottom: 14px !important; }
  #gtd-insider-overlay .ins-stories { gap: 14px !important; }
  #gtd-insider-overlay .ins-story { padding: 16px 18px !important; break-inside: avoid; }
  #gtd-insider-overlay .ins-story > div:first-child { font-size: calc(16.5px * var(--ins-z)) !important; margin-bottom: 6px !important; line-height: 1.25; }
  #gtd-insider-overlay .ins-story > div + div { font-size: calc(14px * var(--ins-z)) !important; line-height: 1.6 !important; }
  #gtd-insider-overlay .ins-grid { gap: 12px !important; }
  #gtd-insider-overlay .ins-card { padding: 14px 16px !important; }
  #gtd-insider-overlay .ins-card > div:nth-child(1) { font-size: calc(12px * var(--ins-z)) !important; }
  #gtd-insider-overlay .ins-card > div:nth-child(2) { font-size: calc(16.5px * var(--ins-z)) !important; margin-top: 4px !important; }
  #gtd-insider-overlay .ins-card > div:nth-child(3) { font-size: calc(13px * var(--ins-z)) !important; line-height: 1.5 !important; margin-top: 3px !important; }
  #gtd-insider-overlay .ins-trade { margin-bottom: 12px !important; }
  #gtd-insider-overlay .ins-t { font-size: calc(13.5px * var(--ins-z)) !important; line-height: 1.55 !important; }
  #gtd-insider-overlay .ins-inj { font-size: calc(13.5px * var(--ins-z)) !important; padding: 10px 0 !important; }
  #gtd-insider-overlay .ins-inj span span { font-size: calc(13px * var(--ins-z)) !important; }
  #gtd-insider-overlay .ins-num { padding: 16px 18px !important; }
  #gtd-insider-overlay .ins-num > div:nth-child(1) { font-size: calc(26px * var(--ins-z)) !important; }
  #gtd-insider-overlay .ins-num > div:nth-child(2) { font-size: calc(12px * var(--ins-z)) !important; margin-top: 6px !important; }
  #gtd-insider-overlay .ins-watch { padding: 14px 18px !important; font-size: calc(15px * var(--ins-z)) !important; line-height: 1.6 !important; }

  /* plain-text recaps (weeks with no structured report) and the bare fallback: one readable column */
  #gtd-insider-overlay .ins-plain { max-width: 820px; margin: 0 auto !important; padding: 32px 36px 8px !important; gap: 16px !important; box-sizing: content-box; }
  #gtd-insider-overlay .ins-plain .ins-story { font-size: calc(14.5px * var(--ins-z)) !important; line-height: 1.65 !important; }
  #gtd-insider-overlay .ins-fb-title { font-size: calc(19px * var(--ins-z)) !important; max-width: 820px; margin: 0 auto !important; padding: 32px 36px 0; box-sizing: border-box; }
  #gtd-insider-overlay .ins-fb-text { font-size: calc(15px * var(--ins-z)) !important; line-height: 1.7 !important; max-width: 820px; margin: 0 auto; padding: 14px 36px 32px; box-sizing: border-box; }

  /* closing call to action */
  #gtd-insider-overlay .ins-cta { margin: 0 !important; padding: 30px 36px !important; }
  #gtd-insider-overlay .ins-cta a { font-size: calc(14px * var(--ins-z)) !important; letter-spacing: 1.2px !important; padding: 16px 34px !important; min-height: 48px; box-sizing: border-box; }
  html.gtd-ins-lock, html.gtd-ins-lock body { overflow: hidden !important; }
}
@media (min-width: 761px) { #gtd-insider-overlay { --ins-z: var(--gtd-font-zoom, 1); } }
/* wide enough for two reading columns (a 1024px tablet or any desktop; the panel is then >= 976px) */
@media (min-width: 1000px) {
  #gtd-insider-overlay .ins-cols { column-count: 1; padding: 24px 28px 6px; }
  #gtd-insider-overlay .ins-band { margin-bottom: 34px !important; }
  #gtd-insider-overlay .ins-p { font-size: calc(15px * var(--ins-z)) !important; }
}
/* single reading column: the 2x2 stat grids can spread to four across */
@media (min-width: 701px) and (max-width: 999px) {
  #gtd-insider-overlay .ins-numbers .ins-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) { #gtd-insider-overlay.open .gov-card { animation: ins-in .22s ease-out; } }
@keyframes ins-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* One Back button for every page (Izhar 2026-11-12: the new matchup and profile pages used plain text links while Seasons used an accent word and Locker Room a pill, so they looked unlike each other). The Locker Room pill is the reference look. */
.hq-backbtn, .lk-backbar, .sea-back-btn { display:inline-flex; align-items:center; gap:6px; align-self:flex-start; margin:0 0 12px; min-height:40px; box-sizing:border-box; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); color:var(--gtd-text); border-radius:999px; padding:8px 16px; font-family:inherit; font-weight:700; font-size:13px; letter-spacing:0; line-height:1.2; text-decoration:none; cursor:pointer; }
/* 2026-11-14 (Izhar, iPhone): Back on the matchup and manager pages is a link, and the site's a:hover underline sticks on a touch screen after the tap (gold, underlined text when you come back). The other pages use a button, which has no such rule. Links get no underline in any state, and the gold hover only applies where a real pointer can hover. */
.hq-backbtn, .hq-backbtn:hover, .hq-backbtn:focus, .hq-backbtn:active, .hq-backbtn:visited { text-decoration:none; }
@media (hover:hover) { .hq-backbtn:hover, .lk-backbar:hover, .sea-back-btn:hover { border-color:rgba(232,192,105,0.5); color:#e8c069; } }

/* ── Locker Room → Scoring: expandable category list at every width (rules.html, scoringGroupsHtml). Desktop and tablet got it on 2026-11-05 (Izhar: same as the phone). ── */
#scoringList .sg-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
#scoringList .sg-cat { border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; background: rgba(255,255,255,0.03); overflow: hidden; }
#scoringList .sg-head { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 14px; margin: 0; background: rgba(255,255,255,0.04); border: 0; color: var(--gtd-text); font-family: var(--font-display, inherit); font-size: 15px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#scoringList .sg-head:focus-visible { outline: 2px solid var(--gtd-accent); outline-offset: -2px; }
#scoringList .sg-ic { flex: none; width: 22px; height: 22px; color: #a9b1c2; transition: color .15s; }
#scoringList .sg-cat.open .sg-ic { color: var(--gtd-accent); }
#scoringList .sg-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#scoringList .sg-chev { flex: none; width: 18px; height: 18px; color: var(--gtd-text-dim); transition: transform .2s ease; }
#scoringList .sg-cat.open .sg-chev { transform: rotate(180deg); }
#scoringList .sg-panel { display: none; padding: 0 14px; border-top: 1px solid rgba(255,255,255,0.08); }
#scoringList .sg-cat.open .sg-panel { display: block; }
#scoringList .sg-panel .scoring-row { padding: 0; min-height: 40px; gap: 12px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
#scoringList .sg-panel .scoring-row:last-child { border-bottom: 0; }
#scoringList .sg-panel .sl { min-width: 0; overflow-wrap: anywhere; }
#scoringList .sg-panel .sv { flex: none; font-size: 15px; font-weight: 700; color: var(--gtd-text); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { #scoringList .sg-chev, #scoringList .sg-ic { transition: none; } }


/* 2026-12-03 (Izhar: "the drop down arrow is right against a lot of drop down boxes everywhere in the admin console"): ONE dropdown arrow for every select, on every page.
   The browser's own arrow is pinned against the border as soon as a select has a custom border/background, and no padding moves it. So the native arrow is hidden and a
   drawn chevron sits 12px in from the right edge, with 34px of the box reserved for it. !important because many selects set `padding:` / `background:` shorthands
   (some inline) that would otherwise wipe the arrow or the room for it. Compact selects (narrow table/row pickers) get a tighter 8px inset. The header's league switcher
   is borderless by design and keeps its own arrow. */
select:not([multiple]):not([size]):not(#gtd-tenant-switcher select):not(.gtd-native-select),
select[size="1"]:not(#gtd-tenant-switcher select) {
  -webkit-appearance:none !important; appearance:none !important;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aab4cc' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") !important;
  background-repeat:no-repeat !important; background-position:right 12px center !important; background-size:12px 12px !important;
  padding-right:34px !important;
}
:is(.tma-select, .dd-tbl-stack td select, .kr-grid select, .pmt-sched-row select, .msg-sheet select, select.compact) { background-position:right 8px center !important; padding-right:26px !important; }
select::-ms-expand { display:none; }
