/* Shared navigation keeps language choices visible on every screen. */
:is(.shop-header,.library-header,.pit-header) {
  display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;
}
:is(.shop-header,.library-header,.pit-header) .brand {grid-column:1;grid-row:1;}
:is(.shop-header,.library-header,.pit-header) .header-tools {grid-column:3;grid-row:1;}
:is(.shop-nav,.library-nav,.pit-nav) {grid-column:2;grid-row:1;justify-content:flex-end;}
:is(.shop-nav,.library-nav,.pit-nav) a {white-space:nowrap;}
.header-tools .language-switcher {margin:0;}
@media(max-width:1279px) {
  :is(.shop-header,.library-header,.pit-header) {padding:14px 18px;gap:12px;}
  :is(.shop-header,.library-header,.pit-header) .header-tools {grid-column:2;justify-self:end;}
  :is(.shop-header,.library-header,.pit-header) .mobile-menu-toggle {display:inline-flex;grid-column:3;grid-row:1;margin:0;}
  :is(.shop-nav,.library-nav,.pit-nav) {display:none;grid-column:1/-1;grid-row:2;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;background:rgba(5,6,7,.96);border:1px solid rgba(255,255,255,.12);}
  :is(.shop-header,.library-header,.pit-header).is-menu-open :is(.shop-nav,.library-nav,.pit-nav) {display:grid;}
  :is(.shop-nav,.library-nav,.pit-nav) a {width:100%;white-space:normal;text-align:center;}
  :is(.shop-nav,.library-nav,.pit-nav) :is(.line-link,.header-line) {grid-column:1/-1;}
}
@media(max-width:480px) {
  :is(.shop-header,.library-header,.pit-header) {padding:12px 14px;gap:8px;}
  :is(.shop-header,.library-header,.pit-header) .brand img {width:110px;}
  .header-tools .language-switcher {gap:0;padding:3px;}
  .header-tools .language-switcher button {min-width:32px;min-height:34px;padding:5px;font-size:12px;}
  :is(.shop-header,.library-header,.pit-header) .mobile-menu-toggle {min-width:42px;padding:8px;}
  :is(.shop-header,.library-header,.pit-header) .mobile-menu-toggle span:last-child {display:none;}
}
