/* ESTHE editorial pages (about, factories, packaging, lookbooks). Loaded only there, by inc/editorial.php.
 * Same design system as esthe.css: Jost 300/400, --ink/--ink-2/--mute/--line/--wash/--paper, square corners,
 * hairlines, no shadows, LABEL/TITLE/DISPLAY/BODY roles, spacing 4·8·12·16·24·32·48·64·96.
 * Layout: .ed children are a 680px reading column; .alignwide 1200px; .alignfull edge to edge.
 * Core block CSS prints after this file, so selectors carry two or more classes on purpose.
 */
.ed{--ed-gap:64px;--ed-read:680px;--ed-wide:1200px;color:var(--ink-2)}
@media (min-width:1024px){.ed{--ed-gap:96px}}

/* Grid and rhythm */
.is-editorial .ed>*{box-sizing:border-box;max-width:calc(var(--ed-read) + 2 * var(--gut));margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
.is-editorial .ed>.alignwide{max-width:calc(var(--ed-wide) + 2 * var(--gut))}
.is-editorial .ed>.alignfull{max-width:none;padding-left:0;padding-right:0}
.is-editorial .ed>*+*{margin-top:var(--ed-gap)}

/* Type */
.ed p{margin:0 0 16px}
.ed :is(p,ul,ol,h2,h3):last-child{margin-bottom:0}
.ed h2{font-size:var(--t-xl);font-weight:var(--w-light);letter-spacing:var(--ls-name);text-transform:uppercase;line-height:1.3;color:var(--ink);margin:0 0 24px;text-wrap:balance}
.ed h3{font-size:var(--t-s);font-weight:var(--w-reg);letter-spacing:var(--ls-label);text-transform:uppercase;line-height:1.4;color:var(--ink);margin:0 0 12px}
.ed :is(h2,h3) a{text-decoration:none}
.ed :is(h2,h3) a:hover{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.ed :is(p,li) a{color:var(--ink);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.ed strong{font-weight:500;color:var(--ink)}
.ed .esthe-kicker{font-size:var(--t-s);font-weight:var(--w-reg);letter-spacing:var(--ls-label);text-transform:uppercase;line-height:1.4;color:var(--mute);margin:0 0 16px}
.ed .esthe-links{margin:0 0 8px}
.ed .esthe-links a{font-size:var(--t-s);letter-spacing:var(--ls-label);text-transform:uppercase;text-underline-offset:6px}
.ed .esthe-meta{color:var(--mute)}
.ed ul.wp-block-list:not([class*="is-style-"]){list-style:none;padding:0;margin:0 0 16px;display:grid;gap:8px}
.ed ul.wp-block-list:not([class*="is-style-"])>li{position:relative;padding-left:20px}
.ed ul.wp-block-list:not([class*="is-style-"])>li::before{content:"";position:absolute;left:2px;top:.85em;width:8px;height:1px;background:var(--ink)}
.ed .wp-block-column>:last-child,.ed .wp-block-group>:last-child,.ed .wp-block-group__inner-container>:last-child{margin-bottom:0}
/* Classic themes wrap group content in .wp-block-group__inner-container: band/cta/section rules target its children. */

/* Hero: full-bleed image right under the header, kicker + H1 (DISPLAY) on a soft bottom shade */
.ed .wp-block-cover.is-style-esthe-hero{min-height:min(calc(100svh - var(--hdr)),140vw);padding:48px var(--gut) 40px;align-items:flex-end;justify-content:center;background:var(--wash);color:var(--paper)}
.ed .wp-block-cover.is-style-esthe-hero .wp-block-cover__background{opacity:1!important;background:linear-gradient(to top,rgba(0,0,0,.44) 0%,rgba(0,0,0,.16) 40%,rgba(0,0,0,0) 70%)!important}
.ed .wp-block-cover.is-style-esthe-hero .wp-block-cover__inner-container{max-width:900px;margin:0 auto;text-align:center;color:var(--paper)}
.ed .wp-block-cover.is-style-esthe-hero h1{font-size:28px;font-weight:var(--w-light);letter-spacing:var(--ls-name);text-transform:uppercase;line-height:1.15;margin:0;color:var(--paper);text-wrap:balance}
.ed .wp-block-cover.is-style-esthe-hero .esthe-kicker{color:var(--paper);margin-bottom:16px}

/* Masthead: kicker + H1 without a cover (packaging, lookbooks) */
.ed .wp-block-group.is-style-esthe-masthead{text-align:center;padding-top:48px}
.ed .wp-block-group.is-style-esthe-masthead h1{font-size:28px;font-weight:var(--w-light);letter-spacing:var(--ls-name);text-transform:uppercase;line-height:1.15;color:var(--ink);margin:0;text-wrap:balance}
.ed .wp-block-group.is-style-esthe-masthead.esthe-masthead--start{max-width:none;text-align:left;padding-top:32px}
.ed .wp-block-group.is-style-esthe-masthead.esthe-masthead--start h1{font-size:var(--t-xl)}
.ed .wp-block-group.is-style-esthe-masthead.esthe-masthead--start .esthe-kicker{margin-bottom:8px}
.is-editorial .ed>.esthe-masthead-media+.is-style-esthe-masthead{margin-top:0}
.is-editorial .ed>.esthe-masthead--start+*{margin-top:24px}

/* Intro: centred lead */
.is-editorial .ed>.esthe-intro{max-width:calc(760px + 2 * var(--gut));text-align:center}
.ed .esthe-lead{font-size:var(--t-xl);font-weight:var(--w-light);line-height:1.6;color:var(--ink);text-wrap:pretty}
.ed .esthe-intro .esthe-lead:not(:last-child){margin-bottom:24px}

/* Sections */
.ed .esthe-section--center,.ed .esthe-section.alignwide>.wp-block-group__inner-container>:is(.esthe-kicker,h2){text-align:center}
.ed .esthe-section.alignwide>.wp-block-group__inner-container>h2{margin-bottom:32px}
.is-editorial .ed>.esthe-section+.is-style-esthe-cards{margin-top:48px}

/* Facts row: hairline grid of label / value */
.is-editorial .ed>.wp-block-columns.is-style-esthe-facts{width:min(var(--ed-wide),calc(100% - 2 * var(--gut)));padding:0}
.ed .wp-block-columns.is-style-esthe-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:0}
.ed .wp-block-columns.is-style-esthe-facts>.wp-block-column{background:var(--paper);padding:20px 12px;text-align:center}
.ed .wp-block-columns.is-style-esthe-facts>.wp-block-column:last-child:nth-child(odd){grid-column:1/-1}
.ed .is-style-esthe-facts p{margin:0}
.ed .is-style-esthe-facts .esthe-facts__label{font-size:var(--t-s);letter-spacing:var(--ls-label);text-transform:uppercase;color:var(--mute);line-height:1.4}
.ed .is-style-esthe-facts .esthe-facts__value{font-size:var(--t-l);font-weight:var(--w-light);color:var(--ink);line-height:1.4;margin-top:8px;text-wrap:balance}
.ed .is-style-esthe-facts.esthe-facts--figures .esthe-facts__value{font-size:28px;line-height:1.15;margin:0 0 8px}

/* Pull quote */
.ed .wp-block-quote.is-style-esthe-pull{max-width:calc(960px + 2 * var(--gut));border:0;text-align:center;quotes:none}
.ed .wp-block-quote.is-style-esthe-pull::before{content:"";display:block;width:48px;height:1px;background:var(--ink);margin:0 auto 32px}
.ed .wp-block-quote.is-style-esthe-pull p{font-size:22px;font-weight:var(--w-light);line-height:1.45;color:var(--ink);margin:0;text-wrap:balance}
.ed .wp-block-quote.is-style-esthe-pull cite{display:block;margin-top:24px;font-style:normal;font-size:var(--t-s);letter-spacing:var(--ls-label);text-transform:uppercase;color:var(--mute)}

/* Splits: image | text, text | image, title | text */
.ed .wp-block-columns:is(.is-style-esthe-split,.is-style-esthe-split-reverse,.is-style-esthe-split-text){display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:center!important;margin-bottom:0}
.ed .wp-block-columns:is(.is-style-esthe-split,.is-style-esthe-split-reverse) .wp-block-image{margin:0 calc(-1 * var(--gut))}
.ed .wp-block-columns:is(.is-style-esthe-split,.is-style-esthe-split-reverse) .wp-block-image img{width:100%;aspect-ratio:4/5;object-fit:cover;background:var(--wash)}
.ed .wp-block-columns.is-style-esthe-split-reverse>.wp-block-column:has(>.wp-block-image){order:-1}
.ed .wp-block-columns:is(.is-style-esthe-split,.is-style-esthe-split-reverse) .wp-block-image.esthe-natural img{aspect-ratio:7/8}
.ed .wp-block-columns.is-style-esthe-split-text{align-items:start!important}
.ed .wp-block-columns.is-style-esthe-split-text h2{margin-bottom:16px}

/* Next factory (split, quieter) */
.ed .wp-block-columns.esthe-next{padding-top:48px;background:linear-gradient(var(--line),var(--line)) var(--gut) 0/calc(100% - 2 * var(--gut)) 1px no-repeat}
.ed .wp-block-columns.esthe-next .wp-block-image{margin:0}
.ed .wp-block-columns.esthe-next .wp-block-image img{aspect-ratio:3/2}
.ed .wp-block-columns.esthe-next .wp-block-image a:hover img,.ed .is-style-esthe-cards .wp-block-image a:hover img{opacity:.9}
.ed .wp-block-columns.esthe-next h2{margin-bottom:8px}

/* Lists */
.ed .wp-block-list.is-style-esthe-rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.ed .wp-block-list.is-style-esthe-rows>li{padding:16px 0;border-bottom:1px solid var(--line);color:var(--ink-2)}
.ed .wp-block-list.is-style-esthe-standards{list-style:none;margin:32px auto 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;max-width:var(--ed-wide);text-align:left}
.ed .wp-block-list.is-style-esthe-standards>li{border-top:1px solid var(--ink);padding-top:16px;color:var(--ink)}

/* Band: grey full-width chapter (certifications, standards) */
.ed .wp-block-group.is-style-esthe-band{background:var(--wash);padding-top:var(--ed-gap);padding-bottom:var(--ed-gap)}
.ed .wp-block-group.is-style-esthe-band>.wp-block-group__inner-container>*{box-sizing:border-box;max-width:calc(var(--ed-read) + 2 * var(--gut));margin-left:auto;margin-right:auto;padding-left:var(--gut);padding-right:var(--gut)}
.ed .wp-block-group.is-style-esthe-band>.wp-block-group__inner-container>:is(.alignwide,.is-style-esthe-standards){max-width:calc(var(--ed-wide) + 2 * var(--gut))}
.ed .wp-block-group.is-style-esthe-band>.wp-block-group__inner-container>:is(.esthe-kicker,h2,p){text-align:center}
.ed .wp-block-group.is-style-esthe-band>.wp-block-group__inner-container>h2{margin-bottom:40px}
.ed .wp-block-columns.is-style-esthe-certs{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;margin-bottom:40px}
.ed .wp-block-columns.is-style-esthe-certs:not(:has(>.wp-block-column:nth-child(2))){max-width:calc(var(--ed-read) + 2 * var(--gut))}
.ed .wp-block-columns.is-style-esthe-certs>.wp-block-column{border-top:1px solid var(--ink);padding-top:24px}

/* Cards (factories index, discover) */
.ed .wp-block-columns.is-style-esthe-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:48px;margin-bottom:0}
.ed .esthe-section .wp-block-columns.is-style-esthe-cards{margin-top:0}
.ed .wp-block-columns.is-style-esthe-cards .wp-block-image{margin:0 0 20px}
.ed .wp-block-columns.is-style-esthe-cards .wp-block-image img{width:100%;aspect-ratio:3/2;object-fit:cover;background:var(--wash);transition:opacity .3s var(--ease)}
.ed .wp-block-columns.is-style-esthe-cards .esthe-kicker{margin-bottom:8px}
.ed .wp-block-columns.is-style-esthe-cards h3{font-size:var(--t-xl);font-weight:var(--w-light);letter-spacing:var(--ls-name);margin-bottom:8px}

/* Panorama strip (the old page banners) */
.ed .wp-block-image.is-style-esthe-panorama{margin-left:0;margin-right:0}
.ed .wp-block-image.is-style-esthe-panorama img{width:100%;height:auto;aspect-ratio:5/2;object-fit:cover;background:var(--wash)}

/* Mosaic gallery (factories): a pair, then rows of three, a clean last row */
.ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;margin:0}
.ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook) figure.wp-block-image{width:auto!important;margin:0!important;aspect-ratio:4/3;grid-column:span 1}
.ed .wp-block-gallery.is-style-esthe-portrait figure.wp-block-image{aspect-ratio:4/5}
.ed .wp-block-gallery.has-nested-images figure.wp-block-image img{width:100%!important;height:100%!important;object-fit:cover;background:var(--wash)}
@media (max-width:767px){
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook) figure.wp-block-image:first-child,
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook) figure.wp-block-image:last-child:nth-child(even){grid-column:1/-1}
}

/* Lookbooks: edge to edge, hairline joins */
.ed .wp-block-video{margin-left:0;margin-right:0}
.ed .wp-block-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--wash)}
.ed .wp-block-image.alignfull{margin-left:0;margin-right:0}
.ed .wp-block-image.alignfull:not(.is-style-esthe-panorama) img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:var(--wash)}
.ed .wp-block-columns:is(.is-style-esthe-pair,.is-style-esthe-pair-inset,.is-style-esthe-split-bleed){display:grid;grid-template-columns:minmax(0,1fr);gap:2px;margin-bottom:0}
.ed .wp-block-columns:is(.is-style-esthe-pair,.is-style-esthe-pair-inset,.is-style-esthe-split-bleed) .wp-block-image{margin:0}
.ed .wp-block-columns:is(.is-style-esthe-pair,.is-style-esthe-pair-inset,.is-style-esthe-split-bleed) .wp-block-image img{width:100%;height:auto;aspect-ratio:5/7;object-fit:cover;background:var(--wash)}
.ed .wp-block-columns.is-style-esthe-split-bleed{gap:0;align-items:center!important}
.ed .wp-block-columns.is-style-esthe-split-bleed>.wp-block-column:not(:has(>.wp-block-image)){padding:48px var(--gut);justify-self:center;max-width:420px}
.ed .esthe-poem{line-height:1.9}
.is-editorial .ed>:is(.alignfull.wp-block-video,.alignfull.wp-block-image,.is-style-esthe-pair,.is-style-esthe-pair-inset,.is-style-esthe-split-bleed,.is-style-esthe-lookbook)+:is(.alignfull.wp-block-video,.alignfull.wp-block-image,.is-style-esthe-pair,.is-style-esthe-pair-inset,.is-style-esthe-split-bleed,.is-style-esthe-lookbook){margin-top:2px}
@media (max-width:599px){.is-editorial .ed>.wp-block-columns.is-style-esthe-pair-inset{padding-left:0;padding-right:0}}
.ed .wp-block-gallery.is-style-esthe-lookbook{display:grid!important;grid-template-columns:minmax(0,1fr);gap:2px!important;margin-left:0;margin-right:0}
.ed .wp-block-gallery.is-style-esthe-lookbook figure.wp-block-image{width:auto!important;margin:0!important;display:block!important}
.ed .wp-block-gallery.is-style-esthe-lookbook figure.wp-block-image img{height:auto!important;aspect-ratio:1855/2800;object-fit:cover;background:var(--wash)}
.ed .wp-block-gallery.is-style-esthe-lookbook figure.esthe-landscape img{aspect-ratio:2800/1855}

/* Call to action */
.is-editorial .ed>.wp-block-group.is-style-esthe-cta{width:min(var(--ed-wide),calc(100% - 2 * var(--gut)));max-width:none;padding:var(--ed-gap) 0 0;border-top:1px solid var(--line);text-align:center}
.ed .wp-block-group.is-style-esthe-cta>.wp-block-group__inner-container>*{max-width:560px;margin-left:auto;margin-right:auto}
.ed .wp-block-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:32px}
.ed .wp-block-button .wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-width:240px;height:var(--btn-h);padding:0 24px;border:1px solid var(--ink);border-radius:0;background:var(--ink);color:var(--paper);font-size:var(--t-s);font-weight:var(--w-reg);letter-spacing:var(--ls-label);text-transform:uppercase;text-decoration:none;transition:background .2s,color .2s}
.ed .wp-block-button .wp-block-button__link:hover{background:#2b2b2b;color:var(--paper);text-decoration:none}
.ed .wp-block-button.is-style-outline>.wp-block-button__link{border:1px solid var(--ink);padding:0 24px;background:transparent;color:var(--ink)}
.ed .wp-block-button.is-style-outline>.wp-block-button__link:hover{background:var(--ink);color:var(--paper)}

@media (min-width:600px){
  .ed .wp-block-columns:is(.is-style-esthe-pair,.is-style-esthe-pair-inset){grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed .wp-block-columns.is-style-esthe-pair-inset{gap:16px}
}
@media (min-width:768px){
  .ed .wp-block-columns.is-style-esthe-facts{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  .ed .wp-block-columns.is-style-esthe-facts>.wp-block-column{padding:32px 16px}
  .ed .wp-block-columns.is-style-esthe-facts>.wp-block-column:last-child:nth-child(odd){grid-column:auto}
  .ed .wp-block-list.is-style-esthe-standards{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ed .wp-block-columns.is-style-esthe-certs{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:48px}
  .ed .wp-block-columns.is-style-esthe-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:64px 32px}
  .ed .wp-block-columns.is-style-esthe-split-bleed{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed .wp-block-image.is-style-esthe-panorama img{aspect-ratio:32/5}
  .ed .wp-block-gallery.is-style-esthe-lookbook{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ed .wp-block-gallery.is-style-esthe-lookbook figure.esthe-wide{grid-column:1/-1}
  .ed .wp-block-gallery.is-style-esthe-lookbook figure.esthe-solo{grid-column:1/-1;justify-self:center;width:calc(50% - 1px)!important}
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook){grid-template-columns:repeat(6,minmax(0,1fr))}
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook) figure.wp-block-image{grid-column:span 2}
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook) figure.wp-block-image:nth-child(-n+2),
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook) figure.wp-block-image:nth-last-child(2):nth-child(3n+3),
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook) figure.wp-block-image:last-child:nth-child(3n+4){grid-column:span 3}
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook) figure.wp-block-image:last-child:nth-child(3n+3){grid-column:1/-1;aspect-ratio:21/9}
  .ed .wp-block-gallery.is-style-esthe-portrait figure.wp-block-image:last-child:nth-child(3n+3){aspect-ratio:2/1}
}
@media (min-width:900px){
  .ed .wp-block-columns:is(.is-style-esthe-split,.is-style-esthe-split-reverse,.is-style-esthe-split-text){grid-template-columns:repeat(2,minmax(0,1fr));gap:64px}
  .ed .wp-block-columns:is(.is-style-esthe-split,.is-style-esthe-split-reverse) .wp-block-image{margin:0}
  .ed .wp-block-columns.is-style-esthe-split-reverse>.wp-block-column:has(>.wp-block-image){order:0}
  .ed .wp-block-columns:is(.is-style-esthe-split,.is-style-esthe-split-reverse)>.wp-block-column:not(:has(>.wp-block-image)){max-width:500px}
  .ed .wp-block-columns.is-style-esthe-split-reverse>.wp-block-column:not(:has(>.wp-block-image)){justify-self:end;width:100%}
}
@media (min-width:1024px){
  .ed .wp-block-cover.is-style-esthe-hero{min-height:clamp(520px,calc(100svh - var(--hdr)),880px);padding:64px var(--gut)}
  .ed .wp-block-cover.is-style-esthe-hero h1,.ed .wp-block-group.is-style-esthe-masthead h1{font-size:40px}
  .ed .wp-block-group.is-style-esthe-masthead{padding-top:64px}
  .ed .wp-block-group.is-style-esthe-masthead.esthe-masthead--start{padding-top:48px}
  .ed .wp-block-group.is-style-esthe-masthead.esthe-masthead--start h1{font-size:var(--t-xl)}
  .ed .esthe-lead{font-size:22px}
  .ed .wp-block-quote.is-style-esthe-pull p{font-size:32px;line-height:1.35}
  .ed .is-style-esthe-facts.esthe-facts--figures .esthe-facts__value{font-size:40px}
  .ed .wp-block-columns:is(.is-style-esthe-split,.is-style-esthe-split-reverse,.is-style-esthe-split-text){gap:96px}
  .ed .wp-block-columns.is-style-esthe-pair-inset{gap:96px}
  .ed .wp-block-gallery.has-nested-images:not(.is-style-esthe-lookbook){gap:12px!important}
}
@media (prefers-reduced-motion:reduce){.ed *{transition:none!important}}
