/* ====================================================================
   NWAHL Rebrand POC — shared design system  (PUCK-150)
   --------------------------------------------------------------------
   Single stylesheet for the clickable proof-of-concept. The palette +
   type are lifted from concept-a-bright.html ("Ice Sheet · Daylight",
   the bright Concept A from PUCK-143). This file adds the portal
   surfaces the landing page didn't need: the logged-in app shell
   (sidebar + topbar + mobile drawer), data tables, forms, badges,
   report cards. Review-only sandbox — no prod styles are touched.
   ==================================================================== */
:root{
  --base:        #F4F9FC;
  --base-deep:   #E3EEF5;
  --panel:       #FFFFFF;
  --panel-hi:    #F0F7FB;
  --line:        rgba(11,30,46,.12);
  --line-strong: rgba(11,30,46,.20);
  --blue:        #0F82BE;
  --blue-soft:   rgba(15,130,190,.12);
  --ice:         #143049;
  --ice-dim:     #56707F;
  /* PUCK-777 — ink tier for --ice-dim. Same hue and saturation, darkened to
     L 36%, for dim text that paints straight onto the BODY rather than onto a
     card. --ice-dim itself measures 4.27:1 at its worst point on the body's
     fixed gradient (mobile, top of the viewport, under the strong blue radial)
     and 4.93 at its best, so it is a pass-or-fail depending on scroll position
     and viewport; this token measures 5.33 at that same worst point. It stays
     2.08:1 lighter than --ice, so the de-emphasis survives the fix. */
  --ice-dim-ink: #4A616D;
  --gold:        #B07F2C;
  --gold-bright: #E8C77B;
  --white:       #08151F;   /* strongest ink */
  --green:       #1E8F6A;
  --red:         #C0463B;
  --shadow:      0 18px 40px rgba(11,30,46,.16);
  --shadow-sm:   0 6px 18px rgba(11,30,46,.10);
  --r:           14px;
  --r-sm:        10px;
  --font-display:"Bebas Neue", sans-serif;
  --font-body:   "Barlow", sans-serif;
  --font-cond:   "Barlow Condensed", sans-serif;
  --sidebar-w:   244px;
  /* PUCK-767 — status-badge tier. Opaque fill + darkened ink; ratios below are
     measured in-browser off the shipped rule, not derived.
     See the .rb-badge block for why these are not tints of --green/--gold/--red. */
  --badge-ok-fill:   #DFEFEA;  --badge-ok-ink:   #187456;  /* 4.81:1 */
  --badge-warn-fill: #F4EDE1;  --badge-warn-ink: #866121;  /* 4.82:1 */
  --badge-bad-fill:  #F7E9E7;  --badge-bad-ink:  #B14036;  /* 4.86:1 */
  --badge-info-fill: #E2EEF6;  --badge-info-ink: #10618A;  /* 5.74:1 (PUCK-771) */
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background:var(--base);
  background-image:
    radial-gradient(1200px 700px at 75% -10%, rgba(15,130,190,.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(15,130,190,.07), transparent 55%),
    linear-gradient(180deg, var(--base) 0%, var(--base-deep) 100%);
  background-attachment:fixed;
  color:var(--ice);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
::selection{ background:var(--blue); color:#06141F; }
a{ color:var(--blue); }
:focus-visible{ outline:3px solid var(--ice); outline-offset:3px; border-radius:4px; }

.wrap{ width:min(1240px, 100% - 48px); margin-inline:auto; }
@media (max-width:560px){ .wrap{ width:calc(100% - 32px); } }

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:16px; top:-60px; z-index:300;
  background:var(--blue); color:#06141F; font-weight:700;
  padding:10px 18px; border-radius:8px; text-decoration:none; transition:top .15s ease;
}
.skip-link:focus{ top:14px; }

/* ============================ POC RIBBON ============================ */
.poc-ribbon{
  position:sticky; top:0; z-index:120;
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:linear-gradient(90deg, var(--gold) 0%, #C99A4A 100%);
  color:#1a1205; min-height:34px; padding:4px 14px; text-align:center;
  font-family:var(--font-cond); font-weight:700; font-size:.78rem;
  letter-spacing:.18em; text-transform:uppercase;
}
.poc-ribbon b{ font-weight:700; }
.poc-ribbon .dot{ width:7px; height:7px; border-radius:50%; background:#1a1205; flex:0 0 auto; }

/* ============================ BUTTONS ============================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-cond); font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  text-decoration:none; border-radius:10px; cursor:pointer; border:1px solid transparent;
  white-space:nowrap;
  transition:transform .16s cubic-bezier(.2,.7,.3,1.2), box-shadow .16s ease,
             background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-lg{ font-size:1.05rem; padding:15px 30px; }
.btn-sm{ font-size:.9rem;  padding:9px 18px; }
.btn-primary{
  background:linear-gradient(180deg, #2FACE5 0%, var(--blue) 100%);
  color:#06141F; box-shadow:0 6px 22px rgba(15,130,190,.35);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(15,130,190,.5); }
.btn-ghost{ background:transparent; color:var(--ice); border-color:var(--line-strong); }
.btn-ghost:hover{ transform:translateY(-2px); border-color:var(--blue); color:var(--white); background:var(--blue-soft); }
.btn-gold{ background:transparent; color:var(--gold); border-color:rgba(176,127,44,.45); }
.btn-gold:hover{ transform:translateY(-2px); background:rgba(176,127,44,.1); border-color:var(--gold); }

/* ============================ PUBLIC HEADER (landing-style) ============================ */
.site-header{
  position:sticky; top:34px; z-index:80;
  background:rgba(244,249,252,.88);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.site-header > .wrap{ display:flex; align-items:center; gap:24px; height:66px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand .crest{ width:40px; height:40px; display:block; filter:drop-shadow(0 2px 8px rgba(15,130,190,.45)); }
.brand .wordmark{ font-family:var(--font-display); font-size:1.7rem; letter-spacing:.06em; color:var(--white); line-height:1; }
.brand .sub{ display:block; font-family:var(--font-cond); font-weight:600; font-size:.62rem;
  letter-spacing:.34em; color:var(--ice-dim); text-transform:uppercase; margin-top:2px; }
.main-nav{ display:flex; gap:4px; margin-left:8px; }
.main-nav a{
  font-family:var(--font-cond); font-weight:600; font-size:.95rem;
  letter-spacing:.12em; text-transform:uppercase; text-decoration:none;
  color:var(--ice-dim); padding:8px 14px; border-radius:8px;
  transition:color .15s ease, background .15s ease;
}
.main-nav a:hover{ color:var(--white); background:var(--blue-soft); }
.main-nav a.active{ color:var(--white); background:var(--blue-soft); }
.header-cta{ margin-left:auto; }
@media (max-width:880px){ .main-nav{ display:none; } }
@media (max-width:600px){ .site-header .brand .sub{ display:none; } }

/* ============================ APP SHELL (logged-in) ============================ */
.app{ display:flex; min-height:calc(100vh - 34px); }
.sidebar{
  flex:0 0 var(--sidebar-w); width:var(--sidebar-w);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(240,247,251,.92));
  border-right:1px solid var(--line);
  position:sticky; top:34px; align-self:flex-start; height:calc(100vh - 34px);
  /* 2026-10-24 (iPhone SE): Safari's 100vh is the height with its bars
     HIDDEN, so with them showing the drawer's last ~120px (Sign Out) sat
     under the toolbar even when scrolled to the end. dvh is what is shown;
     the vh line above stays as the fallback. */
  height:calc(100dvh - 34px);
  display:flex; flex-direction:column; overflow-y:auto;
}
.sidebar .brand{ padding:20px 20px 16px; gap:10px; border-bottom:1px solid var(--line); }
.sidebar .brand .wordmark{ font-size:1.45rem; }
.sidebar nav{ padding:14px 12px; display:flex; flex-direction:column; gap:2px; }
.side-group{
  font-family:var(--font-cond); font-weight:700; font-size:.68rem; letter-spacing:.24em;
  text-transform:uppercase; color:var(--ice-dim); padding:16px 12px 6px;
}
.sidebar nav a{
  display:flex; align-items:center; gap:11px;
  font-family:var(--font-cond); font-weight:600; font-size:1rem; letter-spacing:.05em;
  color:var(--ice); text-decoration:none; padding:9px 12px; border-radius:9px;
  transition:background .14s ease, color .14s ease;
}
.sidebar nav a .ico{ flex:0 0 auto; width:18px; text-align:center; opacity:.75; }
.sidebar nav a.sub{ padding-left:34px; font-size:.92rem; color:var(--ice-dim); }
.sidebar nav a:hover{ background:var(--blue-soft); color:var(--white); }
.sidebar nav a.active{ background:linear-gradient(180deg, #2FACE5, var(--blue)); color:#06141F; box-shadow:0 4px 14px rgba(15,130,190,.3); }
.sidebar nav a.active .ico{ opacity:1; }
/* PUCK-530: admin-only nav marker (League Admin view) */
.side-pill{
  margin-left:auto; flex:0 0 auto;
  font-family:var(--font-cond); font-weight:700; font-size:.58rem; letter-spacing:.14em;
  color:var(--badge-warn-ink); background:var(--badge-warn-fill); border:1px solid rgba(134,97,33,.4); /* PUCK-771 */
  border-radius:20px; padding:1px 7px;
}
.sidebar nav a.active .side-pill{ color:#06141F; background:rgba(6,20,31,.14); border-color:rgba(6,20,31,.3); }
.sidebar .side-foot{ margin-top:auto; padding:16px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:10px; }
.sidebar .side-foot #rbSignOut{ color:var(--ice); font-weight:700; }
.sidebar .side-foot #rbSignOut:hover{ color:#F27059; }
.sidebar .side-foot a{ color:var(--ice-dim); font-size:.9rem; text-decoration:none; font-family:var(--font-cond); letter-spacing:.08em; }
.sidebar .side-foot a:hover{ color:var(--blue); }

.app-main{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; }
.topbar{
  position:sticky; top:34px; z-index:70;
  display:flex; align-items:center; gap:16px; height:62px; padding:0 28px;
  background:rgba(244,249,252,.9); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.topbar .hamburger{
  display:none; background:transparent; border:1px solid var(--line-strong); border-radius:9px;
  width:40px; height:40px; cursor:pointer; color:var(--ice); font-size:1.2rem; align-items:center; justify-content:center;
}
.topbar .page-title{ font-family:var(--font-display); font-weight:400; font-size:1.5rem; letter-spacing:.03em; color:var(--white); }
.topbar .crumbs{ font-family:var(--font-cond); font-weight:600; font-size:.78rem; letter-spacing:.16em; text-transform:uppercase; color:var(--ice-dim); }
.topbar .spacer{ margin-left:auto; }
.topbar .user-chip{
  display:flex; align-items:center; gap:10px; padding:6px 12px 6px 6px;
  border:1px solid var(--line); border-radius:99px; background:var(--panel); cursor:default;
}
.topbar .user-chip .av{
  width:30px; height:30px; border-radius:50%; flex:0 0 auto;
  background:linear-gradient(180deg, #2FACE5, var(--blue)); color:#06141F;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-cond); font-weight:700; font-size:.85rem;
}
.topbar .user-chip .who{ line-height:1.1; }
.topbar .user-chip .who b{ font-size:.9rem; color:var(--white); display:block; }
.topbar .user-chip .who span{ font-size:.72rem; color:var(--ice-dim); font-family:var(--font-cond); letter-spacing:.1em; text-transform:uppercase; }
@media (max-width:600px){ .topbar .user-chip .who{ display:none; } }
/* PUCK-530: the chip is the mock view-as toggle */
.topbar .user-chip.role-switch{ cursor:pointer; font:inherit; transition:border-color .15s ease, box-shadow .15s ease; }
.topbar .user-chip.role-switch:hover{ border-color:var(--blue); box-shadow:0 4px 14px rgba(15,130,190,.18); }
.topbar .user-chip .role-caret{ color:var(--ice-dim); font-size:.95rem; padding-right:2px; }

/* PUCK-530: admins-only lock screen (gated page viewed as Org Admin) */
.lock-screen{
  max-width:520px; margin:8vh auto 0; text-align:center;
  background:var(--panel); border:1px solid var(--line); border-radius:16px;
  padding:44px 34px; box-shadow:var(--shadow);
}
.lock-screen .lock-ico{ font-size:2.4rem; margin-bottom:10px; }
.lock-screen h2{ font-family:var(--font-display); font-weight:400; font-size:2rem; letter-spacing:.03em; color:var(--white); margin:0 0 10px; }
.lock-screen .lead{ color:var(--ice-dim); font-size:1rem; line-height:1.6; margin:0 0 22px; }
.lock-actions{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }

.content{ padding:30px 28px 64px; max-width:1180px; width:100%; }
@media (max-width:560px){ .content{ padding:22px 16px 48px; } }

/* mobile drawer */
.scrim{ display:none; position:fixed; inset:34px 0 0; background:rgba(8,21,31,.45); z-index:90; }
.scrim.on{ display:block; }
/* PUCK-708: ≥12px text inside the mobile drawer (burger breakpoint) */
@media (max-width:1000px){
  .side-group{ font-size:.75rem; }
  .side-pill{ font-size:.72rem; }
  .brand .sub{ font-size:.72rem; }

  .sidebar{
    position:fixed; top:34px; left:0; z-index:100; transform:translateX(-105%);
    transition:transform .22s ease; box-shadow:var(--shadow);
    /* the open drawer's scroll stays in the drawer, not the page behind it.
       Phone drawer ONLY: on the desktop sticky sidebar it stopped the mouse
       wheel scrolling the page while the pointer rested on the sidebar. */
    overscroll-behavior:contain;
  }
  .sidebar.open{ transform:translateX(0); }
  .topbar .hamburger{ display:inline-flex; }
}

/* ============================ PAGE HEADERS ============================ */
.page-head{ margin-bottom:26px; }
.page-head .kicker{
  font-family:var(--font-cond); font-weight:600; font-size:.82rem;
  letter-spacing:.3em; text-transform:uppercase; color:var(--blue); display:block; margin-bottom:8px;
}
.page-head h1{
  font-family:var(--font-display); font-weight:400; font-size:clamp(2.2rem, 4.5vw, 3.2rem);
  line-height:1; color:var(--white); letter-spacing:.02em;
}
.page-head p.lead{ color:var(--ice-dim-ink); margin-top:10px; max-width:640px; } /* PUCK-779: was --ice-dim, 4.24:1 on the body gradient at 16px/400 */

/* ============================ CARDS ============================ */
.card{
  background:linear-gradient(180deg, var(--panel) 0%, var(--panel-hi) 100%);
  border:1px solid var(--line); border-radius:var(--r);
  box-shadow:var(--shadow-sm); padding:22px 22px;
}
.card.pad-lg{ padding:28px 28px; }
.card h2, .card h3{ font-family:var(--font-display); font-weight:400; letter-spacing:.02em; color:var(--white); }
.card h2{ font-size:1.7rem; margin-bottom:6px; }
.card h3{ font-size:1.35rem; margin-bottom:6px; }
.card .card-sub{ color:var(--ice-dim); font-size:.92rem; margin-bottom:16px; }
.grid{ display:grid; gap:20px; }
.grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.grid.cols-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid.cols-3, .grid.cols-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns:1fr; } }

/* stat tiles */
.stat-tile{
  background:linear-gradient(180deg, var(--panel) 0%, var(--panel-hi) 100%);
  border:1px solid var(--line); border-radius:var(--r); padding:20px;
}
.stat-tile .n{ font-family:var(--font-display); font-size:clamp(2rem,3vw,2.8rem); line-height:1; color:var(--white); }
.stat-tile .n em{ font-style:normal; color:var(--blue); }
.stat-tile.gold .n{ color:var(--gold); }
.stat-tile .l{ font-family:var(--font-cond); font-weight:600; font-size:.78rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--ice-dim); margin-top:8px; }
.stat-tile .sub{ font-size:.84rem; color:var(--ice-dim); margin-top:4px; }

/* ============================ TABLES ============================ */
.data-table{ width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.data-table th{
  font-family:var(--font-cond); font-weight:600; font-size:.74rem; letter-spacing:.18em;
  text-transform:uppercase; color:var(--ice-dim); padding:11px 12px;
  border-bottom:1px solid var(--line); text-align:left;
}
.data-table th.num, .data-table td.num{ text-align:right; }
.data-table td{ padding:12px 12px; font-size:.95rem; color:var(--ice); border-bottom:1px solid rgba(11,30,46,.08); }
.data-table tbody tr{ transition:background .12s ease; }
.data-table tbody tr:hover{ background:rgba(15,130,190,.06); }
.data-table tr:last-child td{ border-bottom:0; }
.data-table .strong{ font-weight:700; color:var(--white); }
.table-wrap{ overflow-x:auto; }
@media (max-width:560px){ .data-table th, .data-table td{ padding:10px 8px; font-size:.9rem; } }

/* ============================ BADGES / PILLS ============================ */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-cond); font-weight:700; font-size:.72rem; letter-spacing:.12em;
  text-transform:uppercase; padding:3px 10px; border-radius:99px; border:1px solid transparent;
}
/* PUCK-771: opaque fill + darkened ink (>=4.5:1) — was small bold text on a translucent tint of its own hue. */
.badge.ok{ color:var(--badge-ok-ink); background:var(--badge-ok-fill); border-color:rgba(24,116,86,.35); }
.badge.warn{ color:var(--badge-warn-ink); background:var(--badge-warn-fill); border-color:rgba(134,97,33,.4); }
.badge.bad{ color:var(--badge-bad-ink); background:var(--badge-bad-fill); border-color:rgba(177,64,54,.35); }
.badge.info{ color:var(--badge-info-ink); background:var(--badge-info-fill); border-color:rgba(16,97,138,.35); }
.ro-badge{
  display:inline-flex; align-items:center; gap:7px;
  font-family:var(--font-cond); font-weight:700; font-size:.74rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--badge-warn-ink); background:var(--badge-warn-fill); /* PUCK-771 */
  border:1px dashed rgba(134,97,33,.55); border-radius:8px; padding:7px 13px;
}
.ro-badge::before{ content:"●"; font-size:.6rem; }

/* ============================ FORMS ============================ */
.form-grid{ display:grid; gap:18px; grid-template-columns:repeat(2,1fr); }
.form-grid .full{ grid-column:1 / -1; }
@media (max-width:620px){ .form-grid{ grid-template-columns:1fr; } }
.field label{
  display:block; font-family:var(--font-cond); font-weight:600; font-size:.8rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--ice-dim); margin-bottom:7px;
}
.field input, .field select, .field textarea{
  width:100%; font-family:var(--font-body); font-size:.96rem; color:var(--ice);
  background:var(--panel); border:1px solid var(--line-strong); border-radius:var(--r-sm);
  padding:11px 13px; transition:border-color .14s ease, box-shadow .14s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft);
}
.field textarea{ min-height:120px; resize:vertical; }
.field .hint{ font-size:.8rem; color:var(--ice-dim); margin-top:6px; }
.form-actions{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-top:22px;
  padding-top:20px; border-top:1px solid var(--line); }

/* ============================ MISC ============================ */
.divider{ height:1px; background:var(--line); margin:24px 0; }
.muted{ color:var(--ice-dim); }
.row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.row.between{ justify-content:space-between; }
.tag-row{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  font-family:var(--font-cond); font-weight:600; font-size:.85rem; letter-spacing:.06em;
  color:var(--ice); background:var(--blue-soft); border:1px solid var(--line);
  border-radius:99px; padding:5px 13px;
}
.list-plain{ list-style:none; }
.list-plain li{ padding:11px 0; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:12px; justify-content:space-between; }
.list-plain li:last-child{ border-bottom:0; }
.section-title{
  font-family:var(--font-cond); font-weight:700; font-size:.82rem; letter-spacing:.24em;
  text-transform:uppercase; color:var(--ice-dim-ink); margin:30px 0 14px;
} /* PUCK-779: was --ice-dim, 4.24:1 on the body gradient at 13.12px/700. Kept on the
     dim tier rather than promoted to --ice: this is a subordinate section label that
     has to stay visibly below h1/.page-head, and --ice-dim-ink preserves that gap. */

/* ============================ PUBLIC FOOTER ============================ */
.site-footer{ padding:52px 0 38px; border-top:1px solid var(--line); background:rgba(240,247,251,.7); }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:36px; margin-bottom:36px; }
@media (max-width:760px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:460px){ .footer-grid{ grid-template-columns:1fr; } }
.site-footer .brand .wordmark{ font-size:1.5rem; }
.site-footer .tagline{ color:var(--ice-dim); font-size:.92rem; max-width:300px; margin-top:14px; }
.site-footer h4{ font-family:var(--font-cond); font-weight:700; font-size:.8rem;
  letter-spacing:.28em; text-transform:uppercase; color:var(--white); margin-bottom:14px; }
.site-footer ul{ list-style:none; }
.site-footer li{ margin-bottom:9px; }
.site-footer ul a{ color:var(--ice-dim); text-decoration:none; font-size:.95rem; transition:color .14s ease; }
.site-footer ul a:hover{ color:var(--ice); }
.footer-base{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border-top:1px solid var(--line); padding-top:24px;
  font-family:var(--font-cond); font-weight:500; font-size:.85rem;
  letter-spacing:.12em; color:var(--ice-dim); text-transform:uppercase; }
/* PUCK-779: was --ice-dim, 4.24:1 on the body gradient at 13.12px/400. The app footer
   sits OUTSIDE .card on every authed page, so the body is its real backdrop. Its public
   sibling .site-footer above is deliberately untouched — that one paints on its own
   rgba(240,247,251,.7) band, a different measurement against a different surface. */
.app-footer{ padding:20px 28px; border-top:1px solid var(--line); color:var(--ice-dim-ink);
  font-family:var(--font-cond); font-size:.82rem; letter-spacing:.1em; text-transform:uppercase; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *, *::before, *::after{ animation:none !important; transition:none !important; }
}

/* ==================== PUCK-541: real-data additions ==================== */
.rb-table{ width:100%; border-collapse:collapse; font-size:.92rem; }
.rb-table th{ text-align:left; font-family:var(--font-cond); font-weight:700; font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ice-dim); padding:8px 10px; border-bottom:2px solid var(--line-strong); white-space:nowrap; }
.rb-table td{ padding:7px 10px; border-bottom:1px solid var(--line); color:var(--ice); vertical-align:middle; }
.rb-table tbody tr:hover td{ background:var(--blue-soft); }
.rb-scroll{ overflow-x:auto; }
.rb-badge{ display:inline-block; font-family:var(--font-cond); font-weight:700; font-size:.66rem; letter-spacing:.08em; text-transform:uppercase; border-radius:20px; padding:2px 9px; }
/* PUCK-767: the fills are OPAQUE on purpose. They used to be a translucent tint of
   their own hue, so the badge's contrast depended on whatever it was dropped on —
   card gradient, hovered table row, or the body's blue radials — and every variant
   failed AA even on the LIGHTEST of those (ok 3.24, warn 2.89, bad 4.02 on a card;
   ok fell to 2.84 once a table row was hovered). Each fill below
   is exactly what that tint composited to over the card, so the common case looks
   unchanged; because it no longer composites, the ratio is now a property of the
   badge instead of its surroundings. Inks are the same hues darkened until each
   variant clears 4.5:1 on its own fill (10.56px bold is normal-size text for WCAG,
   nowhere near the 18.66px-bold large-text threshold). Re-measure if you retint. */
.rb-badge.ok{ background:var(--badge-ok-fill); color:var(--badge-ok-ink); }
.rb-badge.warn{ background:var(--badge-warn-fill); color:var(--badge-warn-ink); }
.rb-badge.bad{ background:var(--badge-bad-fill); color:var(--badge-bad-ink); }
/* PUCK-779: .rb-loading and .rb-note were flagged as "de-emphasis, needs a decision"
   rather than a swap. The decision: they move to the ink tier. Both are the ONLY text
   on screen in the state they exist for (loading, empty, error), so unreadable is not a
   softer version of de-emphasised. The tier survives the fix — --ice-dim-ink is still
   2.08:1 lighter than --ice, which is what body copy uses — and the remaining
   de-emphasis is carried by size, italics and position, which cost nothing in contrast. */
.rb-loading{ color:var(--ice-dim-ink); padding:26px 4px; font-style:italic; }
.rb-error{ background:var(--badge-bad-fill); border:1px solid rgba(177,64,54,.35); border-radius:10px; padding:14px 18px; color:var(--badge-bad-ink); margin:8px 0; }
/* PUCK-753: the positive-tone twin of .rb-error, same geometry. The
   change-password modal reuses one status line for both outcomes, and showing
   "Password updated." inside .rb-error paints green text on a red panel with a
   red border - a success message that reads as a failure. Uses the validated
   badge-ok tier rather than a new colour: #187456 on #DFEFEA measures 4.81:1,
   matching the bad pair's 4.86 and clearing AA for normal text. */
.rb-ok{ background:var(--badge-ok-fill); border:1px solid rgba(24,116,86,.35); border-radius:10px; padding:14px 18px; color:var(--badge-ok-ink); margin:8px 0; } /* PUCK-771: was translucent red tint + --red text, 3.89 in a table */
.rb-note{ font-size:.85rem; color:var(--ice-dim-ink); margin:6px 0 14px; } /* PUCK-779: was --ice-dim, 4.24 as a div / 4.26 as a span. A nested strong inherits this colour, so it is fixed by the same line. */
.rb-note a{ color:var(--blue); }
.rb-filter{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:0 0 16px; }
.rb-filter select, .rb-filter input[type=text]{ background:var(--panel); border:1px solid var(--line-strong); border-radius:8px; padding:8px 12px; font-family:var(--font-body); font-size:.92rem; color:var(--ice); }
.rb-filter label{ font-family:var(--font-cond); font-weight:700; font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ice-dim-ink); } /* PUCK-777: was --ice-dim, 4.27:1 on the body gradient at 11.52px/700 */
.av-cell{ width:26px; height:18px; border-radius:4px; display:inline-block; }
.av-available{ background:#79c98f; } .av-block_out{ background:#d96c60; } .av-away_only{ background:#7fb7dd; } .av-home_only{ background:#e0b45c; } .av-playoffs{ background:#a58fd4; } .av-none{ background:#e3e9ee; }

/* ==================== PUCK-546: modal + row actions ==================== */
.rb-modal-overlay{ display:none; position:fixed; inset:0; background:rgba(11,30,46,.55); z-index:400; padding:24px; overflow-y:auto; }
.rb-modal-overlay.open{ display:flex; align-items:flex-start; justify-content:center; }
.rb-modal{ background:var(--panel); border:1px solid var(--line-strong); border-radius:16px; padding:26px 28px; width:100%; max-width:620px; margin-top:6vh; box-shadow:var(--shadow); }
.rb-modal h2{ font-family:var(--font-display); font-weight:400; font-size:1.7rem; letter-spacing:.03em; color:var(--white); margin:0 0 16px; }
.rb-field{ margin-bottom:12px; }
.rb-field label{ display:block; font-family:var(--font-cond); font-weight:700; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ice-dim); margin-bottom:4px; }
.rb-field input, .rb-field select{ width:100%; background:var(--base); border:1px solid var(--line-strong); border-radius:8px; padding:9px 12px; font-family:var(--font-body); font-size:.95rem; color:var(--ice); }
.rb-field input:focus, .rb-field select:focus{ border-color:var(--blue); outline:none; }
.rb-field-row{ display:flex; gap:12px; } .rb-field-row .rb-field{ flex:1; }
.rb-modal-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }
.rb-hint{ font-size:.78rem; color:var(--ice-dim); margin-top:4px; }
.btn-danger{ background:transparent; color:var(--red); border-color:rgba(192,70,59,.45); }
.btn-danger:hover{ transform:translateY(-2px); background:rgba(192,70,59,.08); border-color:var(--red); }
.rb-toast{ position:fixed; bottom:22px; left:50%; transform:translateX(-50%); background:var(--white); color:var(--base); padding:11px 22px; border-radius:9px; font-family:var(--font-cond); font-weight:600; letter-spacing:.04em; opacity:0; pointer-events:none; transition:opacity .2s; z-index:600; }
.rb-toast.show{ opacity:1; }
.rb-toast.err{ background:var(--red); color:#fff; }

/* ==================== availability full-parity editor ==================== */
.av-home_and_away{ background:#8fd3a3; }
.cell-select{ width:100%; min-width:96px; border:1px solid var(--line); border-radius:6px; padding:3px 4px; font-family:var(--font-body); font-size:.78rem; background:var(--panel); color:var(--ice); }
.cell-select.av-block_out{ background:#f6dedb; } .cell-select.av-home_only{ background:#f7ecd6; }
.cell-select.av-away_only{ background:#ddebf5; } .cell-select.av-playoffs{ background:#e7e0f4; }
.cell-select.av-home_and_away{ background:#e2f2e6; }
.cell-games{ width:100%; border:1px solid var(--line); border-radius:6px; padding:3px 6px; font-size:.78rem; margin-top:3px; background:var(--panel); color:var(--ice); }
.is-default{ opacity:.55; font-style:italic; }
.cell-dirty{ outline:2px solid var(--gold); outline-offset:-2px; border-radius:6px; }
.cell-invalid{ border-color:var(--red) !important; background:rgba(192,70,59,.08) !important; }
.cell-stack{ display:flex; flex-direction:column; min-width:104px; }
.sched-badge{ display:inline-block; margin-top:3px; font-family:var(--font-cond); font-weight:700; font-size:.6rem; letter-spacing:.05em; color:var(--blue); background:var(--blue-soft); border-radius:6px; padding:1px 6px; }
table.av-grid{ border-collapse:collapse; }
table.av-grid th, table.av-grid td{ border:1px solid var(--line); padding:5px 7px; vertical-align:top; }
table.av-grid thead th{ position:sticky; top:0; background:var(--panel-hi); z-index:3; font-family:var(--font-cond); font-weight:700; font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:var(--ice-dim); }
.av-freeze table.av-grid td.week-cell, .av-freeze table.av-grid th.week-col{ position:sticky; left:0; background:var(--panel-hi); z-index:2; }
.av-freeze table.av-grid thead th.week-col{ z-index:4; }
td.week-cell{ font-family:var(--font-cond); font-weight:700; font-size:.78rem; white-space:nowrap; color:var(--ice); }
td.playoff-week{ color:var(--blue); }
.age-toggle{ display:inline-flex; gap:6px; }
.age-toggle button{ background:var(--panel); border:1px solid var(--line-strong); border-radius:8px; padding:6px 12px; font-family:var(--font-cond); font-weight:700; font-size:.78rem; letter-spacing:.06em; cursor:pointer; color:var(--ice-dim); }
.age-toggle button.on{ background:linear-gradient(180deg,#2FACE5,var(--blue)); color:#06141F; border-color:transparent; }
.av-savebar{ position:sticky; bottom:0; background:var(--panel); border-top:1px solid var(--line-strong); padding:10px 14px; display:flex; gap:12px; align-items:center; z-index:5; border-radius:0 0 12px 12px; }

/* PUCK-612/614: missing-start-time flag, shared by Manage Home Games + Schedule */
.hg-flag{ display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%;
  background:#8C1F1F; color:#FFD9D9; font-weight:800; font-size:.78rem; font-family:var(--font-cond); }
.hg-notime{ color:#F27059; font-weight:600; }
.hg-sw{ font-family:var(--font-cond); font-size:.66rem; letter-spacing:.08em; text-transform:uppercase;
  background:rgba(47,172,229,.16); border:1px solid rgba(47,172,229,.4); color:var(--blue-bright,#3FC4FF); border-radius:20px; padding:1px 8px; white-space:nowrap; }

/* PUCK-571: Reports hub containers (legacy setup) */
.rb-hub-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:14px; }
.rb-hub-card{ display:block; text-decoration:none; background:var(--panel); border:1px solid var(--line-strong); border-radius:14px; padding:18px 16px; transition:border-color .18s, transform .18s, box-shadow .18s; }
.rb-hub-card:hover{ border-color:var(--blue); transform:translateY(-3px); box-shadow:0 14px 34px -16px rgba(27,156,216,.5); }
.rb-hub-title{ font-family:var(--font-cond); font-weight:700; font-size:1.05rem; color:var(--ice); }
.rb-hub-sub{ color:var(--ice-dim); font-size:.84rem; margin-top:5px; line-height:1.4; }
.rb-hub-go{ display:inline-block; margin-top:10px; color:var(--blue); font-size:.76rem; letter-spacing:.08em; text-transform:uppercase; font-weight:700; }
.rb-chips{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.rb-chip{ background:var(--panel-2,rgba(255,255,255,.04)); border:1px solid var(--line-strong); border-radius:999px; padding:5px 12px; font-size:.8rem; color:var(--ice-dim); }
.rb-chip b{ color:var(--ice); font-variant-numeric:tabular-nums; margin-right:4px; }

/* PUCK-686: guided walkthrough (R.tour) — spotlight + caption stepper.
   The wrap is transparent; the dim comes from the spotlight's huge box-shadow
   so the target shows through the "hole". Centered (no-target) steps flip to
   a plain dim via --nodim. The wrap eats every click while the tour runs. */
.rb-tour{ position:fixed; inset:0; z-index:9999; }
.rb-tour--nodim{ background:rgba(6,18,30,.62); }
.rb-tour-spot{ position:fixed; border-radius:10px; pointer-events:none;
  box-shadow:0 0 0 100vmax rgba(6,18,30,.62); border:2px solid rgba(47,172,229,.85);
  transition:left .18s, top .18s, width .18s, height .18s; }
.rb-tour-bubble{ position:fixed; background:var(--panel,#0E2233); border:1px solid var(--line-strong,rgba(255,255,255,.14));
  border-radius:12px; padding:12px 14px; box-shadow:0 18px 44px -12px rgba(0,0,0,.6); }
.rb-tour-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  font-family:var(--font-cond); font-size:1rem; color:var(--ice); }
.rb-tour-x{ background:none; border:none; color:var(--ice-dim); font-size:1.15rem; line-height:1; cursor:pointer; padding:0 2px; }
.rb-tour-x:hover{ color:var(--ice); }
.rb-tour-body{ color:var(--ice-dim); font-size:.87rem; line-height:1.45; margin-top:6px; }
.rb-tour-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:11px; }
.rb-tour-count{ color:var(--ice-dim); font-size:.72rem; letter-spacing:.06em; }
.rb-tour-btns{ display:flex; gap:8px; }

/* PUCK-686: page help strip (top of page) + collapsed "? Help" affordance */
.rb-help{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:rgba(47,172,229,.09);
  border:1px solid rgba(47,172,229,.35); border-radius:12px; padding:10px 14px; margin:0 0 14px; }
.rb-help-txt{ color:var(--ice); font-size:.9rem; }
.rb-help .rb-help-x{ margin-left:auto; background:none; border:none; color:var(--ice-dim); cursor:pointer; font-size:1.05rem; line-height:1; }
.rb-help .rb-help-x:hover{ color:var(--ice); }
.rb-help-mini{ background:var(--panel-2,rgba(255,255,255,.05)); border:1px solid var(--line-strong,rgba(255,255,255,.14));
  color:var(--ice-dim); border-radius:999px; padding:4px 12px; font-size:.78rem; cursor:pointer; margin:0 0 14px; }
.rb-help-mini:hover{ color:var(--ice); border-color:var(--blue); }

/* PUCK-689: narration controls in the tour bubble */
.rb-tour-audio{ background:var(--panel-2,rgba(255,255,255,.05)); border:1px solid var(--line-strong,rgba(255,255,255,.14));
  border-radius:8px; color:var(--ice); font-size:.85rem; line-height:1; padding:5px 8px; cursor:pointer; }
.rb-tour-audio:hover{ border-color:var(--blue); }
.rb-tour-audio[disabled]{ opacity:.45; cursor:default; }
