/* Keep native select interaction, with consistent painting for the inset focus indicator. */
.mobile-header-v1.catalog-page .catalog-controls select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337414b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 18px 18px;
}
.mobile-header-v1.catalog-page .catalog-controls .filters input,
.mobile-header-v1.catalog-page .catalog-controls .filters select {
  height: 48px;
  min-height: 48px;
}
.mobile-header-v1.catalog-page .catalog-controls .sort-label select {
  height: 44px;
  min-height: 44px;
}
/* Restore the system caret in High Contrast; catalog-focus keeps its internal outline. */
@media (forced-colors: active) {
  .mobile-header-v1.catalog-page .catalog-controls select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none;
  }
}

/* Page spacing and header changes are mobile-only. */
@media (max-width: 650px) {
  .mobile-header-v1 .header .header-inner {
    height: 64px;
    min-height: 64px;
    gap: 16px;
  }
  .mobile-header-v1 .header .mobile-catalog { display: none; }
  .mobile-header-v1 .header .logo { min-height: 44px; }
  .mobile-header-v1 .header .menu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .mobile-header-v1.home-focus.variant-a .hero { padding-top: 20px; }
  .mobile-header-v1.catalog-page .catalog-intro { padding-top: 20px; }

  .mobile-header-v1.project-page .project-intro { padding-top: 12px; }
  .mobile-header-v1.project-page .mobile-project-back {
    min-height: 44px;
    margin-bottom: 8px;
  }

  /* Breadcrumbs and the overline already separate these headings from the header. */
  .mobile-header-v1.mobile-header-editorial main > .shell > .breadcrumbs {
    padding-top: 16px;
    margin-bottom: 16px;
  }
  .mobile-header-v1.mobile-header-editorial .editorial-hero,
  .mobile-header-v1.mobile-header-editorial .contact-hero { padding-top: 0; }
  .mobile-header-v1.mobile-header-editorial .editorial-hero > div > .small-label,
  .mobile-header-v1.mobile-header-editorial .contact-hero > div > .small-label {
    margin-bottom: 12px;
  }

  .mobile-header-v1 .legal-page { padding-top: 16px; }
  .mobile-header-v1 .legal-page > a:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 16px;
    line-height: 24px;
  }
  .mobile-header-v1 .legal-page h1 { margin-top: 12px; }

  /* Keep native details/summary behavior; replace only the UA disclosure drawing. */
  .mobile-header-v1 #catalog-filters > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 16px;
    line-height: 24px;
    list-style: none;
  }
  .mobile-header-v1 #catalog-filters > summary::marker { content: ""; }
  .mobile-header-v1 #catalog-filters > summary::-webkit-details-marker { display: none; }
  .mobile-header-v1 #catalog-filters > summary .filter-disclosure-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-inline-start: auto;
    color: currentColor;
    transform: rotate(0deg);
    transform-origin: center;
    pointer-events: none;
  }
  .mobile-header-v1 #catalog-filters[open] > summary .filter-disclosure-icon {
    transform: rotate(90deg);
  }
}
@media (max-width: 360px) {
  .mobile-header-v1.home-focus.variant-a .hero { padding-top: 16px; }
}
