/* Current LAiDIES website topbar.
   Mirrors the approved homepage shell without inheriting the retired
   sunnyvaile-page.css SVG wordmark or pill navigation. */
.sv-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  background: #3a1838;
  color: #fffdfb;
  font: 700 14px/1 "Jost", system-ui, sans-serif;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.sv-skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 2px solid rgba(255, 224, 138, 0.8);
  background: linear-gradient(
    110deg,
    rgba(228, 216, 244, 0.97) 0%,
    rgba(246, 214, 226, 0.97) 48%,
    rgba(201, 229, 223, 0.97) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: "Jost", system-ui, sans-serif;
}

.topbar .logo {
  position: relative;
  display: inline-block;
  flex: none;
  color: #2b1622;
  font: 800 31px/1 "Jost", system-ui, sans-serif;
  letter-spacing: 0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.topbar .logo .lac {
  color: #57b6c0;
}

.topbar .logo-iw {
  position: relative;
}

.topbar .logo-tit {
  position: absolute;
  left: 46%;
  bottom: 0.905em;
  width: 0.17em;
  height: 0.17em;
  border-radius: 0.045em;
  background: currentColor;
  color: #e982ab;
  pointer-events: none;
  transform: translateX(-50%);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.65vw, 24px);
}

.topbar__nav a {
  color: #3a1838;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar .nav-ksvl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar .onair-dot,
.mobile-nav .onair-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0455f;
  box-shadow: 0 0 0 0 rgba(224, 69, 95, 0.55);
  animation: sv-topbar-pulse 1.8s ease-out infinite;
}

.topbar .join-btn,
.mobile-nav .join-btn {
  display: inline-block;
  border-radius: 10px;
  background: #e982ab;
  color: #3a1838;
  font-weight: 800;
  text-decoration: none;
}

.topbar .join-btn {
  padding: 9px 18px;
}

.topbar .join-btn:hover,
.topbar .join-btn:focus-visible {
  filter: brightness(1.05);
  text-decoration: none;
  transform: translateY(-1px);
}

.topbar__menu {
  display: none;
  padding: 9px 14px;
  border: 1px solid #3a1838;
  border-radius: 8px;
  background: transparent;
  color: #3a1838;
  font: 700 0.9rem/1 "Jost", system-ui, sans-serif;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 76px;
  right: 0;
  left: 0;
  z-index: 8999;
  padding: 18px 24px 24px;
  border-bottom: 1px solid rgba(58, 24, 56, 0.16);
  background: #fffdfb;
  box-shadow: 0 18px 32px rgba(58, 24, 56, 0.16);
  font-family: "Jost", system-ui, sans-serif;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: #3a1838;
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav .nav-ksvl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav .join-btn {
  margin-top: 10px;
  padding: 11px 18px;
  text-align: center;
}

@keyframes sv-topbar-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 69, 95, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(224, 69, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 69, 95, 0); }
}

@media (max-width: 1050px) {
  .topbar__nav {
    gap: 14px;
  }

  .topbar__nav a {
    font-size: 0.88rem;
  }
}

@media (max-width: 920px) {
  .topbar__nav {
    display: none;
  }

  .topbar__menu {
    display: block;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: 54px;
    padding: 0 18px;
  }

  .topbar .logo {
    font-size: 24px;
  }

  .mobile-nav {
    top: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar .onair-dot,
  .mobile-nav .onair-dot {
    animation: none;
  }

  .sv-skip-link {
    transition: none;
  }
}

/* Homepage header lock (2026-09-01).
   Inner pages that use this shared topbar must match the current Homepage,
   rather than falling back to the older quiet-gradient navigation. */
:root {
  --svh-ink: #11183b;
  --svh-pink: #f254a9;
  --svh-coral: #ff7366;
  --svh-purple: #7137d6;
  --svh-mint: #7de2c2;
}

.topbar {
  gap: 24px;
  border-bottom: 2px solid var(--svh-ink);
  background: linear-gradient(110deg, var(--svh-pink), var(--svh-coral));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.topbar > .logo {
  min-height: 44px;
  padding: 6.5px 0;
  flex-shrink: 0;
  color: #451b78;
}

.topbar > .logo .lac {
  color: var(--svh-mint);
}

.topbar__nav {
  min-width: 0;
  gap: 8px;
}

.topbar__nav a,
.topbar__nav a.signin-link,
.topbar__nav a.join-btn,
.topbar .topbar__menu,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--svh-ink);
  border-radius: 999px;
  background: var(--svh-ink);
  box-shadow: none;
  color: var(--svh-mint);
  font: 700 1rem/1.2 "Jost", system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: none;
}

.topbar__nav a.signin-link,
.mobile-nav .signin-link {
  background: transparent;
  color: var(--svh-ink);
}

.topbar__nav a.join-btn,
.mobile-nav .join-btn {
  margin: 0;
  background: var(--svh-mint);
  color: var(--svh-ink);
  font-weight: 800;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible,
.topbar .signin-link:hover,
.topbar .join-btn:hover,
.mobile-nav a:hover {
  filter: brightness(1.12);
  text-decoration: none;
  transform: none;
}

.topbar a:focus-visible,
.topbar button:focus-visible,
.mobile-nav a:focus-visible {
  outline: 3px solid var(--svh-purple);
  outline-offset: 3px;
}

.topbar .topbar__menu {
  display: inline-flex;
  flex-shrink: 0;
}

.mobile-nav {
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 24px;
  border-bottom: 2px solid var(--svh-ink);
  background: linear-gradient(110deg, var(--svh-pink), var(--svh-coral));
}

.mobile-nav:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  text-align: center;
  white-space: normal;
}

@media (max-width: 1359px) {
  .topbar__nav {
    display: none;
  }

  .topbar .topbar__menu {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 8px;
    padding: 0 12px;
  }

  .topbar > .logo {
    padding: 10px 0;
  }

  .topbar .topbar__menu {
    padding: 10px 12px;
  }

  .mobile-nav {
    max-height: calc(100dvh - 54px);
    padding: 14px 12px;
  }
}

@media (max-width: 380px) {
  .mobile-nav:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
  }
}
