/* Loaded after preserved styles so every page uses the same mobile header. */
@media (max-width: 860px) {
  :root body .site-header .hdr-row {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 12px;
  }
  :root body .site-header .brand,
  :root body .site-header .brand-text {
    min-width: 0;
    max-width: 100%;
  }
  :root body .site-header .brand-name {
    white-space: normal;
  }
  :root body .site-header .gnav,
  :root body .site-header .hdr-actions .price-link {
    display: none;
  }
  :root body .site-header .hdr-actions {
    min-width: 0;
    max-width: 100%;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 8px;
  }
  :root body .site-header .hamburger {
    display: inline-flex;
  }
  :root body .site-header .mega-search {
    min-width: 0;
    max-width: 100%;
  }
  :root body .site-header .mega-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(255px, 100%), 1fr));
  }
  :root body .site-header .mega-group {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 560px) {
  :root body .page [id] {
    scroll-margin-top: 148px;
  }
  /* Keep legacy column widths inside a dedicated scroll container. */
  :root body .pp-page .tw,
  :root body .mobile-table-scroll {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }
  :root body .site-header .hdr-actions {
    display: grid;
    flex: 1 1 100%;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 6px;
  }
  :root body .site-header .hdr-actions .btn {
    min-width: 0;
    padding: 8px;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
  }
  :root body .site-header .lang-full {
    display: none;
  }
  :root body .site-header .lang-short {
    display: inline-block;
  }
  :root body .site-header .lang-btn {
    padding: 8px;
    font-size: 12px;
    line-height: 1.5;
  }
  :root body .site-header .lang-menu {
    left: 0;
    right: auto;
    max-width: calc(100vw - 30px);
  }
}
