/* Shared ACP navigation. Scope deliberately excludes legacy .brand/.topnav. */
.acp-site-header {
  --acp-header-green: #b5ed8a;
  --acp-header-bg: #00140d;
  position: relative;
  z-index: 50;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(153, 205, 131, .07);
  background: var(--acp-header-bg);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.2;
  isolation: isolate;
}
.acp-site-header,
.acp-site-header * { box-sizing: border-box; }
.acp-site-header .acp-site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 30px);
  width: min(100%, 1488px);
  min-height: 66px;
  margin: 0 auto;
  padding: 5px clamp(20px, 3vw, 40px);
}
.acp-site-header a {
  color: inherit;
  text-decoration: none;
  text-transform: none;
  font-family: inherit;
  letter-spacing: normal;
}
.acp-site-header .acp-site-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.acp-site-header .acp-site-logo {
  display: block;
  flex: 0 0 auto;
  width: 84px;
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: 1546 / 944;
  margin: 0;
  object-fit: contain;
  filter: none;
}
.acp-site-header .acp-site-brand-name {
  display: block;
  padding: 6px 0 6px 18px;
  border-left: 1px solid rgba(208, 225, 211, .5);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
}
.acp-site-header .acp-site-brand-name sup {
  position: static;
  margin-left: 1px;
  font-size: 8px;
  line-height: 0;
  vertical-align: super;
}
.acp-site-header .acp-site-nav {
  position: static;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 28px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.acp-site-header .acp-site-nav-desktop { margin-left: auto; }
.acp-site-header .acp-site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #f5f7f3;
  background: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  transition: color .16s ease;
}
.acp-site-header .acp-site-nav a:hover,
.acp-site-header .acp-site-nav a[aria-current="page"] { color: var(--acp-header-green); }
.acp-site-header .acp-site-desktop-action { display: block; flex: 0 0 auto; }
.acp-site-header .acp-site-proposal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  margin: 0;
  padding: 9px 19px;
  border: 1px solid #a6cc84;
  border-radius: 999px;
  background: transparent;
  color: #d4f6b4;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.acp-site-header .acp-site-proposal:hover {
  border-color: #c6f4a3;
  background: rgba(163, 232, 116, .08);
  color: #e4ffcc;
}
.acp-site-header .acp-site-arrow { display: block; flex: 0 0 auto; width: 19px; height: 19px; }
.acp-site-header a:focus-visible,
.acp-site-header summary:focus-visible { outline: 2px solid #b7f18d; outline-offset: 5px; }
.acp-site-header .acp-site-mobile-menu { display: none; }

/* The original React header stays mounted, but only the shared header is shown. */
html.acp-shared-header-active header.site-header.acp-unified-header.home-video-header { display: none !important; }
/* The real Next home header overlays its 100vh film; keep that geometry. */
html.acp-shared-header-active .acp-site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
}

/* Only original ACP logo images in legacy footers receive this sizing. */
.site-footer .brand-logo-img[src="/brand/acp-logo-white-original.png"],
.site-footer .brand-logo-img[src="/brand/acp-logo-black-original.png"] {
  width: 132px;
  height: auto;
  object-fit: contain;
  aspect-ratio: 1546 / 944;
  filter: none;
}

@media (max-width: 1099px) and (min-width: 960px) {
  .acp-site-header .acp-site-header-inner { gap: 18px; padding-right: 24px; padding-left: 24px; }
  .acp-site-header .acp-site-brand { gap: 14px; }
  .acp-site-header .acp-site-brand-name { padding-left: 14px; font-size: 13px; }
  .acp-site-header .acp-site-nav { gap: 19px; }
  .acp-site-header .acp-site-nav a { font-size: 13px; }
  .acp-site-header .acp-site-proposal { gap: 10px; padding-right: 16px; padding-left: 16px; font-size: 13px; }
}

@media (max-width: 959px) {
  .acp-site-header .acp-site-header-inner { min-height: 66px; gap: 16px; padding: 8px 24px; }
  .acp-site-header .acp-site-logo { width: 78px; }
  .acp-site-header .acp-site-brand { gap: 16px; }
  .acp-site-header .acp-site-brand-name { padding-left: 16px; font-size: 13px; }
  .acp-site-header .acp-site-nav-desktop,
  .acp-site-header .acp-site-desktop-action { display: none; }
  .acp-site-header .acp-site-mobile-menu {
    position: static;
    display: block;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
  }
  .acp-site-header .acp-site-mobile-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(177, 216, 153, .45);
    border-radius: 50%;
    background: transparent;
    color: #e1f4d7;
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .acp-site-header .acp-site-mobile-menu > summary::-webkit-details-marker { display: none; }
  .acp-site-header .acp-site-mobile-menu > summary::marker { content: ''; }
  .acp-site-header .acp-site-menu-glyph { display: grid; gap: 4px; width: 18px; }
  .acp-site-header .acp-site-menu-glyph > span { display: block; width: 18px; height: 1px; background: currentColor; transform-origin: center; transition: transform .16s ease, opacity .16s ease; }
  .acp-site-header .acp-site-mobile-menu[open] .acp-site-menu-glyph > span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .acp-site-header .acp-site-mobile-menu[open] .acp-site-menu-glyph > span:nth-child(2) { opacity: 0; }
  .acp-site-header .acp-site-mobile-menu[open] .acp-site-menu-glyph > span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .acp-site-header .acp-site-mobile-panel {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    left: 0;
    width: auto;
    max-height: min(75vh, 480px);
    margin: 0;
    padding: 10px 24px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-bottom: 1px solid rgba(177, 216, 153, .3);
    background: var(--acp-header-bg);
    box-shadow: 0 18px 24px rgba(0, 0, 0, .2);
  }
  .acp-site-header .acp-site-nav-mobile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .acp-site-header .acp-site-nav-mobile a { min-height: 44px; padding: 12px 14px; border-radius: 8px; font-size: 15px; }
  .acp-site-header .acp-site-nav-mobile a[aria-current="page"] { background: rgba(163, 232, 116, .08); }
  .acp-site-header .acp-site-mobile-panel > .acp-site-proposal { display: flex; min-height: 44px; margin-top: 12px; }
}

@media (max-width: 420px) {
  .acp-site-header .acp-site-header-inner { gap: 12px; padding-right: 18px; padding-left: 18px; }
  .acp-site-header .acp-site-logo { width: 72px; }
  .acp-site-header .acp-site-brand { gap: 12px; }
  .acp-site-header .acp-site-brand-name { padding-left: 12px; font-size: 11.5px; line-height: 18px; }
  .acp-site-header .acp-site-brand-name sup { font-size: 7px; }
  .acp-site-header .acp-site-mobile-panel { padding-right: 18px; padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .acp-site-header a,
  .acp-site-header .acp-site-menu-glyph > span { transition: none; }
}
