/* PZF 0.11.117 - competitions and clubs: consistent browser-like tabs on mobile and desktop.
   One cached-by-content stylesheet, loaded after the bundled homepage styles.
   Edge gradients only indicate actual horizontal overflow. */
@media (min-width:0px) {
  body .pzf-mag-home .pzf-switchboard {
    /* Selected tab shares its darker neutral surface with the content panel. */
    --pzf-switch-active-surface:#e5e8ed;
    --pzf-switch-inactive-surface:#f0f1f3;
  }
  html[data-pzf-theme="dark"] body .pzf-mag-home .pzf-switchboard {
    --pzf-switch-active-surface:#1e232b;
    --pzf-switch-inactive-surface:#2a3038;
  }
  body .pzf-mag-home .pzf-switchboard__navigation {
    position:relative;
    isolation:isolate;
    min-width:0;
    margin-bottom:0!important;
    z-index:2;
  }
  body .pzf-mag-home .pzf-switchboard__tabs {
    position:relative;
    display:flex!important;
    gap:6px!important;
    align-items:stretch!important;
    padding:4px 0 0!important;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  body .pzf-mag-home .pzf-switchboard__tab {
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    min-height:35px!important;
    padding:5px 13px!important;
    border-radius:8px 8px 0 0!important;
    border:1px solid var(--mag-hair, #3a4048)!important;
    background:var(--pzf-switch-inactive-surface)!important;
    color:var(--mag-fg, #e6e8ec)!important;
    font-size:10px!important;
    font-weight:800!important;
    letter-spacing:.02em!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 1px 2px rgba(0,0,0,.10)!important;
    position:relative!important;
    transition:background-color .15s ease,border-color .15s ease,color .15s ease!important;
  }
  body .pzf-mag-home .pzf-switchboard__tab:is(:hover,:focus-visible) {
    border-color:color-mix(in srgb, var(--mag-hair, #3a4048) 55%, var(--mag-fg, #e6e8ec) 45%)!important;
    color:var(--mag-fg,#fff)!important;
  }
  body .pzf-mag-home .pzf-switchboard__tab:focus-visible {
    outline:2px solid var(--mag-red,#c50716)!important;
    outline-offset:2px;
  }
  body .pzf-mag-home .pzf-switchboard__tab.is-active,
  body .pzf-mag-home .pzf-switchboard__tab[aria-selected="true"] {
    background:var(--pzf-switch-active-surface)!important;
    border-color:color-mix(in srgb, var(--mag-hair, #41434b) 70%, var(--mag-fg, #ffffff) 30%)!important;
    border-bottom-color:var(--pzf-switch-active-surface)!important;
    color:var(--mag-fg, #fff)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
    margin-bottom:-1px!important;
    z-index:2!important;
  }
  /* The tab and panel share one surface: no visible break below selected tab. */
  body .pzf-mag-home .pzf-switchboard__panel {
    background:var(--pzf-switch-active-surface)!important;
    border:1px solid color-mix(in srgb, var(--mag-hair, #41434b) 78%, var(--mag-fg, #ffffff) 22%)!important;
    border-top-color:var(--pzf-switch-active-surface)!important;
    padding:10px!important;
    margin-top:0!important;
    border-radius:0 0 8px 8px!important;
    min-width:0;
    position:relative;
    z-index:1;
  }
  /* Keep images, story cards and lists legible inside the connected panel. */
  body .pzf-mag-home .pzf-switchboard__panel .pzf-switchboard__lead {
    margin:0!important;
  }
  /* Non-interactive overlays: they never steal swipe or tap events. */
  body .pzf-mag-home .pzf-switchboard__navigation::before,
  body .pzf-mag-home .pzf-switchboard__navigation::after {
    content:"";
    display:block;
    position:absolute;
    z-index:3;
    width:30px;
    top:4px;
    bottom:0;
    pointer-events:none;
    opacity:0;
    transition:opacity .16s ease;
  }
  body .pzf-mag-home .pzf-switchboard__navigation::before {
    left:0;
    background:linear-gradient(to right, var(--mag-paper,#15171b), transparent);
  }
  body .pzf-mag-home .pzf-switchboard__navigation::after {
    right:0;
    background:linear-gradient(to left, var(--mag-paper,#15171b), transparent);
  }
  body .pzf-mag-home .pzf-switchboard__navigation[data-more-left="1"]::before {opacity:1;}
  body .pzf-mag-home .pzf-switchboard__navigation[data-more-right="1"]::after {opacity:1;}
}
/* Keep the established generous desktop rhythm inside the connected panel. */
@media (min-width:768px) {
  body .pzf-mag-home .pzf-switchboard__panel {padding:16px!important;}
}
@media(prefers-reduced-motion:reduce) {
  body .pzf-mag-home .pzf-switchboard__navigation::before,
  body .pzf-mag-home .pzf-switchboard__navigation::after {transition:none!important;}
}

/* 0.11.118: grab-to-scroll on desktop. Clicks still activate the tabs. */
@media (hover:hover) and (pointer:fine) {
  body .pzf-mag-home .pzf-switchboard__tabs.is-mouse-draggable {
    cursor:grab;scroll-snap-type:none;
  }
  body .pzf-mag-home .pzf-switchboard__tabs.is-mouse-draggable .pzf-switchboard__tab {
    -webkit-user-select:none;user-select:none;
  }
  body .pzf-mag-home .pzf-switchboard__tabs.is-mouse-dragging,
  body .pzf-mag-home .pzf-switchboard__tabs.is-mouse-dragging .pzf-switchboard__tab {
    cursor:grabbing!important;-webkit-user-select:none!important;user-select:none!important;
    scroll-behavior:auto!important;scroll-snap-type:none!important;
  }
}

/* 0.11.126: mobile-only 5% further height reduction and the same subtle 2px
   active-tab red accent as desktop. No change to width, shape, or swipe. */
@media (max-width:767.98px) {
  body .pzf-mag-home .pzf-switchboard__tab {
    min-height:29.925px!important;
    padding-top:4px!important;
    padding-bottom:4px!important;
  }
  body .pzf-mag-home .pzf-switchboard__tab.is-active,
  body .pzf-mag-home .pzf-switchboard__tab[aria-selected="true"] {
    box-shadow:inset 0 2px 0 var(--mag-red,#c50716)!important;
  }
}
