/* True page-centered desktop navigation, with space reserved for the returning logo. */
@media (min-width: 981px) {
 .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 0; }
 .site-branding { grid-column: 1; grid-row: 1; justify-self: start; }
 .primary-navigation { grid-column: 2; grid-row: 1; justify-self: center; margin-left: 0; }
 .menu-list { justify-content: center; }
}
/* Mobile: a frosted evergreen panel containing distinct full-width links. */
@media (max-width: 760px) {
 .menu-toggle { width: 48px; height: 48px; border-radius: 13px; }
 .menu-toggle-lines { width: 22px; gap: 4px; }
 .menu-toggle-lines span { height: 2px; border-radius: 2px; transition: transform .3s ease,opacity .2s ease; }
 .menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { transform: translateY(6px) rotate(45deg); }
 .menu-toggle[aria-expanded="true"] .menu-toggle-lines span:nth-child(2) { opacity: 0; transform: scaleX(0); }
 .menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { transform: translateY(-6px) rotate(-45deg); }
 .primary-navigation, body.home .primary-navigation.is-open { top: calc(100% + 6px); padding: 14px; border: 1px solid rgba(231,209,160,.38); border-radius: 18px; background: rgba(4,32,25,.95); box-shadow: 0 25px 65px rgba(0,16,12,.3),inset 0 1px rgba(255,255,255,.1); backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%); }
 .primary-navigation .menu-list { gap: 9px; }
 .primary-navigation .menu-list > li { border: 0; }
 .primary-navigation .menu-list > li > a, body.home .site-header .primary-navigation.is-open .menu-list > li > a { display: flex; justify-content: space-between; gap: 20px; width: 100%; min-height: 59px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: linear-gradient(120deg,rgba(255,255,255,.085),rgba(255,255,255,.025)); color: #fffdf7; text-shadow: none; font-size: 16px; font-weight: 600; letter-spacing: .01em; line-height: 1.4; transition: background .2s ease,border-color .2s ease,color .2s ease; }
 .primary-navigation .menu-list > li > a::after { flex: none; width: 8px; height: 8px; content: ''; border-top: 1.5px solid #e4c78d; border-right: 1.5px solid #e4c78d; transform: rotate(45deg); }
 .primary-navigation .menu-list > li > a:hover, .primary-navigation .menu-list > li > a:focus-visible, body.home .site-header .primary-navigation.is-open .menu-list > li > a:hover { color: #f0d6a3; border-color: rgba(231,209,160,.5); background: rgba(255,255,255,.12); }
 .primary-navigation .menu-list > li.current-menu-item > a, body.home .site-header .primary-navigation.is-open .menu-list > li.current-menu-item > a { color: #f0d6a3; border-color: rgba(231,209,160,.52); background: rgba(231,209,160,.1); }
 .primary-navigation .menu-list .sub-menu { padding: 5px 0 2px 15px; }
 .primary-navigation .menu-list .sub-menu a { color: #f0e7d3; font-size: 14px; }
 .primary-navigation .menu-list .sub-menu li { border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 760px) and (prefers-reduced-transparency: reduce) {
 .primary-navigation, body.home .primary-navigation.is-open { background: #062b23; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Desktop identity: compact logo, centered menu and a balanced edition signature. */
.header-edition { display: none; }
@media (min-width: 981px) {
 .header-inner { min-height: 104px; transition: min-height .3s ease; }
 .site-header.is-scrolled .header-inner { min-height: 90px; }
 .site-logo-image { width: 190px !important; max-width: min(190px,17vw) !important; max-height: 58px !important; }
 .header-edition { display: grid; grid-column: 3; grid-row: 1; justify-self: end; gap: 5px; padding-left: 19px; border-left: 1px solid rgba(155,125,64,.35); text-align: center; color: var(--bcm-evergreen); transition: opacity .3s ease,transform .3s ease,visibility .3s ease; }
 body.home .site-header:not(.is-scrolled) .header-edition { visibility: hidden; opacity: 0; transform: translateY(-8px); }
 body.home .site-header:not(.is-scrolled) .header-edition { color: #fffdf7; border-color: rgba(231,209,160,.4); }
 body.home .site-header.is-scrolled, .site-header { border-bottom-color: rgba(208,183,121,.3); }
}
@media (prefers-reduced-motion: reduce) {
 .header-inner, .header-edition { transition: none; }
}

/* Each organizer retains its native proportions; ARCUB padding is compensated in CSS. */
.header-organizer { position: relative; display: flex; align-items: center; justify-content: center; flex: none; }
.header-organizer img { display: block; width: 100%; height: auto; object-fit: contain; }
.header-organizer-arcub { width: 50px; height: 55px; overflow: hidden; }
.header-organizer-arcub img { position: absolute; width: 148.33%; max-width: none; height: auto; left: -31.15%; top: -23.4%; transform: none; }
.header-organizer-pmb { width: 128px; height: 55px; }
@media (min-width:981px) {
 .header-organizers { display: flex; align-items: center; gap: 16px; padding-left: 18px; }
}
@media (min-width:761px) and (max-width:1100px) {
 .header-organizers { display: flex; align-items: center; gap: 10px; padding-left: 12px; }
 .header-organizer-arcub { width: 42px; height: 46px; }
 .header-organizer-pmb { width: 104px; height: 46px; }
}
@media (max-width:760px) {
 .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto 42px; gap: 11px; min-height: 82px; }
 .site-branding { grid-column: 1; grid-row: 1; min-width: 0; }
 .site-branding .wordmark-image { width: 100%; }
 .site-logo-image { width: 100% !important; max-width: 130px !important; max-height: 44px !important; }
 .header-organizers { display: flex; align-items: center; grid-column: 2; grid-row: 1; gap: 10px; padding: 0; border: 0; transition: opacity .24s ease,visibility .24s ease; }
 .header-organizer-arcub { width: 31px; height: 34px; }
 .header-organizer-pmb { width: 87px; height: 34px; }
 .menu-toggle { grid-column: 3; grid-row: 1; width: 42px; height: 44px; margin: 0; }
 .primary-navigation { grid-column: 1 / -1; }
 body.home .site-header:not(.is-scrolled) .header-organizers { visibility: hidden; opacity: 0; }
 body.home .site-header.is-scrolled .header-organizers { visibility: visible; opacity: 1; }
}
@media (max-width:359px) {
 .header-inner { width: calc(100% - 28px); gap: 8px; }
 .header-organizers { gap: 8px; }
 .header-organizer-arcub { width: 27px; height: 30px; }
 .header-organizer-pmb { width: 74px; height: 30px; }
}

/* The desktop menu shares the header surface, including reduced-transparency mode. */
@media (min-width:761px) {
 .site-header .primary-navigation { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-transparency:reduce) {
 .site-header, body.home .site-header.is-scrolled { background: #f8f6ed; backdrop-filter: none; -webkit-backdrop-filter: none; }
 body.home .site-header:not(.is-scrolled) { background: transparent; }
}
