.home-page {
  --hf-paper: var(--paper, #fff);
  --hf-pad: max(4.6vw, (100% - 1510px) / 2);
  --hf-bridge: clamp(112px, 11vw, 185px);
}
.home-page .hf-hero {
  position: relative;
  isolation: isolate;
  color: #f7fbff;
  background: #071b2b;
}
.hf-photo {
  display: block;
  position: absolute;
  z-index: -3;
  inset: 0 0 auto;
  height: clamp(600px, 63vw, 1050px);
  max-height: 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hf-photo img { display: block; height: 100%; width: 100%; object-fit: cover; object-position: 50% 72%; }
.home-page .hf-hero::before {
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgb(2 18 36 / .78), rgb(4 25 43 / .44) 33%, rgb(3 23 39 / .12) 60%, transparent 91%);
  animation: none;
}
.home-page .hf-hero .bar { margin-inline: var(--hf-pad); }
.home-page .hf-hero .hm-opening { padding: 0 var(--hf-pad); }
.home-page .hf-hero .hm-copy {
  padding: clamp(42px, 4.4vw, 78px) 0 clamp(64px, 6.4vw, 108px);
}
.home-page .hf-hero h1 {
  font-size: clamp(54px, 5.65vw, 93px);
  letter-spacing: -.053em;
  line-height: .99;
  margin: clamp(24px, 2.1vw, 35px) 0 clamp(21px, 2.2vw, 34px);
}
.home-page .hf-hero h1 span { display: block; }
.hf-hero .hm-copy p { max-width: 740px; font-size: clamp(18px, 1.48vw, 25px); }
.hf-deck {
  padding: 0 var(--hf-pad) calc(var(--hf-bridge) + 16px);
  background: linear-gradient(to bottom, rgb(7 28 46 / .66), rgb(7 27 46 / .82) 42%, #071b2b 90%);
}
/* Reserve the whole blend below the last control. Its opaque endpoint is also the next section's paint. */
.home-page .hf-hero::after {
  z-index: 1;
  inset: auto 0 0;
  height: var(--hf-bridge);
  background: var(--hf-paper);
  mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / .025) 9%, rgb(0 0 0 / .105) 20%,
    rgb(0 0 0 / .245) 32%, rgb(0 0 0 / .45) 46%, rgb(0 0 0 / .665) 60%, rgb(0 0 0 / .833) 73%,
    rgb(0 0 0 / .947) 85%, rgb(0 0 0 / .991) 94%, #000 99%, #000);
}
.home-page #categories {
  padding: clamp(10px, 1.3vw, 23px) var(--hf-pad) clamp(30px, 3vw, 46px);
  background: var(--hf-paper);
}
dspm-home-finder {
  display: block;
  position: relative;
  border-top: 1px solid rgb(196 218 235 / .48);
  padding-top: clamp(28px, 3vw, 49px);
  color-scheme: dark;
}
dspm-home-finder::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #77baff;
}
.hf-form {
  display: grid;
  grid-template-columns: minmax(174px, .95fr) minmax(0, 3.5fr);
  align-items: start;
  gap: clamp(22px, 2.3vw, 38px) clamp(20px, 2.65vw, 44px);
}
.hf-form :is(h2, p) { margin: 0; }
.hf-intro .hf-sliders { display: block; width: 21px; height: 21px; color: #a4d9ff; margin-bottom: 14px; }
.hf-intro { min-width: 0; }
.hf-intro h2 { font-size: clamp(31px, 3vw, 49px); line-height: 1.04; letter-spacing: -.046em; color: #f7fbff; }
.hf-intro p { margin-top: 15px; max-width: 260px; color: #d4e4ef; font-size: clamp(15px, 1.16vw, 19px); line-height: 1.46; }
.hf-reset {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: #a4d9ff; text-decoration: none; font-size: 15px; font-weight: 500;
}
.hf-intro .hf-reset { margin-top: 12px; }
.hf-reset:hover { text-decoration: underline; color: #fff; }
.hf-reset .ico { width: 16px; height: 16px; }
.hf-fields { display: grid; align-items: start; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 1.8vw, 29px) clamp(10px, 1.05vw, 18px); min-width: 0; }
.hf-field, .hf-output { min-width: 0; }
.hf-field > label, .hf-field > span, .hf-output > span {
  display: block; font-size: 14px; line-height: 1.35; font-weight: 500; color: #d4e4ef; margin-bottom: 8px;
}
.hf-field > select, .hf-multiple summary {
  appearance: auto;
  display: block;
  width: 100%; max-width: 100%; height: clamp(45px, 3.12vw, 51px); min-width: 0;
  margin: 0; padding: 0 10px; border: 1px solid #7a98ac; border-radius: 5px;
  background-color: rgb(9 33 53 / .84); color: #f7fbff; font: 500 clamp(15px, 1.15vw, 19px)/1.25 Roboto, Arial, sans-serif;
  cursor: pointer; text-overflow: ellipsis;
}
.hf-field > select:disabled { opacity: .72; cursor: auto; }
.hf-field > select option { color: #f7fbff; background: #0d263b; }
dspm-home-finder :is(a, button, select, input, summary):focus-visible { outline: 3px solid #a4d9ff; outline-offset: 3px; }
.hf-multiple details { position: relative; }
.hf-multiple summary { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.hf-multiple summary::-webkit-details-marker { display: none; }
.hf-multiple summary::after { content: ""; width: 7px; height: 7px; flex: none; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.hf-multiple summary span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.hf-multiple fieldset { position: relative; margin: 5px 0 0; padding: 5px 9px; min-width: 0; border: 1px solid #7594aa; border-radius: 4px; background: #0a2235; }
.hf-multiple fieldset label { display: flex; align-items: center; min-height: 42px; gap: 8px; color: #f7fbff; font-size: 14px; cursor: pointer; }
.hf-multiple input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: #438dfa; }
.hf-output strong { display: block; padding-top: 7px; color: #a4d9ff; font-size: 24px; }
.hf-result {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: clamp(17px, 1.8vw, 30px);
  min-width: 0; min-height: 99px; padding: clamp(15px, 1.4vw, 23px);
  border: 1px solid rgb(167 197 218 / .49); border-radius: 7px;
  background: linear-gradient(105deg, rgb(23 57 81 / .90), rgb(13 40 60 / .89) 58%, rgb(14 43 62 / .94));
}
.hf-thumb { flex: none; display: grid; place-items: center; width: clamp(55px, 5.45vw, 87px); padding-right: clamp(12px, 1.4vw, 23px); border-right: 1px solid rgb(207 228 243 / .24); }
.hf-thumb img { display: block; width: 100%; height: clamp(47px, 4.5vw, 74px); object-fit: contain; }
.hf-match { min-width: 0; flex: 1; }
.hf-kicker { display: block; color: #a4d9ff; font-size: 11px; line-height: 1.4; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hf-match strong { display: block; overflow-wrap: anywhere; margin: 5px 0 0; color: #f7fbff; font: 700 clamp(20px, 2.1vw, 34px)/1.1 Roboto, Arial, sans-serif; letter-spacing: -.028em; }
.hf-match small { display: block; margin-top: 5px; color: #d4e4ef; font-size: clamp(13px, 1vw, 16px); }
.hf-specs, .hf-apply {
  display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px;
  border: 1px solid #67a4fa; border-radius: 5px; background: #165fc9;
  color: #fff; padding: 11px clamp(16px, 1.7vw, 28px); font: 700 16px/1.2 Roboto, Arial, sans-serif; text-decoration: none; text-align: center; cursor: pointer;
}
.hf-specs:hover, .hf-apply:hover { background: #104eaf; color: #fff; }
.hf-specs .ico, .hf-apply .ico { width: 18px; height: 18px; }
.hf-apply { grid-column: 1 / -1; justify-self: end; }
dspm-home-finder[data-ready]:not([data-failed]) .hf-apply { display: none; }
dspm-home-finder[data-failed] .hf-status { position: static; width: auto; height: auto; display: block; clip: auto; clip-path: none; overflow: visible; white-space: normal; margin-top: 14px; color: #fff; }
@media (max-width: 1040px) {
  .hf-form { grid-template-columns: minmax(0, 1fr); }
  .hf-intro { display: grid; grid-template-columns: auto 1fr auto; gap: 0 10px; align-items: center; }
  .hf-intro .hf-sliders { margin: 0; }
  .hf-intro .hf-reset { grid-row: 1; grid-column: 3; margin: 0; }
  .hf-intro p { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-top: 6px; }
}
@media (max-width: 680px) {
  .home-page { --hf-pad: clamp(15px, 5vw, 28px); --hf-bridge: clamp(89px, 25vw, 132px); }
  .hf-photo { height: clamp(480px, 137vw, 700px); mask-image: linear-gradient(#000 58%, transparent); }
  .hf-photo img { object-position: center 44%; }
  .home-page .hf-hero::before { background: linear-gradient(90deg, rgb(2 18 34 / .74), rgb(4 23 40 / .37) 65%, rgb(3 22 38 / .19)); }
  .home-page .hf-hero .hm-copy { padding: 43px 0 clamp(49px, 12.5vw, 76px); }
  .home-page .hf-hero h1 { font-size: clamp(45px, 13.3vw, 70px); line-height: 1.04; margin: 22px 0 19px; }
  .hf-hero .hm-copy p { max-width: 310px; font-size: 18px; line-height: 1.42; }
  .hf-intro h2 { font-size: clamp(27px, 7.2vw, 34px); }
  .hf-intro p { font-size: 15px; }
  .hf-form { gap: 24px; }
  .hf-fields { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 17px 12px; }
  .hf-field > label, .hf-field > span, .hf-output > span { margin-bottom: 6px; font-size: 13px; }
  .hf-field > select, .hf-multiple summary { height: 45px; padding-inline: 6px; font-size: 16px; }
  .hf-result { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 15px; }
  .hf-thumb { width: 34px; padding: 0; border: 0; align-self: start; }
  .hf-thumb img { height: 46px; }
  .hf-match { grid-column: 1 / -1; }
  .hf-thumb + .hf-match { grid-column: 2; }
  .hf-match strong { font-size: clamp(17px, 4.8vw, 24px); }
  .hf-specs { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
  .hf-result:has(.hf-thumb) { grid-template-areas: "photo tag" "photo info" "code code" "action action"; row-gap: 5px; }
  .hf-result:has(.hf-thumb) .hf-match { display: contents; }
  .hf-result .hf-thumb { grid-area: photo; }
  .hf-thumb + .hf-match .hf-kicker { grid-area: tag; align-self: end; }
  .hf-thumb + .hf-match small { grid-area: info; margin: 0; }
  .hf-thumb + .hf-match strong { grid-area: code; margin-block: 10px; }
  .hf-result:has(.hf-thumb) .hf-specs { grid-area: action; }
  .hf-reset { font-size: 13px; }
  dspm-home-finder::before { width: 40px; }
}
@media (max-width: 359px) {
  .hf-fields { gap: 15px 9px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hf-intro { column-gap: 6px; }
}
@media (forced-colors: active) {
  .hf-hero .hf-photo, .home-page .hf-hero::before, .home-page .hf-hero::after { display: none; }
  .hf-result, .hf-field select, .hf-multiple summary, .hf-specs { border: 1px solid ButtonText; }
}
