/* TEE shared mobile nav + a11y focus — survives Framer hydration via tee-mobile-nav.js */
:root {
  --tee-focus: #c4a1ff;
}

/* Visible keyboard focus (do not remove outline for mouse users without :focus-visible) */
a:focus-visible,
button:focus-visible,
.ee-nav-bar a:focus-visible,
.ee-mobile-menu a:focus-visible,
.ee-burger:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--tee-focus) !important;
  outline-offset: 3px !important;
}

/* Phone: collapse pill into hamburger + overlay */
@media (max-width: 600px) {
  .ee-topbar {
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto !important;
    padding: 0 16px !important;
    top: 14px !important;
    row-gap: 0 !important;
    align-items: center !important;
  }
  .ee-brand {
    justify-self: start !important;
    margin-right: 0 !important;
  }
  .ee-topbar > span { display: none !important; }

  /* Hide the wrapping pill; JS moves links into overlay */
  .ee-nav-bar.ee-nav-desktop-hidden {
    display: none !important;
  }

  .ee-burger {
    display: inline-flex !important;
    justify-self: end;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: #000;
    box-shadow:
      inset -3px 4px 9px 0 rgb(112, 40, 228),
      inset 3px -2px 8px 0 rgb(252, 176, 72);
    z-index: 10001;
  }
  .ee-burger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
  }
  .ee-burger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .ee-burger[aria-expanded="true"] .ee-burger-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .ee-burger[aria-expanded="true"] .ee-burger-lines span:nth-child(2) {
    opacity: 0;
  }
  .ee-burger[aria-expanded="true"] .ee-burger-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.ee-nav-open { overflow: hidden; }
  body { padding-top: 78px !important; }

  .ee-mobile-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .ee-mobile-panel.is-open { display: block; }

  .ee-mobile-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    max-height: calc(100vh - 96px);
    overflow: auto;
    padding: 12px;
    border-radius: 20px;
    background: #000;
    box-shadow:
      inset -3px 4px 9px 0 rgb(112, 40, 228),
      inset 3px -2px 8px 0 rgb(252, 176, 72),
      0 24px 48px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .ee-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  }
  .ee-mobile-menu a:hover,
  .ee-mobile-menu a:active {
    background: rgba(255, 255, 255, 0.08);
  }
  .ee-mobile-menu svg.ee-padlock {
    width: 14px;
    height: 14px;
    opacity: 0.85;
    flex-shrink: 0;
  }
}

/* Desktop/tablet: never show burger chrome */
@media (min-width: 601px) {
  .ee-burger,
  .ee-mobile-panel {
    display: none !important;
  }
}
