/* mobile-v1 (owner, 25 Nov 2026; design canvas "ScoreProb compact header & dock", rows 7-9, his picks "C and B").
   Phones only (up to 760 px); desktop is unchanged.
   - One top row: logo and the sport symbols. The chosen sport lifts a little on a raised tab with a shadow and its name
     sits on the tab over the symbol's lower edge; the other symbols stay level with the logo. More sports scroll sideways.
   - The day rows (dates, Live/Upcoming/Finished, view) exist on the six sport home pages only; they are smaller and fold
     away while scrolling down and come back on the way up. The top row and the dock always stay.
   - Everything that was right of the logo (search, theme, language, notifications, account, menu) moved to a dock at the
     bottom: Matches, Live, Favourites, Notifications, Search, Language, Theme, Account, Menu (sp-mobile.js).
   - The page itself is about 7% smaller (CSS zoom on main and the footer); sticky bars inside it are corrected for that. */

.sp-dock, .dk-pop, .dk-scrim { display: none; }

@media (max-width: 760px) {
  body {
    --sh-r1: 50px; --sh-r2: 0px; --sh-r3: 34px; --sh-r4: 34px; --sh-r5: 32px; --sh-pad: 2px;
    --sh-full: var(--sh-r1); --sh-min: var(--sh-r1);
    --mz: .93;
    --dk-h: 54px; --dk-bg: #2857d9; --dk-bd: #1f47b8; --dk-ink: rgba(255, 255, 255, .9); --dk-on: rgba(255, 255, 255, .22); --dk-on-ink: #ffffff;
    --dk-sh: 0 -6px 18px rgba(40, 87, 217, .28);
    --tab-bg: #eef2f9; --tab-sh: 0 2px 7px rgba(15, 23, 42, .2);
    padding-bottom: calc(var(--dk-h) + env(safe-area-inset-bottom, 0px));
  }
  body.sh-sub { --sh-full: calc(var(--sh-r1) + var(--sh-r3) + var(--sh-r4) + var(--sh-r5) + var(--sh-pad)); --sh-min: var(--sh-r1); }
  html[data-theme="dark"] body {
    --dk-bg: #17306e; --dk-bd: #4d6fd0; --dk-ink: #d6e0ff; --dk-on: rgba(255, 255, 255, .18); --dk-on-ink: #ffffff;
    --dk-sh: 0 -10px 28px rgba(0, 0, 0, .5); --tab-bg: #1a2740; --tab-sh: 0 2px 7px rgba(0, 0, 0, .5);
  }

  /* ---- row 1: logo and the sport symbols */
  html .site-header .header-inner { flex-wrap: nowrap; height: var(--sh-r1); padding: 0 0 0 12px; }
  html .site-header .brand { height: var(--sh-r1); gap: 7px; margin-right: 4px; flex: none; }
  html .site-header .brand .brand-mark { width: 26px; height: 26px; }
  html .site-header .brand-word { font-size: 16px; }
  html .site-header .sp-find-btn, html .site-header .theme-toggle, html .site-header .sh-lang, html .site-header .hub-bell,
  html .site-header .hub-bell[hidden], html .site-header .hub-link, html .site-header .mobile-menu > summary,
  .sh-mini, html.sh-down .sh-mini { display: none !important; }
  html .site-header .mobile-menu { order: 9; flex: none; width: 0; height: 0; margin: 0; }

  html .site-header .sport-switch, html.sh-down .site-header .sport-switch,
  html .site-header .sport-switch.sw-n5, html .site-header .sport-switch.sw-n6 {
    order: 2; flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; gap: 0;
    height: var(--sh-r1); margin: 0; padding: 0 6px 0 0; box-shadow: none; overflow-x: auto; overflow-y: hidden;
  }
  html .site-header .sport-switch > a:first-child { margin-left: auto; }
  html .site-header .sport-switch a, html .site-header .sport-switch.sw-n5 a, html .site-header .sport-switch.sw-n6 a,
  html .site-header .sport-switch a.is-on, html .site-header .sport-switch.sw-n5 a.is-on, html .site-header .sport-switch.sw-n6 a.is-on {
    position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 100%; gap: 0;
    padding: 0 !important; border: 0; border-radius: 0; background: none; box-shadow: none;
  }
  html .site-header .sport-switch a.is-on, html .site-header .sport-switch.sw-n5 a.is-on, html .site-header .sport-switch.sw-n6 a.is-on { width: 46px; }
  html .site-header .sport-switch .sw-ico, html .site-header .sport-switch .sp-sico { width: 22px; height: 22px; }
  html .site-header .sport-switch .sw-ico { position: relative; z-index: 1; }
  html .site-header .sport-switch a.is-on .sw-ico { transform: translateY(-7px); }
  html .site-header .sport-switch a.is-on .sw-live { top: -2px; right: -13px; }
  html .site-header .sport-switch a.is-on::before {
    content: ""; position: absolute; left: 1px; right: 1px; top: 3px; bottom: 0;
    border-radius: 12px 12px 0 0; background: var(--tab-bg); box-shadow: var(--tab-sh);
  }
  html body .site-header .sport-switch a.is-on span.sw-name.sw-name {
    position: absolute !important; left: 50% !important; top: 27px !important; z-index: 2;
    width: auto !important; height: auto !important; margin: 0 !important; overflow: visible !important; clip: auto !important; clip-path: none !important;
    transform: translateX(-50%); padding: 0 5px; border-radius: 6px; background: var(--tab-bg); color: var(--sh-ink);
    font-size: 10.5px; font-weight: 500; line-height: 14px; letter-spacing: .01em; white-space: nowrap;
  }

  /* ---- rows 3 to 5 (sport home pages only): smaller, and all three fold away while scrolling down */
  .sh-subrows { box-shadow: inset 0 1px 0 var(--sh-line); }
  html.sh-down .sh-r3, html.sh-down .sh-r4, html.sh-down .sh-r5 { display: none; }
  html.sh-down .sh-rows { padding-bottom: 0; }
  .sh-r { gap: 6px; padding: 0 10px 0 12px; }
  .sh-r5 { align-items: flex-start; padding-top: 2px; }
  .sh-chip, .sh-r4 .sh-chip { height: 28px; padding: 0 11px; gap: 5px; font-size: 13px; }
  .sh-r4 .sh-chip { padding: 0 10px; }
  .sh-dot { width: 7px; height: 7px; }
  .sh-scroll { gap: 6px; }
  .sh-ibtn { width: 28px; height: 28px; }
  .sh-ibtn svg { width: 15px; height: 15px; }
  .sh-badge { top: -5px; right: -5px; min-width: 15px; height: 15px; padding: 0 4px; font-size: 9.5px; line-height: 15px; }
  .sh-seg { padding: 2px; border-radius: 10px; }
  .sh-seg button { height: 22px; border-radius: 8px; font-size: 12.5px; }

  /* ---- the page: about 7% smaller; sticky bars inside it keep sitting right under the header */
  main, .site-footer { zoom: var(--mz); }
  html .fx, html.sp-nav-hidden .fx { --sticky: calc(var(--sh-h) / var(--mz)); }
  html .ld, html .mt { --hdr: calc(var(--sh-h) / var(--mz)); }
  html .mp2-jump, html .bb-tabs { top: calc(var(--sh-h) / var(--mz)); }
  body.sh-sub main section, body.sh-sub main [data-group], body.sh-sub .bb-legend-m { scroll-margin-top: calc((var(--sh-min) + 10px) / var(--mz)); }
  .sp-hub-fixture-summary.sp-r2 { padding: 8px 12px 9px; row-gap: 6px; }

  /* ---- the dock */
  .sp-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); align-items: start;
    height: calc(var(--dk-h) + env(safe-area-inset-bottom, 0px)); padding: 0 2px env(safe-area-inset-bottom, 0px);
    background: var(--dk-bg); border-top: 1px solid var(--dk-bd); box-shadow: var(--dk-sh);
  }
  .sp-dock .dk {
    position: relative; display: grid; place-items: center; height: var(--dk-h); min-width: 0; margin: 0; padding: 0; border: 0; background: none;
    color: var(--dk-ink); font: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .sp-dock .dk-p { position: relative; display: grid; place-items: center; width: 38px; height: 32px; border-radius: 11px; font-style: normal; }
  .sp-dock .dk svg { display: block; width: 21px; height: 21px; }
  .sp-dock .dk.is-on .dk-p, .sp-dock .dk[aria-expanded="true"] .dk-p { background: var(--dk-on); color: var(--dk-on-ink); }
  .sp-dock .dk-n {
    position: absolute; top: -3px; left: 21px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
    background: #e5483e; color: #ffffff; font-size: 9.5px; font-style: normal; font-weight: 800; line-height: 15px; text-align: center;
    box-shadow: 0 0 0 1.5px var(--dk-bg);
  }
  .sp-dock .dk-n[hidden], .sp-dock .dk-ini[hidden] { display: none; }
  /* favdock-v1: the star's "live/all" - a dark pill, the live number red */
  .sp-dock .dk-fv { top: -9px; left: 50%; transform: translateX(-50%); padding: 0 5px; background: #0d1a3d; color: #dfe6ff; letter-spacing: .01em; white-space: nowrap; }
  .sp-dock .dk-fv i { color: #ff6a5f; font-style: normal; }
  .sp-dock .dk-lang { display: grid; place-items: center; min-width: 28px; height: 22px; padding: 0 4px; border: 1.5px solid currentColor; border-radius: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
  .sp-dock .dk-moon { display: none !important; }
  html[data-theme="light"] .sp-dock .dk-sun { display: none !important; }
  html[data-theme="light"] .sp-dock .dk-moon { display: block !important; }
  .sp-dock .dk-acc { position: relative; display: block; width: 21px; height: 21px; }
  .sp-dock .dk-ini {
    position: absolute; top: -7px; left: 11px; z-index: 2; padding: 0 4px; border-radius: 5px; background: rgba(91, 135, 255, .86); color: #ffffff;
    font-size: 8.5px; font-style: normal; font-weight: 700; line-height: 13px; letter-spacing: .03em; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .5);
  }
  html.sh-menu-open .sp-dock, html.sh-lock .sp-dock { z-index: 50; }

  /* ---- the two small panels above the dock (language; account, language and theme) */
  .dk-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(4, 9, 18, .45); }
  .dk-pop {
    display: block; position: fixed; right: 8px; bottom: calc(var(--dk-h) + env(safe-area-inset-bottom, 0px) + 10px); z-index: 66;
    width: min(284px, calc(100vw - 16px)); padding: 12px; border: 1px solid var(--sh-line); border-radius: 16px;
    background: var(--sh-bg); color: var(--sh-ink); box-shadow: var(--sh-shadow);
  }
  .dk-pop[hidden], .dk-scrim[hidden] { display: none; }
  .dk-pop::after {
    content: ""; position: absolute; bottom: -7px; left: calc(var(--ax, 50%) - 6px); width: 12px; height: 12px; background: var(--sh-bg);
    border-right: 1px solid var(--sh-line); border-bottom: 1px solid var(--sh-line); transform: rotate(45deg);
  }
  .dk-pop[data-dk-pop="lang"] { width: 220px; padding: 6px; }
  .dk-llist { display: grid; }
  .dk-llist a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--sh-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
  .dk-llist a b { display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; background: var(--sh-soft); font-size: 11.5px; }
  .dk-llist a[aria-current="true"] { background: var(--sh-accent-soft); }
  .dk-me { display: flex; align-items: center; gap: 10px; color: var(--sh-ink); text-decoration: none; }
  .dk-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #5b87ff; color: #ffffff; font-size: 13.5px; font-weight: 800; }
  .dk-me span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .dk-me b { font-size: 14px; }
  .dk-me small { font-size: 12px; color: var(--sh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dk-me i { font-style: normal; font-size: 20px; font-weight: 700; color: var(--sh-accent); }
  .dk-cap { display: block; margin: 14px 2px 7px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--sh-muted); }
  .dk-langs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .dk-langs a { display: grid; place-items: center; height: 30px; border: 1px solid var(--sh-line); border-radius: 8px; color: var(--sh-ink); font-size: 11px; font-weight: 800; text-decoration: none; }
  .dk-langs a[aria-current="true"] { border-color: var(--sh-accent); background: var(--sh-accent-soft); }
  .dk-themes { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--sh-line); border-radius: 10px; background: var(--sh-soft); }
  .dk-themes button { flex: 1; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--sh-muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
  .dk-themes button[aria-pressed="true"] { background: var(--sh-card); color: var(--sh-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
  .dk-out { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--sh-line); }
  .dk-out button { padding: 0; border: 0; background: none; color: var(--sh-muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
}

/* wordmark-v1 (owner's pick 2, 25 Nov 2026): the name is a drawing of Inter ExtraBold with tight spacing, every screen size.
   Its height follows the name's font size as before (0.76 em = capital height plus the overshoot). */
.brand-word .sp-wm { display: block; width: auto; height: .76em; overflow: visible; }
.brand-word .sp-wm-s { fill: currentColor; }
.brand-word .sp-wm-p { fill: var(--brand-accent, #7397ff); }
