/* =====================================================================
   Section bar for phones and tablets (below 960 px).
   The header keeps its top row (wordmark, My sky, account, Menu) and gains
   a second row with the main sections, so the way around stays on screen
   while scrolling. The current section is marked like the desktop nav:
   bone text and an amber bar. --header-h grows by the bar, so every sticky
   offset and anchor jump on the site follows without further changes.
   ===================================================================== */
:root{ --row-h:60px; --bar-h:44px; }
@media (min-width:700px){ :root{ --row-h:68px; } }

.subnav{ display:none; }

@media (max-width:959px){
  :root{ --header-h:calc(var(--row-h) + var(--bar-h)); }
  .site-header > .wrap{ height:var(--row-h); }
  .subnav{
    display:flex; align-items:stretch; gap:0; height:var(--bar-h);
    padding:0 calc(var(--gutter) - .7rem);
    overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none;
    /* a soft edge on the right says "there is more" */
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);
            mask-image:linear-gradient(90deg,#000 calc(100% - 36px),transparent);
  }
  .subnav::-webkit-scrollbar{ display:none; }
  .subnav.is-end{ -webkit-mask-image:none; mask-image:none; }
  .subnav a{
    position:relative; flex:none; display:inline-flex; align-items:center; padding:0 .7rem;
    font-size:var(--fs-1); font-weight:500; color:var(--ash); text-decoration:none; white-space:nowrap;
  }
  .subnav a:hover{ color:var(--bone); }
  .subnav a[aria-current]{ color:var(--bone); }
  .subnav a[aria-current]::after{ content:""; position:absolute; left:.7rem; right:.7rem; bottom:5px; height:3px; background:var(--accent); }
  .subnav a:focus-visible{ outline-offset:-3px; }
}
