/**
 * Entasher.com — Master Header (global site chrome)
 * Requires tokens.css. Mount via master-header.js on #entasher-header
 */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
header.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}
header.site-header .header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--blue);
  flex-shrink: 0;
  transition: var(--transition);
}
.header-brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(38, 78, 255, 0.25);
  flex-shrink: 0;
}
.header-brand img {
  height: 32px;
  width: auto;
  display: block;
}
.header-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.header-nav > a,
.header-nav .nav-dropdown-trigger {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.header-nav > a:hover,
.header-nav .nav-dropdown-trigger:hover,
.header-nav > a:focus-visible,
.header-nav .nav-dropdown-trigger:focus-visible {
  color: var(--blue);
  outline: none;
}
.header-nav > a::after,
.header-nav .nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition);
}
.header-nav > a:hover::after,
.header-nav > a.active::after,
.header-nav .nav-dropdown.is-open .nav-dropdown-trigger::after,
.header-nav .nav-dropdown-trigger.active::after {
  transform: scaleX(1);
}
.header-nav > a.active,
.header-nav .nav-dropdown.is-open .nav-dropdown-trigger,
.header-nav .nav-dropdown-trigger.active {
  color: var(--blue);
  font-weight: 700;
}
.nav-dropdown {
  position: relative;
}
/* Invisible bridge so pointer can reach the panel without losing hover */
.nav-dropdown--mega-search::before {
  display: none;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  z-index: 1000;
}
.nav-dropdown-panel {
  overscroll-behavior: contain;
}
.nav-mega-panel {
  max-height: min(70vh, 520px);
  overflow-y: auto;
}
.nav-dropdown-panel:not(.nav-mega-panel) {
  max-height: min(60vh, 400px);
  overflow-y: auto;
}
.nav-dropdown.is-open .nav-dropdown-panel.is-fixed {
  position: fixed;
  margin: 0;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown-trigger svg {
  transition: transform var(--transition-fast);
}
.nav-dropdown.is-open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 1001;
}
.nav-dropdown.is-open .nav-dropdown-panel {
  display: block;
}
.nav-dropdown.is-open .nav-dropdown-panel.nav-mega-panel--searchable {
  display: flex;
  flex-direction: column;
}
.nav-dropdown-panel a:not(.nav-service-item) {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.nav-dropdown-panel a:hover {
  background: var(--bg-light);
  color: var(--blue);
}
/* Services mega menu */
.nav-dropdown--mega .nav-mega-panel {
  left: 0;
  transform: none;
  min-width: min(720px, calc(100vw - 40px));
  padding: 16px;
}
.nav-mega-panel--searchable {
  padding: 0;
  min-width: min(400px, calc(100vw - 24px));
  max-width: min(560px, calc(100vw - 24px));
  overflow: hidden;
}
.nav-mega-search-wrap {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line-light);
  background: var(--bg-light);
  flex-shrink: 0;
}
.nav-mega-search-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px 9px 34px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E")
    no-repeat 10px center;
  outline: none;
}
.nav-mega-search-input:focus {
  border-color: var(--blue);
  box-shadow: var(--focus);
}
.nav-mega-scroll {
  max-height: min(420px, 55vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 10px;
}
.nav-mega-groups {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mega-group {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-light);
}
.nav-mega-group:last-child {
  border-bottom: none;
}
.nav-mega-group.is-hidden {
  display: none !important;
}
.nav-mega-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 4px;
  padding: 6px 8px 2px;
}
.nav-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}
.nav-service-item--sub {
  font-weight: 500;
  font-size: 13px;
  padding-left: 18px;
}
.nav-service-item--sub .nav-service-item-label::before {
  content: "·";
  margin-right: 6px;
  color: var(--muted);
}
.nav-service-item:hover {
  background: var(--bg-light);
  color: var(--blue);
}
.nav-service-item.is-hidden {
  display: none !important;
}
.nav-service-item-meta {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  flex-shrink: 0;
}
.nav-mega-empty {
  margin: 0;
  padding: 20px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.nav-mega-empty.is-hidden {
  display: none !important;
}
.nav-mega-panel--searchable .nav-mega-footer {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line-light);
}
.nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
}
.nav-mega-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
  padding: 0 12px;
}
.nav-mega-col a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.nav-mega-col a:hover {
  background: var(--bg-light);
  color: var(--blue);
}
.nav-mega-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}
.nav-mega-all {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.nav-mega-all--secondary {
  color: var(--muted);
  font-weight: 600;
}
.nav-mega-all:hover {
  text-decoration: underline;
}
.nav-dropdown-panel--content {
  min-width: 240px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.country-switcher {
  position: relative;
}
.country-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
}
.country-btn:hover {
  border-color: var(--blue);
  background: var(--bg-light);
}
.country-flag {
  font-size: 16px;
  line-height: 1;
}
.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: min(280px, calc(100vw - 24px));
  max-width: 320px;
  z-index: 1001;
  display: none;
  padding: 0;
  overflow: hidden;
}
.country-dropdown.is-open {
  display: flex;
  flex-direction: column;
}
.country-dropdown-search-wrap {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line-light);
  background: var(--bg-light);
  flex-shrink: 0;
}
.country-search-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 12px 9px 34px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--ink);
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E")
    no-repeat 10px center;
  outline: none;
  transition: var(--transition);
}
.country-search-input:focus {
  border-color: var(--blue);
  box-shadow: var(--focus);
}
.country-dropdown-list {
  max-height: min(320px, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}
.country-dropdown-empty {
  margin: 0;
  padding: 16px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.country-dropdown-empty.is-hidden,
.country-option.is-hidden {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
}
.country-option-label {
  flex: 1;
  min-width: 0;
}
.country-option-code {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.country-option-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.country-option:hover {
  background: var(--bg-light);
  color: var(--blue);
}
.country-option.is-active {
  background: rgba(38, 78, 255, 0.1);
  color: var(--blue);
}
/* Language toggle lives in site footer — see master-footer-lang.html */
.search-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}
.search-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--bg-light);
}
.btn-rfq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-rfq:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.btn-signin {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: var(--transition);
}
.btn-signin:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--bg-light);
}
.user-menu {
  position: relative;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.user-btn:hover {
  border-color: var(--blue);
  background: var(--bg-light);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  min-width: 200px;
  z-index: 1001;
  display: none;
  padding: 8px;
}
.user-dropdown.is-open {
  display: block;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.user-dropdown a:hover {
  background: var(--bg-light);
  color: var(--blue);
}
.user-dropdown a.is-danger {
  color: var(--error);
}
.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
}
.mobile-menu-toggle:hover {
  background: rgba(38, 78, 255, 0.06);
  border-color: var(--blue);
  color: var(--blue);
}
.mobile-menu-toggle[aria-expanded="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-modal.is-open {
  display: flex;
}
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 600px;
  padding: 20px;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--white);
}
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
}
.search-input::placeholder {
  color: var(--muted);
}
.search-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-close:hover {
  background: var(--line);
  color: var(--ink);
}
/* Mobile drawer — light, modern (not dark mode) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.35s;
}
.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(14, 19, 32, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
}
.mobile-menu-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--surface);
  color: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 48px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-menu.is-open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px;
  border-bottom: 1px solid var(--line-light);
  background: var(--surface);
  flex-shrink: 0;
}
.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--blue);
}
.mobile-menu-brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}
.mobile-menu-close:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(38, 78, 255, 0.06);
}
.mobile-menu-country {
  flex-shrink: 0;
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--line-light);
  background: var(--bg-light);
}
.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.mobile-nav-expand {
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  text-align: left;
  width: 100%;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
}
.mobile-nav-expand:hover,
.mobile-nav-expand[aria-expanded="true"] {
  border-color: rgba(38, 78, 255, 0.25);
  background: rgba(38, 78, 255, 0.06);
  color: var(--blue);
}
.mobile-submenu-cta {
  display: block;
  margin-top: 10px;
  padding: 12px 14px !important;
  font-weight: 700;
  font-size: 14px !important;
  text-align: center;
  border-radius: var(--radius-sm) !important;
  background: var(--blue) !important;
  color: var(--white) !important;
  border: none !important;
}
.mobile-submenu-cta--secondary {
  background: var(--white) !important;
  color: var(--blue) !important;
  border: 1.5px solid var(--blue) !important;
}
.mobile-menu-nav > a {
  display: flex;
  align-items: center;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  background: var(--bg-light);
  border: 1px solid var(--line-light);
  text-align: left;
  width: 100%;
  transition: var(--transition-fast);
}
.mobile-menu-nav > a:hover,
.mobile-menu-nav > a.active {
  border-color: rgba(38, 78, 255, 0.3);
  background: rgba(38, 78, 255, 0.06);
  color: var(--blue);
}
.mobile-submenu {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding: 0 0 4px 4px;
}
.mobile-submenu.is-open {
  display: flex;
}
.mobile-submenu > a:not(.mobile-service-link):not(.mobile-submenu-cta) {
  display: block;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line-light);
  transition: var(--transition-fast);
}
.mobile-submenu > a:not(.mobile-service-link):not(.mobile-submenu-cta):hover {
  border-color: rgba(38, 78, 255, 0.25);
  color: var(--blue);
  background: var(--bg-light);
}
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid var(--line-light);
}
.mobile-menu-actions .btn-rfq {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.mobile-menu-actions .btn-signin {
  width: 100%;
  text-align: center;
  justify-content: center;
  display: flex;
}
.mobile-menu-footer {
  /* Legacy: country moved to .mobile-menu-country; keep for older cached markup */
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-light);
  background: var(--bg-light);
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .nav-mega-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1024px) {
  .header-nav,
  .country-switcher,
  .header-search-wrap {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* Auth / centered pages: stack header above content */
body:has(> #entasher-header) {
  display: block;
}
body:has(> #entasher-header) .box,
body:has(> #entasher-header) .error-container {
  margin: 24px auto;
}
@media (max-width: 768px) {
  header.site-header .header-inner {
    padding: 10px 16px;
    gap: 10px;
  }
  .header-brand {
    font-size: 17px;
    min-width: 0;
  }
  .header-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .header-actions {
    gap: 8px;
    flex-shrink: 0;
  }
  .btn-rfq .btn-rfq-label {
    display: none;
  }
  .btn-rfq {
    padding: 10px 12px;
    min-width: 42px;
    justify-content: center;
  }
  .btn-signin {
    display: none;
  }
  .user-menu .user-name {
    display: none;
  }
}
/* —— Header UX: skip link, toast, search recents, mega empty CTA —— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  padding: 12px 18px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  position: fixed;
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.header-inner {
  position: relative;
}
.header-toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(8px);
  z-index: 10002;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.header-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.search-recent {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}
.search-recent-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.search-recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-recent-chip {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-light);
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
}
.search-recent-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}
.nav-mega-empty-link {
  font-weight: 800;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nav-mega-empty-link:hover {
  color: var(--orange);
}
@media (prefers-reduced-motion: reduce) {
  header.site-header,
  .header-brand,
  .header-nav > a,
  .header-nav .nav-dropdown-trigger,
  .nav-dropdown-panel,
  .search-modal,
  .mobile-menu,
  .header-toast {
    transition: none !important;
  }
  .header-brand:hover {
    transform: none;
  }
  .header-toast.is-visible {
    transition: none;
  }
}
