/* PayDay — the desktop layer, on top of payday-ticket.css
   =======================================================
   Ported from the design handoff (app/css/payday-desktop.css) and extended
   with the classes the D* screens declared in their own <style> blocks.

   One route, one view, one set of data. Below 1024px the page is the phone
   design unchanged; above it, the bottom tab bar becomes a top bar, the
   single column becomes a main column plus a right rail, and a footer
   appears. Every ticket, slip, code and button component is reused as-is.

   How the two layouts share one DOM
   ---------------------------------
   `.lay` is a flex column at phone width and a grid at desktop, so markup
   written in phone reading order can be re-positioned without duplicating
   it. Its three children are `.col.main`, `.col.side` and `.col.tail`:
   stacked main → side → tail on a phone, and main/tail in the left column
   with side spanning the right rail on a desktop.

   `.phone-only` / `.desk-only` are for the handful of places where the two
   mockups genuinely differ in CONTENT, not in arrangement — the VIP call to
   action, the payment step strip, and the desktop-only additions (QR code,
   league chips, the 7-day record, the Free vs VIP table). Never use them to
   render the same data twice.

   Not every component in the handoff's desktop screens is here. A few had no
   data to draw (the per-track 20-day record, which DailySlipsService
   deliberately withholds) and a few would have meant a second copy of a
   control that already exists on the phone (the bookmaker radio list, the
   leg rows a loaded slip already renders as `.leg`). Those are listed in
   docs/design/IMPLEMENTATION.md rather than left here as rules nothing uses.

   Collision renames, continuing the policy in payday-ticket.css. The desktop
   screens reuse several phone class names for different components; the
   phone meaning keeps the name and the desktop-only one is renamed:
     .pk  (MySlip board row)      -> .pkr    (.pk stays the pricing plan row)
     .tg  (MySlip add toggle)     -> .tgl    (.tg stays the target-odds grid)
     .steps (payment step strip)  -> .stepbar (.steps stays the vertical list)
   Live's `.card` / `.mini` and Success's `.vip` were already renamed to
   `.lv-card` / `.lv-row` / `.vip-on` in payday-ticket.css. */

:root{
  --dk-w:1240px;                    /* desktop content width */
  --dk-side:380px;                  /* right rail */
}

/* ====================================================================
   Every width
   ==================================================================== */

/* The page wrapper. `.scr` paints the ground on a phone, so this only
   matters once `.scr` goes transparent at desktop width. */
.site{background:var(--g);color:var(--ink)}
.site.ink{background:var(--ink);color:var(--w)}

/* The responsive seam. A flex column on a phone — which is what the phone
   design already is — and a grid above 1024px. */
.lay{display:flex;flex-direction:column;gap:10px;min-width:0}
/* A column of its own, inside `.lay`, `.split2`, `.mel` or on its own. */
.col{display:flex;flex-direction:column;gap:10px;min-width:0}

/* The page head. Stacks on a phone, sits side by side on a desktop. */
.hero{display:flex;flex-direction:column;gap:10px}
.hero>.t{display:flex;flex-direction:column;gap:8px;min-width:0}

/* The big page title. The phone's `.h1` size until there is room for more. */
.mega{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:46px;font-weight:800;line-height:.95;margin:0}

/* The line above the title: breadcrumb on inner pages, the date elsewhere. */
.crumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:15px;font-weight:700}
.crumb a{text-decoration:none;color:inherit}
.site.ink .crumb{color:var(--dm)}
.site.ink .crumb a{color:var(--w)}

/* Card grids. One column on a phone by construction. */
.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(340px,100%),1fr));gap:10px}
.cgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:10px}
/* The homepage board reads as one list at every width: a single column of
   tickets in kick-off order, not two side by side. */
.tgrid.one{grid-template-columns:minmax(0,1fr)}

/* The unlock row: a dark band with the count, what VIP adds, and one action. */
.lock-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;background:var(--ink);color:var(--w);border-radius:14px;padding:14px 16px}
.lock-row .t{flex:1 1 240px;min-width:0}
.lock-row .t b{display:block;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:22px;font-weight:800;line-height:1}
.lock-row .t span{display:block;color:var(--dm);font-size:13px;font-weight:600}
.lock-row .cta{background:var(--g);color:var(--ink);padding:0 20px;width:100%}

.split2{display:flex;flex-direction:column;gap:12px}

/* ====================================================================
   Below 1024px — the phone design, with the desktop chrome absent
   ==================================================================== */
/* `.desk-only` / `.phone-only` hide at the OTHER width rather than being
   shown at their own. Toggling them with `display:revert` would throw away
   whatever display their own class sets — `.crumb` is a flex row, `.qr` a
   grid — so each is only ever hidden, never re-shown. */
@media (max-width:1023.98px){
  .dnav,.dfoot,.desk-only{display:none !important}
}

/* ====================================================================
   1024px and up — the desktop design
   ==================================================================== */
@media (min-width:1024px){

  /* ---------- chrome swap ---------- */
  .bar,.tabs,.wa,.toasts,.phone-only{display:none !important}

  /* `.scr` stops being the phone shell: the ground moves to `.site`, the
     document height comes from the content, and `.body` becomes the
     handoff's `.wrap`. */
  .scr,.scr.ink{max-width:none;min-height:0;background:transparent;box-shadow:none}
  .body,.body.flush{max-width:var(--dk-w);width:100%;margin:0 auto;padding:32px 24px 56px;gap:24px}
  .body.narrow{max-width:560px}
  .body.mid{max-width:960px}

  /* ---------- top bar ---------- */
  .dnav{background:var(--ink);color:var(--w)}
  .site.ink .dnav{border-bottom:1px solid #26332C}
  .dnav .in{max-width:var(--dk-w);margin:0 auto;padding:0 24px;min-height:72px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px}
  .dnav .wm{color:var(--w);font-size:32px;background:none;padding:0}
  .dnav .wm img{height:30px}
  .dnav .links{display:flex;flex-wrap:wrap;gap:4px}
  .dnav .links a{height:44px;padding:0 16px;border-radius:22px;display:flex;align-items:center;gap:8px;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:18px;font-weight:700;color:var(--dm);text-decoration:none}
  .dnav .links a:hover{color:var(--w)}
  .dnav .links a.on{background:#1B2620;color:var(--w)}
  .dnav .links a.on .ic{color:var(--g)}
  .dnav .r{margin-left:auto;display:flex;align-items:center;gap:10px}
  .dnav .lang{border-color:#3A4740;color:var(--w)}
  .dnav .login{background:var(--w);color:var(--ink)}
  .dnav .vip{height:44px;padding:0 18px;border-radius:22px;background:var(--g);color:var(--ink);font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:18px;font-weight:800;display:flex;align-items:center;text-decoration:none;white-space:nowrap}
  .dnav .me{display:flex;align-items:center;gap:8px;color:var(--w);text-decoration:none;font-weight:700}
  .dnav .me i{width:40px;height:40px;border-radius:50%;background:var(--g);color:var(--ink);display:grid;place-items:center;font-style:normal;font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:18px}
  /* The stripped header: step progress only, so there is no way to wander
     off a payment. Named `stripped`, not `pay` — `.pay` is the payment-history
     row on the profile, and it is a grid. */
  .dnav.stripped .in{min-height:64px}
  .stepbar{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:16px;font-weight:700;color:var(--dm)}
  .stepbar b{color:var(--w)}

  /* ---------- page head ----------
     Sized against the measurement, not the mock. At 1440x900 the board's
     first pick began at y=485 — over half the viewport spent on a title, a
     day switch and two rows of league chips before a single thing anyone
     came for — and eight of thirty tickets were above the fold. A 76px
     headline is a poster; this page is a list. 52px still reads as the
     page's title at a glance and gives back 24px, and the controls below it
     lose a few each. First pick now starts at y=430. */
  .hero{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:12px 28px;padding:20px 24px}
  .hero>.t{flex:1 1 420px;gap:10px}
  .mega{font-size:52px;line-height:.92}
  .crumb{font-size:16px;gap:10px}
  /* What a screen puts beside the title — the record ticket, the day's
     summary sheet. Sized here, never inline: on a phone `.hero` is a COLUMN,
     where a flex-basis would set the height instead of the width. */
  .hero>.tk{flex:0 1 440px;min-height:104px}
  .hero>.tk .stub{width:96px}
  .hero>.tk .stub b{font-size:34px}
  .hero>.tk .main{padding:16px 20px}
  .hero>.tk .main b{font-size:32px}
  .hero>.sheet{flex:0 1 360px}

  /* ---------- columns ---------- */
  .lay{display:grid;grid-template-columns:minmax(0,1fr) var(--dk-side);gap:24px;align-items:start}
  .lay.wide-side{grid-template-columns:minmax(0,1fr) 440px}
  .lay.no-side{grid-template-columns:minmax(0,1fr)}
  .col{gap:16px}
  /* main and tail stack in the left column; side spans the right rail. */
  .lay>.main{grid-column:1;grid-row:1}
  .lay>.tail{grid-column:1;grid-row:2}
  .lay>.side{grid-column:2;grid-row:1 / span 2}

  .tgrid,.cgrid{gap:14px}
  /* The four-up tile grid has room for four across a page and two in a rail. */
  .side .more{grid-template-columns:repeat(2,minmax(0,1fr))}
  .split2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:center}

  /* ---------- day switch, chips, side nav ---------- */
  .days.dk{padding:0;gap:8px}
  .days.dk a{flex:0 0 auto;padding:0 18px;height:38px}
  .chips{gap:8px}
  .chips a,.chips button{height:32px;padding:0 12px;border-radius:16px;font-size:15px}
  /* The league selectors keep their compact size on a desktop too: there is
     more room, but they are still a filter row and not a control panel. */
  .chips.lg{gap:6px}
  .chips.lg a,.chips.lg button{height:26px;padding:0 10px;border-radius:999px;font-size:13px}

  /* ---------- unlock row ---------- */
  .lock-row{gap:14px 20px;border-radius:16px;padding:18px 20px}
  .lock-row .t{flex:1 1 280px}
  .lock-row .t b{font-size:28px}
  .lock-row .t span{font-size:14px}
  .lock-row .cta{width:auto;padding:0 24px}

  /* ---------- footer ---------- */
  .dfoot{background:var(--ink);color:var(--dm)}
  .dfoot .in{max-width:var(--dk-w);margin:0 auto;padding:28px 24px 36px;display:flex;flex-wrap:wrap;gap:18px 32px;align-items:center;font-size:14px}
  .dfoot a{color:var(--w);text-decoration:none;font-weight:600}
  .dfoot .age{display:grid;place-items:center;border:2px solid var(--dm);border-radius:50%;width:38px;height:38px;padding:0;background:none;font-family:'Barlow Condensed',sans-serif;font-weight:800;color:var(--w)}
  .dfoot .links{display:flex;flex-wrap:wrap;gap:20px}
  .dfoot .r{margin-left:auto;display:flex;gap:12px;align-items:center}
  .dfoot .btn{width:auto;border-color:var(--w);color:var(--w);padding:0 18px}

  /* ================================================================
     Component up-scales — the same components with desktop room
     ================================================================ */

  /* tickets and slips */
  .tk .main b{font-size:25px}

  /* The BOARD's tickets, which are a list and not a feature.
     `.tk` carries min-height:78px for a phone, where a ticket is a tap
     target and 78px is about right for a thumb. On a desktop it is a row in
     a list of thirty, pointed at with a cursor, and its own content only
     needs 46px — so the floor was adding 32px of air to every row, 15 rows
     of it. 62px keeps the perforation and the stamp looking like a ticket
     and takes roughly 350px off the page.
     Scoped to .tgrid deliberately: the hero's record ticket and the slips in
     the rail are single, deliberate objects and keep their size. A won
     ticket grows past this floor to carry its banner, which is the one row
     on the board that should be bigger than its neighbours. */
  .tgrid{gap:10px}
  .tgrid .tk{min-height:62px}
  .tgrid .tk .stub{width:64px}
  .tgrid .tk .stub b{font-size:20px}
  .tgrid .tk .main{padding:8px 12px}
  .tgrid .tk .main b{font-size:22px}
  .tgrid .tk .stamp{width:52px;height:52px;font-size:19px;margin:5px 10px 5px 0}
  .big .leg b{font-size:26px}
  .big .leg .o{font-size:28px}

  /* "scan to open on your phone" (desktop only) */
  .qr{width:120px;height:120px;border-radius:12px;border:2px dashed var(--ink);display:grid;place-items:center;text-align:center;font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:14px;font-weight:700;flex:none;background:var(--w);padding:6px}
  .qr img,.qr svg{width:100%;height:100%;display:block}
  .qr-row{display:flex;gap:14px;align-items:center;padding-top:6px}

  .partner{padding:12px 14px;font-size:14px}

  /* every-pick table (Results) */
  /* Five columns, not the handoff's six: the frozen payload carries no
     final score per leg, and a column of dashes is worse than no column. */
  .pr{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1fr) 60px 40px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--soft);font-size:15px}
  .pr:last-child{border-bottom:0}
  .pr .k{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:18px}
  .pr .m{color:var(--mute);font-weight:600}
  .pr .o{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:19px;text-align:right}

  /* 7-day record (desktop only) */
  .wk{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #26332C}
  .wk:last-child{border-bottom:0}
  .wk b{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:17px;width:76px;flex:none}
  .wk span{margin-left:auto;font-family:'Barlow Condensed',sans-serif;font-size:17px;font-weight:700}

  /* board rows + add/remove toggles (My slip) */
  .pkr{display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1fr) 60px 120px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--soft);font-size:15px}
  .pkr:last-child{border-bottom:0}
  .pkr .k{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:18px}
  .pkr .m{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-weight:800;font-size:18px}
  .pkr .o{font-family:'Barlow Condensed',sans-serif;font-weight:800;font-size:20px;text-align:right}
  .tgl{height:40px;border-radius:20px;border:2px solid var(--ink);background:var(--w);font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:15px;font-weight:800;cursor:pointer;color:var(--ink);width:100%}
  .tgl.on{background:var(--ink);color:var(--w)}
  .rm{width:40px;height:40px}
  .ret b{font-size:30px}

  /* Free vs VIP comparison (desktop only) */
  .cmp{width:100%;border-collapse:collapse;font-size:16px}
  .cmp th{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:18px;font-weight:800;text-align:center;padding:10px 8px;border-bottom:2px solid var(--ink)}
  .cmp th:first-child{text-align:left}
  .cmp td{padding:12px 8px;border-bottom:1px solid var(--soft);text-align:center;font-weight:600}
  .cmp td:first-child{text-align:left}
  .cmp td.v{background:#E3F5EA;font-family:'Barlow Condensed',sans-serif;font-size:19px;font-weight:800}
  .cmp th.v{background:var(--ink);color:var(--w);border-radius:10px 10px 0 0;border-bottom-color:var(--ink)}
  .cmp .no{color:var(--mute)}

  /* pricing plan rows */
  .pk{gap:14px;border-radius:16px;padding:16px 18px}
  .pk input{width:24px;height:24px}
  .pk .n b{font-size:28px}
  .pk .n span{font-size:14px}
  .pk .p{font-size:36px}
  .pk .p small{font-size:13px}
  .best{top:-12px;right:16px;font-size:13px;padding:2px 10px}

  /* checkout + payment states */
  .wl label{gap:12px;min-height:60px;padding:8px 14px;font-size:16px}
  .wl i{width:32px;height:32px;border-radius:8px}
  .sum{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #26332C;font-size:16px}
  .sum:last-child{border-bottom:0}
  .sheet .sum{border-bottom-color:var(--soft)}
  .phone{width:140px;height:140px;border-radius:40px;border-width:4px}
  .phone::after{inset:-16px;border-radius:54px}
  .st{gap:14px;padding:16px 0;font-size:18px}
  .st i{width:36px;height:36px;font-size:18px}
  .dots b{width:8px;height:8px}
  .reason{gap:14px;border-radius:16px;padding:18px}
  .reason .x{width:44px;height:44px}
  .reason b{font-size:26px}
  .vip-on{border-radius:22px;padding:34px 30px;gap:10px}
  .vip-on .big-t{font-size:110px;line-height:.85}
  .vip-on .seal{right:28px;top:28px;width:120px;height:120px;border-width:4px;font-size:28px}

  /* match detail */
  .teams{gap:16px;padding:12px 0}
  .crest{width:88px;height:88px;margin:0 auto 10px;font-size:15px}
  .why li{font-size:17px;line-height:1.4}
  .why li::before{width:9px;height:9px;margin-top:8px}

  /* generator */
  .tg{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
  .tg a,.tg button{height:84px;border-radius:16px;flex-direction:column;font-size:34px;line-height:1}
  .tg a small,.tg button small{font-size:13px;font-weight:700;text-transform:uppercase;color:var(--mute)}
  .tg a.on small,.tg button.on small{color:var(--dm)}
  .rk{gap:8px}
  .rk a,.rk button{height:auto;border-radius:16px;flex-direction:column;align-items:flex-start;gap:2px;padding:14px;background:var(--w);text-transform:none;font-family:'Barlow',sans-serif;font-size:13.5px}
  .rk a b,.rk button b{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;font-size:22px;font-weight:800}
  .rk a span,.rk button span{color:var(--mute)}
  .rk a.on span,.rk button.on span{color:var(--dm)}

  /* onboarding */
  .lg{display:flex;gap:8px}
  .lg a{height:48px;padding:0 20px;border-radius:24px;font-size:16px;flex:0 0 auto}
  /* Each step becomes a card of its own; inside a sheet it is already on
     white, so it only gains the column layout and the bigger type. */
  .how{flex-direction:column;align-items:flex-start;gap:8px}
  .sheet>.cgrid>.how{background:transparent;padding:0}
  .how i{width:44px;height:44px;font-size:22px}
  .how b{font-size:26px}
  .how span{font-size:15px}
  .fav{gap:8px}
  .fav label{height:44px;padding:0 16px;border-radius:22px;font-size:15px}

  /* register proof row */
  .free{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .free span{border-radius:14px;padding:16px;font-size:15px}
  .free b{font-size:44px}

  /* profile */
  .mel{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
  .days-left{font-size:96px;line-height:.85}

  /* support */
  .srch{height:64px;border-radius:32px;border-width:3px;padding:0 22px;max-width:720px;gap:12px}
  .srch input{font-size:19px}

  /* live */
  .lv{font-size:20px;gap:8px}
  .lv::before{width:11px;height:11px}
  .lv-card{border-radius:16px;padding:16px 18px;gap:12px}
  .min{font-size:18px;padding:2px 8px}
  .age{font-size:14px;padding:9px 12px}
  .lv-row{padding:12px 0;font-size:15px}
  .site.ink .sheet.dk{border:1px solid #26332C}

  /* buttons sit to their content on a desktop, not full width */
  .lock-row .cta,.dfoot .btn,.hero .btn{width:auto}
}

/* ---------- the narrow end of the desktop range ---------- */
/* Between 1024 and 1100 there is not enough width for a right rail. */
@media (min-width:1024px) and (max-width:1100px){
  .lay,.lay.wide-side{grid-template-columns:minmax(0,1fr)}
  .lay>.main,.lay>.side,.lay>.tail{grid-column:1;grid-row:auto}
  .mega{font-size:56px}
  .split2,.mel{grid-template-columns:minmax(0,1fr)}
}

@media print{
  .dnav,.dfoot{display:none !important}
}

/* Homepage tickets: the fixture and the prediction sit centred in the panel
   (scoped to the one-column board grid; slips, match page and results keep
   their left-aligned tickets). */
.tgrid.one .tk .main{align-items:center;text-align:center}
.tgrid.one .tk .main .fx{justify-content:center}
.tgrid.one .tk .main .res{align-self:center}
