/* Shared visual width; native Elementor document controls retain precedence.
 * Container units scale type against the actual section, including Fixed mode.
 * Keep native grid columns and responsive gaps editable in Elementor.
 */
.ten10-editorial { --padding-left: 0; --padding-right: 0; }
.ten10-editorial > .ten10-el-inner { container-type: inline-size; }
.ten10-editorial .ten10-discovery-grid { --padding-top: 0; --padding-bottom: 0; }
.site-container, .ten10-el-inner { min-width: 0; }

@media (min-width: 1025px) {
  .ten10-ed-hero { --padding-top: 32px; --padding-bottom: 40px; }
  .ten10-ed-hero + .ten10-editorial { --padding-top: 48px; }
  .ten10-editorial .ten10-ed-hero-copy { --padding-right: clamp(24px, 3cqi, 72px); --padding-top: 32px; --padding-bottom: 32px; }
  .ten10-ed-display .elementor-heading-title { font-size: clamp(66px, 8.6cqi, 148px); }
  .ten10-ed-hero--rituals .ten10-ed-display .elementor-heading-title,
  .ten10-ed-hero--ingredients .ten10-ed-display .elementor-heading-title { font-size: clamp(60px, 7.3cqi, 128px); }
  .ten10-editorial .ten10-ed-lead { max-width: clamp(380px, 30cqi, 520px); font-size: clamp(18px, 1.15cqi, 20px); }
  .ten10-editorial .ten10-ed-lead p { max-width: clamp(380px, 30cqi, 520px); }
  .ten10-ed-hero-photo { align-self: center; height: auto; }
  .ten10-ed-hero-photo img { min-height: 0; height: clamp(480px, 36cqi, 760px); aspect-ratio: auto; }
  .ten10-ed-primary .elementor-button { font-size: 15px; min-height: 50px; }
  .ten10-ed-eyebrow { font-size: 12px; }
  .ten10-ed-intro { max-width: min(100%, 960px); margin-bottom: 32px; }
  .ten10-ed-intro .elementor-widget-text-editor { max-width: 65ch; font-size: 18px; }
  .ten10-editorial h2.elementor-heading-title { font-size: clamp(38px, 4.5cqi, 76px); }
  .ten10-editorial h3.elementor-heading-title { font-size: clamp(27px, 2.6cqi, 42px); }
  .ten10-ed-ingredient .elementor-widget-text-editor:not(.ten10-ed-taste),
  .ten10-ed-moment .elementor-widget-text-editor:not(.ten10-ed-taste) { font-size: 16px; max-width: 50ch; }
  .ten10-ed-taste, .ten10-ed-link .elementor-button { font-size: 14px; }
  .ten10-ed-feature-photo img { height: clamp(480px, 38cqi, 780px); aspect-ratio: auto; }
  .ten10-ed-feature-copy > .elementor-widget-text-editor,
  .ten10-ed-feature-copy > .elementor-widget-text-editor p { max-width: 52ch; }
  .ten10-ed-feature h2.elementor-heading-title { font-size: clamp(40px, 4.2cqi, 72px); }
  /* Preserve the smaller functional headings inside steps and preparation routes. */
  .ten10-ed-step h3.elementor-heading-title { font-size: 17px; }
  .ten10-detail-steps .elementor-widget-heading h3.elementor-heading-title { font-size: 18px; }
  .ten10-detail-hero .ten10-ed-display .elementor-heading-title { font-size: clamp(58px, 6.5cqi, 116px); }
  .ten10-detail-hero .ten10-ed-hero-photo img { min-height: 0; max-height: none; height: clamp(420px, 31cqi, 660px); aspect-ratio: auto; }
  .ten10-moment-feature-photo img { max-height: 700px; }
  .ten10-moment-route-body { max-width: var(--reading-width); }
  .ten10-editorial .ten10-ed-masthead-title h1 { font-size: clamp(60px, 6.8cqi, 120px); }
  .ten10-ed-hero:is(.ten10-ed-hero--about,.ten10-ed-hero--origins,.ten10-ed-hero--goals) .ten10-ed-display h1 { font-size: clamp(58px, 6.6cqi, 114px); }
  .ten10-ed-story-grid .ten10-story-card__image { max-height: 640px; }
  .ten10-moment-live .ten10-ed-related-grid img { max-height: 480px; }
  .woocommerce ul.products li.product a img { max-height: 560px; }
  .woocommerce div.product div.images .woocommerce-product-gallery__image img { max-height: 820px; object-fit: contain; }
}

/* Width affects the cover and recommendations, not the reading column. */
.article { max-width: 1440px; }
.article-main .article__header { max-width: min(100%, 960px); }
.article .entry-content p { max-width: none; }
.article .entry-content > .elementor { max-width: 100%; }

/* Comfortable device gutters, including the header, without changing drawer sizing. */
@media (max-width: 767px) {
  .site-header__inner { padding-inline: var(--gutter); }
}

/* The live Ingredients directory has its own grid; Home keeps its curated layout. */
.ten10-ingredient-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; width: 100%; }
.ten10-ingredient-card { min-width: 0; }
.ten10-ingredient-card > a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; color: var(--color-ink); }
.ten10-ingredient-card__image { width: 100%; margin-bottom: 8px; overflow: hidden; border-radius: var(--radius-media); }
.ten10-ingredient-card__image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.ten10-ingredient-card h3 { margin: 0; font-family: var(--font-sans); font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.ten10-ingredient-card p { margin: 0; color: var(--color-muted); font-size: 16px; line-height: 1.65; }
.ten10-ingredient-card .text-link { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; border-bottom: 1px solid var(--color-detail); }
.ten10-ingredient-card .text-link::after { content: none; }
.ten10-ingredient-card > a:hover .text-link { color: var(--color-accent); border-color: var(--color-accent); }
.ten10-ingredient-card > a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; border-radius: var(--radius-media); }
@media (max-width: 1024px) {
  .ten10-ingredient-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}
@media (max-width: 767px) {
  .ten10-ingredient-library { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
