/* The navigation bar sticks; utility controls remain in document flow. */
.site-header { position: sticky; top: 0; z-index: 20; background: #fffffffa; border-bottom: 1px solid var(--border); }
.header-inner { position: relative; display: grid; grid-template-columns: 120px minmax(0,1fr) minmax(0,20rem); align-items: center; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 120px; }
.desktop-nav { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.95fr) minmax(0,1.25fr) minmax(0,.95fr) minmax(0,1fr) minmax(0,.95fr); gap: 2px; width: min(100%,32.5rem); justify-self: end; }
.desktop-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; border-radius: 999px; font-size: .9375rem; font-weight: 700; text-align: center; }
.header-utility { position: relative; z-index: 30; border-bottom: 1px solid #dce5f1; background: #f1f5fb; }
/* Compact utility links, grouped at the container's right edge. */
.header-tools { position: relative; display: grid; grid-template-columns: 96px 32px; justify-content: end; align-items: center; gap: 8px; padding: 0; }
.language-switcher { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.language-switcher button { min-width: 32px; min-height: 28px; padding: 2px 2px; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: .8125rem; font-weight: 700; cursor: pointer; }
.language-switcher button[aria-pressed=true] { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.language-switcher button:hover { color: var(--blue); }
.header-account { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: stretch; gap: 0; border: 1px solid #b6c9ef; border-radius: 999px; background: var(--light); box-shadow: 0 2px 6px #0f1e3d08; }
.header-phone, .subscriber-link { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 8px; border: 0; background: transparent; font-size: .875rem; font-weight: 700; line-height: 1.4; text-align: center; }
.phone-icon { flex: 0 0 16px; width: 16px; height: 16px; color: var(--blue); }
.header-phone-label, .subscriber-icon { display: none; }
.header-account .header-phone { border-radius: 999px 0 0 999px; }
.header-account .subscriber-link { color: #fff; background: var(--blue); border-left: 1px solid #b6c9ef; border-radius: 0 999px 999px 0; }
.header-phone:hover { background: #e8effc; color: var(--blue-dark); }
.header-account .subscriber-link:hover { background: var(--blue-dark); color: #fff; }
.desktop-nav a:hover, .mobile-nav a:hover { background: var(--light); color: var(--blue); }
.accessibility-tools { position: static; }
.accessibility-tools summary { display: grid; place-items: center; justify-content: center; width: 32px; min-height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); }
.accessibility-tools summary svg { width: 18px; height: 18px; }
.accessibility-tools summary:hover { color: var(--blue); }
.mobile-nav summary { display: grid; place-items: center; justify-content: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--light); }
.accessibility-panel { position: absolute; z-index: 22; right: 0; top: 100%; width: 292px; max-width: calc(100vw - 32px); }
.mobile-nav { display: none; }
.mobile-account-slot { display: none; }
html { scroll-padding-top: var(--header-offset,88px); }
@media (max-width: 1100px) {
 .header-inner { grid-template-columns: minmax(0,1fr) 44px; gap: 12px; }
 .mobile-account-slot { display: block; padding-block: 12px; }
 .mobile-account-slot .header-account { width: min(100%,20rem); margin-left: auto; }
 .desktop-nav { display: none; }
 .mobile-nav { display: block; position: static; }
 .mobile-nav nav { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-width: calc(100vw - 32px); max-height: calc(100dvh - var(--header-offset,88px)); overflow-y: auto; padding: 12px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 14px 40px #0f1e3d18; }
 .mobile-nav nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; }
}
@media (max-width: 639px) {
 .mobile-account-slot .header-account { width: 100%; }
}
@media (pointer: coarse) {
 .language-switcher button, .accessibility-tools summary { min-height: 44px; }
 .header-tools { grid-template-columns: 132px 44px; }
 .language-switcher button, .accessibility-tools summary { min-width: 44px; }
}
html.a11y-high-contrast .header-utility { background: #fff; border-color: #000; }
@media print { .site-header, .header-utility, .mobile-account-slot { display: none; } }
