/* Owner-preview worksheet folder tabs. Keep the existing shared menu and section arrows. */
.worksheet-tabs-preview .nav{flex-wrap:wrap;gap:0 1rem;padding-bottom:0}
.worksheet-tabs-preview .nav > :is(a,.nav-links,.sp-mobile-menu){margin-bottom:.48rem}
.worksheet-tabs-preview .nav .worksheet-folder-tabs{order:3;flex:1 0 100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:46rem;margin:0 auto;gap:clamp(.16rem,.65vw,.45rem);align-items:end}
.worksheet-tabs-preview .worksheet-folder-tabs a{min-width:0;min-height:47px;display:grid;align-content:center;justify-items:center;gap:.24rem;border:1px solid #d4d2c9;border-bottom:0;border-radius:.42rem .42rem 0 0;padding:.32rem .1rem .28rem;background:#f4f3ee;color:#31312e;text-align:center;text-decoration:none;font:700 clamp(.62rem,2.3vw,.78rem)/1.1 Instrument,system-ui,sans-serif}
.worksheet-folder-tabs svg{width:17px;height:17px}
.worksheet-folder-tabs span{white-space:nowrap}
.worksheet-tabs-preview .worksheet-folder-tabs a[aria-current=location]{background:var(--accent,#faee15);border-color:#b0a52d;color:#181810}
.worksheet-tabs-preview .worksheet-folder-tabs a:hover{background:#eae8df}
.worksheet-tabs-preview .worksheet-folder-tabs a[aria-current=location]:hover{background:var(--accent,#faee15)}
.worksheet-tabs-preview .worksheet-folder-tabs a:focus-visible{outline:2px solid #1d1d19;outline-offset:-4px}
html:has(.worksheet-tabs-preview){scroll-padding-top:var(--worksheet-nav-height,115px)}
.worksheet-tabs-preview main>.sheet{scroll-margin-top:0}
@media(max-width:540px){.worksheet-tabs-preview .nav{padding-inline:.5rem}.worksheet-folder-tabs svg{width:16px;height:16px}}
@media(max-width:325px){.worksheet-tabs-preview .nav .worksheet-folder-tabs{gap:.125rem}.worksheet-tabs-preview .worksheet-folder-tabs a{font-size:.62rem}}
@media(prefers-reduced-motion:reduce){html:has(.worksheet-tabs-preview){scroll-behavior:auto}}
@media(forced-colors:active){.worksheet-tabs-preview .worksheet-folder-tabs a[aria-current=location]{border:2px solid Highlight}}
@media(max-width:540px){
 .worksheet-tabs-preview .nav .booking{min-inline-size:129px;text-align:center}
}

/* The historical .section-jump component handles shape, glyphs and edges.
   The worksheet-only sticky two-row header needs its measured clearance. */
.worksheet-section-overlay-ready .worksheet-wayfinding{display:none}
/* Programmatic reading stop only; links, buttons and fields keep focus rings. */
.worksheet-section-overlay-ready .sheet[data-worksheet-section-target]:focus{outline:none}
.worksheet-section-overlay .section-jump.go-up{
  top:max(calc(92px + env(safe-area-inset-top,0px)),calc(var(--worksheet-nav-height,69px) + .42rem));
}
body:has(.sp-mobile-menu[open]) .worksheet-section-overlay,
body:has(main form :is(input:not([type=checkbox]):not([type=radio]),textarea,select):focus) .worksheet-section-overlay{display:none}
@media(max-height:24rem){.worksheet-section-overlay{display:none}}

/* The worksheet chooser floats over the page; the eight existing tabs keep
   their own rows, styles and jump targets. Only the trigger adds header height. */
.worksheet-tabs-preview .nav .worksheet-switcher-row{
  order:4;flex:1 0 100%;min-width:0;margin:.78rem auto .48rem;
  display:flex;justify-content:center;
}
.worksheet-switcher{
  position:relative;min-width:0;max-width:min(100%,28rem);
  font:700 .825rem/1.25 Instrument,system-ui,sans-serif;color:#292929;
}
.worksheet-switcher > summary{
  display:flex;align-items:center;justify-content:space-between;gap:.6rem;
  min-height:44px;padding:.45rem .85rem;cursor:pointer;
  background:#fff;border:1px solid var(--line,#d2d2cf);border-radius:0;list-style:none;
}
.worksheet-switcher > summary::-webkit-details-marker{display:none}
.worksheet-switcher > summary::marker{content:''}
.worksheet-switcher > summary:is(:hover,:focus-visible){background:#f1f0ed}
.worksheet-switcher-name{text-transform:uppercase;text-wrap:balance;overflow-wrap:anywhere}
.worksheet-switcher > summary svg{flex:none}
.worksheet-switcher[open] > summary svg{transform:rotate(180deg)}
.worksheet-switcher .worksheet-switcher-menu{
  position:absolute;z-index:4;inset-block-start:calc(100% + .35rem);inset-inline-start:50%;
  transform:translateX(-50%);width:min(28rem,calc(100vw - 1.5rem));box-sizing:border-box;
  max-height:min(21rem,max(4.25rem,calc(100vh - var(--worksheet-nav-height,220px) - 1rem)));
  max-height:min(21rem,max(4.25rem,calc(100dvh - var(--worksheet-nav-height,220px) - 1rem)));
  overflow:auto;overscroll-behavior:contain;padding:.25rem;
  background:#fff;border:1px solid var(--line,#d2d2cf);border-radius:0;
  box-shadow:0 8px 16px #0002;
}
.worksheet-switcher:not([open]) .worksheet-switcher-menu{display:none}
.worksheet-switcher-menu ul{list-style:none;margin:0;padding:0;display:block}
.worksheet-switcher-menu li{margin:0;padding:0}
.worksheet-switcher-menu a{
  display:flex;align-items:center;min-height:44px;padding:.45rem .65rem;
  color:#292929;text-decoration:none;text-align:left;
}
.worksheet-switcher-menu a:hover{background:#f1f0ed}
.worksheet-switcher-menu a[aria-current=page]{background:var(--accent,#faee15)}
/* Do not apply page-level sticky-header clearance to controls already in it. */
.worksheet-switcher :is(summary,a){scroll-margin-block-start:calc(-1 * var(--worksheet-nav-height,220px))}
.worksheet-switcher :is(summary,a):focus-visible{outline:2px solid #292929;outline-offset:-3px}
.worksheet-switcher-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-height:32rem){
  .worksheet-tabs-preview .nav .worksheet-switcher-row{margin-block:.38rem}
}
@media(forced-colors:active){
  .worksheet-switcher-menu a[aria-current=page]{outline:2px solid Highlight;outline-offset:-3px}
}
