/* league-hub-phone.css — League Hub on a phone: ONE LINE PER ROW, COLUMNS THAT LINE UP.
   Mike, 2026-11-14: "nothing looks lined up and there is too much info in each slot" (16:47 ET); approved the
   layouts on the "AllandaleSports app — phone layouts" canvas (16:56) and "lets do it" (17:36).
   Measured before this file (scripts/census-phone-core.js, 390 wide): My Team's active roster 149px per player,
   the Standings tab 116px per team — the stacked label-over-value cards hub-mobile-tables.js makes of every table.
   Loaded after franchise-workspace.css; every rule is inside max-width:768px, so desktop is untouched.
   Checked by scripts/verify-hub-phone-rows.js. */

.mt-phone-actions{display:none}

@media (max-width:768px){

 /* ── THE TAB STRIP: the four a member uses, across the width — Home, My Team (data-tab="lineup"), Schedule,
       Standings. The rest stay one tap away under More
       (the bottom bar's sheet is built from the tab buttons, so hiding them here hides nothing there). ── */
 html.as-workspace body.hub-broadcast.franchise-workspace #page #tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0!important;overflow:visible!important}
 html.as-workspace body.hub-broadcast.franchise-workspace #page #tabs .tab{display:none!important}
 html.as-workspace body.hub-broadcast.franchise-workspace #page #tabs .tab:is([data-tab="home"],[data-tab="lineup"],[data-tab="schedule"],[data-tab="standings"]){display:flex!important;align-items:center;justify-content:center;min-width:0;padding:12px 2px!important;font-size:13px!important;letter-spacing:.6px!important;white-space:nowrap}

 /* ── STANDINGS TAB: # | Team | W-L-T | PF. Owner, PA and Diff are on the desktop table. ── */
 #page #panel-standings .hub-fit-table thead{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip-path:none!important;display:block}
 #page #panel-standings .hub-fit-table thead tr,
 #page #panel-standings .hub-fit-table tbody tr{display:grid!important;grid-template-columns:28px minmax(0,1fr) 58px 64px!important;align-items:center;gap:0 8px!important;padding:0 4px!important;min-height:46px;border-bottom:1px solid #22343f}
 #page #panel-standings .hub-fit-table thead tr{min-height:30px}
 #page #panel-standings .hub-fit-table th{padding:0!important;border:0!important;background:transparent!important;font-size:11px!important;letter-spacing:.6px;color:#9fb3bf}
 #page #panel-standings .hub-fit-table :is(th,td):nth-child(3),
 #page #panel-standings .hub-fit-table :is(th,td):nth-child(6),
 #page #panel-standings .hub-fit-table :is(th,td):nth-child(7){display:none!important}
 #page #panel-standings .hub-fit-table :is(th,td):nth-child(1){grid-column:1;grid-row:1;text-align:left!important}
 #page #panel-standings .hub-fit-table :is(th,td):nth-child(2){grid-column:2;grid-row:1;min-width:0;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important}
 #page #panel-standings .hub-fit-table :is(th,td):nth-child(4){grid-column:3;grid-row:1;text-align:right!important}
 #page #panel-standings .hub-fit-table :is(th,td):nth-child(5){grid-column:4;grid-row:1;text-align:right!important}
 #page #panel-standings .hub-fit-table tbody td{font-size:15px!important;line-height:1.2}
 #page #panel-standings .hub-fit-table tbody td::before{content:none!important}
 #page #panel-standings .hub-fit-table tbody td:nth-child(5){color:#9fb3bf}
 #page #panel-standings .hub-fit-table tbody tr.mine{background:#1b2f3a!important}
 /* the playoff line: under the last seed the server names */
 #page #panel-standings .hub-fit-table tbody tr.playoff + tr:not(.playoff){box-shadow:inset 0 2px 0 #f1ac71}

 /* ── ROSTER MANAGEMENT TAB (data-tab="myteam"; its label is Roster Management, the "My Team" tab is the lineup):
       seat | player | team. Starters first, then the bench; Drop and the cut boxes appear on
       "Edit roster". ── */
 #page #panel-myteam .mt-phone-actions{display:flex;gap:8px;margin-left:auto}
 #page #panel-myteam .mt-btn{min-height:44px;padding:0 14px;border:1px solid #22343f;border-radius:6px;background:transparent;color:#f3f6f8;font:600 14px Barlow,system-ui,sans-serif;letter-spacing:0;text-transform:none;cursor:pointer}
 #page #panel-myteam .mt-btn[aria-pressed="true"]{border-color:#f1ac71;color:#f1ac71}
 #page #panel-myteam .hub-fit-table tbody{display:flex!important;flex-direction:column}
 #page #panel-myteam .hub-fit-table tbody tr{display:grid!important;grid-template-columns:52px minmax(0,1fr) auto!important;align-items:center;gap:0 8px!important;padding:0!important;min-height:46px;border-bottom:1px solid #22343f;order:100}
 #page #panel-myteam .hub-fit-table tbody tr.mt-starter{order:var(--mt-order,50)}
 #page #panel-myteam .hub-fit-table tbody td::before{content:none!important}
 #page #panel-myteam .hub-fit-table tbody td{grid-row:1}
 #page #panel-myteam .hub-fit-table tbody td[data-column="Pos"]{grid-column:1;font:700 13px 'Barlow Condensed',sans-serif!important;letter-spacing:.4px;color:#9fb3bf}
 #page #panel-myteam .hub-fit-table tbody tr.mt-starter td[data-column="Pos"]{color:#f1ac71}
 #page #panel-myteam .hub-fit-table tbody tr.mt-starter .mt-pos{display:none}
 #page #panel-myteam .hub-fit-table tbody td[data-column="Player"]{grid-column:2;min-width:0;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important;font-size:15px!important}
 #page #panel-myteam .hub-fit-table tbody td[data-column="Player"] strong{font-weight:600}
 /* The injury designation stays visible: the NAME gives way to the ellipsis, the tag never does. */
 #page #panel-myteam .hub-fit-table tbody td[data-column="Player"]{display:flex!important;align-items:center}
 #page #panel-myteam .hub-fit-table tbody td[data-column="Player"] strong{min-width:0;overflow:hidden;text-overflow:ellipsis}
 /* THE TEAM AND ITS BYE ON ONE LINE (a member, 2026-11-15: "place this data side-by-side. Also when I hit Edit roster
    this data gets clunky"). The column was a fixed 48px, so "ARI BYE W13" stacked three lines — and in Edit mode, at
    40px, broke inside words ("BY / E / W1 / 3"). The column now takes its content's width and never wraps. */
 #page #panel-myteam .hub-fit-table tbody td[data-column="NFL"]{grid-column:3;display:flex!important;align-items:center;justify-content:flex-end;gap:5px;text-align:right;color:#9fb3bf;font-size:13px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
 #page #panel-myteam .hub-fit-table tbody td[data-column="NFL"] span{margin:0!important;padding:1px 5px!important;font-size:11px!important;white-space:nowrap!important}
 #page #panel-myteam .hub-fit-table tbody td[data-column="Acquired"]{display:none!important}
 #page #panel-myteam .hub-fit-table tbody td:is(.actions,:has(> .cut-check)){display:none!important}
 /* The bench begins where the starters end: a labelled rule, no extra row. */
 #page #panel-myteam .hub-fit-table tbody tr:not(.mt-starter){position:relative}
 #page #panel-myteam #active-list .hub-fit-table:has(tr.mt-starter) tbody tr.mt-bench-first{margin-top:34px}
 #page #panel-myteam #active-list .hub-fit-table:has(tr.mt-starter) tbody tr.mt-bench-first::before{content:"Bench";position:absolute;left:0;top:-26px;font:700 12px 'Barlow Condensed',sans-serif;letter-spacing:1.2px;text-transform:uppercase;color:#9fb3bf}
 /* Edit roster: the cut box leads the row, Drop / Move / Release trail it. */
 #page #panel-myteam.mt-edit .hub-fit-table tbody tr{grid-template-columns:28px 44px minmax(0,1fr) auto auto!important}
 #page #panel-myteam.mt-edit .hub-fit-table tbody td:has(> .cut-check){display:block!important;grid-column:1}
 #page #panel-myteam.mt-edit .hub-fit-table tbody td[data-column="Pos"]{grid-column:2}
 #page #panel-myteam.mt-edit .hub-fit-table tbody td[data-column="Player"]{grid-column:3}
 #page #panel-myteam.mt-edit .hub-fit-table tbody td[data-column="NFL"]{grid-column:4}
 /* In Edit roster the cut box and Drop take the room, so the bye steps out and the name keeps it (measured: with
    both, "Woody Marks" cut to "Woody …" at 390). The team stays. */
 #page #panel-myteam.mt-edit .hub-fit-table tbody td[data-column="NFL"] span{display:none!important}
 #page #panel-myteam.mt-edit .hub-fit-table tbody td.actions{display:flex!important;gap:6px;justify-content:flex-end;grid-column:5;width:auto!important}
 #page #panel-myteam.mt-edit .hub-fit-table tbody td.actions .btn{min-height:40px}
 #page #panel-myteam.mt-edit .hub-fit-table:not(:has(.cut-check)) tbody tr{grid-template-columns:44px minmax(0,1fr) auto auto!important}
 #page #panel-myteam.mt-edit .hub-fit-table:not(:has(.cut-check)) tbody td[data-column="Pos"]{grid-column:1}
 #page #panel-myteam.mt-edit .hub-fit-table:not(:has(.cut-check)) tbody td[data-column="Player"]{grid-column:2}
 #page #panel-myteam.mt-edit .hub-fit-table:not(:has(.cut-check)) tbody td[data-column="NFL"]{grid-column:3}
 #page #panel-myteam.mt-edit .hub-fit-table:not(:has(.cut-check)) tbody td.actions{grid-column:4}
}
