/* Homepage only. The catalog, product details and inquiry form use their existing styles. */
body[data-page=home] {
  background:#141310;
}

body[data-page=home] .photo-hero {
  background:radial-gradient(ellipse at 75% 44%,#35271a 0%,#191611 46%,#111211 77%);
}

body[data-page=home] .photo-hero-inner,
.portal-container {
  width:min(1240px,calc(100% - 96px));
  margin-inline:auto;
}

body[data-page=home] .photo-hero-inner {
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:clamp(36px,5.3vw,78px);
  padding-block:clamp(44px,5.15vw,78px);
}

body[data-page=home] .finder-drop {
  border-color:#816239;
  border-radius:5px;
}

body[data-page=home] .finder-drop-empty img {
  aspect-ratio:1.55;
}

.portal-section {
  border-bottom:1px solid #423523;
  color:#f5f1e6;
  padding-block:clamp(42px,5vw,76px);
}

.portal-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px 28px;
  margin-bottom:25px;
}

.portal-section h2 {
  margin:0;
  color:#f9f3e5;
  font:700 clamp(2.25rem,4vw,3.525rem)/1 var(--ts-display);
  letter-spacing:-.012em;
}

html:is([lang=zh-CN],[dir=rtl]) .portal-section h2 {
  font-family:"DM Sans",system-ui,sans-serif;
  font-size:clamp(1.65rem,3.15vw,2.65rem);
  line-height:1.12;
}

.portal-heading p,
.portal-quote p,
.portal-browse-options p {
  color:#c9c0b0;
  margin:9px 0 0;
  font-size:15px;
  line-height:1.55;
}

.portal-link {
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:44px;
  color:#f0cc7a;
  font-weight:700;
  font-size:14px;
  text-decoration:underline;
  text-underline-offset:5px;
}

.portal-link:hover {color:#fff0bf}
.portal-featured {background:#151513}

.portal-product-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
}

.portal-status {
  grid-column:1/-1;
  margin:0;
  min-height:42px;
  color:#c9c0b0;
}

.portal-part {
  display:flex;
  flex-direction:column;
  min-width:0;
  background:#211e18;
  border:1px solid #554634;
  border-radius:5px;
  overflow:hidden;
  color:#f9f4e7;
}

.portal-part:hover {
  color:#fff7e4;
  border-color:#d6a954;
}

.portal-part-image {
  background:#fff;
  border-bottom:1px solid #50422e;
  padding:12px;
}

.portal-part-image img {
  width:100%;
  height:auto;
  aspect-ratio:1.35;
  object-fit:contain;
}

.portal-part-info {
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:start;
  padding:12px 17px;
}

.portal-part-type {
  color:#d5c39d;
  font-size:13px;
}

.portal-part-info>strong {
  display:block;
  margin:4px 0 3px;
  overflow-wrap:anywhere;
  font-size:clamp(1rem,1.65vw,1.28rem);
  line-height:1.3;
}

.portal-part-spec {
  color:#cbc3b3;
  font-size:14px;
  line-height:1.4;
  overflow-wrap:anywhere;
}

.portal-part-link {
  margin-top:auto;
  padding-top:14px;
  color:#edc976;
  font-size:13px;
  font-weight:700;
}

.portal-browse {background:#1d1913}

.portal-applications {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.portal-applications>a {
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:start;
  gap:6px;
  padding:20px 17px;
  min-width:0;
  min-height:116px;
  border:1px solid #665031;
  border-top:2px solid #b39152;
  border-radius:4px;
  background:#262017;
  color:#f8f2e5;
}

.portal-applications>a:hover {background:#322817;color:#ffe8ac}
.portal-applications strong {font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.portal-applications span {color:#d0c5ae;font-size:14px;line-height:1.4}

.portal-browse-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px 36px;
  align-items:start;
  margin-top:31px;
  padding-top:25px;
  border-top:1px solid #5a482e;
}

.portal-browse-options h3 {
  font-size:18px;
  line-height:1.25;
  color:#f7f0df;
  margin:0 0 12px;
}

.portal-chips {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.portal-chips a {
  display:inline-flex;
  align-items:center;
  gap:5px 7px;
  min-height:44px;
  padding:8px 11px;
  border:1px solid #76603f;
  border-radius:3px;
  color:#f2dfb7;
  font-size:14px;
  line-height:1.3;
}

.portal-chips a:hover {border-color:#edc976;background:#342a1b}
.portal-chips span {color:#cfc5b2;font-size:13px}
.portal-materials strong {font-size:15px}
.portal-quote {background:#141310}

.portal-quote-layout {
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
  align-items:center;
  gap:clamp(25px,6vw,88px);
}

.portal-quote-layout>img {
  width:100%;
  height:auto;
  aspect-ratio:1.58;
  object-fit:cover;
  border:1px solid #695335;
  border-radius:5px;
}

.portal-quote ul {
  padding-inline-start:20px;
  color:#e0d7c7;
  margin:14px 0 17px;
  font-size:15px;
  line-height:1.6;
}

.portal-quote li::marker {color:#e7be6b}
.portal-quote li+li {margin-top:6px}

.portal-actions {
  display:flex;
  flex-wrap:wrap;
  gap:7px 18px;
  align-items:center;
}

.portal-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#e9c474;
  color:#21180e;
  padding:8px 16px;
  min-height:46px;
  font-size:14px;
  font-weight:750;
  border-radius:4px;
}

.portal-button:hover {background:#f7da95;color:#21180e}
.portal-link:focus-visible,.portal-part:focus-visible,.portal-chips a:focus-visible,
.portal-applications>a:focus-visible,.portal-button:focus-visible {outline-color:#f1cb75}

@media(max-width:1000px) {
  body[data-page=home] .photo-hero-inner,.portal-container {width:calc(100% - 52px)}
  body[data-page=home] .photo-hero-inner {gap:32px}
}
@media(max-width:740px) {
  body[data-page=home] .photo-hero-inner,.portal-container {width:calc(100% - 36px)}
  body[data-page=home] .photo-hero-inner {
    grid-template-columns:minmax(0,1fr);
    gap:24px;
    padding-block:32px 26px;
  }
  body[data-page=home] .finder-drop-empty img {aspect-ratio:1.74}
  .portal-heading {align-items:start;flex-wrap:wrap;gap:4px 14px;margin-bottom:15px}
  .portal-section {padding-block:32px}
  .portal-product-grid,.portal-applications {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .portal-part-image {padding:7px}
  .portal-part-info {padding:9px 10px 12px}
  .portal-part-spec {font-size:13px}
  .portal-applications>a {padding:13px 12px;min-height:102px}
  .portal-applications strong {font-size:16px}
  .portal-browse-options,.portal-quote-layout {grid-template-columns:minmax(0,1fr)}
  .portal-browse-options {margin-top:23px;padding-top:20px}
  .portal-quote-layout {gap:20px}
  .portal-quote-layout>img {aspect-ratio:1.82}
}
