/* ===========================================================================
   CONDENSED STICKY NAV
   The full site header, hero, and marquee scroll away; once the in-flow
   Schedule/Storylines tabs tuck under the top, a compact 62px bar slides in
   carrying the brand mark, the two tabs, a Filters button, and Today. The bar
   is built and driven by assets/js/sticky-nav.js. Reuses the site's tokens,
   fonts, and the #bg-ball symbol.

   It collapses what used to be a 3-bar sticky stack (header + tabs +
   filter bar) into this single bar. Loaded after styles.css, so the few base
   overrides below win.
   ========================================================================== */

/* the full header scrolls away with the hero (no longer pinned); the condensed
   bar replaces it once you reach the schedule */
.site-header{position:static}

/* the big in-flow tabs stop sticking (the bar carries them once scrolled past) */
#viewtabs{position:static;top:auto}

/* the in-flow schedule filter bar is hidden; sticky-nav.js relocates its panel
   into the dropdown host below, reachable from the bar's Filters button */
#filterbar{display:none}

/* Day headers pin sticky <=720px (styles.css). By default they pin at --stk-day,
   which keeps a few px below the bar for anchored-jump breathing room, that left
   an ~8px strip where content peeked between the bar and the pinned header. Pin
   the header itself FLUSH at the bar's bottom (--stk-bar) instead; --stk-day
   still drives scroll-margin for jumps. */
.day-head{top:var(--stk-bar)}

/* ---- the relocated filter dropdown --------------------------------------- */
/* One host, re-anchored in JS under the Filters button. position:fixed anchors
   to the viewport, not the hidden filter bar. */
.snav-filterpop{
  position:fixed;z-index:60;width:max-content;max-width:min(460px,calc(100vw - 28px));
  background:var(--paper);border:3px solid var(--ink);border-radius:14px;
  box-shadow:var(--shadow);padding:14px 16px;
}
.snav-filterpop[hidden]{display:none}
.snav-filterpop .result-note{margin:0 0 10px;font-weight:700;font-size:13px;color:var(--ink-soft)}
/* force the panel open inside the host regardless of app.js toggling its [hidden] */
.snav-filterpop .filter-panel,
.snav-filterpop .filter-panel[hidden]{display:block;position:static;margin:0;width:auto}
.snav-filterpop .controls{margin:0}

/* ---- the Filters button -------------------------------------------------- */
/* House hard-offset hover (translate + offset shadow), matching the site's pills. */
.snav-filters{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;font:inherit;
  font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.05em;line-height:1;
  background:var(--ink);color:var(--paper);border:2px solid var(--ink);
  padding:8px 16px;border-radius:999px;white-space:nowrap;
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease,border-color .12s ease;
}
.snav-filters:hover{transform:translate(-2px,-2px);box-shadow:var(--shadow-sm)}
.snav-filters.has-active{background:var(--red);border-color:var(--red)}   /* a filter is on */
.snav-filters svg{display:block;flex:none}

/* ---- the condensed bar --------------------------------------------------- */
.snav-bar{
  position:fixed;top:0;left:0;right:0;z-index:55;
  display:flex;align-items:center;gap:30px;height:62px;padding:0 40px;
  background:rgba(244,233,207,.96);backdrop-filter:blur(10px);
  border-bottom:3px solid var(--ink);
  /* hidden by default; JS toggles .is-shown once the tabs tuck under. */
  transform:translateY(-110%);opacity:0;pointer-events:none;
  transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .22s ease;
}
.snav-bar.is-shown{transform:translateY(0);opacity:1;pointer-events:auto}
.snav-bar .snav-brand{display:flex;align-items:center;gap:11px;flex:none;color:var(--ink)}
.snav-bar .ball-mark{width:27px;height:27px;display:block;overflow:visible}
.snav-bar .snav-word{font-family:"Anton",sans-serif;font-size:20px;letter-spacing:.04em;color:var(--ink);font-weight:400;white-space:nowrap}
.snav-bar .snav-tabs{display:flex;align-items:center;gap:26px;flex:none}
.snav-bar .snav-tabs a{
  font-family:"Libre Franklin",sans-serif;font-weight:800;font-size:14px;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ink-soft);border-bottom:3px solid transparent;
  padding:4px 0;cursor:pointer;white-space:nowrap;
}
.snav-bar .snav-tabs a.is-active{color:var(--ink);border-bottom-color:var(--red)}
.snav-bar .snav-spacer{flex:1}
.snav-bar .snav-filters{display:none}
.snav-schedule .snav-bar .snav-filters{display:inline-flex}   /* Filters only on the schedule view */
.snav-bar .snav-today{
  background:var(--red);color:#fff;font-family:"Libre Franklin",sans-serif;font-weight:800;
  font-size:13px;letter-spacing:.05em;text-transform:uppercase;padding:10px 20px;
  border-radius:999px;text-decoration:none;flex:none;white-space:nowrap;
}

/* compact: drop the wordmark and the Filters label (icon-only), tighten spacing */
@media (max-width:660px){
  .snav-bar{gap:12px;padding:0 16px}
  .snav-bar .snav-word{display:none}
  .snav-bar .snav-tabs{gap:18px}
  .snav-bar .snav-filters .snav-filters-label{display:none}
}
/* phones: squeeze the fixed elements so the bar (ball + both tabs + Filters icon
   + Today) clears ~360px without wrapping. */
@media (max-width:430px){
  .snav-bar{gap:10px;padding:0 12px}
  .snav-bar .snav-tabs{gap:14px}
  .snav-bar .snav-tabs a{font-size:13px}
  .snav-bar .snav-filters{padding:8px 12px}
  .snav-bar .snav-today{padding:9px 13px;font-size:12px}
}
@media (max-width:380px){
  .snav-bar{gap:8px;padding:0 10px}
  .snav-bar .snav-tabs{gap:11px}
  .snav-bar .snav-tabs a{font-size:12px;letter-spacing:.03em}
  .snav-bar .snav-filters{padding:8px 10px}
  .snav-bar .snav-today{padding:8px 11px}
}

/* a visitor who prefers reduced motion gets the bar without the slide/fade */
@media (prefers-reduced-motion:reduce){
  .snav-bar{transition:none}
}
