/* ==========================================================================
   WAIVER WIRE — the section's own stylesheet.

   ONE FILE, BOTH PLATFORMS. The desktop shell and the app shell are thin and
   differ only in what a browser tab needs versus what Capacitor needs; every
   rule that decides how the Waiver Wire LOOKS lives here, so the three
   platforms cannot drift apart. It depends on nothing else — not _la.css, not
   mobile_base.css — because it has to render identically in both.

   The design is concept 7E: a fixed rail carrying the five sections, and a
   grid of tiles each washed in its club's own colours with the enamel crest
   sitting on it. Club colour is decoration; the VERDICT colours (priority,
   drop status) are semantic and never borrow a team's palette.
   ========================================================================== */
/* The tokens are declared on all three roots, not just .ww: the scrim and the
   player sheet are SIBLINGS of #wwRoot in the shell (they have to be, to sit
   above the rail's stacking context), so scoping the custom properties to .ww
   alone left every var() in the sheet unresolved — which is why it rendered
   with a transparent background and the page showed through it. Scoped rather
   than hoisted to :root so nothing here can collide with mobile_base.css. */
.ww,.ww-scrim,.ww-sheet{
  --bg:#0f1011; --p1:#141517; --p2:#1a1c1f; --p3:#212428;
  --line:#24262a; --line2:#31343a;
  --ink:#edeef0; --ink2:#9aa0a8; --ink3:#6b6f75;
  --gold:#d9a441;
  --good:#34d399; --warn:#fbbf24; --bad:#f87171; --info:#38bdf8; --vio:#a78bfa;
  /* The app's own face where the page that loads this already has it, and a
     native stack everywhere else — this file deliberately pulls in no webfont
     of its own so it renders identically offline inside Capacitor. */
  --font:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,system-ui,sans-serif;
  --disp:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,system-ui,sans-serif;
  --mono:ui-monospace,SFMono-Regular,'JetBrains Mono',Menlo,monospace;
  --safe-t:env(safe-area-inset-top,0px);
  --safe-b:env(safe-area-inset-bottom,0px);
}
.ww{
  background:var(--bg); color:var(--ink); font-family:var(--font);
  display:flex; min-height:100vh; min-height:100dvh;
  -webkit-font-smoothing:antialiased;
}
/* the sheet is outside .ww, so it needs the same base or it inherits the host
   page's font and colour instead of this section's */
.ww-sheet{color:var(--ink); font-family:var(--font); -webkit-font-smoothing:antialiased}
.ww *,.ww-sheet *{box-sizing:border-box}
.ww h1,.ww h2,.ww h3,.ww h4,.ww h5,.ww p,.ww ul,
.ww-sheet h1,.ww-sheet h2,.ww-sheet h3,.ww-sheet h4,.ww-sheet h5,
.ww-sheet p,.ww-sheet ul{margin:0}
.ww ul,.ww-sheet ul{padding:0;list-style:none}
.ww button,.ww-sheet button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.ww img,.ww-sheet img{display:block}

/* ---------- the rail ---------------------------------------------------- */
.ww-rail{
  flex:none; width:186px; background:#141517; border-right:1px solid var(--line);
  padding:calc(var(--safe-t) + 16px) 0 16px; position:sticky; top:0; align-self:flex-start;
  height:100vh; height:100dvh; overflow-y:auto;
}
.ww-brand{display:flex; align-items:center; gap:10px; padding:0 14px 14px;
  border-bottom:1px solid var(--line); margin-bottom:8px}
.ww-home{width:44px;height:44px;flex:none;border-radius:12px;border:1px solid var(--line2);
  background:var(--p3);display:flex;align-items:center;justify-content:center}
.ww-home svg{width:20px;height:20px;fill:none;stroke:var(--ink2);stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round}
.ww-home:active{background:var(--line2)}
.ww-brand .bt b{display:block;font:800 14px/1.15 var(--disp);letter-spacing:-.01em}
/* nowrap: the rail leaves ~104px for this line and "WEEK 2 · HALF-PPR" at .14em
   lands a hair over, so it broke after HALF-. Tighter tracking, one line. */
.ww-brand .bt s{display:block;text-decoration:none;font:600 10px/1 var(--mono);
  letter-spacing:.1em;color:var(--ink3);margin-top:5px;white-space:nowrap}
.ww-nav button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  padding:10px 14px;border-left:3px solid transparent}
.ww-nav .ic{width:24px;height:24px;flex:none;border-radius:7px;display:flex;align-items:center;
  justify-content:center;font:800 10px/1 var(--mono);letter-spacing:.02em}
.ww-nav .tx{flex:1;min-width:0}
.ww-nav .t{display:block;font:700 12px/1.2 var(--font)}
.ww-nav .c{display:block;font:600 10px/1 var(--mono);color:var(--ink3);margin-top:4px;
  letter-spacing:.08em}
.ww-nav button.on{background:var(--p2)}
.ww-nav button:focus-visible{outline:2px solid var(--info);outline-offset:-2px}
/* League tools — a destination, not a section, so it sits below a rule and
   reads quieter than the five that switch the page in place. */
.ww-lt{display:flex;align-items:center;gap:10px;width:100%;box-sizing:border-box;
  min-height:44px;padding:13px 14px 10px;margin-top:7px;text-decoration:none;
  color:inherit;border-top:1px solid var(--line);border-left:3px solid transparent}
.ww-lt .ic{background:rgba(139,144,153,.14);color:var(--ink3)}
.ww-lt .t{color:var(--ink2)}
.ww-lt:hover{background:var(--p2)}
.ww-lt:hover .t{color:var(--ink)}
.ww-lt:focus-visible{outline:2px solid var(--info);outline-offset:-2px}

/* ---------- the body ---------------------------------------------------- */
.ww-body{flex:1;min-width:0;padding:calc(var(--safe-t) + 16px) 20px calc(var(--safe-b) + 30px);
  max-width:1240px}
.ww-hd{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;
  padding-bottom:13px;border-bottom:1px solid var(--line);margin-bottom:16px}
.ww-hd h2{font:800 22px/1 var(--disp);letter-spacing:-.02em}
.ww-hd .s{font:600 10.5px/1.4 var(--mono);color:var(--ink3);letter-spacing:.1em;margin-top:7px}
.ww-cd{margin-left:auto;text-align:right;font:600 10.5px/1.45 var(--mono);
  color:var(--warn);letter-spacing:.06em}
.ww-cd b{display:block;font:800 15px/1 var(--disp);color:var(--ink);letter-spacing:-.01em;
  margin-top:4px;font-variant-numeric:tabular-nums}

/* the 30-second version, above the board */
.ww-tldr{background:linear-gradient(120deg,#152030,var(--p1));border:1px solid var(--line);
  border-left:3px solid var(--info);border-radius:13px;padding:14px 16px;margin-bottom:16px}
.ww-tldr h3{font:800 10px/1 var(--mono);letter-spacing:.18em;color:var(--info);margin-bottom:10px}
.ww-tldr .r{display:flex;gap:9px;padding:5px 0;font-size:12.5px;color:var(--ink2);line-height:1.45}
.ww-tldr .r s{text-decoration:none;flex:none;width:46px;font:700 10px/1.6 var(--mono);
  letter-spacing:.12em;color:var(--ink3)}
.ww-tldr .r b{color:var(--ink);font-weight:700}

.ww-grp{display:flex;align-items:center;gap:9px;font:700 10.5px/1 var(--mono);
  letter-spacing:.18em;color:var(--ink2);margin:20px 0 10px}
.ww-grp:first-child{margin-top:0}
.ww-grp:after{content:'';flex:1;height:1px;background:var(--line)}
.ww-grp em{font-style:normal;color:var(--ink3);letter-spacing:.06em}

/* ---------- the tile, the unit the whole section is built from ---------- */
.ww-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(226px,1fr));gap:11px}
.ww-tile{border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--p1);
  display:flex;flex-direction:column;text-align:left;width:100%}
.ww-tile:focus-visible{outline:2px solid var(--info);outline-offset:2px}
.ww-tile .art{padding:12px 13px 11px;display:flex;align-items:center;gap:10px;position:relative}
.ww-pin{width:40px;height:40px;flex:none;border-radius:9px;object-fit:contain}
.ww-pin.ph{display:flex;align-items:center;justify-content:center;font:800 11px/1 var(--mono);
  background:#2a2d31;color:#cbd0d6}
.ww-tile .ab{font:800 10.5px/1 var(--mono);letter-spacing:.1em}
.ww-tile .rp{margin-left:auto;font:800 11.5px/1 var(--disp);background:rgba(0,0,0,.36);
  border-radius:999px;padding:5px 8px;letter-spacing:-.01em}
.ww-tile .bd{padding:0 13px 13px;flex:1;display:flex;flex-direction:column}
.ww-tile h4{font:700 14.5px/1.18 var(--font);letter-spacing:-.01em}
.ww-tile .sub{font:600 10px/1 var(--mono);color:var(--ink3);margin-top:5px;letter-spacing:.08em}
.ww-tile p{font-size:11px;color:var(--ink2);line-height:1.48;margin-top:8px;flex:1}
.ww-tile .ft{display:flex;justify-content:space-between;align-items:center;gap:8px;
  margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}
.ww-tile .ft s{text-decoration:none;font:600 10px/1 var(--mono);color:var(--ink3);letter-spacing:.1em}
.ww-tile .ft b{font:800 13px/1 var(--disp);letter-spacing:-.01em}
.ww-tile.on{border-color:var(--line2)}

/* the top pickup gets the full width of the grid */
.ww-hero{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:18px;
  border-radius:16px;overflow:hidden;border:1px solid var(--line);background:var(--p1);
  padding:0;text-align:left;width:100%}
.ww-hero .side{padding:18px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:10px;min-width:158px}
.ww-hero .side .ww-pin{width:62px;height:62px;border-radius:14px}
.ww-hero .side .sc{text-align:center}
.ww-hero .side .sc b{font:800 32px/1 var(--disp);letter-spacing:-.03em;display:block}
.ww-hero .side .sc s{text-decoration:none;font:700 10px/1 var(--mono);letter-spacing:.16em;
  display:block;margin-top:5px;opacity:.8}
.ww-hero .main{padding:16px 18px 17px;min-width:0}
.ww-hero .eyebrow{font:800 10px/1 var(--mono);letter-spacing:.2em;color:var(--gold)}
.ww-hero h3{font:800 25px/1.05 var(--disp);letter-spacing:-.025em;margin-top:9px}
.ww-hero .meta{font:600 10px/1 var(--mono);color:var(--ink3);letter-spacing:.07em;margin-top:8px}
.ww-hero p{font-size:12.5px;color:var(--ink2);line-height:1.5;margin-top:10px;max-width:62ch}
.ww-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.ww-chip{font:700 10.5px/1 var(--mono);letter-spacing:.1em;padding:6px 9px;border-radius:999px;
  border:1px solid var(--line2);color:var(--ink2)}
.ww-chip.pay{border-color:var(--gold);color:var(--gold)}

/* ---------- rows (FAAB, drops, next week) ------------------------------- */
.ww-row{display:grid;grid-template-columns:40px 1fr auto;gap:13px;align-items:center;
  background:var(--p1);border:1px solid var(--line);border-radius:11px;padding:11px 14px;
  margin-bottom:6px;width:100%;text-align:left}
.ww-row .nm{display:block;font:700 14px/1.18 var(--font)}
.ww-row .sb{display:block;font:600 10.5px/1.35 var(--mono);color:var(--ink3);margin-top:5px;
  letter-spacing:.06em}
.ww-row .rt{text-align:right;display:flex;align-items:center;gap:14px}
.ww-row .pct b{font:900 24px/1 var(--disp);letter-spacing:-.03em;display:block}
.ww-row .pct s{text-decoration:none;font:600 10px/1 var(--mono);color:var(--ink3);
  letter-spacing:.1em;display:block;margin-top:5px}
.ww-row .plan{font-size:10.5px;color:var(--ink2);line-height:1.4;max-width:180px;text-align:right}
.ww-row .plan b{display:block;font:700 10px/1 var(--mono);letter-spacing:.11em;margin-bottom:5px}
.ww-badge{display:inline-block;font:800 10px/1 var(--mono);letter-spacing:.1em;
  padding:6px 9px;border-radius:4px;white-space:nowrap}

/* the FAAB budget meter */
.ww-meter{background:var(--p1);border:1px solid var(--line);border-radius:13px;
  padding:14px 16px;margin-bottom:15px}
.ww-meter .t{display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  font:600 10.5px/1.4 var(--mono);letter-spacing:.1em;color:var(--ink3)}
.ww-meter .t b{font:800 22px/1 var(--disp);color:var(--gold);letter-spacing:-.02em}
.ww-meter .bar{height:13px;border-radius:7px;background:var(--p3);margin-top:11px;
  display:flex;overflow:hidden;gap:1px}
.ww-meter .bar i{display:block;height:100%}
.ww-meter .lg{display:flex;flex-wrap:wrap;gap:12px;margin-top:11px;
  font:600 10px/1 var(--mono);color:var(--ink2);letter-spacing:.05em}
.ww-meter .lg span{display:flex;align-items:center;gap:6px}
.ww-meter .lg i{width:8px;height:8px;border-radius:2px;display:block}
.ww-meter .note{font-size:11.5px;color:var(--ink3);line-height:1.5;margin-top:11px;
  padding-top:11px;border-top:1px solid var(--line)}

/* ---------- injury swaps ------------------------------------------------ */
.ww-swap{background:var(--p1);border:1px solid var(--line);border-radius:14px;
  overflow:hidden;margin-bottom:10px}
.ww-swap .top{display:grid;grid-template-columns:1fr 58px 1fr;align-items:center;gap:10px;
  padding:14px 16px}
.ww-side{display:flex;align-items:center;gap:11px;min-width:0}
.ww-side.r{flex-direction:row-reverse;text-align:right}
.ww-side .ww-pin{width:42px;height:42px}
.ww-side h4{font:700 15px/1.18 var(--font)}
.ww-side .st{font:600 10.5px/1.4 var(--mono);margin-top:5px;letter-spacing:.04em}
.ww-arrow{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--ink3)}
.ww-arrow .a{font:800 18px/1 var(--disp)}
.ww-arrow s{text-decoration:none;font:700 10px/1 var(--mono);letter-spacing:.1em;text-align:center}
.ww-swap .bt{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);
  border-top:1px solid var(--line)}
.ww-swap .bt div{background:#121417;padding:9px 12px}
.ww-swap .bt s{text-decoration:none;display:block;font:600 10px/1 var(--mono);letter-spacing:.11em;
  color:var(--ink3)}
.ww-swap .bt b{display:block;font:700 12px/1.25 var(--font);margin-top:6px}

/* ---------- the player sheet ------------------------------------------- */
.ww-scrim{position:fixed;inset:0;background:rgba(0,0,0,.66);z-index:80;opacity:0;
  pointer-events:none;transition:opacity .18s}
.ww-scrim.on{opacity:1;pointer-events:auto}
.ww-sheet{position:fixed;z-index:81;background:var(--p1);border:1px solid var(--line2);
  display:flex;flex-direction:column;transition:transform .22s cubic-bezier(.4,0,.2,1)}
@media(min-width:721px){
  .ww-sheet{top:0;right:0;bottom:0;width:min(480px,94vw);border-radius:0;
    transform:translateX(101%);border-right:0}
  .ww-sheet.on{transform:none}
}
@media(max-width:720px){
  .ww-sheet{left:0;right:0;bottom:0;max-height:88vh;border-radius:20px 20px 0 0;
    transform:translateY(101%);border-bottom:0}
  .ww-sheet.on{transform:none}
}
.ww-sheet .sh{display:flex;align-items:center;gap:12px;padding:16px 16px 14px;
  border-bottom:1px solid var(--line);padding-top:calc(var(--safe-t) + 16px)}
.ww-sheet .sh .ww-pin{width:46px;height:46px}
.ww-sheet .sh h3{font:800 19px/1.1 var(--disp);letter-spacing:-.02em}
.ww-sheet .sh .m{font:600 10.5px/1 var(--mono);color:var(--ink3);margin-top:6px;letter-spacing:.08em}
/* 44×44: it is the only way out of the sheet on a phone, and App Review
   measures it the same way it measures the Home button. */
.ww-sheet .x{margin-left:auto;width:44px;height:44px;flex:none;border-radius:12px;
  border:1px solid var(--line2);background:var(--p3);display:flex;align-items:center;
  justify-content:center;font:700 17px/1 var(--font);color:var(--ink2)}
.ww-sheet .sb{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:16px 16px calc(var(--safe-b) + 22px)}
.ww-sheet .kpi{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:11px;overflow:hidden;margin-bottom:15px}
.ww-sheet .kpi div{background:#121417;padding:10px 8px;text-align:center}
.ww-sheet .kpi s{text-decoration:none;display:block;font:600 10px/1 var(--mono);
  letter-spacing:.1em;color:var(--ink3)}
.ww-sheet .kpi b{display:block;font:800 16px/1 var(--disp);margin-top:6px;letter-spacing:-.02em}
.ww-sheet h5{font:700 10.5px/1 var(--mono);letter-spacing:.18em;color:var(--ink3);
  margin:16px 0 9px;display:flex;align-items:center;gap:9px}
.ww-sheet h5:first-child{margin-top:0}
.ww-sheet h5:after{content:'';flex:1;height:1px;background:var(--line)}
.ww-sheet .why{font-size:13px;line-height:1.58;color:var(--ink2)}
.ww-sheet .use{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);
  border-radius:10px;overflow:hidden}
.ww-sheet .use div{background:#121417;display:flex;justify-content:space-between;gap:12px;
  padding:9px 12px;font-size:12px}
.ww-sheet .use span{color:var(--ink3)}
.ww-sheet .use b{font-weight:700;text-align:right}
.ww-sheet .sched{display:flex;gap:7px;flex-wrap:wrap}
.ww-sheet .sched div{flex:1;min-width:62px;border:1px solid var(--line);border-radius:9px;
  padding:9px 8px;text-align:center;background:#121417}
.ww-sheet .sched s{text-decoration:none;display:block;font:700 10px/1 var(--mono);
  letter-spacing:.1em;color:var(--ink3)}
.ww-sheet .sched b{display:block;font:700 11.5px/1 var(--font);margin-top:6px}
.ww-sheet .rec{background:#121417;border:1px solid var(--line);border-left:3px solid var(--gold);
  border-radius:10px;padding:12px 14px;font-size:12.5px;line-height:1.5;color:var(--ink2)}

.ww-foot{margin-top:26px;padding-top:16px;border-top:1px solid var(--line);
  font-size:11px;line-height:1.55;color:var(--ink3)}
.ww-empty{padding:34px 16px;text-align:center;color:var(--ink3);font-size:13px;line-height:1.6}

/* ---------- the phone --------------------------------------------------- */
@media(max-width:720px){
  .ww{flex-direction:column;min-height:auto}
  .ww-rail{width:100%;height:auto;position:sticky;top:0;z-index:40;border-right:0;
    border-bottom:1px solid var(--line);
    /* max(), not the raw inset: on a phone with no notch env() answers 0 and
       the Home button lands inside the status bar's own tap region */
    padding:calc(max(env(safe-area-inset-top,0px),20px) + 8px) 0 0;
    background:rgba(20,21,23,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    overflow:visible}
  .ww-brand{padding:0 12px 10px;margin-bottom:0}
  .ww-nav{display:flex;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .ww-nav::-webkit-scrollbar{display:none}
  .ww-nav button{flex:none;flex-direction:column;gap:6px;padding:9px 13px 10px;
    border-left:0;border-bottom:3px solid transparent;text-align:center;width:auto;min-width:76px}
  .ww-nav button.on{background:none}
  /* in the strip it is just the last chip; the rule and the indent are a
     vertical-rail idea and do not survive the rotation */
  .ww-lt{flex:none;flex-direction:column;gap:6px;padding:9px 13px 10px;width:auto;
    min-width:76px;text-align:center;margin-top:0;border-top:0;border-left:0}
  .ww-nav .c{display:none}
  .ww-nav .t{font-size:10px;line-height:1.15}
  .ww-body{padding:14px 14px calc(var(--safe-b) + 26px);max-width:none}
  .ww-hd h2{font-size:19px}
  .ww-cd{margin-left:0;width:100%;text-align:left;display:flex;align-items:baseline;gap:8px}
  .ww-cd b{margin-top:0}
  .ww-grid{grid-template-columns:1fr 1fr;gap:9px}
  .ww-hero{grid-template-columns:1fr}
  .ww-hero .side{flex-direction:row;justify-content:flex-start;gap:14px;padding:14px 16px;
    min-width:0}
  .ww-hero .side .sc{text-align:left}
  .ww-hero .main{padding:0 16px 16px}
  .ww-hero h3{font-size:21px}
  .ww-row{grid-template-columns:40px 1fr;row-gap:10px}
  .ww-row .rt{grid-column:1/-1;justify-content:space-between;text-align:left}
  .ww-row .plan{text-align:left;max-width:none}
  .ww-swap .top{grid-template-columns:1fr;gap:12px}
  .ww-side.r{flex-direction:row;text-align:left}
  .ww-arrow{flex-direction:row;gap:9px;justify-content:flex-start}
  .ww-swap .bt{grid-template-columns:1fr 1fr}
  .ww-sheet .kpi{grid-template-columns:1fr 1fr}
}
@media(max-width:400px){
  .ww-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  .ww-sheet,.ww-scrim{transition:none}
}

/* 1.1: the board's Share button */
.ww-hd .mbp-share{margin-left:auto;align-self:center;border-color:rgba(255,255,255,.2);color:#d6d8de}
.ww-hd .mbp-share:hover{border-color:rgba(255,255,255,.4);color:#fff}
