/* Public commerce recovery layer.
   Product cards require approved finished-piece photography. Formula previews
   remain editor-only and cannot occupy Home or Shop commerce surfaces. */

html[data-jewdiy-route="home"] body,
body.ready-made-page {
  overflow-x: clip;
}

/* Home: restore the carousel as an immersive brand cover. */
html[data-jewdiy-route="home"] .hero {
  position: relative !important;
  isolation: isolate;
  display: grid !important;
  width: min(100% - 32px, 1440px) !important;
  height: min(660px, calc(100svh - 150px)) !important;
  min-height: 520px !important;
  margin: 16px auto 0 !important;
  padding: 48px !important;
  align-items: end !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 8px !important;
  background: #15251c !important;
  color: #fff;
}

html[data-jewdiy-route="home"] .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(11, 24, 17, 0.15) !important;
  pointer-events: none;
}

html[data-jewdiy-route="home"] .hero::after {
  content: none !important;
  background: none !important;
}

html[data-jewdiy-route="home"] .hero-content {
  position: relative;
  z-index: 3;
  grid-column: 1 / span 7 !important;
  align-self: end;
  display: grid;
  gap: 16px;
  max-width: 720px !important;
  color: #fff;
}

html[data-jewdiy-route="home"] .hero-content .eyebrow,
html[data-jewdiy-route="home"] .hero-content p,
html[data-jewdiy-route="home"] .hero-stat span {
  color: rgba(255, 255, 255, 0.84) !important;
}

html[data-jewdiy-route="home"] .hero-content .eyebrow {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
}

html[data-jewdiy-route="home"] .hero h1 {
  max-width: 700px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 56px !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

html[data-jewdiy-route="home"] .hero h1 em {
  color: #f0d58b !important;
}

html[data-jewdiy-route="home"] .hero p {
  max-width: 56ch !important;
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

html[data-jewdiy-route="home"] .hero-cta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px !important;
  margin: 2px 0 0 !important;
}

html[data-jewdiy-route="home"] .hero-cta .pill-button {
  min-width: 168px;
  min-height: 48px !important;
  height: 48px !important;
  padding-inline: 22px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}

html[data-jewdiy-route="home"] .hero-cta .primary {
  border-color: #f0d58b !important;
  background: #f0d58b !important;
  color: #173626 !important;
}

html[data-jewdiy-route="home"] .hero-cta .ghost {
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: rgba(17, 32, 23, 0.22) !important;
  color: #fff !important;
}

html[data-jewdiy-route="home"] .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 650px);
  margin: 8px 0 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent !important;
}

html[data-jewdiy-route="home"] .hero-stat {
  min-width: 0;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

html[data-jewdiy-route="home"] .hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

html[data-jewdiy-route="home"] .hero-stat strong {
  color: #fff !important;
  font-size: 13px !important;
}

html[data-jewdiy-route="home"] .hero-stat span {
  font-size: 11px !important;
}

html[data-jewdiy-route="home"] .hero-visual,
html[data-jewdiy-route="home"] .hero-gift-scene,
html[data-jewdiy-route="home"] .hero-gift-carousel {
  position: absolute !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  transform: none !important;
  opacity: 1 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

html[data-jewdiy-route="home"] .hero > .hero-visual,
html[data-jewdiy-route="home"] .hero-gift-scene,
html[data-jewdiy-route="home"] .hero-gift-carousel {
  grid-column: auto !important;
  grid-row: auto !important;
}

html[data-jewdiy-route="home"] .hero-slide,
html[data-jewdiy-route="home"] .hero-slide img {
  width: 100% !important;
  height: 100% !important;
}

html[data-jewdiy-route="home"] .hero-slide::after {
  content: none !important;
  background: none !important;
}

html[data-jewdiy-route="home"] .hero-slide img {
  display: block;
  object-fit: cover !important;
  object-position: center !important;
}

html[data-jewdiy-route="home"] .hero-material-board {
  position: absolute;
  inset: 36px 34px 36px 48%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  padding: clamp(18px, 2vw, 30px);
  background: transparent;
}

html[data-jewdiy-route="home"] .hero-material-board--soft {
  background: transparent;
}

html[data-jewdiy-route="home"] .hero-material-board img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: drop-shadow(0 12px 16px rgba(15, 34, 23, 0.18));
}

html[data-jewdiy-route="home"] .hero-slide figcaption {
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  z-index: 4;
  max-width: 290px;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  background: rgba(17, 32, 23, 0.74) !important;
  color: #fff !important;
}

html[data-jewdiy-route="home"] .hero-dots {
  right: 24px !important;
  bottom: 74px !important;
  left: auto !important;
  z-index: 5;
}

html[data-jewdiy-route="home"] .hero-gift-badge {
  display: none !important;
}

/* Home: fail closed without turning an internal gate into a fake catalog. */
html[data-jewdiy-route="home"] #ready-made {
  margin-top: 64px !important;
  padding-block: 56px !important;
  background: #fff !important;
}

html[data-jewdiy-route="home"] #ready-made .ready-grid {
  display: block !important;
}

html[data-jewdiy-route="home"] .home-collection-gate {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  padding: 32px 0;
  border-top: 1px solid #dfe4dc;
  border-bottom: 1px solid #dfe4dc;
  background: transparent;
}

html[data-jewdiy-route="home"] .home-collection-gate__copy {
  grid-column: 1 / span 8;
  display: grid;
  align-content: start;
  gap: 14px;
}

html[data-jewdiy-route="home"] .home-collection-gate__copy h3 {
  max-width: 15em;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

html[data-jewdiy-route="home"] .home-collection-gate__copy p {
  max-width: 62ch;
  margin: 0;
  color: #5f665f;
  font-size: 15px;
  line-height: 1.65;
}

.collection-material-preview {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 12px 0;
  border-top: 1px solid #dfe4dc;
  border-bottom: 1px solid #dfe4dc;
}

.collection-material-preview img[data-material-proof="public-a-grade"] {
  box-sizing: border-box;
  width: 76px;
  height: 76px;
  padding: 9px;
  border-radius: 50%;
  background: #eef2ef;
  object-fit: contain;
  object-position: center;
}

.collection-material-preview img[data-material-proof="public-a-grade"]:nth-child(2) {
  background: #f1edf3;
}

.collection-material-preview img[data-material-proof="public-a-grade"]:nth-child(3) {
  background: #edf0ee;
}

html[data-jewdiy-route="home"] .home-collection-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

html[data-jewdiy-route="home"] .home-collection-gate__actions .pill-button {
  min-height: 46px;
}

html[data-jewdiy-route="home"] .home-collection-gate__proof {
  grid-column: 9 / -1;
  display: grid;
  align-content: start;
  border-top: 1px solid #dfe4dc;
}

html[data-jewdiy-route="home"] .home-collection-gate__proof span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-bottom: 1px solid #dfe4dc;
  color: #26342b;
  font-size: 13px;
}

html[data-jewdiy-route="home"] .home-collection-gate__proof span::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f7048;
}

html[data-jewdiy-route="home"] #gift-story,
html[data-jewdiy-route="home"] .home-design-cta,
html[data-jewdiy-route="home"] #reviews {
  margin-top: 64px !important;
}

html[data-jewdiy-route="home"] .gift-category-card {
  border-color: #dfe4dc !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

html[data-jewdiy-route="home"] .home-design-cta {
  width: 100vw !important;
  max-width: none !important;
  margin-inline: calc(50% - 50vw) !important;
  padding: 72px max(24px, calc((100% - 1160px) / 2)) !important;
  background: #153d2b !important;
  color: #fff;
}

html[data-jewdiy-route="home"] .home-design-cta__inner {
  max-width: 760px;
}

html[data-jewdiy-route="home"] .home-design-cta .eyebrow,
html[data-jewdiy-route="home"] .home-design-cta p {
  color: rgba(255, 255, 255, 0.78) !important;
}

html[data-jewdiy-route="home"] .home-design-cta h2 {
  color: #fff !important;
  font-size: 48px !important;
  letter-spacing: 0 !important;
}

html[data-jewdiy-route="home"] .home-design-cta .primary {
  border-color: #f0d58b !important;
  background: #f0d58b !important;
  color: #173626 !important;
}

html[data-jewdiy-route="home"] .home-design-cta .ghost {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: transparent !important;
  color: #fff !important;
}

/* Shop: no formula preview can stand in for a finished product. */
body.ready-made-page > .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  width: min(100% - 32px, 1360px);
  min-height: 440px;
  margin: 16px auto 0;
  padding: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: #16261d;
  color: #fff;
}

body.ready-made-page > .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(12, 25, 18, 0.55);
  pointer-events: none;
}

body.ready-made-page > .hero > div:first-child {
  position: relative;
  z-index: 3;
  grid-column: 1 / span 7;
  display: grid;
  gap: 14px;
  max-width: 720px;
}

body.ready-made-page > .hero h1 {
  max-width: 13em;
  margin: 0;
  color: #fff;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: 0;
}

body.ready-made-page > .hero p {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.55;
}

body.ready-made-page .hero-note {
  display: block;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2f7048;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
}

body.ready-made-page > .hero .hero-note {
  color: #f0d58b;
}

body.ready-made-page > .hero .hero-card {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

body.ready-made-page > .hero .hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.ready-made-page > .hero .top-actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.ready-made-page > .hero .pill.primary {
  border-color: #f0d58b;
  background: #f0d58b;
  color: #173626;
}

body.ready-made-page > .hero .pill:not(.primary) {
  border-color: rgba(255, 255, 255, 0.62) !important;
  background: transparent !important;
  color: #fff !important;
}

body.ready-made-page #catalog {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
  scroll-margin-top: 86px;
}

body.ready-made-page[data-ready-made-commerce-mode="inspiration"] .ready-value-strip,
body.ready-made-page[data-ready-made-commerce-mode="inspiration"] #tabs,
body.ready-made-page[data-ready-made-commerce-mode="inspiration"] #search,
body.ready-made-page[data-ready-made-commerce-mode="inspiration"] .toolbar > .catalog-note,
body.ready-made-page[data-ready-made-commerce-mode="inspiration"] .catalog-direct-sale-lock,
body.ready-made-page[data-ready-made-commerce-mode="inspiration"] .shop-info {
  display: none !important;
}

body.ready-made-page[data-ready-made-commerce-mode="inspiration"] .toolbar {
  min-height: 0;
  padding: 0;
  border: 0;
}

body.ready-made-page[data-ready-made-commerce-mode="inspiration"] #productGrid {
  display: block;
  margin-top: 64px;
}

body.ready-made-page .shop-collection-gate {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  padding: 54px 0;
  border-top: 1px solid #dfe4dc;
  border-bottom: 1px solid #dfe4dc;
  background: transparent;
}

body.ready-made-page .shop-collection-gate__copy {
  grid-column: 1 / span 8;
  display: grid;
  gap: 14px;
}

body.ready-made-page .shop-collection-gate__copy h2 {
  max-width: 15em;
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: 0;
}

body.ready-made-page .shop-collection-gate__copy p {
  max-width: 62ch;
  margin: 0;
  color: #626962;
  font-size: 15px;
  line-height: 1.65;
}

body.ready-made-page .shop-collection-gate__copy .collection-material-preview {
  margin-top: 2px;
}

body.ready-made-page .shop-collection-gate__standards {
  grid-column: 10 / -1;
  display: grid;
  align-content: start;
  border-top: 1px solid #dfe4dc;
}

body.ready-made-page .shop-collection-gate__standards span {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #dfe4dc;
  color: #26342b;
  font-size: 13px;
}

@media (max-width: 860px) {
  html[data-jewdiy-route="home"] .hero {
    width: 100% !important;
    height: min(650px, calc(100svh - 132px)) !important;
    min-height: 520px !important;
    margin-top: 0 !important;
    padding: 24px !important;
    border-radius: 0 !important;
  }

  html[data-jewdiy-route="home"] .hero-content {
    grid-column: 1 / -1 !important;
    gap: 12px !important;
    max-width: 600px !important;
  }

  html[data-jewdiy-route="home"] .hero h1 {
    font-size: 40px !important;
  }

  html[data-jewdiy-route="home"] .hero-slide figcaption {
    top: 18px !important;
    right: 18px !important;
    bottom: auto !important;
    max-width: 220px;
  }

  html[data-jewdiy-route="home"] .hero-dots {
    top: 70px !important;
    right: 20px !important;
    bottom: auto !important;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__copy,
  html[data-jewdiy-route="home"] .home-collection-gate__proof {
    grid-column: 1 / -1;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__copy h3 {
    font-size: 30px;
  }

  body.ready-made-page > .hero {
    width: 100%;
    min-height: 430px;
    margin-top: 0;
    padding: 24px;
    border-radius: 0;
  }

  body.ready-made-page > .hero > div:first-child {
    grid-column: 1 / -1;
  }

  body.ready-made-page > .hero h1 {
    font-size: 38px;
  }

  body.ready-made-page .shop-collection-gate__copy,
  body.ready-made-page .shop-collection-gate__standards {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  html[data-jewdiy-route="home"] .hero {
    height: clamp(510px, calc(100svh - 184px), 560px) !important;
    min-height: 510px !important;
    max-height: 560px !important;
    padding: 20px 18px 24px !important;
  }

  html[data-jewdiy-route="home"] .hero-content {
    gap: 10px !important;
  }

  html[data-jewdiy-route="home"] .hero-content .eyebrow {
    font-size: 10px !important;
  }

  html[data-jewdiy-route="home"] .hero h1 {
    font-size: 34px !important;
    line-height: 1.05 !important;
  }

  html[data-jewdiy-route="home"] .hero p {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html[data-jewdiy-route="home"] .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  html[data-jewdiy-route="home"] .hero-cta .pill-button {
    min-width: 0;
    width: 100%;
    padding-inline: 10px !important;
    font-size: 12px !important;
  }

  html[data-jewdiy-route="home"] .hero-stats,
  html[data-jewdiy-route="home"] .hero-slide figcaption {
    display: none !important;
  }

  html[data-jewdiy-route="home"] .hero-dots {
    top: auto !important;
    right: 18px !important;
    bottom: 14px !important;
    left: auto !important;
    transform: none !important;
  }

  html[data-jewdiy-route="home"] .hero-material-board {
    inset: 260px 18px 18px;
    gap: 8px;
    padding: 8px;
    background: transparent;
  }

  html[data-jewdiy-route="home"] .hero-material-board--soft {
    background: transparent;
  }

  html[data-jewdiy-route="home"] .hero-material-board img {
    filter: drop-shadow(0 7px 9px rgba(15, 34, 23, 0.17));
  }

  html[data-jewdiy-route="home"] #ready-made {
    width: calc(100% - 28px) !important;
    margin-top: 64px !important;
    padding: 40px 0 !important;
  }

  html[data-jewdiy-route="home"] #ready-made .section-title h2 {
    font-size: 28px !important;
  }

  html[data-jewdiy-route="home"] .home-collection-gate {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 12px;
    padding: 24px 0;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__copy,
  html[data-jewdiy-route="home"] .home-collection-gate__proof {
    grid-column: 1 / -1;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__copy h3 {
    font-size: 27px;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__copy p {
    font-size: 14px;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  html[data-jewdiy-route="home"] .gift-category-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  html[data-jewdiy-route="home"] .gift-category-card {
    grid-template-columns: minmax(118px, 42%) minmax(0, 1fr) !important;
    grid-template-rows: minmax(126px, auto) !important;
    min-height: 126px;
  }

  html[data-jewdiy-route="home"] .gift-category-card img {
    width: 100%;
    height: 100%;
    min-height: 126px;
    aspect-ratio: auto !important;
    object-fit: cover;
  }

  html[data-jewdiy-route="home"] .gift-category-card__copy {
    align-content: center !important;
    padding: 14px !important;
  }

  html[data-jewdiy-route="home"] .gift-category-card__copy strong {
    font-size: 20px !important;
  }

  html[data-jewdiy-route="home"] .gift-category-card__copy span {
    display: block !important;
    overflow: visible !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
    -webkit-line-clamp: unset !important;
  }

  html[data-jewdiy-route="home"] .home-design-cta {
    padding: 56px 20px !important;
  }

  html[data-jewdiy-route="home"] .home-design-cta h2 {
    font-size: 34px !important;
  }

  html[data-jewdiy-route="home"] .home-design-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.ready-made-page > .hero {
    min-height: 410px;
    padding: 20px 18px 24px;
  }

  body.ready-made-page > .hero h1 {
    font-size: 32px;
    line-height: 1.07;
  }

  body.ready-made-page > .hero p {
    display: block !important;
    overflow: visible !important;
    font-size: 14px;
    -webkit-line-clamp: unset !important;
  }

  body.ready-made-page #catalog {
    width: calc(100% - 28px);
  }

  body.ready-made-page[data-ready-made-commerce-mode="inspiration"] #productGrid {
    margin-top: 48px;
  }

  body.ready-made-page .shop-collection-gate {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 12px;
    padding: 32px 0;
  }

  body.ready-made-page .shop-collection-gate__copy,
  body.ready-made-page .shop-collection-gate__standards {
    grid-column: 1 / -1;
  }

  body.ready-made-page .shop-collection-gate__copy h2 {
    font-size: 28px;
  }

  body.ready-made-page .shop-collection-gate__copy p {
    font-size: 14px;
  }

  body.ready-made-page .shop-collection-gate .catalog-empty-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .collection-material-preview {
    grid-template-columns: repeat(3, minmax(0, 72px));
    width: 100%;
  }

  .collection-material-preview img[data-material-proof="public-a-grade"] {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 340px) {
  html[data-jewdiy-route="home"] .hero h1,
  body.ready-made-page > .hero h1 {
    font-size: 30px !important;
  }
}

/* A collection without approved photography must not imply that a generated
   bracelet scene is the finished product. */
body.ready-made-page > .hero {
  min-height: 380px;
  background: #13271d !important;
}

body.ready-made-page > .hero::before,
body.ready-made-page > .hero .hero-card {
  display: none !important;
}

/* Mobile commerce pass: preserve the 4-column grid while removing long,
   low-value scroll runs. */
@media (max-width: 540px) {
  html[data-jewdiy-route="home"] .hero {
    height: min(560px, calc(100svh - 150px)) !important;
    min-height: 520px !important;
  }

  html[data-jewdiy-route="home"] #ready-made {
    margin-top: 64px !important;
    padding-block: 32px !important;
  }

  html[data-jewdiy-route="home"] .home-collection-gate {
    gap: 18px 12px;
    padding-block: 20px;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__copy {
    gap: 10px;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__copy h3 {
    font-size: 25px;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__copy p {
    line-height: 1.5;
  }

  html[data-jewdiy-route="home"] .home-collection-gate__proof span {
    min-height: 48px;
  }

  html[data-jewdiy-route="home"] .story-sections {
    padding-top: 0 !important;
    gap: 64px !important;
  }

  html[data-jewdiy-route="home"] #gift-story,
  html[data-jewdiy-route="home"] .home-design-cta,
  html[data-jewdiy-route="home"] #reviews {
    margin-top: 64px !important;
    padding-block: 48px !important;
  }

  html[data-jewdiy-route="home"] #gift-story .gift-copy,
  html[data-jewdiy-route="home"] #reviews .section-title {
    gap: 8px !important;
    margin-bottom: 22px !important;
  }

  html[data-jewdiy-route="home"] #gift-story .gift-copy h2,
  html[data-jewdiy-route="home"] #reviews .section-title h2 {
    margin-block: 4px 0 !important;
    font-size: 28px !important;
    line-height: 1.08 !important;
  }

  html[data-jewdiy-route="home"] #gift-story .gift-copy p,
  html[data-jewdiy-route="home"] #reviews .section-title p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  html[data-jewdiy-route="home"] .gift-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html[data-jewdiy-route="home"] .gift-category-card {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 108px minmax(86px, auto) !important;
    min-height: 194px;
  }

  html[data-jewdiy-route="home"] .gift-category-card img {
    width: 100%;
    height: 108px;
    min-height: 108px;
    object-fit: cover;
  }

  html[data-jewdiy-route="home"] .gift-category-card[data-gift-category="love"] img {
    object-position: 45% 38%;
  }

  html[data-jewdiy-route="home"] .gift-category-card[data-gift-category="success"] img {
    object-position: 70% 48%;
  }

  html[data-jewdiy-route="home"] .gift-category-card__copy {
    align-content: start !important;
    padding: 10px !important;
  }

  html[data-jewdiy-route="home"] .gift-category-card__copy strong {
    font-size: 18px !important;
  }

  html[data-jewdiy-route="home"] .gift-category-card__copy span {
    display: -webkit-box !important;
    overflow: hidden !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  html[data-jewdiy-route="home"] .home-design-cta {
    padding: 44px 20px !important;
  }

  html[data-jewdiy-route="home"] .home-design-cta__inner {
    gap: 14px;
  }

  html[data-jewdiy-route="home"] .home-design-cta h2 {
    font-size: 31px !important;
  }

  html[data-jewdiy-route="home"] .home-design-cta p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  html[data-jewdiy-route="home"] #reviews .review-grid {
    gap: 0 !important;
  }

  html[data-jewdiy-route="home"] #reviews .review-card {
    padding: 18px 0 !important;
    border-top: 1px solid #dfe4dc;
  }

  html[data-jewdiy-route="home"] #reviews .review-card:last-child {
    border-bottom: 1px solid #dfe4dc;
  }

  html[data-jewdiy-route="home"] #reviews .review-card h3 {
    margin-block: 8px 6px !important;
    font-size: 15px !important;
  }

  html[data-jewdiy-route="home"] #reviews .review-card p {
    display: -webkit-box;
    margin: 0 !important;
    overflow: hidden;
    font-size: 12px !important;
    line-height: 1.5 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  html[data-jewdiy-route="home"] .site-footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom)) !important;
  }

  html[data-jewdiy-route="home"] .footer-top-band {
    padding: 13px 18px;
    font-size: 11px;
  }

  html[data-jewdiy-route="home"] .footer-main {
    padding: 28px 18px 20px !important;
  }

  html[data-jewdiy-route="home"] .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px 18px !important;
    padding-bottom: 24px !important;
  }

  html[data-jewdiy-route="home"] .footer-brand p {
    display: none;
  }

  html[data-jewdiy-route="home"] .footer-col strong {
    margin-bottom: 10px;
    font-size: 11px;
  }

  html[data-jewdiy-route="home"] .footer-col a,
  html[data-jewdiy-route="home"] .footer-col span {
    display: flex;
    align-items: center;
    min-height: 30px;
    font-size: 11px;
    line-height: 1.4;
  }

  html[data-jewdiy-route="home"] .footer-contact {
    line-height: 1.4 !important;
  }

  html[data-jewdiy-route="home"] .footer-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }

  html[data-jewdiy-route="home"] .footer-bottom {
    display: grid;
    gap: 14px;
    padding-top: 20px;
  }

  html[data-jewdiy-route="home"] .footer-legal {
    justify-content: space-between;
    gap: 12px;
  }

  body.ready-made-page > .hero {
    min-height: 400px;
    padding: 24px 18px;
  }

  body.ready-made-page > .hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 340px) {
  html[data-jewdiy-route="home"] .hero {
    height: 536px !important;
    min-height: 536px !important;
    max-height: 536px !important;
  }
}

/* Public conversion imagery must come from the approved bead library, not guide renders. */
html[data-jewdiy-route="home"] .gift-category-card img[data-material-proof="public-a-grade"] {
  box-sizing: border-box;
  object-fit: contain !important;
  object-position: center !important;
  padding: clamp(16px, 2.4vw, 28px);
  background: #eef2ef;
}

html[data-jewdiy-route="home"] .gift-category-card[data-gift-category="birthday"] img[data-material-proof="public-a-grade"] {
  background: #f0edf3;
}

html[data-jewdiy-route="home"] .gift-category-card[data-gift-category="love"] img[data-material-proof="public-a-grade"] {
  background: #f7eeef;
}

html[data-jewdiy-route="home"] .gift-category-card[data-gift-category="healing"] img[data-material-proof="public-a-grade"] {
  background: #edf3ee;
}

html[data-jewdiy-route="home"] .gift-category-card[data-gift-category="success"] img[data-material-proof="public-a-grade"] {
  background: #eaf1f0;
}

html[data-jewdiy-route="home"] #reviews img.review-avatar.trust-icon[data-material-proof="public-a-grade"] {
  box-sizing: border-box;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 5px;
  background: #eef2ef !important;
  box-shadow: inset 0 0 0 1px #dfe4dc;
}

html[data-jewdiy-route="home"] #reviews img.review-avatar.trust-icon[data-material-proof="public-a-grade"]::after {
  content: none;
}

@media (max-width: 767px) {
  html[data-jewdiy-route="home"] .gift-category-card img[data-material-proof="public-a-grade"] {
    padding: 14px;
  }
}
