/* 033 Draws & Results. Every rule is scoped under .nws-gh so the theme and Elementor can't clash with it (and it can't leak out).
   The Hello theme styles bare buttons (pink border), tables (borders + stripes), headings (white) and links (gold): reset below. */
.nws-gh{
  --gh-saints:#471671; --gh-deep:#2a0b45; --gh-deeper:#1c0833; --gh-glow:#8f4fe0;
  --gh-ink:#1f1430; --gh-mute:#64587a; --gh-line:#ebe4f2; --gh-soft:#f6f2fa;
  --gh-gold:#ffc94a; --gh-gold-ink:#3b2a00;
  --gh-win:#13703f; --gh-win-bg:#e3f5ea; --gh-loss:#a8301f; --gh-loss-bg:#fbe7e4;
  --gh-r:16px; --gh-disp:'Saira Condensed','Arial Narrow',sans-serif;
  --gh-ui:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-family:var(--gh-ui);color:#fff;line-height:1.45;text-align:left;-webkit-font-smoothing:antialiased;
  max-width:980px;margin:0 auto;
}
.nws-gh *,.nws-gh *::before,.nws-gh *::after{box-sizing:border-box}
.nws-gh h2,.nws-gh h3,.nws-gh p{font-family:var(--gh-ui);letter-spacing:normal;text-transform:none;margin:0}
.nws-gh button{font:inherit;color:inherit;cursor:pointer;background:none;border:0;border-radius:0;padding:0;margin:0;text-transform:none;letter-spacing:normal;box-shadow:none;line-height:inherit;text-align:inherit;white-space:normal}
.nws-gh button:hover,.nws-gh button:focus{background:none;color:inherit}
.nws-gh a{color:inherit;text-decoration:none}
.nws-gh img{display:block;max-width:none;height:auto;border:0;box-shadow:none}
.nws-gh table{width:100%;border-collapse:collapse;margin:0;font-variant-numeric:tabular-nums;font-size:inherit}
.nws-gh table td,.nws-gh table th{border:0;background:none;padding:0;vertical-align:middle;line-height:1.3}
.nws-gh table tbody>tr:nth-child(odd)>td,.nws-gh table tbody>tr:nth-child(odd)>th,.nws-gh table tbody tr:hover>td{background:none}
.nws-gh ul,.nws-gh ol{margin:0;padding:0;list-style:none}
.nws-gh :focus-visible{outline:3px solid var(--gh-gold);outline-offset:2px;border-radius:8px}
.nws-gh .gh-card :focus-visible,.nws-gh dialog :focus-visible{outline-color:var(--gh-glow)}
.nws-gh .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* While loading, hold the space the draw will need so the ticker and footer below don't jump (CLS). */
.nws-gh .gh-chips:empty{min-height:56px}
.nws-gh.gh-loading{min-height:max(130vh,1000px)}
/* In the Elementor editor the widget's script doesn't run (Elementor inserts its HTML without executing scripts): label the space. */
.elementor-editor-active .nws-gh.gh-loading{min-height:260px;display:grid;place-items:center;border:2px dashed rgba(255,255,255,.45);border-radius:16px}
.elementor-editor-active .nws-gh.gh-loading::before{content:"Draws & Results app: shows live Basketball Connect data on the published page. It is managed by change 033, so edit it there, not here.";max-width:520px;padding:20px;text-align:center;color:#fff;font:600 15px/1.5 var(--gh-ui)}

/* team chips */
.nws-gh .gh-chips{display:flex;gap:8px;overflow-x:auto;padding:4px 4px 6px;margin:0 -4px;scrollbar-width:none}
.nws-gh .gh-chips::-webkit-scrollbar{display:none}
.nws-gh .gh-chip{flex:none;display:flex;align-items:center;gap:8px;border:1.5px solid rgba(255,255,255,.4);border-radius:999px;padding:9px 16px;font-weight:600;font-size:15px;white-space:nowrap;min-height:44px;color:#fff}
.nws-gh .gh-chip:hover{border-color:#fff;color:#fff}
.nws-gh .gh-chip.on,.nws-gh .gh-chip.on:hover{background:#fff;color:var(--gh-saints);border-color:#fff}
.nws-gh .gh-chip.add{border-style:dashed}
.nws-gh .gh-chip .star{color:var(--gh-gold)}
.nws-gh .gh-chip.on .star{color:#b07c00}

/* cards */
.nws-gh .gh-card{background:#fff;color:var(--gh-ink);border-radius:var(--gh-r);padding:18px;margin-top:14px;box-shadow:0 6px 24px rgba(16,0,40,.18)}
.nws-gh .gh-card h2{margin:0 0 4px;font-size:20px;font-weight:700;line-height:1.25;color:var(--gh-ink)}
.nws-gh .gh-card h3{font-size:16px;font-weight:700;line-height:1.3;color:var(--gh-ink)}
.nws-gh .gh-card a:not(.gh-btn):not(.gh-mini){color:var(--gh-saints);text-decoration:underline}
.nws-gh .mute{color:var(--gh-mute)}
.nws-gh .small{font-size:13px}
.nws-gh .row{display:flex;align-items:center;gap:12px}
.nws-gh .grow{flex:1;min-width:0}
.nws-gh .gh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:11px 16px;font-weight:700;font-size:15px;min-height:46px;text-align:center}
.nws-gh .gh-btn.gold,.nws-gh .gh-btn.gold:hover{background:var(--gh-gold);color:var(--gh-gold-ink)}
.nws-gh .gh-btn.purple,.nws-gh .gh-btn.purple:hover{background:var(--gh-saints);color:#fff}
.nws-gh .gh-btn:hover{filter:brightness(1.06)}
.nws-gh .gh-btn svg{width:18px;height:18px;flex:none}
.nws-gh .gh-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.nws-gh .gh-btns .gh-btn{flex:1 1 140px}
.nws-gh .gh-mini,.nws-gh .gh-mini:hover{background:var(--gh-soft);color:var(--gh-saints);border-radius:10px;padding:8px 10px;font-weight:700;font-size:13px;display:inline-flex;gap:6px;align-items:center;min-height:44px;white-space:nowrap}
.nws-gh .gh-mini svg{width:16px;height:16px}

/* welcome */
.nws-gh .gh-welcome{text-align:center;padding:26px 18px}
.nws-gh .gh-welcome .ball{font-size:40px;line-height:1}
.nws-gh .gh-welcome h2{font-size:22px;margin-top:8px}
.nws-gh .gh-welcome p{margin:6px auto 16px;max-width:420px;color:var(--gh-mute)}

/* team header */
.nws-gh .gh-team-head{display:flex;gap:14px;align-items:center;margin-top:18px}
.nws-gh .gh-team-head .gh-logo{width:58px;height:58px}
.nws-gh .gh-team-head h2{font-size:26px;font-weight:700;line-height:1.15;color:#fff}
.nws-gh .gh-team-head .sub{opacity:.9;font-size:14px}
.nws-gh .gh-icon,.nws-gh .gh-icon:hover{background:rgba(255,255,255,.14);border-radius:12px;width:46px;height:46px;display:grid;place-items:center;flex:none;color:#fff}
.nws-gh .gh-icon svg{width:22px;height:22px}
.nws-gh .gh-icon[aria-pressed=true] svg{fill:var(--gh-gold);stroke:var(--gh-gold)}

/* logos */
.nws-gh .gh-logo{width:36px;height:36px;border-radius:50%;background:var(--gh-soft);display:grid;place-items:center;overflow:hidden;flex:none;font-weight:800;font-size:13px;color:var(--gh-saints);position:relative}
.nws-gh .gh-logo img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;background:#fff}
.nws-gh .gh-logo.sm{width:26px;height:26px;font-size:10px}

/* next game */
.nws-gh .gh-tag-when{display:inline-block;background:var(--gh-gold);color:var(--gh-gold-ink);font-weight:800;font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:4px 10px;border-radius:999px}
.nws-gh .gh-bigtime{font-family:var(--gh-disp);font-size:46px;font-weight:800;line-height:1;margin:10px 0 2px;color:var(--gh-saints)}
.nws-gh .gh-bigtime .live-score{font-size:46px}
.nws-gh .gh-date{font-size:17px;font-weight:600}
.nws-gh .gh-vs{display:flex;align-items:center;gap:12px;margin:16px 0 4px;padding:12px;background:var(--gh-soft);border-radius:12px}
.nws-gh .gh-vs .t{display:flex;align-items:center;gap:10px;flex:1;min-width:0;font-weight:700}
.nws-gh .gh-vs .t span{overflow:hidden;text-overflow:ellipsis}
.nws-gh .gh-vs .t.r{justify-content:flex-end;text-align:right}
.nws-gh .gh-vs b{font-family:var(--gh-disp);color:var(--gh-mute);font-size:18px}
.nws-gh .gh-where{display:flex;gap:10px;margin-top:12px}
.nws-gh .gh-where svg{width:20px;height:20px;flex:none;color:var(--gh-saints);margin-top:2px}
.nws-gh .gh-court{display:inline-block;background:var(--gh-saints);color:#fff;font-weight:700;border-radius:6px;padding:1px 8px;font-size:13px;white-space:nowrap}
.nws-gh .gh-bye-note{background:var(--gh-soft);border-radius:12px;padding:12px 14px;margin-bottom:12px;font-weight:600}

/* result */
.nws-gh .gh-result{display:flex;align-items:center;gap:14px}
.nws-gh .gh-wl{font-family:var(--gh-disp);font-weight:800;font-size:20px;min-width:44px;height:44px;border-radius:12px;display:inline-grid;place-items:center;flex:none;padding:0 8px;white-space:nowrap}
.nws-gh .gh-wl.pill{height:auto;min-width:0;padding:3px 8px;font-size:17px}
.nws-gh .W{background:var(--gh-win-bg);color:var(--gh-win)} .nws-gh .L{background:var(--gh-loss-bg);color:var(--gh-loss)} .nws-gh .D{background:var(--gh-soft);color:var(--gh-mute)}
.nws-gh .gh-score{font-family:var(--gh-disp);font-weight:800;font-size:28px;letter-spacing:.02em}
.nws-gh .gh-form{display:flex;gap:4px}
.nws-gh .gh-form i{width:22px;height:22px;border-radius:6px;font-style:normal;font-size:12px;font-weight:800;display:grid;place-items:center}

/* tabs */
.nws-gh .gh-tabs{display:flex;background:#5a2a85;border-radius:14px;padding:4px;margin-top:22px;position:sticky;top:8px;z-index:5;box-shadow:0 6px 18px rgba(16,0,40,.25)}
.nws-gh .gh-tabs button{flex:1;border-radius:10px;padding:11px 6px;font-weight:700;font-size:15px;min-height:46px;text-align:center;color:#fff}
.nws-gh .gh-tabs button:hover{background:rgba(255,255,255,.1);color:#fff}
.nws-gh .gh-tabs button[aria-selected=true],.nws-gh .gh-tabs button[aria-selected=true]:hover{background:#fff;color:var(--gh-saints)}

/* game list */
.nws-gh .gh-break{margin:14px 0 2px;padding:10px 12px;border-radius:10px;background:#fff8e6;color:#6d4c00;font-size:14px;font-weight:600}
.nws-gh .gh-g{display:grid;grid-template-columns:78px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--gh-line)}
.nws-gh .gh-games>li:first-child{border-top:0}
.nws-gh .gh-g .d{font-weight:700;font-size:14px;line-height:1.25}
.nws-gh .gh-g .d span{display:block;font-weight:500;color:var(--gh-mute);font-size:13px}
.nws-gh .gh-g .who{font-weight:700;min-width:0}
.nws-gh .gh-g .loc{font-size:13px;color:var(--gh-mute);font-weight:400}
.nws-gh .gh-g .res{text-align:right}
.nws-gh .gh-g.next-up,.nws-gh .gh-wg.mine{background:linear-gradient(90deg,#fff6de,#fff 80%);margin:0 -18px;padding-left:14px;padding-right:18px;border-left:4px solid var(--gh-gold)}
.nws-gh .gh-tag{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;border-radius:6px;padding:2px 7px;vertical-align:1px}
.nws-gh .gh-tag.next{background:var(--gh-gold);color:var(--gh-gold-ink)}
.nws-gh .gh-tag.live{background:#d1242a;color:#fff;animation:gh-pulse 1.6s infinite}
.nws-gh .gh-tag.bye{background:var(--gh-soft);color:var(--gh-mute)}
@keyframes gh-pulse{50%{opacity:.65}}
@media (prefers-reduced-motion:reduce){.nws-gh .gh-tag.live,.nws-gh .gh-skel{animation:none}}

/* this week */
.nws-gh .gh-wk-head{display:flex;align-items:center;gap:8px;margin-top:20px}
.nws-gh .gh-wk-head h2{font-size:22px;font-weight:700;flex:1;text-align:center;line-height:1.15;color:#fff}
.nws-gh .gh-wk-head h2 small{display:block;font-size:14px;font-weight:500;opacity:.9;margin-top:2px}
.nws-gh .gh-arrow,.nws-gh .gh-arrow:hover{width:46px;height:46px;border-radius:12px;background:rgba(255,255,255,.16);display:grid;place-items:center;flex:none;color:#fff}
.nws-gh .gh-arrow:disabled{opacity:.3;cursor:default}
.nws-gh .gh-arrow svg{width:22px;height:22px}
.nws-gh .gh-venue-h{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;padding-bottom:10px;border-bottom:2px solid var(--gh-line)}
.nws-gh .gh-wg{display:grid;grid-template-columns:66px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--gh-line)}
.nws-gh .gh-venue-h + .gh-wg{border-top:0}
.nws-gh .gh-wg .t{font-family:var(--gh-disp);font-weight:800;font-size:20px;color:var(--gh-saints);line-height:1}
.nws-gh .gh-wg .div{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--gh-mute)}
.nws-gh .gh-wg .m{font-weight:700}
.nws-gh .gh-link,.nws-gh .gh-link:hover{font-weight:700;color:var(--gh-ink);text-decoration:underline;text-decoration-color:rgba(71,22,113,.35);text-underline-offset:3px}
.nws-gh .gh-link:hover{color:var(--gh-saints);text-decoration-color:currentColor}

/* ladder */
.nws-gh .gh-ladder th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--gh-mute);font-weight:800;text-align:center;padding:8px 4px;border-bottom:2px solid var(--gh-line)}
.nws-gh .gh-ladder th.l,.nws-gh .gh-ladder td.l{text-align:left}
.nws-gh .gh-ladder td{padding:11px 4px;text-align:center;border-bottom:1px solid var(--gh-line);font-size:15px;color:var(--gh-ink)}
.nws-gh .gh-ladder td.pos{font-family:var(--gh-disp);font-weight:800;font-size:20px;color:var(--gh-mute);width:34px}
.nws-gh .gh-ladder td.team{font-weight:600}
.nws-gh .gh-ladder td.team .row{gap:10px}
.nws-gh .gh-ladder td.pts{font-weight:800;font-size:16px}
.nws-gh .gh-ladder tr.saints>td{background:#f6f0fc}
.nws-gh .gh-ladder tr.me>td{background:#fff3cf}
.nws-gh .gh-ladder tr.me td.team{font-weight:800}
.nws-gh .plus{color:var(--gh-win)} .nws-gh .minus{color:var(--gh-loss)}
@media (max-width:560px){.nws-gh .hide-sm{display:none}}
.nws-gh .gh-key{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;font-size:13px;color:var(--gh-mute)}
.nws-gh .gh-key b{color:var(--gh-ink)}

/* stats */
.nws-gh .gh-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.nws-gh .gh-tile{background:var(--gh-soft);border-radius:12px;padding:12px 14px}
.nws-gh .gh-tile .v{font-family:var(--gh-disp);font-weight:800;font-size:32px;line-height:1.05;color:var(--gh-saints)}
.nws-gh .gh-tile .k{font-size:13px;color:var(--gh-mute);font-weight:600}
.nws-gh .gh-stats td,.nws-gh .gh-stats th{padding:10px 6px;text-align:center;border-bottom:1px solid var(--gh-line);color:var(--gh-ink)}
.nws-gh .gh-stats th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--gh-mute);font-weight:800;border-bottom:2px solid var(--gh-line)}
.nws-gh .gh-shirt{display:inline-grid;place-items:center;min-width:38px;height:34px;padding:0 6px;border-radius:8px;background:var(--gh-saints);color:#fff;font-family:var(--gh-disp);font-weight:800;font-size:18px}
.nws-gh .gh-shirt.other{background:#776b86}
.nws-gh .gh-bar{height:8px;border-radius:4px;background:var(--gh-soft);overflow:hidden;min-width:60px}
.nws-gh .gh-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gh-glow),var(--gh-saints))}
.nws-gh .gh-privacy{display:flex;gap:10px;align-items:flex-start;background:var(--gh-soft);border-radius:12px;padding:12px 14px;font-size:14px;margin:8px 0 14px}
.nws-gh .gh-privacy svg{width:20px;height:20px;flex:none;color:var(--gh-saints);margin-top:1px}
.nws-gh .gh-leaders li{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--gh-line)}
.nws-gh .gh-leaders li:first-child{border-top:0}
.nws-gh .gh-leaders .rk{font-family:var(--gh-disp);font-weight:800;font-size:20px;color:var(--gh-mute);width:22px}
.nws-gh .gh-leaders .saints .grow{font-weight:800}

/* source line, loading, errors */
.nws-gh .gh-source{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:space-between;align-items:center;font-size:13px;opacity:.9;padding:20px 0 4px;color:#fff}
.nws-gh .gh-source a{color:#fff;text-decoration:underline}
.nws-gh .gh-skel{background:linear-gradient(90deg,#f1ebf7 25%,#e7def0 50%,#f1ebf7 75%);background-size:200% 100%;animation:gh-sk 1.2s infinite;border-radius:10px;height:18px;margin:10px 0}
@keyframes gh-sk{to{background-position:-200% 0}}
.nws-gh .gh-note{font-size:13px;opacity:.9;margin-top:12px;color:#fff}

/* team picker */
.nws-gh dialog{border:0;border-radius:20px;padding:0;width:min(560px,calc(100% - 24px));max-height:calc(100% - 40px);color:var(--gh-ink);background:#fff;font-family:var(--gh-ui)}
.nws-gh dialog::backdrop{background:rgba(20,0,40,.6)}
@media (max-width:560px){.nws-gh dialog{width:100%;max-width:100%;max-height:88%;margin:auto 0 0;border-radius:20px 20px 0 0}}
.nws-gh .gh-pk-head{position:sticky;top:0;background:#fff;padding:18px 18px 10px;display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--gh-line);z-index:1}
.nws-gh .gh-pk-head h2{font-size:20px;font-weight:700;color:var(--gh-ink)}
.nws-gh .gh-pk-head p{margin:2px 0 0;font-size:14px;color:var(--gh-mute)}
.nws-gh .gh-pk-body{padding:4px 18px 18px}
.nws-gh .gh-pk-group h3{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--gh-mute);margin:16px 0 6px;font-weight:800}
.nws-gh .gh-pk-team,.nws-gh .gh-pk-team:hover{display:flex;align-items:center;gap:12px;width:100%;border:1.5px solid var(--gh-line);background:#fff;border-radius:12px;padding:10px 12px;margin-bottom:8px;text-align:left;min-height:54px;color:var(--gh-ink)}
.nws-gh .gh-pk-team:hover{border-color:var(--gh-glow)}
.nws-gh .gh-pk-team[aria-pressed=true]{border-color:var(--gh-gold);background:#fffaf0}
.nws-gh .gh-pk-team .nm{flex:1;font-weight:700}
.nws-gh .gh-pk-team .chk{width:26px;height:26px;border-radius:50%;border:2px solid #cfc3dc;display:grid;place-items:center;flex:none;font-weight:800}
.nws-gh .gh-pk-team[aria-pressed=true] .chk{background:var(--gh-gold);border-color:var(--gh-gold);color:var(--gh-gold-ink)}
.nws-gh .gh-close,.nws-gh .gh-close:hover{background:var(--gh-soft);width:44px;height:44px;border-radius:12px;font-size:24px;line-height:1;color:var(--gh-saints);display:grid;place-items:center}
.nws-gh .gh-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(140px);background:var(--gh-deeper);color:#fff;padding:12px 18px;border-radius:12px;font-weight:600;transition:transform .25s;z-index:99999;box-shadow:0 8px 30px rgba(0,0,0,.3);max-width:calc(100% - 32px)}
.nws-gh .gh-toast.show{transform:translateX(-50%) translateY(0)}
