/* ============================================================
   Gem Glow Academy — canonical public header
   Public and authenticated headers intentionally share the same
   core scale. Public-only utilities and login actions differ.
   ============================================================ */

header.public-child-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #f0dce9;
  border-radius: 0;
  background: rgba(255,255,255,.985);
  box-shadow: 0 8px 24px rgba(73,35,94,.07);
  backdrop-filter: blur(16px);
  font-family: 'Quicksand',system-ui,sans-serif;
}

header.public-child-header > .child-product-nav {
  width: min(1580px,calc(100% - 48px));
  min-height: 88px;
  height: 88px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(250px,.85fr) minmax(760px,2fr) minmax(250px,.85fr);
  align-items: center;
  gap: 16px;
}

header.public-child-header .child-product-brand {
  min-width: 0;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #d52f75;
  text-decoration: none;
  white-space: nowrap;
}
header.public-child-header .child-product-brand img {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  margin: 0;
  object-fit: contain;
}
header.public-child-header .child-brand-name {
  display: inline-block;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0 2px 7px;
  overflow: visible;
  color: #d52f75;
  font-family: 'Pacifico',cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.12;
  vertical-align: middle;
  transform: translateY(-2px);
  white-space: nowrap;
}

header.public-child-header .public-navigation {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
header.public-child-header .child-product-links {
  min-width: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
header.public-child-header .child-nav-tab {
  position: relative;
  min-height: 40px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #665078;
  font: 800 18px/1 'Quicksand',system-ui,sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s ease,color .16s ease;
}
header.public-child-header .child-nav-tab:hover,
header.public-child-header .child-nav-tab:focus-visible {
  background: #fff4f9;
  color: #b82968;
}

/* Exactly the same world-gem artwork and 28px navigation scale used after child login. */
header.public-child-header .lux-gem-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
}
header.public-child-header .lux-gem-icon.emerald { background-image: url('../assets/icons/gem-emerald-premium.svg?rev=14938'); }
header.public-child-header .lux-gem-icon.sapphire { background-image: url('../assets/icons/gem-sapphire-premium.svg?rev=14938'); }
header.public-child-header .lux-gem-icon.ruby { background-image: url('../assets/icons/gem-ruby-premium.svg?rev=14938'); }
header.public-child-header .nav-lux-gem { width: 28px; height: 28px; }

header.public-child-header .public-utility-links {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 12px;
  border-left: 1px solid #eadce7;
}
header.public-child-header .public-utility-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 11px;
  color: #6c5579;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
header.public-child-header .public-utility-link i { width: 15px; text-align: center; color: #a85a88; }
header.public-child-header .public-utility-link:hover,
header.public-child-header .public-utility-link:focus-visible { background: #fff4f9; color: #b82968; }

header.public-child-header .public-login-actions {
  width: 100%;
  min-width: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  margin: 0;
  padding: 0;
}
header.public-child-header .public-login-tabs {
  width: 250px;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid #e8abd0;
  border-radius: 17px;
  background: #fffafd;
  box-shadow: 0 10px 24px rgba(233,30,99,.08);
}
header.public-child-header .public-login-tab {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  color: #a93667;
  font-family: 'Quicksand',system-ui,sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
header.public-child-header .public-login-tab + .public-login-tab { border-left: 1px solid #efc7db; }
header.public-child-header .public-login-tab i { font-size: 13px; }
header.public-child-header .parent-login-tab:hover,
header.public-child-header .parent-login-tab:focus-visible { background: #fff1f7; color: #942957; }
header.public-child-header .child-login-tab { background: linear-gradient(135deg,#d9276e,#e45a91); color: #fff; }
header.public-child-header .child-login-tab:hover,
header.public-child-header .child-login-tab:focus-visible { background: linear-gradient(135deg,#c91f63,#dc4b84); color: #fff; }
header.public-child-header .nav-label-mobile,
header.public-child-header .login-label-mobile { display: none; }

@media (max-width: 1380px) {
  header.public-child-header > .child-product-nav {
    width: min(1320px,calc(100% - 32px));
    grid-template-columns: minmax(220px,.75fr) minmax(690px,1.9fr) minmax(226px,.75fr);
    gap: 8px;
  }
  header.public-child-header .child-product-brand img { width: 56px; height: 56px; flex-basis: 56px; }
  header.public-child-header .child-brand-name { font-size: 28px; }
  header.public-child-header .child-nav-tab { padding-inline: 7px; font-size: 16px; gap: 7px; }
  header.public-child-header .nav-lux-gem { width: 25px; height: 25px; }
  header.public-child-header .public-navigation { gap: 7px; }
  header.public-child-header .public-utility-links { padding-left: 8px; }
  header.public-child-header .public-utility-link { padding-inline: 6px; font-size: 11px; gap: 4px; }
  header.public-child-header .public-login-tabs { width: 226px; }
  header.public-child-header .public-login-tab { font-size: 11px; padding-inline: 5px; }
}

@media (max-width: 1080px) {
  header.public-child-header { min-height: 148px; }
  header.public-child-header > .child-product-nav {
    width: 100%;
    min-height: 148px;
    height: 148px;
    padding: 0 max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));
    grid-template-columns: minmax(0,1fr) auto;
    grid-template-areas: 'brand actions' 'navigation navigation';
    grid-template-rows: 78px 70px;
    gap: 0 12px;
  }
  header.public-child-header .child-product-brand { grid-area: brand; }
  header.public-child-header .public-navigation { grid-area: navigation; width: 100%; justify-content: center; }
  header.public-child-header .public-login-actions { grid-area: actions; width: auto; }
}

@media (max-width: 700px) {
  header.public-child-header { min-height: 132px; padding-top: env(safe-area-inset-top); }
  header.public-child-header > .child-product-nav {
    min-height: 132px;
    height: 132px;
    grid-template-rows: 72px 60px;
    padding-inline: max(12px,env(safe-area-inset-left));
  }
  header.public-child-header .child-product-brand { height: 60px; gap: 8px; }
  header.public-child-header .child-product-brand img { width: 50px; height: 50px; flex-basis: 50px; }
  header.public-child-header .child-brand-name { font-size: 24px; }
  header.public-child-header .public-login-tabs { width: 116px; height: 44px; border-radius: 14px; }
  header.public-child-header .public-login-tab { gap: 2px; padding: 0; font-size: 9px; flex-direction: column; }
  header.public-child-header .public-login-tab i { font-size: 14px; }
  header.public-child-header .login-label-full { display: none; }
  header.public-child-header .login-label-mobile { display: inline; }
  header.public-child-header .public-navigation {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0 6px;
  }
  header.public-child-header .public-navigation::-webkit-scrollbar { display: none; }
  header.public-child-header .child-product-links { flex: 0 0 auto; height: 56px; gap: 2px; }
  header.public-child-header .child-nav-tab { min-height: 48px; height: 52px; padding: 5px 8px; flex-direction: column; gap: 2px; font-size: 10px; }
  header.public-child-header .nav-label-full { display: none; }
  header.public-child-header .nav-label-mobile { display: inline; }
  header.public-child-header .nav-lux-gem { width: 25px; height: 25px; }
  header.public-child-header .public-utility-links { flex: 0 0 auto; padding-left: 8px; gap: 2px; }
  header.public-child-header .public-utility-link { min-height: 44px; padding-inline: 8px; font-size: 10px; flex-direction: column; gap: 3px; }
  header.public-child-header .public-utility-link i { font-size: 13px; }
}

@media (max-width: 390px) {
  header.public-child-header .child-brand-name { font-size: 21px; }
  header.public-child-header .public-login-tabs { width: 108px; }
}
