/* Islands navigation: the brand, the current product with its sections, and
   the actions float as three separate pieces. The section highlight is a gooey
   blob after ReactBits' Gooey Nav (nav-islands.js). Phones get a menu sheet. */
.islands-nav {
  --island-glass: linear-gradient(#ffffffa6, #ffffff70);
  --island-shadow:
    inset 0 1px #ffffffd9, inset 0 0 0 1px #ffffff59, 0 1px 2px #1428460f,
    0 12px 32px -14px #1428464d;
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  height: 56px;
}
.island-brand {
  justify-self: start;
  height: 50px;
  padding: 0 14px 0 8px;
  border-radius: 100px;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.island-brand img {
  width: 33px;
  height: 33px;
  border-radius: 9px;
}
.islands-nav.is-scrolled .island-brand {
  background: var(--island-glass);
  box-shadow: var(--island-shadow);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
}

/* Centre capsule */
.island-cap {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 5px;
  border-radius: 100px;
  background: var(--island-glass);
  box-shadow: var(--island-shadow);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  transition: background 0.4s;
}
.islands-nav.is-scrolled .island-cap,
.islands-nav.is-scrolled .island-signin {
  background: linear-gradient(#ffffffed, #ffffffc4);
}
.island-product,
.island-other {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  border-radius: 100px;
  font-size: 14px;
  white-space: nowrap;
}
.island-product {
  padding: 0 16px 0 13px;
  margin-right: 6px;
  font-weight: 600;
  color: #131313;
  background: #fff;
  box-shadow:
    0 1px 2px #1428460f,
    0 6px 14px -8px #1428464d;
}
.island-other {
  padding: 0 15px 0 12px;
  font-weight: 500;
  color: #4f5b66;
  transition:
    background 0.2s,
    color 0.2s;
}
.island-product .pn-icon,
.island-other .pn-icon {
  width: 16px;
  height: 16px;
}
.island-other .pn-icon {
  color: #6e7c88;
  transition: color 0.2s;
}
.island-other:hover {
  background: #ffffff80;
  color: #111;
}
.island-other:hover .pn-icon {
  color: #111;
}
.island-sep {
  width: 1px;
  height: 22px;
  margin: 0 6px;
  background: #13131318;
}
.island-links {
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
}
.island-links > a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 13px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: #41464c;
  transition: color 0.3s;
}
.island-links > a:hover,
.island-links > a[aria-current] {
  color: #131313;
}
/* Gooey highlight: the pill and its particles melt together through #goo. */
.goo {
  position: absolute;
  inset: -18px -14px;
  z-index: 0;
  pointer-events: none;
  filter: url(#goo);
  opacity: 0.78;
}
.goo-pill {
  position: absolute;
  top: 18px;
  left: 14px;
  width: 0;
  height: 42px;
  border-radius: 100px;
  background: #fff;
  transition:
    left 0.6s var(--ease),
    width 0.6s var(--ease);
}
.goo-p {
  position: absolute;
  border-radius: 50%;
  background: #fff;
}
.islands-nav.is-scrolled .goo-pill,
.islands-nav.is-scrolled .goo-p {
  background: #e3ebf2;
}
.islands-nav.is-scrolled .goo {
  opacity: 1;
}
.goo-defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* Right island */
.island-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.island-signin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: #3e4a55;
  background: #ffffff40;
  box-shadow: inset 0 0 0 1px #ffffff70;
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  transition:
    background 0.2s,
    color 0.2s;
}
.island-signin:hover {
  background: #ffffffa0;
  color: #111;
}
.island-signin .pn-icon {
  width: 13px;
  height: 13px;
}
.islands-nav .island-cta {
  height: 46px;
  padding: 0 19px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s;
}
.islands-nav .island-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -10px #0008;
}
.island-menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #131313;
  cursor: pointer;
}
.island-menu-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.island-menu-icon path {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.island-menu-toggle[aria-expanded="true"] .bar-top {
  transform: translateY(3px) rotate(45deg);
}
.island-menu-toggle[aria-expanded="true"] .bar-bottom {
  transform: translateY(-3px) rotate(-45deg);
}
.islands-nav a:focus-visible,
.islands-nav button:focus-visible {
  outline: 2px solid #4a7cc4;
  outline-offset: 2px;
}

/* Cloud page tint */
.cloud-page .island-other .pn-icon {
  color: #6b7f90;
}

/* Medium widths: keep one row by dropping the sibling label, then Sign in. */
@media (max-width: 1180px) {
  .island-other {
    padding: 0 12px;
    font-size: 0;
    gap: 0;
  }
  .island-other .pn-icon {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 1040px) {
  .island-signin {
    display: none;
  }
}

/* Phones and small tablets: brand + CTA island + menu sheet. */
@media (max-width: 900px) {
  .islands-nav {
    grid-template-columns: 1fr auto;
    height: 52px;
  }
  .island-brand {
    padding-right: 12px;
    font-size: 19px;
  }
  .island-brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .island-cap {
    display: none;
  }
  .island-actions {
    gap: 4px;
    height: 48px;
    padding: 4px;
    border-radius: 100px;
    background: var(--island-glass);
    box-shadow: var(--island-shadow);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
  }
  .islands-nav.is-scrolled .island-actions {
    background: linear-gradient(#ffffffed, #ffffffc4);
  }
  .islands-nav .island-cta {
    height: 40px;
    padding: 0 14px;
  }
  .island-menu-toggle {
    display: grid;
  }
  .island-sheet:not([hidden]) {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 8px;
    border-radius: 30px;
    background: #fffffff2;
    box-shadow:
      0 0 0 1px #1428460d,
      0 30px 60px -24px #14284680;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: island-sheet-in 0.35s var(--ease);
  }
}
.island-sheet[hidden] {
  display: none;
}
.island-group {
  border-radius: 22px;
  padding: 6px;
}
.island-group.is-current {
  background: #f1f5f8;
  box-shadow: inset 0 0 0 1px #1428460a;
}
.island-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: #131313;
}
a.island-group.island-group-head {
  height: 58px;
  padding: 0 16px;
}
.island-group-head .pn-icon {
  width: 18px;
  height: 18px;
}
.island-tag {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #2f7fb8;
  background: #2f7fb81a;
}
.island-group-head .island-go {
  margin-left: auto;
  color: #a0a3a8;
}
.island-group-links a {
  display: flex;
  align-items: center;
  height: 44px;
  margin-left: 38px;
  font-size: 16px;
  font-weight: 500;
  color: #3b3f44;
  border-top: 1px solid #1428460f;
}
.island-sheet-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 50px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: #3e4a55;
  box-shadow: inset 0 0 0 1px #13131314;
}
.island-sheet-signin .pn-icon {
  width: 14px;
  height: 14px;
}
@keyframes island-sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}
@media (max-width: 340px) {
  .island-brand span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .goo-pill,
  .island-sheet,
  .island-menu-icon path {
    transition: none !important;
    animation: none !important;
  }
}
