/* Sunday component review: NY8QhcuOWiEcD0pKDTsbP8 / 546:10324, 546:10365.
   22 October 2026. Native role targets, visibility and current-page state remain
   controlled by syncMobileNavigation; this file changes their presentation only. */
@layer club-shared {
  /* This heading and section navigation sit over the field in either theme. */
  body:not(.auth-open) #view-matches>.section-title-row :is(h2,.kicker) {
    color:#fff!important;
    text-shadow:0 2px 4px rgba(0,0,0,.8);
  }
  body:not(.auth-open) #view-matches>.matches-section-nav {
    background:linear-gradient(180deg,rgba(19,27,22,.94),rgba(9,13,10,.94))!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:10px!important;
    box-shadow:inset 0 1px 1px rgba(255,255,255,.09)!important;
  }
  body:not(.auth-open) #view-matches>.matches-section-nav button {
    color:#fff!important;
  }
  /* Exact component readback, 23 October: 66px dock / 58px cells. The 82px
     small five-destination variant is scoped separately below. */
  @media (max-width:900px) {
    body:not(.auth-open) #mobile-primary-nav {
      box-sizing:border-box!important;
      grid-template-columns:repeat(4,minmax(0,1fr))!important;
      gap:0!important;
      min-height:calc(66px + max(var(--android-inset-bottom,0px),env(safe-area-inset-bottom)))!important;
      padding:4px max(4px,env(safe-area-inset-right)) calc(4px + max(var(--android-inset-bottom,0px),env(safe-area-inset-bottom))) max(4px,env(safe-area-inset-left))!important;
      background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(238,246,241,.99))!important;
      border:0!important;
      box-shadow:0 -8px 24px -12px rgba(0,0,0,.65),var(--sh-inset-shadow)!important;
    }
    body:not(.auth-open) #mobile-primary-nav:is(.has-table-tab,.has-onboarding-tab) {
      grid-template-columns:repeat(5,minmax(0,1fr))!important;
    }
    body:not(.auth-open) #mobile-primary-nav .mobile-primary-item {
      box-sizing:border-box!important;
      min-width:0!important;
      min-height:58px!important;
      padding:0 1px!important;
      flex-direction:row!important;
      gap:0!important;
      border:0!important;
      border-radius:14px!important;
      background:transparent!important;
      box-shadow:none!important;
      color:var(--sh-copy)!important;
      font-family:Inter,system-ui,sans-serif!important;
      font-size:.6875rem!important;
      font-weight:600!important;
      line-height:1.4!important;
      text-align:center!important;
      white-space:normal!important;
      overflow-wrap:anywhere!important;
      -webkit-tap-highlight-color:transparent;
    }
    /* These SVGs are decorative; the existing text is the accessible name. */
    body:not(.auth-open) #mobile-primary-nav .mobile-primary-item>svg {
      display:none!important;
    }
    body:not(.auth-open) #mobile-primary-nav .mobile-primary-item>span {
      min-width:0;
      max-width:100%;
      line-height:inherit;
    }
    body:not(.auth-open) #mobile-primary-nav .mobile-primary-item[aria-current="page"] {
      background:#145c36!important;
      color:#fff!important;
      box-shadow:none!important;
    }
    body:not(.auth-open) #mobile-primary-nav .mobile-primary-item:focus-visible {
      outline:2px solid var(--sh-control-focus,#a4e2b3)!important;
      outline-offset:-4px!important;
    }
    body:not(.auth-open) #mobile-primary-nav .mobile-primary-item:active {
      box-shadow:inset 0 2px 5px rgba(0,0,0,.35)!important;
    }
    body:not(.auth-open) .app-shell>.content {
      padding-bottom:calc(94px + max(var(--android-inset-bottom,0px),env(safe-area-inset-bottom)))!important;
    }
    html[data-theme="dark"] body:not(.auth-open) #mobile-primary-nav {
      background:linear-gradient(180deg,rgba(38,48,43,.98),rgba(14,19,17,.99))!important;
    }
  }
  @media (max-width:900px) and (hover:hover) {
    body:not(.auth-open) #mobile-primary-nav .mobile-primary-item:not([aria-current="page"]):hover {
      background:var(--sh-action)!important;
      color:var(--sh-copy)!important;
    }
  }
  @media (max-width:374px) {
    /* The explicit small five-destination component has larger touch cells. */
    body:not(.auth-open) #mobile-primary-nav:is(.has-table-tab,.has-onboarding-tab) {
      /* Chromium156 rounds the loaded Inter label to61px. Preserve its10px
         type and equal targets, with a one-pixel horizontal inset adaptation. */
      gap:0!important;
      min-height:calc(82px + max(var(--android-inset-bottom,0px),env(safe-area-inset-bottom)))!important;
      padding:8px max(7px,env(safe-area-inset-right)) calc(8px + max(var(--android-inset-bottom,0px),env(safe-area-inset-bottom))) max(7px,env(safe-area-inset-left))!important;
    }
    body:not(.auth-open) #mobile-primary-nav:is(.has-table-tab,.has-onboarding-tab) .mobile-primary-item {
      min-height:66px!important;
      padding:0!important;
      font-size:.625rem!important;
    }
    body:not(.auth-open):has(#mobile-primary-nav:is(.has-table-tab,.has-onboarding-tab)) .app-shell>.content {
      padding-bottom:calc(110px + max(var(--android-inset-bottom,0px),env(safe-area-inset-bottom)))!important;
    }
    body:not(.auth-open) #mobile-primary-nav.has-onboarding-tab .mobile-primary-item {
      font-size:.625rem!important;
      padding-inline:0!important;
    }
  }
}
