/* V41: small, input-driven glass highlights. No filtered surfaces, layout
   changes or replacements for the authored cloud/card/FAQ transforms. */
.sg-nav {
  position: relative;
  isolation: isolate;
}
.sg-nav > :is(a, button) {
  position: relative;
  z-index: 1;
}
.sg-nav > .sg-lens {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: var(--sg-w, 0px);
  height: var(--sg-h, 0px);
  margin: 0;
  padding: 0;
  border: 1px solid #f0fbffb8;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 78% 46% at 45% 0%, #ffffff47, #ffffff00 80%),
    linear-gradient(180deg, #ffffff0a, #ffffff00 50%, #77c9ef12);
  box-shadow:
    inset 0 2px 3px #ffffff73,
    inset 0 -2px 4px #7bb3d129,
    0 4px 9px -6px #123e6194;
  transform: translate3d(var(--sg-x, 0px), var(--sg-y, 0px), 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 2;
  font-style: normal;
}
/* The lens is clear: selected labels keep their existing dark backing and
   contrast throughout the slide, including multi-row and scrolling tab bars. */
.sg-nav[data-sg-visible] > .sg-lens {
  opacity: .76;
  visibility: visible;
}
.sg-nav[data-sg-ready] > .sg-lens {
  transition:
    transform .44s cubic-bezier(.2,.75,.2,1),
    width .44s cubic-bezier(.2,.75,.2,1),
    height .44s cubic-bezier(.2,.75,.2,1),
    opacity .18s ease;
}
.sg-nav > [data-sg-active] {
  text-decoration-color: currentColor;
}

.sg-action {
  position: relative;
  isolation: isolate;
  /* Individual scale composes with existing translateY hover transforms. */
  transition:
    transform .3s var(--ease, cubic-bezier(.16,1,.3,1)),
    scale .36s cubic-bezier(.18,.8,.22,1);
}
.sg-action > .sg-sheen {
  position: absolute;
  inset: 1px;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  font-style: normal;
  transition: opacity .28s ease, transform .36s cubic-bezier(.18,.8,.22,1);
}
.sg-action > .sg-sheen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* A narrow, localized reflection never puts a haze over the whole label. */
  background:
    radial-gradient(ellipse 42% 68% at var(--sg-light-x, 50%) var(--sg-light-y, 12%), #ffffff3b, #ffffff12 36%, #ffffff00 76%),
    linear-gradient(180deg, #ffffff59, #ffffff00 16%);
}
.sg-action[data-sg-shine] > .sg-sheen,
.sg-action:focus-visible > .sg-sheen {
  opacity: .68;
}
.sg-action[data-sg-pressed]:where(:not(:disabled):not([aria-disabled="true"])) {
  scale: .992;
  transition-duration: .12s, .12s;
}
.sg-action[data-sg-pressed] > .sg-sheen {
  transform: scale(.992);
  opacity: .3;
}
.sg-action:is(:disabled, [aria-disabled="true"]) > .sg-sheen {
  display: none;
}

/* Large fine-pointer screens have room for a more pronounced convex rim.
   The stronger light stays at the edge, leaving the label's centre clear. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .sg-nav > .sg-lens {
    border-color: #f5fcffe6;
    background:
      radial-gradient(ellipse 100% 56% at 44% -20%, #ffffffb8, #ffffff12 65%, #ffffff00 88%),
      radial-gradient(ellipse 115% 22% at 50% 111%, #5eb3de47, #5eb3de00 85%),
      linear-gradient(180deg, #ffffff0d, #ffffff00 38%, #66bde51a);
    box-shadow:
      inset 0 4px 5px #ffffffa6,
      inset 1px 0 4px #ffffff66,
      inset 0 -4px 6px #4e88ac52,
      0 9px 16px -10px #0d3c64cc,
      0 3px 5px -3px #123e6173;
  }
  .sg-nav[data-sg-visible] > .sg-lens { opacity: 1; }
  .sg-action > .sg-sheen::before {
    background:
      radial-gradient(ellipse 38% 62% at var(--sg-light-x, 50%) var(--sg-light-y, 12%), #ffffff57, #ffffff1a 35%, #ffffff00 76%),
      linear-gradient(180deg, #ffffffa6, #ffffff21 7%, #ffffff00 20%);
  }
  .sg-action > .sg-sheen::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #ffffff73;
    border-radius: inherit;
    box-shadow: inset 0 -3px 5px #4b86ad33, inset 0 3px 4px #ffffff80;
  }
  .sg-action[data-sg-shine] > .sg-sheen,
  .sg-action:focus-visible > .sg-sheen { opacity: 1; }
  .sg-action[data-sg-pressed]:where(:not(:disabled):not([aria-disabled="true"])) { scale: .975; }
  .sg-action[data-sg-pressed] > .sg-sheen { transform: scale(.975); opacity: .5; }
}

/* Preferences preserve complete, familiar selected/pressed/focus states. */
html.less-motion .sg-action,
html.less-motion .sg-nav > .sg-lens,
html.less-motion .sg-action > .sg-sheen {
  transition: none;
}
html.less-motion .sg-action[data-sg-pressed] {
  scale: none;
}
html.less-motion :is(.sg-lens, .sg-sheen),
html.solid-material :is(.sg-lens, .sg-sheen) {
  display: none;
}
html.solid-material .sg-action[data-sg-pressed] {
  scale: none;
}
@media (prefers-reduced-motion: reduce) {
  .sg-action,
  .sg-nav > .sg-lens,
  .sg-action > .sg-sheen {
    transition: none;
  }
  .sg-action[data-sg-pressed] { scale: none; }
  .sg-nav > .sg-lens,
  .sg-action > .sg-sheen { display: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .sg-nav > .sg-lens,
  .sg-action > .sg-sheen { display: none; }
  .sg-action[data-sg-pressed] { scale: none; }
}
@media (forced-colors: active) {
  .sg-nav > .sg-lens,
  .sg-action > .sg-sheen { display: none; }
  .sg-action[data-sg-pressed] { scale: none; }
}
