/* ═══════════════════════════════════════════════════════════════
   UNIVERSAL HEADER — v4.0 — CSS
   ═══════════════════════════════════════════════════════════════
   Load AFTER these two Google Fonts links are in <head>:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">

   Everything here is scoped under .aa0105-universal-header__root and
   .aa0105-universal-header__drawer so pasting this on any page never
   touches that page's own global styles.
   ═══════════════════════════════════════════════════════════════ */

/* Reset default browser margin on html/body so the header can sit
   perfectly flush at the top and both sides with zero gap, on any
   screen size — most browsers add an 8px default body margin which
   otherwise leaves a visible border around a full-width sticky header. */
html,
body {
  margin: 0;
  padding: 0;
}

.aa0105-universal-header__root,
.aa0105-universal-header__root *,
.aa0105-universal-header__root *::before,
.aa0105-universal-header__root *::after,
.aa0105-universal-header__drawer,
.aa0105-universal-header__drawer *,
.aa0105-universal-header__drawer *::before,
.aa0105-universal-header__drawer *::after {
  box-sizing: border-box;
}

.aa0105-universal-header__root {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 500;
  background: #ffffff;
  border-bottom: 1px solid #eceef1;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.aa0105-universal-header__root--scrolled {
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(20, 20, 30, 0.07);
}

/* ════════════════════════════════════════
   NAV LAYOUT
   ════════════════════════════════════════ */
.aa0105-universal-header__nav {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ════════════════════════════════════════
   BRAND
   ════════════════════════════════════════ */
.aa0105-universal-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 8px;
}

.aa0105-universal-header__brand:focus-visible {
  outline: 2px solid #42B5A4;
  outline-offset: 3px;
}

.aa0105-universal-header__logo-img {
  display: block;
}

/* ════════════════════════════════════════
   MENU (quicklinks + More Tools)
   ════════════════════════════════════════ */
.aa0105-universal-header__menu {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.aa0105-universal-header__quicklinks {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aa0105-universal-header__quicklink {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: #47474f;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.aa0105-universal-header__quicklink:hover {
  color: #1f8a7c;
  background: #f0faf9;
}

.aa0105-universal-header__quicklink.active {
  color: #1f8a7c;
  background: #eef9f7;
}

.aa0105-universal-header__quicklink:focus-visible {
  outline: 2px solid #42B5A4;
  outline-offset: 2px;
}

/* ════════════════════════════════════════
   SHARED DROPDOWN TRIGGER LOOK
   (More Tools + Help both build on this)
   ════════════════════════════════════════ */
.aa0105-universal-header__dropdown-wrap,
.aa0105-universal-header__help-wrap {
  position: relative;
}

.aa0105-universal-header__more-btn,
.aa0105-universal-header__help-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: #47474f;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.aa0105-universal-header__more-btn:hover,
.aa0105-universal-header__help-btn:hover {
  background: #f5f6f8;
  color: #1a1a22;
}

.aa0105-universal-header__more-icon,
.aa0105-universal-header__help-icon-mark {
  display: inline-flex;
  width: 17px;
  height: 17px;
  color: #8b8b95;
}
.aa0105-universal-header__more-icon svg,
.aa0105-universal-header__help-icon-mark svg {
  width: 100%;
  height: 100%;
}

.aa0105-universal-header__chevron {
  color: #9999a2;
  transition: transform 0.2s ease;
}

/* Frosted / blurred active look — NOT solid black */
.aa0105-universal-header__more-btn[aria-expanded="true"],
.aa0105-universal-header__help-btn[aria-expanded="true"] {
  background: rgba(66, 181, 164, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #1f8a7c;
  border-color: #42B5A4;
}

.aa0105-universal-header__more-btn[aria-expanded="true"] .aa0105-universal-header__chevron,
.aa0105-universal-header__help-btn[aria-expanded="true"] .aa0105-universal-header__chevron {
  transform: rotate(180deg);
  color: #1f8a7c;
}

.aa0105-universal-header__more-btn:focus-visible,
.aa0105-universal-header__help-btn:focus-visible {
  outline: 2px solid #42B5A4;
  outline-offset: 2px;
}

/* ════════════════════════════════════════
   MEGA DROPDOWN — 6 categories, ONE row
   ════════════════════════════════════════ */
.aa0105-universal-header__mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(96vw, 1240px);
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(20, 20, 30, 0.14);
  padding: 22px 24px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}

/* Invisible bridge over the gap between the button and this panel —
   without it, moving the mouse straight down from the button briefly
   leaves the hoverable area and the panel closes before you get there. */
.aa0105-universal-header__mega::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

#aa0105-universal-header-mega[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.aa0105-universal-header__mega-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  gap: 4px 16px;
  list-style: none;
}

.aa0105-universal-header__mega-col {
  min-width: 0;
}

.aa0105-universal-header__mega-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #b3b3bc;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f3;
}

.aa0105-universal-header__mega-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aa0105-universal-header__mega-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.aa0105-universal-header__mega-link:hover {
  background: #f7f9f9;
}

.aa0105-universal-header__mega-link:hover .aa0105-universal-header__mega-link-title {
  color: #1f8a7c;
}

.aa0105-universal-header__mega-link:focus-visible {
  outline: 2px solid #42B5A4;
  outline-offset: 1px;
}

.aa0105-universal-header__mega-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
}
.aa0105-universal-header__mega-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.aa0105-universal-header__mega-link-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.aa0105-universal-header__mega-link-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  word-spacing: normal;
  color: #1a1a22;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.aa0105-universal-header__mega-link-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #9999a2;
  white-space: normal;
  line-height: 1.35;
}

/* ── "Show more" scaffolding ──────────────────────────────────
   Nothing shows this by default. The upcoming JS only injects
   .mega-showmore, and only adds --more-hidden to items, when a
   category's list actually has more than 5 <li>s. */
.aa0105-universal-header__mega-item--more-hidden {
  display: none;
}

.aa0105-universal-header__mega-item--entering {
  animation: aa0105UniversalHeaderFadeIn 0.25s ease both;
}

@keyframes aa0105UniversalHeaderFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aa0105-universal-header__mega-showmore {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #1f8a7c;
  cursor: pointer;
  transition: background 0.15s ease;
}

.aa0105-universal-header__mega-showmore:hover {
  background: #f0faf9;
}

.aa0105-universal-header__mega-showmore-icon {
  display: inline-flex;
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}
.aa0105-universal-header__mega-showmore-icon svg { width: 100%; height: 100%; }

.aa0105-universal-header__mega-showmore[data-expanded="true"] .aa0105-universal-header__mega-showmore-icon {
  transform: rotate(180deg);
}

.aa0105-universal-header__mega-viewall {
  display: block;
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f3;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #42B5A4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.aa0105-universal-header__mega-viewall:hover {
  color: #1f8a7c;
  text-decoration: underline;
}

/* ════════════════════════════════════════
   ACTIONS (Help + Hamburger)
   ════════════════════════════════════════ */
.aa0105-universal-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   HELP DROPDOWN
   ════════════════════════════════════════ */
.aa0105-universal-header__help-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(20, 20, 30, 0.14);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  transform: translateY(-6px);
  z-index: 200;
}

.aa0105-universal-header__help-drop::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

#aa0105-universal-header-help-drop[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.aa0105-universal-header__help-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.aa0105-universal-header__help-link:hover {
  background: #f7f9f9;
}

.aa0105-universal-header__help-link:hover .aa0105-universal-header__help-link-title {
  color: #1f8a7c;
}

.aa0105-universal-header__help-link:focus-visible {
  outline: 2px solid #42B5A4;
  outline-offset: 1px;
}

.aa0105-universal-header__help-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef9f7;
}
.aa0105-universal-header__help-icon svg {
  width: 18px;
  height: 18px;
}

.aa0105-universal-header__help-link-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.aa0105-universal-header__help-link-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: #1a1a22;
  transition: color 0.15s ease;
}

.aa0105-universal-header__help-link-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: #9999a2;
}

.aa0105-universal-header__help-divider {
  height: 1px;
  background: #f0f0f3;
  margin: 6px 4px;
}

/* ════════════════════════════════════════
   HELP SUBMENU — "Legal & Support" flyout,
   opens to the LEFT of the Help panel (the
   Help panel itself sits right-aligned near
   the edge of the viewport, so a rightward
   flyout would run off-screen)
   ════════════════════════════════════════ */
.aa0105-universal-header__help-submenu-trigger {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.aa0105-universal-header__help-caret {
  margin-left: auto;
  flex-shrink: 0;
  color: #b3b3bc;
  transition: color 0.15s ease;
}

.aa0105-universal-header__help-submenu-trigger:hover .aa0105-universal-header__help-caret,
.aa0105-universal-header__help-submenu-trigger[aria-expanded="true"] .aa0105-universal-header__help-caret {
  color: #1f8a7c;
}

.aa0105-universal-header__help-submenu-trigger[aria-expanded="true"] {
  background: #f7f9f9;
}

.aa0105-universal-header__help-submenu-trigger[aria-expanded="true"] .aa0105-universal-header__help-link-title {
  color: #1f8a7c;
}

.aa0105-universal-header__help-submenu {
  /* Positioned against .help-drop (the nearest positioned ancestor,
     since .help-submenu-wrap no longer creates its own positioning
     context) so its top border lines up with the Help panel's own
     top border — reads as a second card opening out of the same
     panel, not as something dropping down from the trigger row. */
  position: absolute;
  top: -1px;
  left: -278px; /* 268px width + 10px gap, flush against the Help panel's left edge */
  width: 268px;
  background: #ffffff;
  border: 1px solid #ececef;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(20, 20, 30, 0.14);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  transform: translateX(6px);
  z-index: 210;
}

/* Invisible bridge over the gap so the mouse can travel from the
   trigger to the flyout without hover being lost mid-way */
.aa0105-universal-header__help-submenu::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: -10px;
  width: 10px;
}

#aa0105-universal-header-legal-drop[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(0);
}

/* ════════════════════════════════════════
   HAMBURGER (mobile only — see media query)
   ════════════════════════════════════════ */
.aa0105-universal-header__hamburger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.aa0105-universal-header__hamburger:hover {
  background: #f5f6f8;
}

.aa0105-universal-header__hamburger span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #1a1a22;
  transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease;
}
.aa0105-universal-header__hamburger span:nth-child(1) { top: 14px; }
.aa0105-universal-header__hamburger span:nth-child(2) { top: 19px; }
.aa0105-universal-header__hamburger span:nth-child(3) { top: 24px; }

.aa0105-universal-header__hamburger[aria-expanded="true"] {
  background: #1a1a22;
}
.aa0105-universal-header__hamburger[aria-expanded="true"] span {
  background: #ffffff;
}
.aa0105-universal-header__hamburger[aria-expanded="true"] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.aa0105-universal-header__hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.aa0105-universal-header__hamburger[aria-expanded="true"] span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ════════════════════════════════════════
   MOBILE DRAWER
   ════════════════════════════════════════ */
.aa0105-universal-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
}

.aa0105-universal-header__drawer[aria-hidden="false"] {
  visibility: visible;
}

.aa0105-universal-header__drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 30, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.aa0105-universal-header__drawer[aria-hidden="false"] .aa0105-universal-header__drawer-overlay {
  opacity: 1;
}

.aa0105-universal-header__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(84vw, 340px);
  background: #ffffff;
  box-shadow: -12px 0 32px rgba(20, 20, 30, 0.16);
  padding: 16px 14px 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.aa0105-universal-header__drawer[aria-hidden="false"] .aa0105-universal-header__drawer-panel {
  transform: translateX(0);
}

.aa0105-universal-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f0f0f3;
}

.aa0105-universal-header__drawer-close {
  width: 34px;
  height: 34px;
  border: none;
  background: #f5f6f8;
  border-radius: 9px;
  color: #47474f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa0105-universal-header__drawer-close:hover {
  background: #ececef;
}

.aa0105-universal-header__drawer-section {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 6px;
  border-bottom: 1px solid #f5f5f7;
}
.aa0105-universal-header__drawer-section:last-child {
  border-bottom: none;
}

.aa0105-universal-header__drawer-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #b3b3bc;
  margin: 0 0 6px;
  padding: 0 6px;
}

.aa0105-universal-header__drawer-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #33333b;
  text-decoration: none;
  padding: 9px 6px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.aa0105-universal-header__drawer-link:hover,
.aa0105-universal-header__drawer-link:focus-visible {
  background: #f0faf9;
  color: #1f8a7c;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

/* Laptop / small desktop — 6 columns still fit but tighter,
   drop to 3x2 once it'd genuinely get cramped */
@media (max-width: 1180px) {
  .aa0105-universal-header__mega {
    padding: 20px 22px;
  }
  .aa0105-universal-header__mega-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 18px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .aa0105-universal-header__quicklinks {
    display: none;
  }
}

/* Narrower tablets (iPad portrait and similar) — 3 columns gets tight
   once titles like "Face and Sensitive Area Blur" wrap, so drop to 2 */
@media (max-width: 899.98px) {
  .aa0105-universal-header__mega {
    width: min(94vw, 620px);
    padding: 18px 20px;
  }
  .aa0105-universal-header__mega-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
  }
  .aa0105-universal-header__mega-link-desc {
    display: none; /* keep rows compact on narrower panels */
  }
}

/* Mobile — collapse to hamburger + drawer */
@media (max-width: 767.98px) {
  .aa0105-universal-header__nav {
    padding: 0 16px;
    height: 60px;
  }
  .aa0105-universal-header__menu,
  .aa0105-universal-header__help-wrap {
    display: none;
  }
  .aa0105-universal-header__hamburger {
    display: block;
  }
}