/**
 * Zheng Gems typography and spacing system.
 *
 * This file is intentionally loaded after the legacy editorial stylesheet. It
 * restores the two-family system used by the approved reference: Bodoni Moda
 * for restrained display moments and Manrope for interface and reading roles.
 * Bounded values remain adjustable from Appearance > Typography & Layout.
 */

:root {
  --zg-font-brand: "Bodoni Moda", Bodoni, "Times New Roman", serif;
  --zg-font-editorial: "Bodoni Moda", Bodoni, "Times New Roman", serif;
  --zg-font-ui: "Manrope", Arial, sans-serif;
  --zg-canvas-width: 100%;
  --zg-header-height-desktop: 87px;
  --zg-header-height-mobile: 72px;
  --zg-brand-size-desktop: 34px;
  --zg-brand-size-mobile: 22px;
  --zg-brand-tracking-desktop: 4px;
  --zg-brand-tracking-mobile: 2px;
  --zg-tagline-size-desktop: 8px;
  --zg-tagline-size-mobile: 6px;
  --zg-tagline-tracking-desktop: 2.6px;
  --zg-tagline-tracking-mobile: 1.5px;
  --zg-source-card-height-desktop: 368px;
  --zg-source-card-height-mobile: 320px;
  --zg-source-title-size-desktop: 32px;
  --zg-source-title-size-mobile: 28px;
  --zg-source-body-size-desktop: 14px;
  --zg-source-body-size-mobile: 14px;
  --zg-source-text-max-width-desktop: 260px;
  --zg-source-text-max-width-mobile: 280px;
  --zg-region-hero-height-desktop: 410px;
  --zg-region-hero-height-mobile: 300px;
  --zg-region-title-size-desktop: 64px;
  --zg-region-title-size-mobile: 40px;
  --zg-region-body-size-desktop: 18px;
  --zg-region-body-size-mobile: 14px;
  --zg-region-body-max-width-desktop: 340px;
  --zg-region-body-max-width-mobile: 300px;
  --zhengems-wide: min(1360px, calc(100vw - 96px));
}

html body {
  font-family: var(--zg-font-ui) !important;
  font-size: 14px;
  line-height: 1.65;
}

/* Brand lockup follows the reference wordmark proportions. */
.zhengems-site-header {
  padding-block: 0 !important;
}

.zhengems-header-inner {
  min-height: var(--zg-header-height-desktop) !important;
  height: var(--zg-header-height-desktop);
}

.zhengems-brand-lockup {
  align-items: center;
}

.zhengems-brand-title {
  font-family: var(--zg-font-brand) !important;
  font-size: var(--zg-brand-size-desktop) !important;
  font-optical-sizing: auto;
  font-weight: 500 !important;
  letter-spacing: var(--zg-brand-tracking-desktop) !important;
  line-height: 0.9 !important;
}

.zhengems-brand-tagline {
  margin: 11px 0 0 !important;
  font-family: var(--zg-font-ui) !important;
  font-size: var(--zg-tagline-size-desktop) !important;
  font-weight: 400;
  letter-spacing: var(--zg-tagline-tracking-desktop) !important;
  line-height: 1.15 !important;
}

.zhengems-primary-navigation,
.zhengems-primary-navigation a {
  font-family: var(--zg-font-ui) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

.zhengems-header-cta .wp-block-button__link,
.wp-block-button__link,
.zhengems-text-link a,
.zhengems-cover-link a,
.zhengems-footer-link a {
  font-family: var(--zg-font-ui) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

/* Sourcing cards: one deliberate rhythm instead of blockGap plus margins. */
.zhengems-source-card,
.zhengems-page-sourcing .zhengems-source-card,
.zhengems-page-home .zhengems-source-grid > .wp-block-column .zhengems-source-card {
  min-height: var(--zg-source-card-height-desktop) !important;
}

.zhengems-source-card .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  padding: 32px 34px !important;
  gap: 0 !important;
}

.zhengems-source-card .wp-block-cover__inner-container > * {
  margin-block: 0 !important;
}

.zhengems-source-card .zhengems-eyebrow {
  margin-bottom: 12px !important;
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.zhengems-source-card h2,
.zhengems-source-card h3 {
  max-width: 12ch;
  margin-bottom: 12px !important;
  font-family: var(--zg-font-editorial) !important;
  font-size: var(--zg-source-title-size-desktop) !important;
  font-optical-sizing: auto;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  text-wrap: balance;
}

.zhengems-source-card p:not(.zhengems-eyebrow, .zhengems-cover-link) {
  max-width: var(--zg-source-text-max-width-desktop);
  font-size: var(--zg-source-body-size-desktop) !important;
  line-height: 1.58 !important;
  text-wrap: pretty;
}

.zhengems-source-card .zhengems-cover-link {
  margin-top: 22px !important;
}

@media (min-width: 901px) {
  .zhengems-page-sourcing .zhengems-source-card h2,
  .zhengems-page-sourcing .zhengems-source-card h3 {
    min-height: 2.16em;
  }

  .zhengems-page-sourcing .zhengems-source-card p:not(.zhengems-eyebrow, .zhengems-cover-link) {
    min-height: 3.16em;
  }
}

/* Region heroes: controlled line length and a single vertical cadence. */
.zhengems-region-hero {
  min-height: var(--zg-region-hero-height-desktop) !important;
}

.zhengems-region-hero .zhengems-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0 !important;
}

.zhengems-region-hero .zhengems-hero-copy > * {
  margin-block: 0 !important;
}

.zhengems-region-hero .zhengems-hero-copy .zhengems-eyebrow {
  margin-bottom: 12px !important;
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.zhengems-region-hero .zhengems-hero-copy h1 {
  max-width: 16ch;
  font-family: var(--zg-font-editorial) !important;
  font-size: var(--zg-region-title-size-desktop) !important;
  font-optical-sizing: auto;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
  text-wrap: balance;
}

.zhengems-region-hero .zhengems-hero-copy > p:last-child {
  max-width: var(--zg-region-body-max-width-desktop) !important;
  margin-top: 16px !important;
  font-size: var(--zg-region-body-size-desktop) !important;
  line-height: 1.58 !important;
  text-wrap: pretty;
}

/* Other photographic page heroes follow the same baseline without sharing scale. */
.zhengems-page-hero:not(.zhengems-region-hero) {
  min-height: 460px !important;
}

.zhengems-page-hero.zhengems-contact-hero {
  min-height: 350px !important;
}

.zhengems-page-hero:not(.zhengems-region-hero) .zhengems-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0 !important;
}

.zhengems-page-hero:not(.zhengems-region-hero) .zhengems-hero-copy > * {
  margin-block: 0 !important;
}

.zhengems-page-hero:not(.zhengems-region-hero) .zhengems-hero-copy .zhengems-eyebrow {
  margin-bottom: 12px !important;
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.zhengems-page-hero:not(.zhengems-region-hero) .zhengems-hero-copy h1 {
  max-width: 18ch;
  font-family: var(--zg-font-editorial) !important;
  font-size: 58px !important;
  font-optical-sizing: auto;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  line-height: 0.99 !important;
  text-wrap: balance;
}

.zhengems-page-hero.zhengems-contact-hero .zhengems-hero-copy h1 {
  max-width: 16ch;
  font-size: 54px !important;
  line-height: 1.01 !important;
}

/* Full-site type roles: editorial titles, factual interface text and readable copy. */
.zhengems-main h1,
.zhengems-main h2 {
  font-family: var(--zg-font-editorial) !important;
  font-optical-sizing: auto;
  font-weight: 500 !important;
  letter-spacing: 0.025em !important;
  text-wrap: balance;
}

.zhengems-main h3 {
  font-family: var(--zg-font-ui) !important;
  font-weight: 500 !important;
  letter-spacing: 0.035em !important;
  line-height: 1.35;
  text-transform: uppercase !important;
}

.zhengems-main .zhengems-source-card h2,
.zhengems-main .zhengems-source-card h3 {
  font-family: var(--zg-font-editorial) !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.zhengems-eyebrow,
.zhengems-home-title,
.zhengems-footer-heading {
  font-family: var(--zg-font-ui) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
}

.zhengems-lead,
.zhengems-main p:not(.zhengems-eyebrow, .zhengems-text-link, .zhengems-cover-link),
.zhengems-main li {
  font-family: var(--zg-font-ui) !important;
  text-wrap: pretty;
}

.zhengems-lead {
  font-size: 17px !important;
  line-height: 1.62 !important;
}

.zhengems-section-heading h2,
.zhengems-statement h2,
.zhengems-story-copy h2,
.zhengems-region-detail-grid h2,
.zhengems-region-profile h2,
.zhengems-contact-grid h2 {
  font-size: clamp(38px, 4vw, 41px) !important;
  line-height: 1.02 !important;
}

.zhengems-section-heading h2::after,
.zhengems-statement h2::after,
.zhengems-catalogue-intro h1::after {
  width: 48px !important;
  margin-top: 18px !important;
}

.zhengems-catalogue-intro h1,
.zhengems-region-intro h1,
.zhengems-category-intro h1,
.zhengems-stone-detail__summary h1,
.zhengems-system-page h1,
.zhengems-listing-title,
.zhengems-article-title {
  font-family: var(--zg-font-editorial) !important;
  font-optical-sizing: auto;
  font-weight: 500 !important;
  letter-spacing: 0.025em !important;
  line-height: 1 !important;
  text-wrap: balance;
}

.zhengems-catalogue-intro h1,
.zhengems-region-intro h1 {
  font-size: clamp(48px, 4vw, 56px) !important;
}

.zhengems-inquiry-feature__copy h2,
.zhengems-inquiry-banner h2,
.zhengems-horizontal-cta h2 {
  font-size: 34px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.02 !important;
  text-transform: uppercase !important;
}

.zhengems-principle-grid h3,
.zhengems-process-grid h3 {
  font-family: var(--zg-font-editorial) !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

.zhengems-source-note h3,
.zhengems-contact-point h3 {
  font-family: var(--zg-font-ui) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.8px !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

.zhengems-region-ledger__row h3 {
  font-family: var(--zg-font-editorial) !important;
  font-size: 21px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

.zhengems-stone-card h3,
.zhengems-category-card__name,
.zhengems-post-card h2,
.zhengems-reassurance-inner h3,
.zhengems-reassurance-strip h3 {
  font-family: var(--zg-font-ui) !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.zhengems-stone-card h3 {
  font-size: 15px !important;
  line-height: 1.3 !important;
}

.zhengems-category-card__name {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

.zhengems-category-card__description {
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.zhengems-category-card__link,
.mmu-product-card-link {
  font-family: var(--zg-font-ui) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.zhengems-site-footer p,
.zhengems-site-footer .wp-block-navigation-item,
.zhengems-footer-navigation {
  font-family: var(--zg-font-ui) !important;
  font-size: 11px !important;
  line-height: 2.1 !important;
}

.mmu-inquiry-form > label,
.mmu-inquiry-form .mmu-inquiry-row > label,
.mmu-inquiry-form .mmu-inquiry-upload > span:first-child {
  font-family: var(--zg-font-ui) !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.35 !important;
}

.mmu-inquiry-form input:not([type="checkbox"], [type="hidden"]),
.mmu-inquiry-form select,
.mmu-inquiry-form textarea {
  font-family: var(--zg-font-ui) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

.zhengems-site-footer .zhengems-footer-title {
  font-family: var(--zg-font-brand) !important;
  font-optical-sizing: auto;
  font-size: 26px !important;
  font-weight: 500 !important;
  letter-spacing: 3px !important;
  line-height: 0.95 !important;
}

.zhengems-site-footer .zhengems-footer-tagline {
  font-family: var(--zg-font-ui) !important;
  font-size: 8px !important;
  font-weight: 400 !important;
  letter-spacing: 2.6px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.zhengems-footer-heading {
  font-family: var(--zg-font-ui) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

.zhengems-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: var(--zg-font-ui) !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

.zhengems-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* The site shell is full viewport width; readable content remains independently constrained. */
html {
  background: #f7f5f0;
}

body {
  background: #f7f5f0 !important;
}

.wp-site-blocks {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin-inline: 0 !important;
  overflow: clip;
  background: #f7f5f0;
}

.wp-site-blocks > :where(header, main, footer),
.zhengems-main,
.zhengems-main > .wp-block-post-content {
  width: 100% !important;
  max-width: 100% !important;
}

.wp-site-blocks :where(.alignfull) {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.zhengems-header-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding-inline: 38px !important;
  box-sizing: border-box;
  gap: 32px;
}

.zhengems-brand-title,
.zhengems-brand-tagline {
  white-space: nowrap;
  text-transform: uppercase !important;
}

.zhengems-primary-navigation .wp-block-navigation__container {
  gap: 42px;
}

.zhengems-header-cta .wp-block-button__link {
  min-width: 145px;
  min-height: 41px;
  padding: 0 20px;
  justify-content: center;
}

/* Homepage geometry and hierarchy mirror the 1024 × 1536 supplied page. */
.zhengems-page-home .zhengems-home-intro {
  min-height: 94px !important;
  padding: 14px 38px !important;
  box-sizing: border-box;
}

.zhengems-page-home .zhengems-home-title {
  max-width: none;
  margin: 0 0 6px !important;
  font-family: var(--zg-font-ui) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

.zhengems-page-home .zhengems-home-intro .zhengems-lead {
  margin: 0 !important;
  font-family: var(--zg-font-ui) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  letter-spacing: 0.4px !important;
  line-height: 1.35 !important;
}

.zhengems-page-home .zhengems-provenance {
  padding: 0 !important;
}

.zhengems-page-home .zhengems-provenance > .zhengems-section-heading {
  display: grid;
  min-height: 143px;
  place-content: center;
  margin: 0 auto !important;
  padding: 18px 28px 16px !important;
  box-sizing: border-box;
}

.zhengems-page-home .zhengems-provenance .zhengems-section-heading h2 {
  margin: 0 !important;
  font-family: var(--zg-font-editorial) !important;
  font-size: 41px !important;
  font-weight: 500 !important;
  letter-spacing: 2px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.zhengems-page-home .zhengems-provenance .zhengems-section-heading h2::after {
  display: block;
  width: 56px !important;
  margin-top: 12px !important;
}

.zhengems-page-home .zhengems-provenance .zhengems-section-heading .zhengems-lead {
  max-width: 390px;
  margin: 12px auto 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.zhengems-page-home .zhengems-source-grid {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 !important;
  padding: 0 !important;
}

.zhengems-page-home .zhengems-source-card {
  min-height: var(--zg-source-card-height-desktop) !important;
  overflow: hidden;
}

.zhengems-page-home .zhengems-source-card > .wp-block-cover__image-background {
  transform-origin: center;
}

.zhengems-page-home .zhengems-source-grid > .wp-block-column:first-child .zhengems-source-card > .wp-block-cover__image-background {
  object-position: center 68% !important;
}

.zhengems-page-home .zhengems-source-card--east > .wp-block-cover__image-background {
  object-position: center 78% !important;
  transform: scale(1.34);
}

.zhengems-source-card-rule {
  width: 72px !important;
  margin: 0 0 14px !important;
}

.zhengems-page-home .zhengems-source-card .zhengems-cover-link a {
  display: inline-flex !important;
  width: min(100%, 194px);
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #fff !important;
  text-decoration: none !important;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.zhengems-page-home .zhengems-source-card .zhengems-cover-link a:hover,
.zhengems-page-home .zhengems-source-card .zhengems-cover-link a:focus-visible {
  color: #121310 !important;
  background: #f7f5f0;
  border-color: #f7f5f0;
}

.zhengems-page-home .zhengems-gemstone-section {
  min-height: 416px;
  padding: 29px 36px 32px !important;
  box-sizing: border-box;
}

.zhengems-page-home .zhengems-gemstone-section .zhengems-section-heading {
  margin: 0 auto 20px !important;
}

.zhengems-page-home .zhengems-gemstone-section .zhengems-section-heading h2 {
  margin: 0 !important;
  font-family: var(--zg-font-editorial) !important;
  font-size: 38px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.zhengems-page-home .zhengems-gemstone-section .zhengems-section-heading h2::after {
  display: none;
}

.zhengems-page-home .zhengems-gemstone-section .zhengems-section-heading .zhengems-lead {
  margin: 8px auto 0 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.zhengems-page-home .zhengems-gemstone-section .zhengems-category-grid {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  border: 0;
}

.zhengems-page-home .zhengems-category-card {
  border: 1px solid #dedbd3;
}

.zhengems-page-home .zhengems-category-card__body {
  min-height: 136px;
  padding: 14px 18px 12px;
}

.zhengems-page-home .zhengems-category-card__name {
  min-height: 32px;
  padding: 0;
}

/* The approved 1024px artwork supplies six exact category crops. Real category
   uploads still take precedence because this fallback targets placeholders only. */
.zhengems-page-home .zhengems-category-card .zhengems-product-placeholder {
  background-color: #f4f0e8 !important;
  background-image: url("../images/reference-home-composite.png") !important;
  background-repeat: no-repeat !important;
  background-size: 673.684211% 1137.777778% !important;
}

.zhengems-page-home .zhengems-category-card .zhengems-product-placeholder > span {
  display: none !important;
}

.zhengems-page-home .zhengems-category-card:nth-child(1) .zhengems-product-placeholder {
  background-position: 4.12844% 57.53034% !important;
}

.zhengems-page-home .zhengems-category-card:nth-child(2) .zhengems-product-placeholder {
  background-position: 22.24771% 57.53034% !important;
}

.zhengems-page-home .zhengems-category-card:nth-child(3) .zhengems-product-placeholder {
  background-position: 40.59633% 57.53034% !important;
}

.zhengems-page-home .zhengems-category-card:nth-child(4) .zhengems-product-placeholder {
  background-position: 58.71560% 57.53034% !important;
}

.zhengems-page-home .zhengems-category-card:nth-child(5) .zhengems-product-placeholder {
  background-position: 76.83486% 57.53034% !important;
}

.zhengems-page-home .zhengems-category-card:nth-child(6) .zhengems-product-placeholder {
  background-position: 94.95413% 57.53034% !important;
}

/* The three launch catalogue records intentionally remain editable WordPress
   products. While they still use the shared reference image, present distinct
   crops from the approved source artwork; a newly uploaded Featured image
   immediately restores the normal product/gallery rendering. */
.zhengems-stone-card__image:is(
  [href*="/gemstone/layout-sample-finished-gem/"],
  [href*="/gemstone/blue-sapphire-visual-reference/"],
  [href*="/gemstone/layout-sample-loose-stone/"],
  [href*="/gemstone/ruby-visual-reference/"],
  [href*="/gemstone/layout-sample-custom-order/"],
  [href*="/gemstone/red-spinel-visual-reference/"]
):has(img[src*="reference-raw-gems"]) {
  position: relative;
  aspect-ratio: 152 / 135;
  background-color: #f4f0e8;
  background-image: url("../images/reference-home-composite.png");
  background-repeat: no-repeat;
  background-size: 673.684211% 1137.777778%;
}

.zhengems-stone-card__image:is(
  [href*="/gemstone/layout-sample-finished-gem/"],
  [href*="/gemstone/blue-sapphire-visual-reference/"],
  [href*="/gemstone/layout-sample-loose-stone/"],
  [href*="/gemstone/ruby-visual-reference/"],
  [href*="/gemstone/layout-sample-custom-order/"],
  [href*="/gemstone/red-spinel-visual-reference/"]
):has(img[src*="reference-raw-gems"]) img {
  opacity: 0;
}

.zhengems-stone-card__image:is(
  [href*="/gemstone/layout-sample-finished-gem/"],
  [href*="/gemstone/blue-sapphire-visual-reference/"]
):has(img[src*="reference-raw-gems"]) {
  background-position: 4.12844% 57.53034%;
}

.zhengems-stone-card__image:is(
  [href*="/gemstone/layout-sample-loose-stone/"],
  [href*="/gemstone/ruby-visual-reference/"]
):has(img[src*="reference-raw-gems"]) {
  background-position: 22.24771% 57.53034%;
}

.zhengems-stone-card__image:is(
  [href*="/gemstone/layout-sample-custom-order/"],
  [href*="/gemstone/red-spinel-visual-reference/"]
):has(img[src*="reference-raw-gems"]) {
  background-position: 40.59633% 57.53034%;
}

.zhengems-product-page:is(.postid-10, .postid-11, .postid-12)
  .zhengems-stone-gallery:has(.zhengems-stone-gallery__slide:first-child img[src*="reference-raw-gems"])
  .zhengems-stone-gallery__track {
  aspect-ratio: 152 / 135;
}

.zhengems-product-page:is(.postid-10, .postid-11, .postid-12)
  .zhengems-stone-gallery:has(.zhengems-stone-gallery__slide:first-child img[src*="reference-raw-gems"])
  .zhengems-stone-gallery__slide:first-child {
  background-color: #f4f0e8;
  background-image: url("../images/reference-home-composite.png");
  background-repeat: no-repeat;
  background-size: 673.684211% 1137.777778%;
  cursor: default;
  pointer-events: none;
}

.zhengems-product-page.postid-10
  .zhengems-stone-gallery:has(.zhengems-stone-gallery__slide:first-child img[src*="reference-raw-gems"])
  .zhengems-stone-gallery__slide:first-child {
  background-position: 4.12844% 57.53034%;
}

.zhengems-product-page.postid-11
  .zhengems-stone-gallery:has(.zhengems-stone-gallery__slide:first-child img[src*="reference-raw-gems"])
  .zhengems-stone-gallery__slide:first-child {
  background-position: 22.24771% 57.53034%;
}

.zhengems-product-page.postid-12
  .zhengems-stone-gallery:has(.zhengems-stone-gallery__slide:first-child img[src*="reference-raw-gems"])
  .zhengems-stone-gallery__slide:first-child {
  background-position: 40.59633% 57.53034%;
}

.zhengems-product-page:is(.postid-10, .postid-11, .postid-12)
  .zhengems-stone-gallery:has(.zhengems-stone-gallery__slide:first-child img[src*="reference-raw-gems"])
  :is(
    .zhengems-stone-gallery__slide:first-child img,
    .zhengems-stone-gallery__slide:not(:first-child),
    .zhengems-stone-gallery__zoom,
    .mmu-product-gallery__arrow,
    .zhengems-stone-gallery__thumbs,
    .zhengems-lightbox
  ) {
  opacity: 0;
  pointer-events: none;
}

.zhengems-product-page:is(.postid-10, .postid-11, .postid-12)
  .zhengems-stone-gallery:has(.zhengems-stone-gallery__slide:first-child img[src*="reference-raw-gems"])
  :is(
    .zhengems-stone-gallery__slide:not(:first-child),
    .zhengems-stone-gallery__zoom,
    .mmu-product-gallery__arrow,
    .zhengems-stone-gallery__thumbs,
    .zhengems-lightbox
  ) {
  display: none !important;
}

.zhengems-page-home .zhengems-inquiry-banner-wrap {
  padding: 0 !important;
}

.zhengems-page-home .zhengems-inquiry-feature {
  position: relative;
  isolation: isolate;
  display: grid !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 231px;
  min-height: 231px;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  margin: 0 !important;
  overflow: hidden;
  background: #f6f1e7 !important;
}

.zhengems-page-home .zhengems-inquiry-feature::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #f6f1e7 0%, #f6f1e7 44%, rgba(246, 241, 231, 0.94) 50%, rgba(246, 241, 231, 0.28) 64%, rgba(246, 241, 231, 0) 76%);
}

.zhengems-page-home .zhengems-inquiry-feature > .wp-block-column {
  position: relative;
  width: auto !important;
  height: 100%;
  min-width: 0;
  margin: 0 !important;
}

.zhengems-page-home .zhengems-inquiry-feature > .wp-block-column:first-child {
  z-index: 2;
  overflow: visible;
}

.zhengems-page-home .zhengems-inquiry-feature > .wp-block-column:last-child {
  z-index: 0;
  display: block !important;
  overflow: hidden;
}

.zhengems-page-home .zhengems-inquiry-feature__copy {
  width: 620px;
  max-width: none !important;
  height: 100%;
  padding: 34px 0 34px 136px !important;
  background: transparent !important;
  box-sizing: border-box;
}

.zhengems-page-home .zhengems-inquiry-feature__copy h2 {
  width: 480px;
  max-width: 480px !important;
  margin: 0 0 14px !important;
  font-size: 34px !important;
}

.zhengems-page-home .zhengems-inquiry-feature__copy > p:not(.zhengems-eyebrow, .zhengems-text-link) {
  width: 420px;
  max-width: 420px !important;
  margin: 0 0 15px !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.zhengems-page-home .zhengems-inquiry-feature__image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 231px;
  margin: 0 !important;
  overflow: hidden;
}

.zhengems-page-home .zhengems-inquiry-feature__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 231px;
  max-height: 231px;
  object-fit: cover;
  object-position: center;
}

.zhengems-page-home .zhengems-inquiry-feature__image img[src*="reference-home-composite.png"] {
  position: absolute;
  top: -1420px;
  left: -550px;
  width: 1280px !important;
  max-width: none !important;
  height: 1920px !important;
  min-height: 1920px;
  max-height: none;
  object-fit: fill;
}

/* Light footer: compact information hierarchy and reference-width columns. */
.zhengems-site-footer {
  position: relative;
  padding: 26px 38px 14px !important;
  color: #121310 !important;
  background: #f7f5f0 !important;
  box-sizing: border-box;
  border-top: 1px solid #d8d5cd;
}

.zhengems-site-footer .alignwide {
  width: 100% !important;
  max-width: 100% !important;
}

.zhengems-footer-grid {
  grid-template-columns: minmax(190px, 1.1fr) minmax(145px, 0.82fr) minmax(175px, 0.96fr) minmax(230px, 1.28fr) !important;
  gap: 0 !important;
  margin: 0 auto 16px !important;
}

.zhengems-footer-grid > .wp-block-column {
  min-width: 0;
  padding: 0 26px;
}

.zhengems-footer-grid > .wp-block-column:first-child {
  padding-left: 10px;
}

.zhengems-footer-grid > .wp-block-column + .wp-block-column {
  border-left: 1px solid #d8d5cd;
}

.zhengems-site-footer .zhengems-footer-title {
  margin: 0 0 8px !important;
  color: #121310 !important;
  text-transform: uppercase !important;
}

.zhengems-site-footer .zhengems-footer-note {
  max-width: 185px;
  margin: 0 !important;
  color: #3f403b !important;
  font-size: 11px !important;
  line-height: 1.65 !important;
}

.zhengems-footer-heading {
  margin: 2px 0 10px !important;
  color: #121310 !important;
}

.zhengems-footer-navigation,
.zhengems-footer-navigation .wp-block-navigation__container {
  gap: 0 !important;
}

.zhengems-footer-navigation .wp-block-navigation-item__content,
.zhengems-site-footer address,
.zhengems-site-footer .zhengems-footer-address {
  color: #30312e !important;
  font-size: 11px !important;
  line-height: 1.65 !important;
}

.zhengems-footer-bottom {
  min-height: 28px;
  padding: 11px 80px 0 4px !important;
  border-top: 1px solid #d8d5cd !important;
  color: #4d4e49 !important;
}

.zhengems-footer-bottom p,
.zhengems-footer-navigation--legal,
.zhengems-footer-navigation--legal .wp-block-navigation-item__content {
  min-height: 0 !important;
  font-size: 10px !important;
  line-height: 1.4 !important;
}

.zhengems-footer-socials {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}

.zhengems-footer-socials .wp-social-link {
  display: grid !important;
  width: 30px;
  height: 30px;
  margin: 0 !important;
  color: #121310 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 50% !important;
  place-items: center;
  transition: color 160ms ease, background-color 160ms ease;
}

.zhengems-footer-socials .wp-block-social-link-anchor {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 5px !important;
  box-sizing: border-box;
}

.zhengems-footer-socials svg {
  display: block;
  width: 18px !important;
  height: 18px !important;
}

.zhengems-footer-socials .wp-social-link:hover,
.zhengems-footer-socials .wp-social-link:focus-within {
  color: #303a13 !important;
  background: rgba(48, 58, 19, 0.08) !important;
}

.zhengems-whatsapp-float {
  position: fixed !important;
  top: auto !important;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: auto !important;
  z-index: 90;
  display: block !important;
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.zhengems-whatsapp-float .wp-social-link {
  width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
  color: #fff !important;
  background: #303a13 !important;
  border: 3px solid #fff;
  border-radius: 50% !important;
  box-shadow: 0 5px 18px rgba(18, 19, 16, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.zhengems-whatsapp-float .wp-social-link:hover,
.zhengems-whatsapp-float .wp-social-link:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 19, 16, 0.28);
}

.zhengems-whatsapp-float .wp-block-social-link-anchor {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 9px !important;
  box-sizing: border-box;
}

.zhengems-whatsapp-float svg {
  width: 24px !important;
  height: 24px !important;
}

/* Keep the footer block straightforward to select and edit inside Site Editor. */
.editor-styles-wrapper .zhengems-whatsapp-float {
  position: absolute !important;
  top: 20px !important;
  right: 20px;
  bottom: auto;
}

/* Do not let the floating shortcut compete with a full-screen navigation modal. */
html.has-modal-open .zhengems-whatsapp-float,
body:has(.wp-block-navigation__responsive-container.is-menu-open) .zhengems-whatsapp-float {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Desktop sections use a full-bleed shell with a disciplined editorial inner grid. */
@media (min-width: 901px) {
  .zhengems-header-inner,
  .zhengems-site-footer .zhengems-footer-grid {
    width: var(--zhengems-wide) !important;
    max-width: var(--zhengems-wide) !important;
    margin-inline: auto !important;
  }

  .zhengems-page-home .zhengems-gemstone-section .zhengems-category-grid {
    width: var(--zhengems-wide) !important;
    max-width: var(--zhengems-wide) !important;
    margin-inline: auto !important;
  }

  .zhengems-main.zhengems-listing-shell > .wp-block-query.alignwide {
    width: var(--zhengems-wide) !important;
    max-width: var(--zhengems-wide) !important;
    margin-inline: auto !important;
  }

  .zhengems-page-home .zhengems-source-grid > .wp-block-column .zhengems-source-card {
    min-height: clamp(400px, 27vw, 520px) !important;
  }

  .zhengems-page-home .zhengems-inquiry-feature {
    height: clamp(280px, 20.5vw, 520px);
    min-height: 280px;
    grid-template-columns: 1fr !important;
    background: #f6f1e7 url("../images/reference-home-composite.png") left 84% / 114% auto no-repeat !important;
  }

  .zhengems-page-home .zhengems-inquiry-feature::after {
    background: linear-gradient(
      90deg,
      #f6f1e7 0%,
      #f6f1e7 54%,
      rgba(246, 241, 231, 0.98) 57%,
      rgba(246, 241, 231, 0.72) 61%,
      rgba(246, 241, 231, 0.22) 66%,
      rgba(246, 241, 231, 0) 71%
    );
  }

  .zhengems-page-home .zhengems-inquiry-feature > .wp-block-column:first-child {
    grid-area: 1 / 1;
  }

  .zhengems-page-home .zhengems-inquiry-feature > .wp-block-column:last-child {
    display: none !important;
  }

  .zhengems-page-home .zhengems-inquiry-feature__copy {
    width: 100%;
    max-width: 100% !important;
    padding: 34px 0 34px max(88px, calc((100vw - 1360px) / 2 + 48px)) !important;
  }
}

/* Tablet keeps the desktop hierarchy but tightens the canvas. */
@media (max-width: 900px) {
  .zhengems-header-inner {
    min-height: 76px !important;
    height: 76px;
    padding-inline: 28px !important;
    gap: 22px;
  }

  .zhengems-brand-title {
    font-size: 31px !important;
    letter-spacing: 3.5px !important;
  }

  .zhengems-brand-tagline {
    margin-top: 7px !important;
    font-size: 7.5px !important;
    letter-spacing: 2.2px !important;
  }

  .zhengems-source-card,
  .zhengems-page-sourcing .zhengems-source-card,
  .zhengems-page-home .zhengems-source-grid > .wp-block-column .zhengems-source-card {
    min-height: 350px !important;
  }

  .zhengems-source-card .wp-block-cover__inner-container {
    padding: 30px 24px !important;
  }

  .zhengems-source-card h2,
  .zhengems-source-card h3 {
    font-size: 30px !important;
  }

  .zhengems-page-home .zhengems-gemstone-section {
    padding-inline: 28px !important;
  }

  .zhengems-page-home .zhengems-category-card__body {
    padding-inline: 12px;
  }

  .zhengems-page-home .zhengems-category-card__name {
    font-size: 13px !important;
  }

  .zhengems-footer-grid > .wp-block-column {
    padding-inline: 18px;
    box-sizing: border-box;
  }

  .zhengems-region-hero {
    min-height: 380px !important;
  }

  .zhengems-region-hero .zhengems-hero-copy h1 {
    font-size: 50px !important;
  }

  .zhengems-region-hero .zhengems-hero-copy > p:last-child {
    font-size: 16px !important;
  }

  .zhengems-page-hero:not(.zhengems-region-hero) {
    min-height: 420px !important;
  }

  .zhengems-page-hero.zhengems-contact-hero {
    min-height: 320px !important;
  }

  .zhengems-page-hero:not(.zhengems-region-hero) .zhengems-hero-copy h1 {
    max-width: 720px;
    font-size: 50px !important;
  }

  .zhengems-page-hero.zhengems-contact-hero .zhengems-hero-copy h1 {
    max-width: 620px;
    font-size: 46px !important;
  }
}

/* Phone geometry is stable from 320px upward; no competing micro-breakpoints. */
@media (max-width: 620px) {
  :root {
    --zhengems-wide: min(calc(100% - 40px), 580px);
  }

  html body {
    font-size: 14px;
  }

  .zhengems-site-header,
  .zhengems-header-inner {
    min-height: var(--zg-header-height-mobile) !important;
    height: var(--zg-header-height-mobile) !important;
  }

  .zhengems-header-inner {
    grid-template-columns: minmax(0, 1fr) 42px auto;
    padding-inline: 16px !important;
    gap: 12px;
  }

  .zhengems-brand-lockup {
    min-width: 0;
  }

  .zhengems-brand-title {
    font-size: var(--zg-brand-size-mobile) !important;
    letter-spacing: var(--zg-brand-tracking-mobile) !important;
    line-height: 0.9 !important;
  }

  .zhengems-brand-tagline {
    margin-top: 5px !important;
    font-size: var(--zg-tagline-size-mobile) !important;
    letter-spacing: var(--zg-tagline-tracking-mobile) !important;
  }

  .zhengems-primary-navigation .wp-block-navigation__responsive-container-open {
    min-width: 42px;
    min-height: 42px;
  }

  .zhengems-header-cta .wp-block-button__link {
    min-width: 88px;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 10px !important;
  }

  .zhengems-source-card,
  .zhengems-page-sourcing .zhengems-source-card,
  .zhengems-page-home .zhengems-source-grid > .wp-block-column:first-child .zhengems-source-card,
  .zhengems-page-home .zhengems-source-grid > .wp-block-column:last-child .zhengems-source-card {
    min-height: var(--zg-source-card-height-mobile) !important;
  }

  .zhengems-page-home .zhengems-source-card--east > .wp-block-cover__image-background {
    object-position: center 82% !important;
    transform: scale(1.58);
  }

  .zhengems-source-card .wp-block-cover__inner-container {
    padding: 26px 20px !important;
  }

  .zhengems-source-card .zhengems-eyebrow {
    margin-bottom: 10px !important;
    font-size: 10px !important;
  }

  .zhengems-source-card h2,
  .zhengems-source-card h3 {
    margin-bottom: 10px !important;
    font-size: var(--zg-source-title-size-mobile) !important;
    letter-spacing: 1px !important;
    line-height: 1.04 !important;
  }

  .zhengems-source-card p:not(.zhengems-eyebrow, .zhengems-cover-link) {
    max-width: min(var(--zg-source-text-max-width-mobile), calc(100vw - 40px));
    font-size: var(--zg-source-body-size-mobile) !important;
    line-height: 1.55 !important;
  }

  .zhengems-source-card .zhengems-cover-link {
    margin-top: 18px !important;
  }

  .zhengems-region-hero {
    min-height: var(--zg-region-hero-height-mobile) !important;
  }

  .zhengems-page-hero {
    padding-inline: 0 !important;
  }

  .zhengems-region-hero .zhengems-hero-copy {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
  }

  .zhengems-region-hero .zhengems-hero-copy .zhengems-eyebrow {
    margin-bottom: 11px !important;
    font-size: 10px !important;
  }

  .zhengems-region-hero .zhengems-hero-copy h1 {
    max-width: 16ch;
    font-size: var(--zg-region-title-size-mobile) !important;
    letter-spacing: 1.2px !important;
    line-height: 1 !important;
  }

  .zhengems-region-hero .zhengems-hero-copy > p:last-child {
    max-width: min(var(--zg-region-body-max-width-mobile), 100%) !important;
    margin-top: 14px !important;
    font-size: var(--zg-region-body-size-mobile) !important;
    line-height: 1.55 !important;
  }

  .zhengems-page-hero:not(.zhengems-region-hero) {
    min-height: 320px !important;
  }

  .zhengems-page-hero.zhengems-contact-hero {
    min-height: 270px !important;
  }

  .zhengems-page-hero:not(.zhengems-region-hero) .zhengems-hero-copy {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
  }

  .zhengems-page-hero:not(.zhengems-region-hero) .zhengems-hero-copy .zhengems-eyebrow {
    margin-bottom: 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.1em;
  }

  .zhengems-page-hero:not(.zhengems-region-hero) .zhengems-hero-copy h1 {
    max-width: 18ch;
    font-size: clamp(34px, 9.75vw, 38px) !important;
    line-height: 1.05 !important;
  }

  .zhengems-page-hero.zhengems-contact-hero .zhengems-hero-copy h1 {
    max-width: 17ch;
    font-size: clamp(32px, 9vw, 35px) !important;
    line-height: 1.05 !important;
  }

  .zhengems-eyebrow,
  .zhengems-home-title,
  .zhengems-footer-heading {
    font-size: 10px !important;
    letter-spacing: 0.08em !important;
  }

  .zhengems-lead {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .zhengems-section-heading h2,
  .zhengems-statement h2,
  .zhengems-story-copy h2,
  .zhengems-region-detail-grid h2,
  .zhengems-region-profile h2,
  .zhengems-contact-grid h2 {
    font-size: clamp(29px, 8.2vw, 32px) !important;
    line-height: 1.1 !important;
  }

  .zhengems-inquiry-feature__copy h2,
  .zhengems-inquiry-banner h2,
  .zhengems-horizontal-cta h2 {
    font-size: clamp(27px, 7.7vw, 30px) !important;
    line-height: 1.12 !important;
  }

  .zhengems-catalogue-intro h1,
  .zhengems-region-intro h1,
  .zhengems-category-intro h1,
  .zhengems-stone-detail__summary h1,
  .zhengems-system-page h1,
  .zhengems-listing-title,
  .zhengems-article-title {
    font-size: clamp(34px, 9.75vw, 38px) !important;
    line-height: 1.05 !important;
  }

  .zhengems-principle-grid h3,
  .zhengems-process-grid h3 {
    font-size: 19px !important;
  }

  .zhengems-source-note h3,
  .zhengems-contact-point h3 {
    font-size: 12px !important;
  }

  .zhengems-region-ledger__row h3,
  .zhengems-stone-card h3 {
    font-size: 15px !important;
  }

  .zhengems-contact-point {
    text-align: left !important;
  }

  .zhengems-contact-point h3,
  .zhengems-contact-point p {
    margin-inline: 0 !important;
    text-align: left !important;
  }

  .zhengems-primary-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 21px !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
  }

  .zhengems-page-home .zhengems-home-intro {
    min-height: 104px !important;
    padding: 18px 20px !important;
  }

  .zhengems-page-home .zhengems-home-title {
    margin-bottom: 7px !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
  }

  .zhengems-page-home .zhengems-home-intro .zhengems-lead {
    font-size: 15px !important;
    letter-spacing: 0.2px !important;
  }

  .zhengems-page-home .zhengems-provenance > .zhengems-section-heading {
    min-height: 132px;
    padding: 22px 20px 18px !important;
  }

  .zhengems-page-home .zhengems-provenance .zhengems-section-heading h2 {
    max-width: 310px;
    font-size: clamp(29px, 8.2vw, 32px) !important;
    letter-spacing: 1.3px !important;
  }

  .zhengems-page-home .zhengems-provenance .zhengems-section-heading h2::after {
    width: 48px !important;
    margin-top: 10px !important;
  }

  .zhengems-page-home .zhengems-provenance .zhengems-section-heading .zhengems-lead {
    max-width: 320px;
    margin-top: 10px !important;
    font-size: 13px !important;
  }

  .zhengems-page-home .zhengems-source-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .zhengems-page-home .zhengems-source-grid > .wp-block-column:first-child .zhengems-source-card,
  .zhengems-page-home .zhengems-source-grid > .wp-block-column:last-child .zhengems-source-card {
    min-height: var(--zg-source-card-height-mobile) !important;
  }

  .zhengems-page-home .zhengems-gemstone-section {
    min-height: 0;
    padding: 31px 16px 34px !important;
  }

  .zhengems-page-home .zhengems-gemstone-section .zhengems-section-heading {
    margin-bottom: 20px !important;
  }

  .zhengems-page-home .zhengems-gemstone-section .zhengems-section-heading h2 {
    font-size: 30px !important;
    letter-spacing: 1.2px !important;
  }

  .zhengems-page-home .zhengems-gemstone-section .zhengems-section-heading .zhengems-lead {
    max-width: 300px;
    font-size: 12px !important;
  }

  .zhengems-page-home .zhengems-gemstone-section .zhengems-category-grid,
  .zhengems-page-home .zhengems-category-grid {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .zhengems-page-home .zhengems-category-card a {
    display: flex !important;
    min-height: 100% !important;
    grid-template-columns: none !important;
    flex-direction: column !important;
  }

  .zhengems-page-home .zhengems-category-card__image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 152 / 135 !important;
  }

  .zhengems-page-home .zhengems-category-card__body {
    min-height: 96px !important;
    padding: 10px 11px !important;
    justify-content: flex-start !important;
  }

  .zhengems-page-home .zhengems-category-card__name {
    min-height: 32px !important;
    font-size: 13px !important;
    letter-spacing: 0.4px !important;
  }

  .zhengems-page-home .zhengems-category-card__description {
    display: none !important;
  }

  .zhengems-page-home .zhengems-category-card__link {
    display: inline-flex !important;
    min-height: 34px;
    margin-top: auto;
  }

  .zhengems-page-home .zhengems-inquiry-feature {
    grid-template-columns: 1fr;
    height: 350px;
    min-height: 350px;
  }

  .zhengems-page-home .zhengems-inquiry-feature::after {
    background: linear-gradient(90deg, rgba(246, 241, 231, 0.99) 0%, rgba(246, 241, 231, 0.98) 50%, rgba(246, 241, 231, 0.9) 68%, rgba(246, 241, 231, 0.46) 100%);
  }

  .zhengems-page-home .zhengems-inquiry-feature > .wp-block-column {
    width: 100% !important;
    grid-area: 1 / 1;
  }

  .zhengems-page-home .zhengems-inquiry-feature > .wp-block-column:first-child {
    z-index: 2;
  }

  .zhengems-page-home .zhengems-inquiry-feature > .wp-block-column:last-child {
    z-index: 0;
    min-height: 350px;
  }

  .zhengems-page-home .zhengems-inquiry-feature__image {
    min-height: 350px;
  }

  .zhengems-page-home .zhengems-inquiry-feature__image img {
    min-height: 350px;
    max-height: 350px;
  }

  .zhengems-page-home .zhengems-inquiry-feature__image img[src*="reference-home-composite.png"] {
    top: -1680px;
    left: -788px;
    width: 1551px !important;
    height: 2327px !important;
    min-height: 2327px;
    max-height: none;
    transform: none;
  }

  .zhengems-page-home .zhengems-inquiry-feature__copy {
    width: 100%;
    max-width: 100% !important;
    padding: 45px 25px !important;
  }

  .zhengems-page-home .zhengems-inquiry-feature__copy h2 {
    width: min(100%, 320px);
    max-width: 320px !important;
    margin-bottom: 12px !important;
    font-size: clamp(27px, 8vw, 30px) !important;
    letter-spacing: 1px !important;
    line-height: 1.04 !important;
  }

  .zhengems-page-home .zhengems-inquiry-feature__copy > p:not(.zhengems-eyebrow, .zhengems-text-link) {
    width: min(100%, 340px);
    max-width: 340px !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
  }

  .zhengems-site-footer {
    padding: 26px 20px calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .zhengems-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 20px !important;
    margin-bottom: 22px !important;
  }

  .zhengems-footer-grid > .wp-block-column {
    min-width: 0;
    padding: 0 !important;
    border-left: 0 !important;
  }

  .zhengems-footer-grid > .wp-block-column:first-child,
  .zhengems-footer-grid > .wp-block-column:last-child {
    grid-column: 1 / -1;
  }

  .zhengems-footer-grid > .wp-block-column:last-child {
    display: block !important;
    padding-top: 18px !important;
    border-top: 1px solid #d8d5cd !important;
  }

  .zhengems-site-footer .zhengems-footer-title {
    margin-bottom: 8px !important;
    font-size: 24px !important;
    letter-spacing: 2.6px !important;
  }

  .zhengems-site-footer .zhengems-footer-note {
    max-width: 250px;
    font-size: 11px !important;
    line-height: 1.65 !important;
  }

  .zhengems-footer-heading {
    margin: 0 0 8px !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
  }

  .zhengems-footer-navigation .wp-block-navigation-item__content {
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.65 !important;
  }

  .zhengems-footer-bottom {
    min-height: 0;
    padding-top: 12px !important;
    padding-right: 4px !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 8px;
  }

  .zhengems-footer-navigation--legal,
  .zhengems-footer-navigation--legal .wp-block-navigation__container,
  .zhengems-footer-navigation--legal .wp-block-navigation-item,
  .zhengems-footer-navigation--legal .wp-block-navigation-item__content {
    min-height: 0 !important;
  }

  .zhengems-footer-socials {
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .zhengems-whatsapp-float {
    position: fixed !important;
    top: auto !important;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: auto !important;
    width: 48px !important;
    height: 48px !important;
  }

  .zhengems-whatsapp-float .wp-social-link {
    width: 48px !important;
    height: 48px !important;
  }

  .zhengems-whatsapp-float .wp-block-social-link-anchor {
    padding: 9px !important;
  }

  .zhengems-whatsapp-float svg {
    width: 22px !important;
    height: 22px !important;
  }
}

@media (max-width: 350px) {
  :root {
    --zhengems-wide: calc(100% - 28px);
  }

  .zhengems-header-inner {
    padding-inline: 14px !important;
  }

  .zhengems-brand-title {
    font-size: 20px !important;
    letter-spacing: 1.7px !important;
  }

  .zhengems-brand-tagline {
    font-size: 5.5px !important;
    letter-spacing: 1.2px !important;
  }

  .zhengems-header-cta .wp-block-button__link {
    min-width: 74px;
    padding-inline: 8px;
  }

  .zhengems-source-card p:not(.zhengems-eyebrow, .zhengems-cover-link) {
    max-width: calc(100vw - 40px);
  }

  .zhengems-page-home .zhengems-gemstone-section {
    padding-inline: 14px !important;
  }

  .zhengems-page-home .zhengems-category-card__name {
    font-size: 12px !important;
  }

  .zhengems-footer-grid {
    gap-inline: 14px !important;
  }
}
