/* Eyebrows take their scale from what they introduce. Imported templates use
   accent-text for both eyebrows and credits, and sometimes use H1 for the label. */
:root {
  --al-eyebrow-hero: clamp(.875rem, 1.12vw, 1rem);
  --al-eyebrow-section: .875rem;
  --al-eyebrow-module: .8125rem;
  --al-eyebrow-card-gap: .75rem;
}

:where([data-eyebrow-role]) { text-transform: uppercase; letter-spacing: .075em; }

/* The imported component styles and embedded stylesheets follow different source
   orders. Limit this layer's overrides to the label's face, weight, size and leading. */
@layer alalaho-eyebrows {
  :where(
    :is(.accent-text, .accent-text-2, .accent-text-4, .editorial-eyebrow, .eyebrow, .offer-eyebrow):has(+ :is(h2, .h3)),
    .about-story-content > h2.accent-text,
    .col-12:has(+ .grid.h-flex-between-top) > .accent-text,
    .text_wrap > h2.accent-text:has(+ .p-large),
    .footer-newsletter-eyebrow
  ), [data-eyebrow-role="section"] {
    font: 500 var(--al-eyebrow-section)/1.35 Haffer, Arial, sans-serif !important;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  :where(
    :is(.accent-text, .accent-text-2, .accent-text-4, .editorial-eyebrow, .eyebrow, .offer-eyebrow):has(+ :is(h3, h4, .h4)),
    .eyebrow-h3, .eyebrow-module, .expect-phase-label .accent-text, .returners-step,
    .summary-body > .eyebrow, .meditation-testimonials > .editorial-eyebrow,
    .retreat-tabs_text-wrap > :is(.accent-text, .accent-text-4)
  ), [data-eyebrow-role="module"] {
    font: 400 var(--al-eyebrow-module)/1.35 Haffer, Arial, sans-serif !important;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  :where(
    .newsletter-article-header > .newsletter-eyebrow,
    h1:is(.accent-text, .accent-text-large),
    :is(.accent-text, .accent-text-large, .editorial-eyebrow, .eyebrow, .offer-eyebrow):has(+ h1),
    .is-blog > .accent-text:has(+ .spacer-3 + h1)
  ), [data-eyebrow-role="hero"] {
    font: 500 var(--al-eyebrow-hero)/1.35 Haffer, Arial, sans-serif !important;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

/* Historical openings and the local booking view use the same hero interval.
   A standalone issue number or publication date stays part of the article masthead. */
body:not([data-hero-size]) .text_wrap:has(> h1:is(.accent-text, .accent-text-large) + h2) {
  --al-space-eyebrow: 0rem;
  row-gap: 0 !important;
}
body:not([data-hero-size]) .text_wrap > h1:is(.accent-text, .accent-text-large) + h2 {
  margin-block-start: var(--al-hero-label-gap);
}
body:not([data-hero-size]) .text_wrap > h1:is(.accent-text, .accent-text-large) + h2 + :is(p, .retreat_info-wrap, .retreat_pill-wrap) {
  margin-block-start: var(--al-hero-intro-gap);
}
.is-blog > .accent-text + .spacer-3:has(+ h1) { padding: 0; height: var(--al-hero-label-gap); }

/* The founder's opening statement is styled as a heading. Keep the signature
   and the following paragraphs on the existing, more generous outer stack. */
#founders-note .editorial-heading-pair { row-gap: var(--al-space-eyebrow); }

/* Programme cards include an icon in the label row. Set the distance from the
   row to the title; the separate gap between title, description and list survives. */
.expect-phase-copy .expect-phase-label {
  margin-block-end: calc(var(--al-eyebrow-card-gap) - clamp(.7rem, 1.25vw, 1.2rem));
}
.private-page :is(.format-content, .included-longer-heading, .included-online-heading, .included-setting-heading) .eyebrow-h3 {
  margin-block: 0 var(--al-eyebrow-card-gap);
}
.private-page :is(.format-content, .included-longer-heading, .included-online-heading, .included-setting-heading) .eyebrow-h3 + :is(h3, .included-online-label) {
  margin-block-start: 0;
}

.checkout-grid .section-heading > .eyebrow { display: block; margin: 0 0 .8rem; }
.checkout-grid .section-heading > .eyebrow + h2 { margin-block-start: 0; }
.checkout-grid .summary-body > .eyebrow { margin-block-end: var(--al-eyebrow-card-gap); }
main > .intro > .eyebrow:has(+ h1) { margin-block-end: var(--al-hero-label-gap, clamp(1rem, 1.6vw, 1.5rem)); }

/* In a one-column layout a long heading must not widen the grid track and
   take its much shorter eyebrow off-screen when text is enlarged. */
@media (max-width: 700px) {
  .private-page .questions-layout, .editorial-questions-grid,
  .experience-frame, .experience-heading, .expect-journey-header, .expect-phase-copy,
  .container:has(> .v-flex-left-top > .col-12 > .accent-text) {
    grid-template-columns: minmax(0, 1fr);
  }
  :is(.questions-layout, .editorial-questions-grid, .experience-frame, .expect-journey-header, .expect-phase-copy) > * {
    min-inline-size: 0;
  }
  .expect-phase-label { max-inline-size: 100%; flex-wrap: wrap; }
  :is(.questions-layout, .editorial-questions-grid, .experience-heading, .expect-journey-header) :is(h1, h2, h3) {
    overflow-wrap: anywhere;
  }
}
