.yma-folder-tabs {
  display: flex;
  gap: var(--folder-gap, 14px);
  height: var(--folder-height, 50px);
}

.yma-folder-tab {
  position: relative;
  height: calc(var(--folder-height, 50px) - var(--folder-headroom, 0px));
  margin-top: var(--folder-headroom, 0px);
  padding: 0 var(--folder-pad-right, 40px) 0 var(--folder-pad-left, 24px);
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--folder-font-size, 16.5px);
  font-weight: 500;
  color: #9CA3AF;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.yma-folder-tab .shape { position: absolute; inset: 0; pointer-events: none; }
.yma-folder-tab .shape svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.yma-folder-tab .lbl { position: relative; }
.yma-folder-tab[aria-selected="true"],
.yma-folder-tab[aria-pressed="true"] { color: #111111; }

@keyframes ymaFolderNextLabel { 0%, 100% { color: #9CA3AF; } 50% { color: #0F7EF5; } }
@keyframes ymaFolderNextFill { 0%, 100% { fill: #FFFFFF; } 50% { fill: #E8F3FF; } }
.yma-folder-tab.next .lbl { animation: ymaFolderNextLabel 1.8s ease-in-out infinite; }
.yma-folder-tab.next .shape path { animation: ymaFolderNextFill 1.8s ease-in-out infinite; }
.yma-folder-tab:focus-visible { outline: none; }
.yma-folder-tab:focus-visible .lbl { outline: 2px solid rgba(15,126,245,0.5); outline-offset: 4px; border-radius: 4px; }

/* Share the pricing-tab interaction across all presentation folder selectors.
   Embedded scenes reserve a little room above the tab without moving its foot. */
.deck-document .yma-folder-tabs { --folder-headroom:4px; }
.yma-folder-tab .shape { transform-origin:50% 100%; transition:transform .26s cubic-bezier(.22,.7,.25,1); }
.yma-folder-tab .lbl { transition:transform .26s cubic-bezier(.22,.7,.25,1),color .18s; }
.yma-folder-tab:not([aria-pressed="true"]):not([aria-selected="true"]):is(:hover,:focus-visible) { color:#111; }
.yma-folder-tab:not([aria-pressed="true"]):not([aria-selected="true"]):is(:hover,:focus-visible) .shape { transform:scaleY(1.08); }
.yma-folder-tab:not([aria-pressed="true"]):not([aria-selected="true"]):is(:hover,:focus-visible) .shape path { stroke:#dedee9; }
.yma-folder-tab:not([aria-pressed="true"]):not([aria-selected="true"]):is(:hover,:focus-visible) .lbl { transform:translateY(-2px); }
.yma-folder-tab:not([aria-pressed="true"]):not([aria-selected="true"]):active .shape { transform:scaleY(1.025); }
.yma-folder-tab:not([aria-pressed="true"]):not([aria-selected="true"]):active .lbl { transform:translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .yma-folder-tab .shape, .yma-folder-tab .lbl { transition:none; }
  .yma-folder-tab.next .lbl { animation: none; color: #0F7EF5; }
  .yma-folder-tab.next .shape path { animation: none; fill: #E8F3FF; }
}
