/* Perfect Pitch shared mobile navigation */
.pp-shared-menu-wrap {
  display: none;
  position: relative;
  flex: 0 0 auto;
  z-index: 10020;
}

.pp-shared-menu-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 1.5px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.pp-shared-menu-toggle svg {
  width: 21px;
  height: 21px;
  display: block;
}

.pp-shared-menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px;
  flex-direction: column;
  background: var(--bg, var(--ground, #fff));
  color: var(--fg, var(--ink, #16181d));
  border: 1.5px solid currentColor;
  box-shadow: 6px 6px 0 rgba(0,0,0,.18);
  z-index: 10030;
}

.pp-shared-menu-panel[hidden] {
  display: none !important;
}

.pp-shared-menu-panel:not([hidden]) {
  display: flex;
}

.pp-shared-menu-panel a,
.pp-shared-menu-panel button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid rgba(128,128,128,.35);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.pp-shared-menu-panel a:last-child,
.pp-shared-menu-panel button:last-child {
  border-bottom: 0;
}

.pp-shared-menu-panel a:focus-visible,
.pp-shared-menu-panel button:focus-visible,
.pp-shared-menu-toggle:focus-visible {
  outline: 3px solid #FFE848;
  outline-offset: 3px;
}

.pp-shared-menu-panel .pp-menu-primary {
  margin-top: 8px;
  border: 0;
  background: var(--fg, var(--ink, #16181d));
  color: var(--bg, var(--ground, #fff));
  text-align: center;
}

@media (max-width: 820px) {
  .pp-shared-menu-wrap {
    display: inline-flex !important;
    align-items: center;
  }

  .pp-shared-menu-host {
    position: relative !important;
  }

  /* Keep the existing theme control, but move secondary header links
     into the menu on narrow screens. */
  .pp-mobile-header-hide {
    display: none !important;
  }

  .header-right {
    gap: 8px !important;
  }

  .header-container {
    position: relative;
  }

  .header.header {
    position: relative;
  }

  .pp-shared-menu-panel {
    max-height: min(75vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Exact Home brand styling */
.brand{display:flex;align-items:center;gap:12.508px;text-decoration:none}
.brand span{font-family:var(--serif);font-size:25.743px;line-height:1;white-space:nowrap}
@media(max-width:420px){.brand span{font-size:17.944px}.brand svg{width:30px;height:30px}}


/* PERFECT PITCH GLOBAL BRAND STANDARD */

.brand {
  display: flex;
  align-items: center;
  gap: 12.508px;
  white-space: nowrap;
}

.brand svg {
  display: block;
  width: 34px;
  height: 34px;
  flex: none;
}

.brand span {
  color: inherit !important;
  font-family: var(--pp-serif, var(--serif, "Source Serif 4", Georgia, serif)) !important;
  font-size: 25.743px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .brand svg {
    width: 30px;
    height: 30px;
  }
  .brand span {
    font-size: 17.944px !important;
  }
}


/* DASHBOARD LOGO COLOUR FIX */
a.brand[href="/dashboard"],
a.brand[href="/dashboard"]:link,
a.brand[href="/dashboard"]:visited,
a.brand[href="/dashboard"]:hover,
a.brand[href="/dashboard"]:focus,
a.brand[href="/dashboard"]:active {
  color: var(--pp-ink, #1B1E24) !important;
  text-decoration: none !important;
}
a.brand[href="/dashboard"] span {
  color: inherit !important;
}


/* UPLOAD PAGE: keep theme and navigation controls together on the right */
.pp-upload-header .pp-shared-menu-wrap {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.pp-upload-header .theme-toggle {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 44px;
}

.pp-upload-header .pp-shared-menu-toggle {
  display: none;
}

@media (max-width: 820px) {
  .pp-upload-header .pp-shared-menu-toggle {
    display: inline-flex !important;
  }
}


/* UPLOAD HAMBURGER BREAKPOINT FIX
   Match the upload page's 1024px single-column layout breakpoint. */
@media (max-width: 1024px) {
  .pp-upload-header .pp-shared-menu-wrap {
    display: inline-flex !important;
    align-items: center !important;
  }

  .pp-upload-header .pp-shared-menu-toggle {
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }
}
