.jpa-hero-poster,
.jpa-family-browser,
.jpa-product-shelf {
  box-sizing: border-box;
}

.jpa-hero-poster {
  min-height: 680px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(72px, 10vw, 140px) clamp(22px, 5vw, 72px);
}

.jpa-hero-copy {
  max-width: 760px;
}

.jpa-eyebrow {
  margin: 0 0 12px;
  color: #b99c5f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.jpa-hero-poster h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .95;
  letter-spacing: -.055em;
}

.jpa-hero-poster p:not(.jpa-eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.jpa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.jpa-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.jpa-button--light {
  background: #fff;
  color: #151719;
}

.jpa-button--ghost {
  border: 1px solid rgba(255,255,255,.62);
  color: #fff;
}

.jpa-family-browser,
.jpa-product-shelf {
  margin: clamp(42px, 7vw, 88px) auto;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(21,23,25,.12);
  border-radius: 28px;
  background: #f7f2e8;
}

.jpa-module-head {
  max-width: 860px;
  margin-bottom: 22px;
}

.jpa-module-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.jpa-module-head p:not(.jpa-eyebrow) {
  max-width: 720px;
  color: #5f625c;
}

.jpa-family-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 22px 0;
}

.jpa-family-tabs button {
  min-height: 58px;
  border: 1px solid rgba(21,23,25,.14);
  border-radius: 14px;
  background: #fff;
  color: #252621;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.jpa-family-tabs button.is-active {
  background: #17191b;
  color: #fff;
  border-color: #17191b;
}

.jpa-family-panel {
  padding: clamp(18px, 3vw, 28px);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(21,23,25,.08);
}

.jpa-family-banner {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(280px, 1.08fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: stretch;
}

.jpa-family-banner h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.jpa-family-banner p:not(.jpa-eyebrow) {
  color: #5f625c;
  line-height: 1.65;
}

.jpa-family-banner img {
  width: 100%;
  min-height: 300px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  background: #ece6d9;
}

.jpa-text-link {
  color: #151719;
  font-weight: 850;
}

.jpa-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.jpa-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(21,23,25,.1);
  border-radius: 18px;
  background: #fff;
  color: #151719;
  text-decoration: none;
}

.jpa-product-media,
.jpa-product-image-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #f1eee6;
}

.jpa-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jpa-product-card span {
  margin-top: 12px;
  color: #8a7648;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.jpa-product-card h4 {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.jpa-product-source-note {
  padding: 14px;
  border: 1px dashed rgba(21,23,25,.26);
  border-radius: 14px;
}

.jpa-editor-shell {
  padding: 10px;
  border: 2px dashed rgba(185,156,95,.55);
  border-radius: 12px;
}

.jpa-editor-shell .components-notice {
  margin: 0 0 10px;
}

@media (max-width: 780px) {
  .jpa-hero-poster {
    min-height: 560px;
    padding: 84px 20px;
  }

  .jpa-family-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jpa-family-banner {
    grid-template-columns: 1fr;
  }

  .jpa-family-banner img {
    min-height: 220px;
  }

  .jpa-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .jpa-product-grid {
    gap: 10px;
  }

  .jpa-product-card {
    padding: 10px;
    border-radius: 14px;
  }

  .jpa-product-card h4 {
    font-size: 14px;
  }
}
