/* Scoped to navigation and replacement icons. */
.header-container { max-width: 1600px; gap: 24px; padding-inline: clamp(16px, 3vw, 48px); }
.site-header .brand-logo { flex-shrink: 0; gap: 10px; }
.site-header .brand-title { font-size: 1.2rem; white-space: nowrap; }
.site-header .brand-subtitle { font-size: .58rem; letter-spacing: 1.7px; white-space: nowrap; }
.site-header .brand-icon { width: 40px; height: 40px; flex-shrink: 0; }
.nav-menu { gap: clamp(12px, 1.4vw, 24px); }
.nav-link { font-size: .8rem; letter-spacing: 0; white-space: nowrap; }
.header-actions { gap: 12px; flex-shrink: 0; }
.header-actions .btn-emergency { font-size: .72rem; padding: 11px 14px; white-space: nowrap; }
.header-preferences { position: relative; }
.header-preferences summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border-subtle); border-radius: 6px; cursor: pointer; list-style: none; color: var(--text-muted); }
.header-preferences summary::-webkit-details-marker { display: none; }
.header-preferences[open] summary, .header-preferences summary:hover { color: #fff; border-color: var(--red-primary); }
.header-preferences-panel { position: absolute; right: 0; top: calc(100% + 12px); display: grid; gap: 16px; width: 280px; padding: 20px; background: #100b0e; border: 1px solid var(--border-subtle); border-radius: 10px; box-shadow: 0 16px 40px #0009; }
.header-preferences-panel .smoke-fx-control { display: flex; justify-content: space-between; }
.header-preferences-panel .smoke-control-pill { min-height: 36px; }
.header-preferences-panel .audio-toggle-btn { min-height: 44px; justify-content: center; }
.site-header :is(button, a, summary):focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.ui-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
.tech-pill { display: inline-flex; align-items: center; gap: 8px; }
.tech-pill .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.tech-pill .ui-icon, .measure-icon, .hotspot-btn-select .ui-icon { color: var(--red-accent); }
.measure-icon { display: grid; place-items: center; }
.direct-icon { flex-shrink: 0; }
.direct-icon .ui-icon { width: 22px; height: 22px; }
.trust-stars { display: flex; gap: 4px; }
.trust-stars .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
@media (max-width: 1279px) {
  .header-container > nav { margin-left: auto; }
  .mobile-menu-btn { display: flex; width: 44px; height: 44px; }
  .nav-menu { position: fixed; top: var(--header-height); left: 0; width: 100%; max-height: calc(100svh - var(--header-height)); overflow-y: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px; background: #0c090c; border-bottom: 1px solid var(--border-active); transform: translateY(-140%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s; }
  .nav-menu.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav-menu .nav-link { display: block; padding: 12px; font-size: .95rem; }
  .nav-menu .nav-link::after { display: none; }
}
@media (max-width: 600px) {
  .header-container { gap: 8px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-emergency { display: none; }
  .site-header .brand-title { font-size: 1.05rem; }
  .site-header .brand-subtitle { font-size: .5rem; letter-spacing: 1.1px; }
  .site-header .brand-icon { width: 32px; height: 36px; }
  .header-preferences-panel { position: fixed; right: 16px; top: calc(var(--header-height) + 8px); width: min(280px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-menu { transition: none; }
}
