/* Shared navigation for all public pages. */
:root {
  --public-nav-bg: linear-gradient(90deg, rgba(48, 70, 71, .96) 0%, rgba(25, 83, 84, .96) 58%, rgba(8, 72, 80, .97) 100%);
  --public-nav-border: rgba(207, 235, 234, .2);
}

.public-header-shell {
  position: relative;
  z-index: 90;
  width: 100%;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.landing-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 72px;
  margin: 0 auto;
  padding: 14px clamp(24px, 4vw, 64px);
  color: #eaf7f7;
  background: var(--public-nav-bg);
}

/* Let the homepage navigation dissolve into the hero instead of ending on a hard horizontal seam. */
.landing-intro > .landing-header,
.public-header-shell > .landing-header,
.catalog-page-header-shell > .landing-header {
  isolation: isolate;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.landing-intro > .landing-header::before,
.public-header-shell > .landing-header::before,
.catalog-page-header-shell > .landing-header::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: -24px;
  left: 0;
  background: var(--public-nav-bg);
  content: "";
  opacity: .78;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0, 0, 0, .82) 60%, rgba(0, 0, 0, .35) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, rgba(0, 0, 0, .82) 60%, rgba(0, 0, 0, .35) 82%, transparent 100%);
}

.landing-intro > .landing-header > *,
.public-header-shell > .landing-header > *,
.catalog-page-header-shell > .landing-header > * {
  position: relative;
  z-index: 1;
}

.header-left { display: flex; min-width: 0; align-items: center; gap: clamp(28px, 4vw, 62px); }
.landing-brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: #eaf7f7; text-decoration: none; }
.brand-symbol { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px 10px 10px 4px; background: #0f8fa8; color: #fff; font-family: Urbanist, Inter, sans-serif; font-size: 18px; font-weight: 700; box-shadow: 6px 6px 0 rgba(34, 184, 207, .16); }
.landing-brand strong { font-family: Urbanist, Inter, sans-serif; font-size: 20px; letter-spacing: -.04em; }
.landing-nav { display: flex; align-items: center; gap: 28px; }
.landing-nav a,
.landing-nav span { position: relative; padding: 8px 0; color: #d4e4e5; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.landing-nav a::after,
.landing-nav span::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; background: #22b8cf; content: ""; transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.landing-nav a:hover,
.landing-nav a[aria-current="page"],
.landing-nav span[aria-current="page"] { color: #fff; }
.landing-nav a:hover::after,
.landing-nav a[aria-current="page"]::after,
.landing-nav span[aria-current="page"]::after { transform: scaleX(1); }
.header-action-wrap { width: fit-content; padding: 0; border-radius: 999px; background: transparent; animation: none; }
.header-action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid rgba(112, 206, 211, .58); border-radius: 999px; color: #fff; background: rgba(7, 44, 50, .46); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease; }
.header-action::before { display: none; }
.header-action:hover { border-color: #7fe0e7; background: rgba(7, 44, 50, .68); transform: translateY(-1px); }

.public-mobile-tabs { display: none; }

@media (max-width: 760px) {
  .landing-header { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; padding: 11px 14px; }
  .landing-intro > .landing-header::before,
  .public-header-shell > .landing-header::before,
  .catalog-page-header-shell > .landing-header::before { bottom: -18px; }
  .landing-nav { display: none; }
  .landing-brand strong { font-size: 17px; }
  .brand-symbol { width: 36px; height: 36px; }
  .header-action { min-height: 40px; padding-inline: 15px; }
  .public-mobile-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #d4e1df; background: #fff; }
  .public-mobile-tabs a { min-width: 0; padding: 11px 6px; overflow: hidden; color: #667b81; font-size: 12px; font-weight: 700; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
  .public-mobile-tabs a[aria-current="page"] { color: #075d70; background: #e1f4f6; }
}

@media (max-width: 390px) {
  .landing-brand strong { display: none; }
  .header-left { gap: 14px; }
}
