/* Map Astryx Stone's semantic tokens into the existing Nếp WordPress theme. */
body.nep[data-astryx-theme="stone"] {
  --nep-paper: var(--color-background-body, #f4f4ef);
  --nep-surface: var(--color-background-surface, #eeefe8);
  --nep-field: var(--color-background-card, #fcfcf8);
  --nep-ink: var(--color-text-primary, #272c26);
  --nep-muted: var(--color-text-secondary, #62685f);
  --nep-line: var(--color-border, #d6d9cf);
  --nep-field-line: var(--color-border-emphasized, #92998b);
  --font-family-body: var(--nep-font);
}

/* Shared Stone rhythm for the WordPress templates. */
body.nep[data-astryx-theme="stone"] .sf section { padding-block: clamp(36px, 4vw, 58px); }
body.nep[data-astryx-theme="stone"] .sf section.sf-hero { padding-block: clamp(42px, 4.8vw, 68px); }
body.nep[data-astryx-theme="stone"] .sf-grid3,
body.nep[data-astryx-theme="stone"] .sf-grid4,
body.nep[data-astryx-theme="stone"] .sf-steps { margin-top: clamp(24px, 3vw, 36px); }
body.nep[data-astryx-theme="stone"] .sf-split { margin-top: 0; gap: clamp(28px, 4vw, 56px); align-items: center; }
body.nep[data-astryx-theme="stone"] .sf-quote-band { margin-block: 0; padding: clamp(28px, 3.5vw, 48px); }
body.nep[data-astryx-theme="stone"] .sf-card,
body.nep[data-astryx-theme="stone"] .nep-shop .shop-room { border-radius: var(--radius-container, 16px); }
body.nep[data-astryx-theme="stone"] .sf section h2,
body.nep[data-astryx-theme="stone"] .nep-shop h2,
body.nep[data-astryx-theme="stone"] .nep-category-archive h1 { font-family: var(--nep-font); letter-spacing: -.025em; }
body.nep[data-astryx-theme="stone"] .nep-shop .shop-spaces { padding-block: clamp(42px, 5vw, 68px); }
body.nep[data-astryx-theme="stone"] .nep-shop .shop-collection { padding-bottom: clamp(42px, 5vw, 68px); }
body.nep[data-astryx-theme="stone"] .nep-shop .shop-manifesto { padding-block: clamp(36px, 4vw, 54px); }
body.nep[data-astryx-theme="stone"] .nep-shop .shop-trade { padding-block: clamp(44px, 5vw, 70px); }
body.nep[data-astryx-theme="stone"] .nep-shop .shop-section-head { margin-bottom: 28px; }
body.nep[data-astryx-theme="stone"] .article-grid { gap: 32px 24px; padding-block: 28px 56px; }
body.nep[data-astryx-theme="stone"] .wp-block-woocommerce-product-button .wp-block-button__link { color: #fff; background: #26332c; border-radius: 999px; }
body.nep[data-astryx-theme="stone"] .wp-block-woocommerce-product-button .wp-block-button__link:hover { color: #fff; background: #3e5143; }
@media (max-width: 767px) {
  body.nep[data-astryx-theme="stone"] .sf section { padding-block: 32px; }
  body.nep[data-astryx-theme="stone"] .sf section.sf-hero { padding-block: 36px; }
  body.nep[data-astryx-theme="stone"] .sf-split { gap: 24px; }
  body.nep[data-astryx-theme="stone"] .sf-steps { gap: 20px; }
}
body.nep[data-astryx-theme="stone"] .nep-shop h1 { font-family: var(--nep-font); letter-spacing: -.025em; }
body.nep[data-astryx-theme="stone"] .nep-shop h1 em { font-family: inherit; font-style: normal; }
body.nep[data-astryx-theme="stone"] .nep-shop .shop-hero-primary { border-radius: 999px; }

/* Keep shared controls and cards inside Stone's rounded, quiet visual language. */
body.nep[data-astryx-theme="stone"] :is(.cta, .sf-btn, .shop-action-primary, .shop-action-secondary, .shop-trade-button, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button) {
  border-radius: var(--radius-full, 9999px);
}
body.nep[data-astryx-theme="stone"] :is(.sf-card, .contact-band, .shop-preview, .nep-single-product .woocommerce-product-gallery img) {
  border-radius: var(--radius-container, 0.75rem);
}
body.nep[data-astryx-theme="stone"] :is(.inquiry input, .inquiry select, .inquiry textarea, .woocommerce input.input-text, .woocommerce textarea, .woocommerce select) {
  border-radius: var(--radius-element, 0.5rem);
}
body.nep[data-astryx-theme="stone"] .nep-single-product .woocommerce-product-gallery { opacity: 1 !important; }
body.nep[data-astryx-theme="stone"] .nep-shop .wc-block-product:is(.post-111, .post-41, .post-42) { display: none !important; }

.nep .sf-demo-link,
.nep-shop .shop-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  width: fit-content;
  margin-top: 0.875rem;
  color: var(--nep-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  text-decoration: none;
}
.nep .sf-demo-link:hover,
.nep-shop .shop-demo-link:hover { color: var(--nep-ink); }
.nep .sf-demo-tag,
.nep-shop .shop-demo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.375rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--nep-accent);
  color: var(--nep-on-accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

@media (max-width: 767px) {
  /* One compact mobile rhythm for interior pages, article pages and projects. */
  body.nep[data-astryx-theme="stone"] .inner-page .page-heading {
    padding-block: 1.5rem 1rem;
  }
  body.nep[data-astryx-theme="stone"] .inner-page .page-heading h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.2;
  }
  body.nep[data-astryx-theme="stone"] .inner-page .breadcrumbs {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  body.nep[data-astryx-theme="stone"] .inner-page .page-banner { margin-top: 1.25rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .page-content,
  body.nep[data-astryx-theme="stone"] .inner-page > .page-content {
    padding-block: 1.25rem 2rem;
  }
  body.nep[data-astryx-theme="stone"] .inner-page .page-content h2 { font-size: 1.625rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .story-layout {
    gap: 1.25rem;
    padding-block: 1.25rem 1.875rem;
  }
  body.nep[data-astryx-theme="stone"] .inner-page .contact-layout { gap: 1.5rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .contact-aside { padding-top: 0; }
  body.nep[data-astryx-theme="stone"] .inner-page .contact-aside img { margin-bottom: 1rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .services {
    gap: 1.25rem;
    margin-block: 1.25rem;
  }
  body.nep[data-astryx-theme="stone"] .inner-page .services article { padding-top: 1rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .service-list { margin-top: 1.5rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .service-list article { padding-block: 1.125rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .gallery { gap: 1.25rem; margin-block: 1.25rem 1.75rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .projects-note { margin-top: 1.25rem; padding-top: 1rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .projects-steps { padding-block: 0.5rem 2rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .studio-layout { gap: 1.5rem; padding-block: 1.5rem 2rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .project-heading { padding-bottom: 1rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .project-hero { margin-top: 1rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .project-copy { padding-top: 1.5rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .project-contact { gap: 1rem; padding-block: 1.5rem 2rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .article-grid {
    gap: 1.5rem;
    padding-block: 1.25rem 2rem;
  }
  body.nep[data-astryx-theme="stone"] .inner-page .article-grid img { margin-bottom: 0.75rem; }
  body.nep[data-astryx-theme="stone"] .inner-page .article-grid h2 { font-size: 1.375rem; }
  body.nep[data-astryx-theme="stone"] .inner-page.missing-page { padding-block: 3rem; }
  body.nep[data-astryx-theme="stone"] .contact-band { margin-bottom: 2rem; padding: 1.5rem 1.25rem; }

  /* Keep homepage cards and the mobile shop hero compact without shrinking text. */
  body.nep[data-astryx-theme="stone"] .sf section { padding-block: 1.75rem; }
  body.nep[data-astryx-theme="stone"] .sf section.sf-hero { padding-block: 1.875rem; }
  body.nep[data-astryx-theme="stone"] .sf-grid3,
  body.nep[data-astryx-theme="stone"] .sf-grid4,
  body.nep[data-astryx-theme="stone"] .sf-steps { margin-top: 1.25rem; gap: 1rem; }
  body.nep[data-astryx-theme="stone"] .sf-badge { margin-bottom: 1rem; }
  body.nep[data-astryx-theme="stone"] .sf-lede { margin-top: 1rem; }
  body.nep[data-astryx-theme="stone"] .sf-actions { margin-top: 1.25rem; gap: 0.75rem; }
  body.nep[data-astryx-theme="stone"] .sf-hero-img { border-radius: var(--radius-container, 0.75rem); }
  body.nep[data-astryx-theme="stone"] .sf-card-ph { aspect-ratio: 16 / 10; }
  body.nep[data-astryx-theme="stone"] .sf-card-bd { gap: 0.375rem; padding: 1rem 1rem 1.125rem; }
  body.nep[data-astryx-theme="stone"] .sf-quote-band { padding: 1.5rem 1.25rem; }

  body.nep[data-astryx-theme="stone"] .nep-shop .shop-hero-copy { padding: 1.75rem 1.25rem 1rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-hero h1 { font-size: clamp(2.25rem, 8.5vw, 2.8rem); }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-hero-description { line-height: 1.65; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-hero-quiet { padding-top: 1.125rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-hero-image,
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-hero-image img { min-height: 17.5rem; height: 17.5rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-manifesto { gap: 0.75rem; padding-block: 1.5rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-spaces { padding-block: 2rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-section-heading { gap: 0.75rem; margin-bottom: 1.25rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-section-heading h2 { font-size: clamp(2rem, 8vw, 2.625rem); }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-rooms { gap: 0.75rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-room,
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-room-living { height: clamp(15rem, 76vw, 18.75rem); }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-collection { padding-bottom: 2rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-preview-visual,
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-preview-visual img { min-height: 14rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-preview-copy { padding: 1.5rem 1.25rem 1.75rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-trade-layout { gap: 1.25rem; padding-block: 2rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-trade h2 { font-size: clamp(2.125rem, 8.5vw, 2.75rem); }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-bottom-note { gap: 0.75rem; padding-block: 1rem 1.5rem; }
  body.nep[data-astryx-theme="stone"] .nep .nep-products { padding-bottom: 2rem; }
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-product-search,
  body.nep[data-astryx-theme="stone"] .nep-shop .shop-product-filters { display: none; }
  body.nep[data-astryx-theme="stone"] .nep-shop .wc-block-product-template__responsive.columns-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-gap: 0.875rem;
  }
  body.nep[data-astryx-theme="stone"] .nep-shop .wc-block-product-template__responsive > li {
    width: 100%;
    max-width: 100%;
  }
  body.nep[data-astryx-theme="stone"] .nep-shop .wc-block-components-product-image--aspect-ratio-1-1 {
    aspect-ratio: 16 / 10 !important;
  }
  body.nep[data-astryx-theme="stone"] .nep-shop .wc-block-components-product-image--aspect-ratio-1-1 img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover;
  }
  body.nep[data-astryx-theme="stone"] .nep-shop .wc-block-components-product-button .wp-block-button__link {
    padding-inline: 1.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  body.nep[data-astryx-theme="stone"] .nep-single-product { padding-bottom: 2rem; }
  body.nep[data-astryx-theme="stone"] .nep-single-product .page-heading { padding-bottom: 1rem; }
  body.nep[data-astryx-theme="stone"] .nep-single-product .woocommerce-tabs,
  body.nep[data-astryx-theme="stone"] .nep-single-product .related.products,
  body.nep[data-astryx-theme="stone"] .nep-single-product .upsells.products { margin-top: 2rem; }
}

/* Center article headings while keeping long-form paragraphs easy to follow. */
@media (max-width: 767px) {
  body.nep.single-post[data-astryx-theme="stone"] .page-heading h1,
  body.nep.single-post[data-astryx-theme="stone"] .page-content.project-copy h2,
  body.nep.single-post[data-astryx-theme="stone"] .page-content.project-copy h3 {
    text-align: center;
    text-wrap: balance;
  }
  body.nep.single-post[data-astryx-theme="stone"] .page-content.project-copy {
    margin-inline: auto;
    text-align: left;
  }
}

/* Shared Stone collection templates: product, journal article and category. */
body.nep[data-astryx-theme="stone"] .nep-single-product,
body.nep[data-astryx-theme="stone"] .nep-journal-article,
body.nep[data-astryx-theme="stone"] .nep-journal-archive {
  color: var(--nep-ink);
}

body.nep[data-astryx-theme="stone"] .nep-single-product {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
body.nep[data-astryx-theme="stone"] .nep-single-product .page-heading {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: 0;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail {
  display: block;
  margin: 0;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  align-items: start;
  gap: clamp(1.75rem, 4vw, 3.75rem);
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__media,
body.nep[data-astryx-theme="stone"] .nep-product-detail__summary {
  min-width: 0;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  max-width: none;
  margin: 0;
  opacity: 1 !important;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .woocommerce-product-gallery__wrapper,
body.nep[data-astryx-theme="stone"] .nep-product-detail .woocommerce-product-gallery__image {
  margin: 0;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .woocommerce-product-gallery__image a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-container, 1rem);
  background: var(--nep-surface);
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 42rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: inherit;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .flex-control-thumbs {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .flex-control-thumbs li {
  float: none;
  width: 5rem;
  overflow: hidden;
  border-radius: var(--radius-element, 0.5rem);
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__image-note {
  margin: 0.625rem 0 0;
  color: var(--nep-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__summary {
  padding-top: clamp(0.25rem, 1.2vw, 1rem);
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__category {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--nep-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__status {
  width: fit-content;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--nep-line);
  border-radius: var(--radius-full, 9999px);
  color: var(--nep-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .product_title {
  margin: 0 0 0.875rem;
  font-family: var(--nep-font);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .woocommerce-product-details__short-description,
body.nep[data-astryx-theme="stone"] .nep-product-detail__notice {
  max-width: 54ch;
  color: var(--nep-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail .woocommerce-product-details__short-description p,
body.nep[data-astryx-theme="stone"] .nep-product-detail__notice {
  margin: 0 0 1rem;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__sku {
  margin: 1.25rem 0 0;
  color: var(--nep-muted);
  font-size: 0.75rem;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__sku span {
  margin-right: 0.35rem;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__contact {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--nep-accent, #465448);
  color: var(--nep-on-accent, #fff);
  font-size: 0.82rem;
  text-decoration: none;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__contact:hover {
  background: var(--nep-ink);
  color: var(--nep-paper);
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__description,
body.nep[data-astryx-theme="stone"] .nep-product-detail__attributes {
  max-width: 70rem;
  margin: clamp(2.25rem, 5vw, 4rem) auto 0;
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--nep-line);
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__description h2,
body.nep[data-astryx-theme="stone"] .nep-product-detail__attributes h2,
body.nep[data-astryx-theme="stone"] .nep-related-products__heading h2,
body.nep[data-astryx-theme="stone"] .nep-journal-related__heading h2 {
  margin: 0;
  font-family: var(--nep-font);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__prose {
  max-width: 68ch;
  margin-top: 1rem;
  padding: 0;
  color: var(--nep-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__prose h2,
body.nep[data-astryx-theme="stone"] .nep-product-detail__prose h3 {
  margin: 1.5em 0 0.55em;
  color: var(--nep-ink);
  font-size: 1.15em;
  letter-spacing: -0.02em;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__prose p:first-child { margin-top: 0; }
body.nep[data-astryx-theme="stone"] .nep-product-detail__attributes .shop_attributes {
  width: min(100%, 50rem);
  margin-top: 1rem;
  border-collapse: collapse;
  text-align: left;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__attributes th,
body.nep[data-astryx-theme="stone"] .nep-product-detail__attributes td {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid var(--nep-line);
  background: transparent;
}
body.nep[data-astryx-theme="stone"] .nep-product-detail__attributes th { color: var(--nep-muted); font-weight: 500; }
body.nep[data-astryx-theme="stone"] .nep-related-products {
  max-width: 70rem;
  margin: clamp(2.5rem, 5vw, 4.25rem) auto 0;
}
body.nep[data-astryx-theme="stone"] .nep-related-products__heading,
body.nep[data-astryx-theme="stone"] .nep-journal-related__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
body.nep[data-astryx-theme="stone"] .nep-related-products__heading > a,
body.nep[data-astryx-theme="stone"] .nep-journal-related__heading > a {
  flex: none;
  color: var(--nep-muted);
  font-size: 0.76rem;
  text-decoration: none;
}
body.nep[data-astryx-theme="stone"] .nep-related-products__grid,
body.nep[data-astryx-theme="stone"] .nep-journal-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
}
body.nep[data-astryx-theme="stone"] .nep-related-product,
body.nep[data-astryx-theme="stone"] .nep-journal-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nep-line);
  border-radius: var(--radius-container, 1rem);
  background: var(--nep-field, #fff);
}
body.nep[data-astryx-theme="stone"] .nep-related-product__media,
body.nep[data-astryx-theme="stone"] .nep-journal-card__media {
  display: block;
  overflow: hidden;
  background: var(--nep-surface);
}
body.nep[data-astryx-theme="stone"] .nep-journal-card__media figure { margin: 0; }
body.nep[data-astryx-theme="stone"] .nep-related-product__media img,
body.nep[data-astryx-theme="stone"] .nep-journal-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 280ms ease;
}
body.nep[data-astryx-theme="stone"] .nep-related-product__media:hover img,
body.nep[data-astryx-theme="stone"] .nep-journal-card__media:hover img { transform: scale(1.025); }
body.nep[data-astryx-theme="stone"] .nep-related-product__content,
body.nep[data-astryx-theme="stone"] .nep-journal-card__content {
  display: flex;
  min-height: 8.5rem;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.85rem 1rem 1rem;
}
body.nep[data-astryx-theme="stone"] .nep-related-product h3,
body.nep[data-astryx-theme="stone"] .nep-journal-card__title {
  margin: 0;
  font-family: var(--nep-font);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}
body.nep[data-astryx-theme="stone"] .nep-related-product h3 a,
body.nep[data-astryx-theme="stone"] .nep-journal-card__title a { color: inherit; text-decoration: none; }
body.nep[data-astryx-theme="stone"] .nep-related-product__link,
body.nep[data-astryx-theme="stone"] .nep-journal-card__more {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--nep-muted);
  font-size: 0.75rem;
  text-decoration: none;
}

/* Editorial layout shared by each article and the Blog category archive. */
body.nep[data-astryx-theme="stone"] .nep-journal-archive {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
body.nep[data-astryx-theme="stone"] .nep-journal-archive__header { margin-bottom: 1rem; }
body.nep[data-astryx-theme="stone"] .nep-journal-archive__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
body.nep[data-astryx-theme="stone"] .nep-journal-archive__intro h1,
body.nep[data-astryx-theme="stone"] .nep-journal-article__header h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--nep-font);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}
body.nep[data-astryx-theme="stone"] .nep-journal-archive__description {
  max-width: 48ch;
  margin-top: 0.75rem;
  color: var(--nep-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
body.nep[data-astryx-theme="stone"] .nep-journal-archive__description p { margin: 0; }
body.nep[data-astryx-theme="stone"] .nep-journal-archive__count {
  flex: none;
  margin: 0 0 0.15rem;
  color: var(--nep-muted);
  font-size: 0.76rem;
}
body.nep[data-astryx-theme="stone"] .nep-journal-archive__featured { margin-top: clamp(1.25rem, 3vw, 2rem); }
body.nep[data-astryx-theme="stone"] .nep-journal-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  align-items: center;
}
body.nep[data-astryx-theme="stone"] .nep-journal-card--featured .nep-journal-card__media img {
  aspect-ratio: 16 / 10;
}
body.nep[data-astryx-theme="stone"] .nep-journal-card--featured .nep-journal-card__content {
  min-height: 0;
  padding: clamp(1rem, 2vw, 1.8rem);
}
body.nep[data-astryx-theme="stone"] .nep-journal-card__content > time,
body.nep[data-astryx-theme="stone"] .nep-journal-article__meta {
  color: var(--nep-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
body.nep[data-astryx-theme="stone"] .nep-journal-card--featured .nep-journal-card__title { margin-top: 0.5rem; font-size: clamp(1.35rem, 2.7vw, 2.25rem); }
body.nep[data-astryx-theme="stone"] .nep-journal-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.55rem 0 0;
  color: var(--nep-muted);
  font-size: 0.82rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.nep[data-astryx-theme="stone"] .nep-journal-archive__collection { margin-top: clamp(1.25rem, 3vw, 2rem); }
body.nep[data-astryx-theme="stone"] .nep-journal-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
}
body.nep[data-astryx-theme="stone"] .nep-journal-card--card .nep-journal-card__content { min-height: 12rem; }
body.nep[data-astryx-theme="stone"] .nep-journal-card--related .nep-journal-card__content { min-height: 10rem; }
body.nep[data-astryx-theme="stone"] .nep-journal-archive__pagination { margin-top: 1.75rem; }
body.nep[data-astryx-theme="stone"] .nep-journal-archive__pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.nep[data-astryx-theme="stone"] .nep-journal-archive__pagination a,
body.nep[data-astryx-theme="stone"] .nep-journal-archive__pagination span {
  display: grid;
  min-width: 2.5rem;
  min-height: 2.5rem;
  place-items: center;
  border: 1px solid var(--nep-line);
  border-radius: var(--radius-full, 9999px);
  color: inherit;
  text-decoration: none;
}
body.nep[data-astryx-theme="stone"] .nep-journal-archive__pagination .current { background: var(--nep-accent, #465448); color: #fff; }
body.nep[data-astryx-theme="stone"] .nep-journal-archive__empty { padding-block: 2rem 4rem; color: var(--nep-muted); }
body.nep[data-astryx-theme="stone"] .nep-journal-archive__empty h2 { margin: 0 0 0.5rem; color: var(--nep-ink); }
body.nep[data-astryx-theme="stone"] .nep-journal-article {
  max-width: 76rem;
  margin-inline: auto;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__header {
  max-width: 60rem;
  margin-inline: auto;
  padding-block: clamp(0.5rem, 1.5vw, 1rem) 1.25rem;
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__category { color: var(--nep-muted); text-decoration: none; }
body.nep[data-astryx-theme="stone"] .nep-journal-article__header h1 { max-width: 22ch; font-size: clamp(2.15rem, 5vw, 4.25rem); }
body.nep[data-astryx-theme="stone"] .nep-journal-article__lede {
  max-width: 60ch;
  margin-top: 0.85rem;
  color: var(--nep-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__lede p { margin: 0; }
body.nep[data-astryx-theme="stone"] .nep-journal-article__media {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-container, 1rem);
  background: var(--nep-surface);
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__image {
  display: block;
  width: 100%;
  max-height: 42rem;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__reading {
  width: min(100%, 66ch);
  margin: 0 auto;
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__body {
  max-width: none;
  padding: 0;
  color: var(--nep-ink);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.8;
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__body > :first-child { margin-top: 0; }
body.nep[data-astryx-theme="stone"] .nep-journal-article__body p { margin-block: 0 1rem; }
body.nep[data-astryx-theme="stone"] .nep-journal-article__body h2,
body.nep[data-astryx-theme="stone"] .nep-journal-article__body h3 {
  margin-block: 1.7em 0.55em;
  font-family: var(--nep-font);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}
body.nep[data-astryx-theme="stone"] .nep-journal-article__body ul,
body.nep[data-astryx-theme="stone"] .nep-journal-article__body ol { padding-inline-start: 1.3rem; }
body.nep[data-astryx-theme="stone"] .nep-journal-article__body li { margin-block: 0.4rem; }
body.nep[data-astryx-theme="stone"] .nep-journal-related {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  border-top: 1px solid var(--nep-line);
}

@media (max-width: 767px) {
  body.nep[data-astryx-theme="stone"] .nep-product-detail__hero { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  body.nep[data-astryx-theme="stone"] .nep-product-detail .woocommerce-product-gallery__image img { max-height: none; aspect-ratio: 4 / 3; }
  body.nep[data-astryx-theme="stone"] .nep-product-detail__summary { padding-top: 0; }
  body.nep[data-astryx-theme="stone"] .nep-product-detail .product_title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  body.nep[data-astryx-theme="stone"] .nep-product-detail__description,
  body.nep[data-astryx-theme="stone"] .nep-product-detail__attributes,
  body.nep[data-astryx-theme="stone"] .nep-related-products { margin-top: 1.75rem; }
  body.nep[data-astryx-theme="stone"] .nep-related-products__heading,
  body.nep[data-astryx-theme="stone"] .nep-journal-related__heading { align-items: flex-start; }
  body.nep[data-astryx-theme="stone"] .nep-related-products__grid,
  body.nep[data-astryx-theme="stone"] .nep-journal-related__grid,
  body.nep[data-astryx-theme="stone"] .nep-journal-archive__grid { grid-template-columns: minmax(0, 1fr); }
  body.nep[data-astryx-theme="stone"] .nep-related-product,
  body.nep[data-astryx-theme="stone"] .nep-journal-card--card { display: grid; grid-template-columns: minmax(7rem, 0.78fr) minmax(0, 1fr); }
  body.nep[data-astryx-theme="stone"] .nep-related-product__media,
  body.nep[data-astryx-theme="stone"] .nep-journal-card--card .nep-journal-card__media { height: 100%; }
  body.nep[data-astryx-theme="stone"] .nep-related-product__media img,
  body.nep[data-astryx-theme="stone"] .nep-journal-card--card .nep-journal-card__media img { height: 100%; min-height: 8.5rem; aspect-ratio: auto; }
  body.nep[data-astryx-theme="stone"] .nep-related-product__content,
  body.nep[data-astryx-theme="stone"] .nep-journal-card--card .nep-journal-card__content { min-height: 0; padding: 0.75rem; }
  body.nep[data-astryx-theme="stone"] .nep-journal-archive__intro { display: block; }
  body.nep[data-astryx-theme="stone"] .nep-journal-archive__count { margin-top: 0.75rem; }
  body.nep[data-astryx-theme="stone"] .nep-journal-card--featured { grid-template-columns: minmax(0, 1fr); }
  body.nep[data-astryx-theme="stone"] .nep-journal-card--featured .nep-journal-card__media img { aspect-ratio: 4 / 3; }
  body.nep[data-astryx-theme="stone"] .nep-journal-card--featured .nep-journal-card__content { min-height: 0; padding: 0.9rem 1rem 1rem; }
  body.nep[data-astryx-theme="stone"] .nep-journal-card--related { display: block; }
  body.nep[data-astryx-theme="stone"] .nep-journal-card--related .nep-journal-card__content { min-height: 0; }
  body.nep[data-astryx-theme="stone"] .nep-journal-article__header { padding-bottom: 1rem; }
  body.nep[data-astryx-theme="stone"] .nep-journal-article__header h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  body.nep[data-astryx-theme="stone"] .nep-journal-article__lede { font-size: 1rem; }
  body.nep[data-astryx-theme="stone"] .nep-journal-article__image { aspect-ratio: 4 / 3; }
  body.nep[data-astryx-theme="stone"] .nep-journal-article__reading { padding-top: 1.25rem; }
  body.nep[data-astryx-theme="stone"] .nep-journal-article__body,
  body.nep[data-astryx-theme="stone"] .nep-journal-article__body h2,
  body.nep[data-astryx-theme="stone"] .nep-journal-article__body h3 { text-align: center; }
  body.nep[data-astryx-theme="stone"] .nep-journal-article__body ul,
  body.nep[data-astryx-theme="stone"] .nep-journal-article__body ol { padding-inline-start: 0; list-style-position: inside; }
}

@media (max-width: 380px) {
  body.nep[data-astryx-theme="stone"] .nep-related-product,
  body.nep[data-astryx-theme="stone"] .nep-journal-card--card { grid-template-columns: minmax(6rem, 0.68fr) minmax(0, 1fr); }
}
