/* Waiver Wire, in the toolkit's look (stacks-jm-theme.css) and to the letter
   of docs/TOOLS-DESIGN-GUIDE.md: tokens only (no colours or fonts typed in),
   sharp corners, Archivo Black for the headline only. Built from the Bye Weeks
   and RB Handcuffs pieces (byes.css, handcuffs.css); only the shapes the
   system has no class for. */

/* The card every tool sits in (stacks-jm-theme.css lists its panels by id). */
body.stx-look-jm #ows-stacks #stx-panel-waivers{
  margin-top:0;padding:4px 30px 26px;
  border:1px solid var(--line);border-top:0;border-radius:0 0 2px 2px;
  background:var(--jm-card-bg);box-shadow:0 18px 50px -18px rgba(22,19,15,.35)
}
/* The old bar, when Sections is off: with the other Fantasy tabs. */
.ows-stacks .stx-tabs .stx-tab:is([data-tab="waivers"],[data-ltab="waivers"]){order:7}

/* ---- controls: position, then search (the guide's order) ------------------- */
#ows-stacks .stx-ww-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 26px;margin:4px 0 10px}
#ows-stacks .stx-ww-ctl{display:flex;flex-direction:column;gap:6px}
#ows-stacks .stx-ww-ctl .stx-label{margin:0}
#ows-stacks .stx-ww-ctl .stx-chips{margin:0;align-items:center}
#ows-stacks .stx-ww-find{flex:1 1 240px;max-width:340px}
body #ows-stacks .stx-ww .stx-search input{font-size:15px;padding:8px 11px}
#ows-stacks p.stx-ww-basis{margin:0 0 12px;font:500 13px/1.4 var(--sans);color:var(--muted)}
/* F4: the column's "Updated Tue 9:14 AM ET", very small, beside the writer's name. */
#ows-stacks p.stx-ww-basis small.stx-ww-upd{font-size:11.5px;color:var(--jm-ink-3);white-space:nowrap}
#ows-stacks p.stx-ww-basis a{color:var(--orange-dark);text-decoration:underline;text-underline-offset:2px}

#ows-stacks .stx-ww-ctl[hidden],#ows-stacks .stx-ww-layout[hidden],#ows-stacks p.stx-ww-key[hidden]{display:none!important}
#ows-stacks .stx-ww-layout{margin:0 0 12px}

/* ---- After waivers' Overview: the guide's top-10 board, Matchups' Overview (vsdef.css) copied.
        2 + 2: two lists across on a wide screen, one on a phone. ----------------- */
#ows-stacks .stx-ww-ov{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px;align-items:start;max-width:980px}
#ows-stacks .stx-ww-ov-col{min-width:0}
body #ows-stacks #stx-panel-waivers table.stx-ww-ov-table{width:100%;margin:0;table-layout:fixed;border-collapse:collapse;font-size:13px}
#ows-stacks .stx-ww-ov-table col.c-rk{width:26px}
#ows-stacks .stx-ww-ov-table col.c-faab{width:50px}
#ows-stacks .stx-ww-ov-table col.c-av{width:80px}
/* Two lists side by side need ~900px for five columns; narrower, one list across. */
@media (max-width:900px){
  #ows-stacks .stx-ww-ov{grid-template-columns:minmax(0,1fr)}
}
#ows-stacks .stx-ww-ov-table col.c-m{width:78px}
/* Whose leagues each Overview number counts (two sites): one quiet line above the lists. */
#ows-stacks p.stx-ww-ovkey{display:flex;flex-wrap:wrap;gap:4px 18px;margin:0 0 14px;font:500 12.5px/1.4 var(--sans);color:var(--muted)}
#ows-stacks p.stx-ww-ovkey b{color:var(--ink);font-weight:700;margin-right:4px}
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table th,body #ows-stacks #stx-panel-waivers .stx-ww-ov-table td{padding:6px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;border-bottom:1px solid var(--line)}
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table thead th{font-size:10.5px;letter-spacing:.06em;color:var(--jm-ink-3);border-bottom:2px solid var(--ink)}
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table thead th:first-child{font-size:12px;color:var(--ink)}
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table thead th:nth-child(n+2){text-align:right}
#ows-stacks .stx-ww-ov-rk{color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table td.stx-ww-ov-name{cursor:pointer}
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table td.stx-ww-ov-name b{font-size:13.5px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
/* The team code beside the name, not under it (the theme makes td small a block). */
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table td.stx-ww-ov-name small{display:inline;font-size:11px;color:var(--muted);font-weight:600}
#ows-stacks .stx-ww-ov-f{color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table td.stx-ww-ov-m{text-align:right;font-variant-numeric:tabular-nums}
body #ows-stacks #stx-panel-waivers .stx-ww-ov-table td.stx-ww-ov-m b{font-size:14px;color:var(--ink)}
#ows-stacks .stx-ww-ov-none{color:var(--muted);font-style:italic}
body #ows-stacks .stx-ww button.stx-ww-ov-all{all:unset;cursor:pointer;display:inline-block;margin:8px 0 0 4px;font:700 13px/1.2 var(--sans);color:var(--orange-dark);text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:3px}
#ows-stacks .stx-ww-ov-name .owr-chk{vertical-align:middle;margin-right:3px}
@media (max-width:600px){
  #ows-stacks .stx-ww-ov{grid-template-columns:minmax(0,1fr)}
  /* Narrower number columns so a name and its team fit on one line. */
  /* Five columns in 335px: tighter numbers, smaller headings, and the team code goes (the card has it). */
  #ows-stacks .stx-ww-ov-table col.c-rk{width:24px}
  #ows-stacks .stx-ww-ov-table col.c-faab{width:34px}
  #ows-stacks .stx-ww-ov-table col.c-av{width:62px}
  #ows-stacks .stx-ww-ov-table col.c-m{width:54px}
  #ows-stacks p.stx-ww-ovkey{flex-direction:column}
  body #ows-stacks #stx-panel-waivers .stx-ww-ov-table thead th{font-size:9.5px;letter-spacing:0;white-space:normal;overflow:visible;line-height:1.15;vertical-align:bottom}
  body #ows-stacks #stx-panel-waivers .stx-ww-ov-table thead th:first-child{font-size:12px}
  body #ows-stacks #stx-panel-waivers .stx-ww-ov-table td.stx-ww-ov-name small{display:none}
  body #ows-stacks #stx-panel-waivers .stx-ww-ov-table td{padding:6px 3px}
}

/* ---- the board ------------------------------------------------------------- */
body #ows-stacks #stx-panel-waivers table.stx-ww-table{width:100%;max-width:820px;margin:0;table-layout:fixed;border-collapse:collapse}
body #ows-stacks #stx-panel-waivers table.stx-ww-table.has-sched{max-width:980px}
body #ows-stacks #stx-panel-waivers .stx-ww-table th{padding:0 8px 6px;white-space:nowrap;vertical-align:bottom;color:var(--ink);border-bottom:2px solid var(--ink)}
body #ows-stacks #stx-panel-waivers .stx-ww-table th:first-child{width:46%}
/* Player, Picked up, FAAB, then the next four weeks on the right. */
body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched th:first-child{width:28%}
body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched th:nth-child(2){width:19%}
body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched th:nth-child(3){width:17%}
/* Five columns, both views: Player, Picked up, Rostered, FAAB, Next 4. */
body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched.is-five th:first-child{width:24%}
body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched.is-five th:nth-child(2){width:14%}
body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched.is-five th:nth-child(3){width:16%}
body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched.is-five th:nth-child(4){width:14%}
body #ows-stacks #stx-panel-waivers .stx-ww-table th.stx-ww-sched small{display:block;margin-top:2px}
body #ows-stacks #stx-panel-waivers .stx-ww-table td{padding:8px;font-size:14px;line-height:1.3;vertical-align:top;border-bottom:1px solid var(--line)}
/* Near the top of both lists: the guide's peach highlight does the pointing. */
body #ows-stacks #stx-panel-waivers .stx-ww-table tbody tr.is-key td{background:var(--hit)}

#ows-stacks .stx-ww-name{font-weight:700;font-size:15px;color:var(--ink)}
#ows-stacks .stx-ww-player small,
#ows-stacks .stx-ww-src small{display:block;margin-top:2px;font:500 12.5px/1.35 var(--sans);color:var(--muted)}
#ows-stacks .stx-ww-player small{letter-spacing:.03em}
#ows-stacks .stx-ww-src b{font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
#ows-stacks .stx-ww-src small{font-variant-numeric:tabular-nums}
#ows-stacks .stx-ww-src small span + span::before{content:" \00b7  "}
#ows-stacks .stx-ww-none{color:var(--jm-ink-3);font-style:italic;font-size:13px}
/* WW7: After › Full list headings sort. The heading's own look, a pointer, and an arrow on the sorted one. */
body #ows-stacks #stx-panel-waivers button.stx-ww-sort{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:4px;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}
body #ows-stacks #stx-panel-waivers button.stx-ww-sort:hover,body #ows-stacks #stx-panel-waivers button.stx-ww-sort:focus-visible{color:var(--orange-dark);text-decoration:underline;text-underline-offset:3px}
body #ows-stacks #stx-panel-waivers button.stx-ww-sort.is-on{color:var(--orange-dark)}
body #ows-stacks #stx-panel-waivers button.stx-ww-sort i{font-style:normal;font-size:9px;min-width:9px}
/* The phone's sort row (the headings it stands in for are hidden there). */
#ows-stacks .stx-ww-sortbar{display:none}
@media (max-width:600px){
  #ows-stacks .stx-ww-sortbar{display:flex;flex-direction:column;gap:6px;margin:0 0 10px}
  #ows-stacks .stx-ww-sortbar .stx-label{margin:0}
  #ows-stacks .stx-ww-sortbar .stx-chips{margin:0}
}
/* Before waivers (our column): a position line between groups, and the writer's note under the name. */
body #ows-stacks #stx-panel-waivers .stx-ww-table tr.stx-ww-grp th{padding:14px 8px 6px;text-align:left;font:800 13px/1.2 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--ink);background:transparent;border-bottom:1px solid var(--ink)}
/* The writer's words under his player: the row's full width, plain reading text, one rule under both rows.
   No striping in the column view, so a player and his words read as one block. */
body #ows-stacks #stx-panel-waivers .stx-ww-table.is-before tbody td{background:transparent}
body #ows-stacks #stx-panel-waivers .stx-ww-table tr.has-note td{border-bottom:0;padding-bottom:4px}
body #ows-stacks #stx-panel-waivers .stx-ww-table tr.stx-ww-blurb td{padding:0 8px 14px 36px;border-bottom:1px solid var(--line)}
#ows-stacks .stx-ww-blurb p{margin:0 0 6px;max-width:86ch;font:400 14px/1.5 var(--sans);color:var(--muted)}
#ows-stacks .stx-ww-blurb p:last-child{margin-bottom:0}
#ows-stacks .stx-ww-blurb a.stx-ww-by{font-weight:700;color:var(--orange-dark);text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:2px}
#ows-stacks .stx-ww-blurb b.stx-ww-by{font-weight:700;color:var(--ink)}
/* The player cell's lines: name, "QB · MIN · Wk 5: 100% snaps", "30 attempts, 10 carries". A piece never
   splits, and all the lines start at the same edge: My Research's tick sits in the gutter on the left
   instead of floating into the text (which pushed the second line under it). */
#ows-stacks .stx-ww-u{white-space:nowrap}
#ows-stacks .stx-ww-player small.stx-ww-work{margin-top:1px}
body #ows-stacks #stx-panel-waivers .stx-ww-table td.stx-ww-player{position:relative;padding-left:36px}
body #ows-stacks #stx-panel-waivers .stx-ww-table td.stx-ww-player .owr-chk{position:absolute;left:8px;top:8px;float:none;margin:0}
/* Staff: the column editor (closed by default), plain form pieces in the toolkit's look. */
#ows-stacks .stx-ww-editwrap[hidden]{display:none!important}
#ows-stacks .stx-ww-edit{margin:22px 0 0;max-width:640px}
#ows-stacks .stx-ww-edit > summary{cursor:pointer;font:700 14px/1.3 var(--sans);color:var(--orange-dark)}
#ows-stacks .stx-ww-form{display:flex;flex-direction:column;gap:6px;margin-top:10px}
#ows-stacks .stx-ww-form .stx-label{margin:8px 0 0}
body #ows-stacks .stx-ww-form input,body #ows-stacks .stx-ww-form textarea{width:100%;box-sizing:border-box;padding:8px 10px;border:1.5px solid var(--ink);border-radius:4px;background:#fff;font:400 14px/1.4 var(--sans);color:var(--ink)}
body #ows-stacks .stx-ww-form input[type=number]{max-width:110px}
#ows-stacks .stx-ww-form-go{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 0}
#ows-stacks .stx-ww-form-msg{font-size:13px;color:var(--muted)}
/* Before waivers: his snap share's move. Up in dark orange, down in grey (no green: Aaron, 2026-10-20). */
#ows-stacks .stx-ww-move{font-weight:700;color:var(--jm-ink-3)}
#ows-stacks .stx-ww-move.is-up{color:var(--orange-dark)}
#ows-stacks .stx-ww-table th small{text-transform:none;letter-spacing:0}

/* The next four weeks: Strength of Schedule's squares, small. The shade is set inline (Matchups' colours). */
#ows-stacks .stx-ww-next{display:flex;gap:4px}
#ows-stacks .stx-ww-sq{
  display:flex;align-items:center;justify-content:center;flex:1 1 0;min-width:0;max-width:62px;height:30px;
  border:1px solid var(--line);border-radius:2px;
  font:700 11px/1 var(--sans);font-style:normal;letter-spacing:.02em;color:var(--ink);white-space:nowrap
}
#ows-stacks .stx-ww-sq.is-bye{border-style:dashed;background:transparent;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--jm-ink-3)}
#ows-stacks p.stx-ww-key{display:flex;flex-wrap:wrap;gap:4px 16px;margin:-6px 0 12px;font:500 12.5px/1.4 var(--sans);color:var(--muted)}
#ows-stacks p.stx-ww-key span{display:inline-flex;align-items:center;gap:6px}
#ows-stacks .stx-ww-sw{display:inline-block;width:14px;height:14px;border:1px solid var(--line);border-radius:2px}
#ows-stacks .stx-ww-sw.is-soft{background:rgba(255,122,0,.5)}
#ows-stacks .stx-ww-sw.is-tough{background:rgba(23,21,18,.15)}

/* Secondary: outline only, ink border, no fill. */
body #ows-stacks .stx-ww button.stx-ww-more{
  display:inline-block;margin:14px 0 0;padding:8px 14px;cursor:pointer;
  border:1.5px solid var(--ink);border-radius:4px;background:transparent;
  font:700 14px/1.2 var(--sans);color:var(--ink)
}
body #ows-stacks .stx-ww button.stx-ww-more:hover{background:var(--hit)}

#ows-stacks .stx-ww-empty{margin:20px 0 0;color:var(--muted);font-size:15px}
/* The one fold sits first, under the headline's sentence (HW2). */
#ows-stacks .stx-ww-how{margin:0 0 14px}
#ows-stacks .stx-ww-how p{max-width:80ch;font-size:14px;line-height:1.5}

/* Phone: the four columns keep their places, a little tighter; the four weeks stack. */
/* Phone, five columns (both views): each player stacks. Name across the top, the three numbers
   side by side with their labels, the four weeks across the bottom. No sideways scroll. */
@media (max-width:600px){
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five,
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tbody{display:block;width:100%}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five thead{display:none}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px;row-gap:6px;padding:10px 4px;border-bottom:1px solid var(--line)}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tbody td{display:block;padding:0;border:0;background:transparent}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five td.stx-ww-player,
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five td.stx-ww-sched{grid-column:1 / -1}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five td.stx-ww-src::before{content:attr(data-l);display:block;margin-bottom:2px;font:700 10px/1.2 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--jm-ink-3)}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five .stx-ww-next{flex-direction:row;gap:4px}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five .stx-ww-sq{flex:1 1 0;width:auto;height:26px;font-size:11px;letter-spacing:.02em}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tbody tr.has-note{border-bottom:0;padding-bottom:4px}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tbody tr.stx-ww-blurb{display:block;padding:0 4px 12px;border-bottom:1px solid var(--line)}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tr.stx-ww-blurb td{padding:0 0 0 28px}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tbody td.stx-ww-player{position:relative;padding-left:28px}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five td.stx-ww-player .owr-chk{left:0;top:0}
  /* Another sheet pads a phone cell's small lines for a floating tick; this tick sits in the gutter. */
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five td.stx-ww-player small{padding-left:0;margin-left:0}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tr.stx-ww-grp{display:block;padding:14px 0 0;border:0}
  body #ows-stacks #stx-panel-waivers table.stx-ww-table.is-five tr.stx-ww-grp th{display:block;padding:0 0 6px}
}
@media (max-width:600px){
  body.stx-look-jm #ows-stacks #stx-panel-waivers{padding:4px 12px 20px}
  #ows-stacks .stx-ww-controls{gap:12px}
  #ows-stacks .stx-ww-ctl{width:100%}
  #ows-stacks .stx-ww-find{max-width:none}
  body #ows-stacks #stx-panel-waivers .stx-ww-table th{padding:0 5px 6px;white-space:normal}
  body #ows-stacks #stx-panel-waivers .stx-ww-table th:first-child{width:49%}
  body #ows-stacks #stx-panel-waivers .stx-ww-table th small{display:block}
  body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched th:first-child{width:auto}
  body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched th:nth-child(2){width:23%}
  body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched th:nth-child(3){width:21%}
  body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched th.stx-ww-sched{width:52px}
  body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched.is-five th:first-child{width:auto}
  body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched.is-five th:nth-child(2),
  body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched.is-five th:nth-child(3),
  body #ows-stacks #stx-panel-waivers .stx-ww-table.has-sched.is-five th:nth-child(4){width:19%}
  #ows-stacks .stx-ww-next{flex-direction:column;gap:2px}
  #ows-stacks .stx-ww-sq{flex:none;width:100%;max-width:none;height:22px;font-size:9.5px;letter-spacing:-.05em}
  #ows-stacks .stx-ww-sq.is-bye{font-size:8.5px;letter-spacing:.02em}
  body #ows-stacks #stx-panel-waivers .stx-ww-table td{padding:8px 5px;font-size:13.5px}
  #ows-stacks .stx-ww-name{font-size:14px;overflow-wrap:anywhere}
  #ows-stacks .stx-ww-src b{font-size:13.5px}
  #ows-stacks .stx-ww-src small,#ows-stacks .stx-ww-player small{font-size:12px}
  #ows-stacks .stx-ww-src small span{display:block}
  #ows-stacks .stx-ww-src small span + span::before{content:none}
}
