/* Marketing/editorial components opt in. Customer guides do not load this sheet. */
:root {
  --ed-space-1:8px; --ed-space-2:16px; --ed-space-3:24px; --ed-space-4:32px;
  --ed-boundary:clamp(42px,7vw,88px);
  --ed-gutter:var(--gutter,6.4%);
  --ed-photo-radius:12px;
  --ed-photo-wide:1160px;
  --ed-photo-support:480px;
  --ed-control-target:44px;
}
[data-editorial-section="standard"]{padding-inline:var(--ed-gutter);padding-block:var(--ed-boundary)}
[data-editorial-section="lead"]{padding-inline:var(--ed-gutter);padding-block-start:var(--ed-boundary)}
[data-editorial-frame="wide"]{--ed-frame-width:var(--ed-photo-wide);--ed-frame-ratio:2.45}
[data-editorial-frame="banner"]{--ed-frame-width:var(--ed-photo-wide);--ed-frame-ratio:3.25}
[data-editorial-frame="support"]{--ed-frame-width:var(--ed-photo-support);--ed-frame-ratio:1.52}
[data-editorial-frame="portrait"]{--ed-frame-width:420px;--ed-frame-ratio:1.15}
[data-editorial-frame]>img{
  display:block;inline-size:100%;max-inline-size:var(--ed-frame-width);block-size:auto;
  margin-inline:auto;aspect-ratio:var(--ed-frame-ratio);object-fit:cover;
  object-position:var(--ed-photo-position,50% 50%);border-radius:var(--ed-photo-radius)
}
/* Toolkit disclosure: same outlined header, plain trailing plus and one native state. */
main details[data-editorial-disclosure="standard"]{
  padding:0;border:1px solid #4d385b55;border-radius:0;
  background:var(--ed-disclosure-surface,var(--hags-paper,#faf8fc));color:var(--hags-indigo,#4d385b);box-shadow:none
}
main details[data-editorial-disclosure="standard"][open]{border-color:#4d385b88}
main details[data-editorial-disclosure="standard"]>summary{
  display:grid;grid-template-columns:minmax(0,1fr) 16px;align-items:center;justify-content:space-between;
  gap:var(--ed-space-2);padding-block:var(--ed-space-2);padding-inline:var(--ed-space-2);min-block-size:var(--ed-disclosure-height,64px);
  list-style:none;cursor:pointer;border-radius:0;color:inherit;
  font:550 1rem/1.4 var(--editorial-mono,monospace);letter-spacing:normal
}
main details[data-editorial-disclosure="standard"]>summary::marker{content:""}
main details[data-editorial-disclosure="standard"]>summary::-webkit-details-marker{display:none}
main details[data-editorial-disclosure="standard"]>summary::after{content:none!important}
main details[data-editorial-disclosure="standard"]>summary:hover{background:var(--ed-disclosure-surface,var(--hags-indigo-soft,#e9e3ef))}
main details[data-editorial-disclosure="standard"]>summary:focus-visible{outline:2px solid var(--hags-indigo,#4d385b);outline-offset:-3px}
main details[data-editorial-disclosure="standard"]>summary>.editorial-disclosure-mark{
  grid-column:2;grid-row:1;position:relative;display:block;inline-size:16px;block-size:16px;
  color:inherit;pointer-events:none
}
.editorial-disclosure-mark::before,.editorial-disclosure-mark::after{
  content:"";position:absolute;top:50%;left:50%;width:14px;height:1px;background:currentColor;
  transform:translate(-50%,-50%)
}
.editorial-disclosure-mark::after{transform:translate(-50%,-50%) rotate(90deg)}
main details[data-editorial-disclosure="standard"][open]>summary>.editorial-disclosure-mark::after{visibility:hidden}
main details[data-editorial-disclosure="standard"]>:not(summary){
  margin:0;padding:0 var(--ed-space-2) var(--ed-space-2);
  color:inherit;animation:none
}
main details[data-editorial-disclosure="standard"]>summary>.editorial-disclosure-label{
  grid-column:1;grid-row:1;min-width:0;overflow-wrap:anywhere
}
.editorial-disclosure-number{margin-inline-end:.4em;font:500 .73rem/1.4 var(--editorial-mono,monospace)}
[data-editorial-disclosure-stack]{display:grid;gap:0;align-items:start}
main [data-editorial-disclosure-stack]>details[data-editorial-disclosure="standard"]+details[data-editorial-disclosure="standard"]{border-block-start:0}
@media(min-width:701px){main [data-editorial-disclosure-stack="columns"]>:not(:first-child)>details[data-editorial-disclosure="standard"]{border-inline-start:0}}
@media(max-width:700px){main [data-editorial-disclosure-stack="columns"]>:not(:first-child)>details[data-editorial-disclosure="standard"]{border-block-start:0}}
[data-editorial-disclosure-stack="columns"]{grid-template-columns:repeat(3,minmax(0,1fr));--ed-disclosure-height:84px}
@media(max-width:700px){[data-editorial-disclosure-stack="columns"]{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
  :root{--ed-boundary:var(--ed-space-4);--ed-photo-radius:9px}
  [data-editorial-frame]>img{max-inline-size:none;aspect-ratio:3 / 2;
    object-position:var(--ed-photo-position-mobile,var(--ed-photo-position,50% 50%))}
}

/* Adjacent steps in one story sit closer to their common divider. */
.section[data-editorial-flow="out"]{padding-block-end:var(--ed-space-3)}
.section[data-editorial-flow="in"]{padding-block-start:var(--ed-space-3)}
[data-editorial-stack]{display:grid;gap:var(--ed-space-2)}
[data-editorial-stack="steps"]{gap:var(--ed-space-2)}
[data-editorial-followup]{margin-block-start:var(--ed-space-2)}
.section[data-editorial-flow="out"] > [data-editorial-followup]:not([data-editorial-disclosure]){border-block-end:0}
@media(max-width:700px){
 .section[data-editorial-flow="out"]{padding-block-end:var(--ed-space-2)}
 .section[data-editorial-flow="in"]{padding-block-start:var(--ed-space-3)}
 [data-editorial-stack="steps"]{gap:var(--ed-space-1)}
}

/* Equal tracks, one outside outline and one divider at each seam. */
[data-editorial-segments]{
  display:grid;grid-template-columns:repeat(var(--ed-segment-count,3),minmax(0,1fr));
  margin:0;border:1px solid var(--ed-segment-line,#8e7aa7)
}
[data-editorial-segments="attached"]{border-block-end:0}
[data-editorial-segments="below"]{margin-block-start:var(--ed-space-1)}
[data-editorial-segments]>label{
  display:grid;place-items:center;min-inline-size:0;min-block-size:var(--ed-control-target);
  padding:4px 2px;text-align:center;cursor:pointer;
  font:500 clamp(10px,1.3vw,14px)/1.2 var(--editorial-mono,monospace);overflow-wrap:anywhere;
  color:var(--ed-segment-text,var(--ed-segment-ink,#3b2743));
  background:var(--ed-segment-fill,transparent)
}
[data-editorial-segments]>label+label{border-inline-start:1px solid var(--ed-segment-line,#8e7aa7)}

/* Inputs are siblings before the row; labels follow that same one-based order. */
[data-editorial-choice="1"]:checked~[data-editorial-segments]>label:nth-of-type(1),
[data-editorial-choice="2"]:checked~[data-editorial-segments]>label:nth-of-type(2),
[data-editorial-choice="3"]:checked~[data-editorial-segments]>label:nth-of-type(3),
[data-editorial-choice="4"]:checked~[data-editorial-segments]>label:nth-of-type(4),
[data-editorial-choice="5"]:checked~[data-editorial-segments]>label:nth-of-type(5),
[data-editorial-choice="6"]:checked~[data-editorial-segments]>label:nth-of-type(6){--ed-segment-fill:var(--hags-indigo-soft,#e9e3ef);--ed-segment-text:var(--hags-ink,#2F2740);--ed-segment-focus:#3b2743;--ed-icon-segment-weight:650;--ed-icon-segment-decoration:underline}
[data-editorial-choice="1"]:focus-visible~[data-editorial-segments]>label:nth-of-type(1),
[data-editorial-choice="2"]:focus-visible~[data-editorial-segments]>label:nth-of-type(2),
[data-editorial-choice="3"]:focus-visible~[data-editorial-segments]>label:nth-of-type(3),
[data-editorial-choice="4"]:focus-visible~[data-editorial-segments]>label:nth-of-type(4),
[data-editorial-choice="5"]:focus-visible~[data-editorial-segments]>label:nth-of-type(5),
[data-editorial-choice="6"]:focus-visible~[data-editorial-segments]>label:nth-of-type(6){outline:2px solid var(--ed-segment-focus,#3b2743);outline-offset:-3px}
[data-editorial-segments="below"],[data-editorial-segments="below-flush"]{--ed-segment-focus:var(--hags-indigo-soft,#e9e3ef)}

/* Section starter utilities; independent per fieldset and no JS required. */
[data-editorial-segment-count="2"]{--ed-segment-count:2}
[data-editorial-segment-count="4"]{--ed-segment-count:4}
[data-editorial-segment-count="5"]{--ed-segment-count:5}
[data-editorial-segment-count="6"]{--ed-segment-count:6}
.editorial-choices{border:0;margin-inline:0;min-inline-size:0;padding:0}
.editorial-choice{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip-path:inset(50%);white-space:nowrap
}
[data-editorial-choice]:checked~[data-editorial-choice-panels]>[data-editorial-choice-panel]{display:none}
[data-editorial-choice="1"]:checked~[data-editorial-choice-panels]>[data-editorial-choice-panel="1"],
[data-editorial-choice="2"]:checked~[data-editorial-choice-panels]>[data-editorial-choice-panel="2"],
[data-editorial-choice="3"]:checked~[data-editorial-choice-panels]>[data-editorial-choice-panel="3"],
[data-editorial-choice="4"]:checked~[data-editorial-choice-panels]>[data-editorial-choice-panel="4"],
[data-editorial-choice="5"]:checked~[data-editorial-choice-panels]>[data-editorial-choice-panel="5"],
[data-editorial-choice="6"]:checked~[data-editorial-choice-panels]>[data-editorial-choice-panel="6"]{display:block}

/* One accessible text link; the final word stays with its decorative arrow. */
a[data-editorial-text-link]{text-decoration:none!important}
a[data-editorial-text-link] .editorial-text-link-label{text-decoration:underline;text-underline-offset:.22em}
.editorial-text-link-tail{white-space:nowrap}
.editorial-text-link-arrow{margin-inline-start:.32em;text-decoration:none}

/* Opt-in square content panel; inner media and controls own their shapes. */
[data-editorial-panel="outline"]{border:1px solid #4d385b55;border-radius:0}

/* Documentary image and the content it serves share a single square frame. */
[data-editorial-photo-panel]{
  border:1px solid #4d385b55;border-radius:0
}
/* The hero's backdrop shares its frame with product overlays; only its outer shell changes. */
.hero-stage[data-editorial-photo-panel="composition"]{
  border-color:var(--ed-segment-line,#baa8c3);box-shadow:none
}
[data-editorial-photo-panel]>[data-editorial-frame]>img,
[data-editorial-photo-panel]>[data-editorial-photo-media],
[data-editorial-photo-panel]>[data-editorial-photo-media]>img{
  border:0;border-radius:0;max-inline-size:none
}
[data-editorial-photo-panel="split"]{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:var(--ed-space-3)}
.feature-hero[data-editorial-photo-panel],.intro[data-editorial-photo-panel]{
  margin:var(--ed-space-3) var(--ed-gutter);padding:var(--ed-space-3)
}
@media(max-width:700px){
 [data-editorial-photo-panel="split"]{grid-template-columns:minmax(0,1fr);gap:var(--ed-space-2)}
 .feature-hero[data-editorial-photo-panel],.intro[data-editorial-photo-panel]{padding:var(--ed-space-2)}
}

/* Grouped marketing disclosures: a fixed marker slot, never a second hit target. */
main [data-editorial-disclosure-stack] details[data-editorial-disclosure="standard"]>summary{
  grid-template-columns:minmax(0,1fr) 36px
}
main [data-editorial-disclosure-stack] details[data-editorial-disclosure="standard"]>summary>.editorial-disclosure-mark{
  justify-self:center;box-sizing:border-box;inline-size:24px;block-size:24px;
  border:1px solid #4d385b88;
  transform:rotate(0deg);
  transition:transform .16s ease,background-color .16s ease,border-color .16s ease
}
main [data-editorial-disclosure-stack] details[data-editorial-disclosure="standard"][open]>summary>.editorial-disclosure-mark{
  background:var(--hags-gold,#C9B33B);color:var(--hags-indigo,#4d385b);
  border-color:transparent;transform:rotate(45deg)
}
main [data-editorial-disclosure-stack] details[data-editorial-disclosure="standard"][open]>summary>.editorial-disclosure-mark::after{
  visibility:visible
}
@media(prefers-reduced-motion:reduce){
  main [data-editorial-disclosure-stack] .editorial-disclosure-mark{transition:none!important}
}

/* Text and icon navigation above a separate photo frame. */
[data-editorial-segments="text-icons"]{border:0}
[data-editorial-segments="text-icons"]>label{
  display:flex;align-items:center;justify-content:center;gap:clamp(3px,1vw,8px);
  padding-inline:1px;background:transparent;
  color:var(--hags-indigo,#4d385b);font-size:clamp(9px,2.7vw,14px);line-height:1.15
}
[data-editorial-segments="text-icons"]>label+label{border:0}
[data-editorial-segments="text-icons"]>label>span{white-space:nowrap}
[data-editorial-segments="text-icons"]>label>.editorial-segment-icon{
  width:clamp(12px,3.5vw,18px);height:auto;flex:none;background:none
}
[data-editorial-segments="text-icons"]>label:hover>span{text-decoration:underline;text-underline-offset:.3em}
[data-editorial-segments="text-icons"]>label[for]{outline-offset:-2px}
[data-editorial-segments="text-icons"]>label>span{font-weight:var(--ed-icon-segment-weight,500);text-decoration:var(--ed-icon-segment-decoration,none);text-underline-offset:.3em}
@media(max-width:280px){
  [data-editorial-segments="text-icons"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  [data-editorial-segments="text-icons"]>label>span{white-space:normal}
}

/* Marketing photography only: one hairline, opposite its section's surface.
   Theme or content templates can opt in with data-editorial-photo-media, and
   explicitly set data-editorial-photo-tone="dark" on a dark section. */
:root {
  --ed-photo-stroke-on-light:var(--hags-indigo,#4d385b);
  --ed-photo-stroke-on-dark:var(--hags-indigo-soft,#e9e3ef);
  --ed-photo-stroke:var(--ed-photo-stroke-on-light);
}
:is([data-editorial-photo-tone="dark"],.hero,.marketing-learn,.about-hags) {
  --ed-photo-stroke:var(--ed-photo-stroke-on-dark);
}
[data-editorial-photo-tone="light"] { --ed-photo-stroke:var(--ed-photo-stroke-on-light); }

/* Framed images and freestanding editorial photos get the same perimeter.
   Paint outside the image box so a flush panel edge shares the same CSS pixel
   with its existing outer frame. No new track, padding, crop or image size. */
:is([data-editorial-frame]>img,[data-editorial-photo-media]) {
  position:relative;
  outline:1px solid var(--ed-photo-stroke);
  outline-offset:0;
}

/* Existing frames own these edges. Recolor their borders rather than
   painting a second outline around the same image. */
.hero-photo[data-editorial-photo-media] {
  border-color:var(--ed-photo-stroke);
  outline:none;
}
.hero-stage[data-editorial-photo-panel="composition"] {
  border-color:var(--ed-photo-stroke);
}
#cafe-story .cafe-context {
  border-color:var(--ed-photo-stroke);
}
#cafe-story .cafe-context-scene::after {
  content:"";position:absolute;inset:auto 0 0;block-size:1px;
  background:var(--ed-photo-stroke);pointer-events:none;z-index:5;
}

/* The compound frame owns the contrasting hairline; never ring its photo again. */
[data-editorial-photo-panel] { border-color:var(--ed-photo-stroke); }
[data-editorial-photo-panel] :is([data-editorial-frame]>img,[data-editorial-photo-media]) { outline:none; }
[data-editorial-photo-panel] .hero-photo[data-editorial-photo-media] { border-color:transparent; }
