/* Site header and slide-in menu panel. */
.amx-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: var(--amx-bg-soft); }
.amx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 73px; padding-block: 10px; }
.amx-header__brand { flex: 0 0 auto; margin-right: auto; }
.amx-header__brand a { display: block; }
.amx-header__brand img { display: block; width: 194px; max-width: 100%; height: auto; }
.amx-header__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.amx-header__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--amx-navy); font-size: 20px; line-height: 28px; text-decoration: none; }
.amx-header__contact a:hover { color: var(--amx-blue); }
.amx-header__contact svg { flex: none; }
.amx-menu-btn { flex: none; display: block; width: 45px; height: 45px; padding: 0; background: none; border: 0; cursor: pointer; }
.amx-menu-btn svg { display: block; width: 100%; height: 100%; }
.amx-menu-btn__bg { fill: var(--amx-red); }
.amx-menu-btn:hover .amx-menu-btn__bg { fill: var(--amx-navy); }

.amx-menu-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s ease; }
.amx-menu-panel { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); right: 0; bottom: 0; z-index: 100; display: flex; flex-direction: column; width: min(640px, 100%); padding: 20px; overflow-y: auto; background: var(--amx-tile); transform: translateX(100%); visibility: hidden; will-change: transform; transition: transform .6s ease, visibility .6s ease; }
html.amx-page-locked { overflow: hidden; padding-right: var(--amx-scrollbar, 0px); }
html.amx-page-locked .its-consent--right { margin-right: var(--amx-scrollbar, 0px); }
/* The open menu covers the cookie box, as on live. */
body.amx-menu-open .its-consent { z-index: 80; }
body.amx-menu-open .amx-menu-overlay { opacity: 1; visibility: visible; }
/* Slides in over one second, as on live; closing is a little quicker. */
body.amx-menu-open .amx-menu-panel { transform: none; visibility: visible; transition-duration: 1s; }
.amx-menu-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.amx-menu-panel__close { padding: 8px; color: var(--amx-navy); background: none; border: 0; cursor: pointer; }
.amx-menu-panel__nav ul { margin: 0; padding: 0; list-style: none; }
.amx-menu-panel__nav a { display: inline-block; padding: 7px 0; color: #000; font-size: 18px; line-height: 26px; text-decoration: none; }
.amx-menu-panel__nav a:hover, .amx-menu-panel__nav .current-menu-item > a { color: var(--amx-blue); }
.amx-menu-panel__nav .menu-item-has-children { position: relative; }
.amx-submenu-toggle { padding: 6px 8px; color: #000; vertical-align: middle; background: none; border: 0; cursor: pointer; }
.amx-submenu-toggle svg { display: block; transition: transform .2s ease; }
.amx-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.amx-menu-panel__nav .sub-menu { display: none; padding-left: 16px; }
.amx-menu-panel__nav .sub-menu.is-open { display: block; }
.amx-menu-panel__nav .sub-menu a { padding: 5px 0; color: #33373d; font-size: 16px; }
.amx-menu-panel__bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: auto; padding-top: 32px; }

@media (max-width: 1024px) {
  .amx-header__brand img { width: 148px; }
}
@media (max-width: 767px) {
  .amx-header__inner { flex-wrap: wrap; gap: 8px 12px; padding-block: 14px; }
  .amx-header__inner > .amx-header__contact { order: -1; flex: 0 0 100%; justify-content: center; }
  .amx-header__contact a { font-size: 16px; line-height: 24px; }
  .amx-header__contact svg { width: 18px; height: 18px; }
  .amx-header__brand img { width: 183px; }
  .amx-menu-btn { width: 50px; height: 50px; }
  .amx-menu-btn__bg { fill: #27308a; }
}
