/* Homepage only. The shared navigation, catalogue and inquiry rail keep site.css. */
.home-refresh {
  --home-space: 56px;
  --home-gap: 24px;
  color: var(--ink);
  background: var(--paper);
}

.home-refresh .home-container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.home-refresh .home-section {
  padding-block: var(--home-space);
}

.home-refresh :where(h1, h2, h3, p, a, dd, strong) {
  overflow-wrap: anywhere;
}

.home-refresh :where(.home-hero-copy, .home-hero-visual, .home-section-heading > div) {
  min-width: 0;
}

.home-refresh .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.home-refresh h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.25;
}

.home-refresh .home-kicker {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .075em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-refresh .home-intro {
  max-width: 52ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.home-refresh .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block-start: 26px;
}

.home-refresh .home-actions .button {
  min-width: 0;
  padding-block: 11px;
  line-height: 1.45;
  text-align: center;
}

.home-refresh .home-hero {
  color: var(--on-dark);
  background: var(--steel-deep);
}

.home-refresh .home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  padding-block: 56px 40px;
}

.home-refresh .home-hero-copy-only .home-hero-layout {
  grid-template-columns: minmax(0, 1fr);
}

.home-refresh .home-hero .home-kicker {
  color: var(--accent-bright);
}

.home-refresh .home-hero h1 {
  max-width: 14em;
  color: var(--on-dark);
  font-size: clamp(34px, 3.65vw, 48px);
  line-height: 1.23;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.home-refresh .home-hero .home-intro {
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 1.8;
}

.home-refresh .home-hero .button.secondary {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, .38);
  background: transparent;
}

.home-refresh .home-hero .button.secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .07);
}

.home-refresh .home-equipment {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: var(--paper);
}

.home-refresh .home-equipment-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  padding: 16px;
  background: var(--paper);
}

.home-refresh .home-equipment-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-refresh .home-equipment-banner .home-equipment-image {
  padding: 0;
}

.home-refresh .home-equipment figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.home-refresh .home-equipment figcaption > div {
  min-width: 0;
}

.home-refresh .home-equipment figcaption span {
  display: block;
  margin-block-end: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.home-refresh .home-equipment figcaption a:hover {
  color: var(--accent-strong);
}

.home-refresh .home-equipment figcaption > a:last-child {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.home-refresh .home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 28px;
}

.home-refresh .home-section-heading p:not(.home-kicker) {
  max-width: 65ch;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-refresh .section-link {
  max-width: 100%;
  font-size: 14px;
}

.home-refresh .home-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: 28px;
}

.home-refresh .home-catalog-heading .home-section-heading {
  margin-block-end: 0;
}

.home-refresh .home-quick-search {
  display: flex;
  flex: 0 1 340px;
  min-width: 0;
  align-items: stretch;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
}

.home-refresh .home-quick-search label {
  min-width: 0;
}

.home-refresh .home-quick-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.home-refresh .home-quick-search button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 2px;
  color: var(--on-dark);
  background: var(--steel);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.home-refresh .home-quick-search button:hover {
  background: var(--steel-soft);
}

.home-refresh .home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-refresh .home-category-link {
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-strong);
  background: var(--paper);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
}

.home-refresh .home-category-link > svg {
  flex: none;
  color: var(--steel-soft);
}

.home-refresh .home-category-link:hover {
  border-color: var(--line-strong);
  color: var(--accent-strong);
  background: var(--surface);
}

.home-refresh .home-catalog-all {
  margin-block-start: 22px;
}

.home-refresh .home-products {
  background: var(--surface);
}

.home-refresh .home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--home-gap);
}

.home-refresh .home-product-grid .product-tile,
.home-refresh .home-product-grid .product-tile:only-child {
  grid-column: auto;
  flex-direction: column;
}

.home-refresh .home-product-grid .product-thumb,
.home-refresh .home-product-grid .product-tile:only-child .product-thumb {
  flex: none;
  aspect-ratio: 4 / 3;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.home-refresh .home-product-grid .product-thumb img {
  object-fit: contain;
  transform: none;
  transition: none;
}

.home-refresh .home-product-grid .product-tile-body,
.home-refresh .home-product-grid .product-tile:only-child .product-tile-body {
  justify-content: start;
  padding: 18px;
}

.home-refresh .home-product-grid .product-tile h3,
.home-refresh .home-product-grid .product-tile:only-child h3 {
  font-size: 18px;
  line-height: 1.4;
}

.home-refresh .home-product-grid .tile-key {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.home-refresh .home-product-grid .tile-actions {
  gap: 8px;
  margin-block-start: auto;
  font-size: 14px;
}

.home-refresh .home-applications {
  color: var(--on-dark);
  background: var(--steel);
}

.home-refresh .home-applications h2 {
  color: var(--on-dark);
}

.home-refresh .home-applications .home-kicker {
  color: var(--accent-bright);
}

.home-refresh .home-applications .home-section-heading p:not(.home-kicker),
.home-refresh .home-applications .section-link {
  color: var(--on-dark-muted);
}

.home-refresh .home-application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
}

.home-refresh .home-application {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  column-gap: 20px;
  padding-block: 20px;
  border-top: 1px solid var(--on-dark-line);
}

.home-refresh .home-application .home-index {
  grid-column: 1 / -1;
  margin-block-end: 12px;
  color: var(--on-dark-muted);
  font-family: var(--mono);
  font-size: 12px;
}

.home-refresh .home-application strong {
  color: var(--on-dark);
  font-size: 19px;
  line-height: 1.45;
}

.home-refresh .home-application p {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-refresh .home-application > svg {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

.home-refresh .home-application:hover strong,
.home-refresh .home-application:hover > svg {
  color: var(--accent-bright);
}

.home-refresh .home-application-support,
.home-refresh .home-resource-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-block-start: 20px;
  padding-block-start: 18px;
  border-top: 1px solid var(--line);
}

.home-refresh .home-application-support {
  border-color: var(--on-dark-line);
}

.home-refresh .home-application-support p,
.home-refresh .home-resource-contact p {
  max-width: 75ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-refresh .home-application-support p {
  color: var(--on-dark-muted);
}

.home-refresh .home-application-support > a,
.home-refresh .home-resource-contact > a {
  flex: none;
}

.home-refresh .home-resource-contact > .button {
  min-height: 44px;
  white-space: normal;
}

.home-refresh .home-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-block-start: 0;
}

.home-refresh .home-resource {
  position: relative;
  display: block;
  min-width: 0;
  padding: 24px;
  padding-inline-end: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.home-refresh .home-resource-type {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block-end: 12px;
  color: var(--steel-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-refresh .home-resource h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.home-refresh .home-resource p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.home-refresh .home-resource > svg {
  position: absolute;
  inset-inline-end: 19px;
  inset-block-start: 26px;
  color: var(--steel-soft);
}

.home-refresh .home-resource:hover {
  border-color: var(--line-strong);
  background: var(--paper);
}

.home-refresh .home-resource:hover h3 {
  color: var(--accent-strong);
}

.home-refresh .home-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

@media (max-width: 980px) {
  .home-refresh {
    --home-space: 44px;
    --home-gap: 16px;
  }

  .home-refresh .home-hero-layout {
    gap: 28px;
    padding-block: 40px 32px;
  }

  .home-refresh .home-hero h1 {
    font-size: 34px;
  }

  .home-refresh .home-equipment-image {
    height: 275px;
    padding: 12px;
  }

  .home-refresh .home-catalog-heading {
    flex-wrap: wrap;
  }

  .home-refresh .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-refresh .home-application-grid {
    gap: 0 20px;
  }

  .home-refresh .home-resource {
    padding: 20px;
    padding-inline-end: 36px;
  }

  .home-refresh .home-resource > svg {
    inset-inline-end: 13px;
    inset-block-start: 22px;
  }
}

@media (max-width: 760px) {
  .home-refresh {
    --home-space: 36px;
    --home-gap: 16px;
  }

  .home-refresh .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-block: 28px 22px;
  }

  .home-refresh .home-kicker {
    margin-block-end: 9px;
    font-size: 11px;
  }

  .home-refresh .home-hero h1 {
    max-width: 18em;
    font-size: 30px;
    line-height: 1.24;
  }

  .home-refresh .home-hero .home-intro {
    margin-block-start: 13px;
    font-size: 14px;
    line-height: 1.7;
  }

  .home-refresh .home-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-block-start: 20px;
  }

  .home-refresh .home-actions .button {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 14px;
    white-space: normal;
  }

  .home-refresh .home-equipment-image {
    height: 170px;
    padding: 8px 16px;
  }

  .home-refresh .home-equipment-banner .home-equipment-image {
    height: 200px;
    padding: 4px;
  }

  .home-refresh .home-equipment figcaption {
    gap: 12px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .home-refresh .home-equipment figcaption span {
    margin-block-end: 2px;
    font-size: 10px;
  }

  .home-refresh h2 {
    font-size: 25px;
    line-height: 1.3;
  }

  .home-refresh .home-section-heading {
    flex-wrap: wrap;
    align-items: start;
    gap: 14px;
    margin-block-end: 22px;
  }

  .home-refresh .home-section-heading p:not(.home-kicker) {
    margin-block-start: 9px;
    font-size: 14px;
  }

  .home-refresh .home-catalog-heading {
    display: grid;
    gap: 18px;
    margin-block-end: 20px;
  }

  .home-refresh .home-quick-search {
    width: 100%;
  }

  .home-refresh .home-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-refresh .home-product-grid .product-tile {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .home-refresh .home-product-grid .product-thumb,
  .home-refresh .home-product-grid .product-tile:only-child .product-thumb {
    height: 100%;
    min-height: 132px;
    aspect-ratio: auto;
    padding: 10px;
    border-bottom: 0;
    border-inline-end: 1px solid var(--line);
  }

  .home-refresh .home-product-grid .product-tile-body,
  .home-refresh .home-product-grid .product-tile:only-child .product-tile-body {
    gap: 7px;
    padding: 14px;
  }

  .home-refresh .home-product-grid .product-tile h3,
  .home-refresh .home-product-grid .product-tile:only-child h3 {
    font-size: 16px;
  }

  .home-refresh .home-product-grid .tile-actions {
    padding-block-start: 6px;
  }

  .home-refresh .home-category-link {
    min-height: 52px;
    gap: 8px;
    padding: 12px;
    font-size: 14px;
  }

  .home-refresh .home-application-support,
  .home-refresh .home-resource-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .home-refresh .home-application-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .home-refresh .home-application {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 0 12px;
    padding-block: 20px;
  }

  .home-refresh .home-application .home-index {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 2px 0 0;
    font-size: 11px;
  }

  .home-refresh .home-application strong {
    grid-column: 2;
    font-size: 18px;
  }

  .home-refresh .home-application p {
    grid-column: 2;
    margin-block-start: 8px;
    font-size: 13px;
  }

  .home-refresh .home-application > svg {
    grid-column: 3;
    grid-row: 1;
  }

  .home-refresh .home-resource-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-block-start: 0;
  }

  .home-refresh .home-resource {
    padding: 18px;
    padding-inline-end: 42px;
  }

  .home-refresh .home-resource-type {
    margin-block-end: 7px;
    font-size: 10px;
  }

  .home-refresh .home-resource > svg {
    inset-inline-end: 17px;
    inset-block-start: 20px;
  }
}

@media (max-width: 420px) {
  .home-refresh .home-hero-layout {
    gap: 18px;
    padding-block-start: 24px;
  }

  .home-refresh .home-hero h1 {
    font-size: 28px;
  }

  .home-refresh .home-equipment-image {
    height: 156px;
  }
}
