.manufacturers-page .site-header { position: relative; background: #0c1b31; }
.manufacturers-page .main-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.manufacturers-hero { padding: clamp(56px, 8vw, 100px) 0; background: #101f38; color: #fff; border-bottom: 5px solid var(--red); }
.manufacturers-hero h1 { margin: 0; font: 800 clamp(34px, 7vw, 82px)/1.06 var(--display); letter-spacing: -.055em; }
.manufacturers-hero p:not(.eyebrow) { max-width: 590px; margin: 20px 0 24px; color: #c9d3df; font-size: 17px; }
.manufacturers-directory { padding-block: clamp(42px, 7vw, 86px); }
.directory-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.directory-header h2 { margin: 0; font: 800 clamp(24px, 4vw, 40px)/1.15 var(--display); letter-spacing: -.04em; }
.directory-header p { margin: 6px 0 0; color: var(--muted); }
.directory-header label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.directory-header input { width: min(320px, calc(100vw - 32px)); padding: 11px 13px; border: 1px solid #a8b2c0; background: #fff; color: var(--ink); }
.manufacturer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(145px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.manufacturer-grid li { display: grid; justify-items: center; align-content: center; gap: 14px; min-height: 132px; padding: 16px; border: 1px solid var(--line); background: #fff; text-align: center; font-weight: 700; scroll-margin-top: 24px; }
.manufacturer-grid li[hidden] { display: none; }
.manufacturer-grid li:target { outline: 2px solid var(--red); outline-offset: -2px; }
.manufacturer-grid img { display: block; max-width: 100%; object-fit: contain; }
#manufacturer-empty a { text-decoration: underline; }

.manufacturer-directory-note {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--red);
  background: #fff;
}

.manufacturer-directory-note h3 {
  margin: 0 0 4px;
  font: 700 17px var(--display);
}

.manufacturer-directory-note p {
  max-width: 80ch;
  margin: 0;
  color: var(--muted);
}

.manufacturer-directory-note a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

.directory-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.directory-controls select {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #a8b2c0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.manufacturer-grid li {
  overflow-wrap: anywhere;
}

.manufacturer-grid li.manufacturer-name-only {
  font-size: 17px;
}

.manufacturer-grid img.logo-on-dark {
  padding: 8px;
  border-radius: 4px;
  background: #17263a;
}

.manufacturer-grid li:has(> .manufacturer-card-button) {
  display: block;
  padding: 0;
}

.manufacturer-grid li[hidden]:has(> .manufacturer-card-button) {
  display: none;
}

.manufacturer-card-button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 132px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  overflow-wrap: anywhere;
  text-align: center;
}

.manufacturer-card-button:hover {
  background: #f5f7fa;
}

.manufacturer-card-button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.manufacturer-profile {
  width: min(480px, calc(100% - 32px));
  padding: 28px;
  border: 0;
  border-top: 4px solid var(--red);
  background: #fffdf9;
  color: var(--ink);
  box-shadow: 0 20px 70px #0005;
}

.manufacturer-profile::backdrop {
  background: rgb(5 17 34 / 70%);
}

.manufacturer-profile h2 {
  margin: 0 36px 10px 0;
  font: 800 clamp(23px, 5vw, 32px)/1.15 var(--display);
  overflow-wrap: anywhere;
}

.manufacturer-profile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.manufacturer-profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
}
