/* Visual roles for Alalaho’s editorial pages. A section heading
   in a narrow column uses the split title scale while retaining its H2. */
:root {
  --al-type-display: clamp(2.875rem, 5.65vw, 5.25rem);
  --al-type-title: clamp(2.375rem, 4.5vw, 4rem);
  --al-type-split-title: clamp(1.875rem, 3.15vw, 2.75rem);
  --al-type-passage: clamp(1.75rem, 3vw, 2.5rem);
  --al-type-subtitle: clamp(1.625rem, 2.5vw, 2.25rem);
  --al-type-minor: clamp(1.1875rem, 1.6vw, 1.4375rem);
  --al-type-lead: clamp(1.125rem, 1.55vw, 1.3125rem);
  --al-type-body: clamp(1.0625rem, 1.25vw, 1.1875rem);

  --al-space-section: clamp(4.3rem, 7.8vw, 7rem);
  --al-space-content: clamp(2.5rem, 4vw, 3.5rem);
  --al-space-intro: clamp(1.5rem, 2.3vw, 1.75rem);
  --al-space-eyebrow: .8rem;
  --al-gutter: clamp(1.375rem, 5.2vw, 6rem);
  /* Adopt these reading roles on a reviewed page or module. */
  --al-reading-title-measure: 24ch;
  --al-reading-lead-measure: min(100%, 52ch, 44rem);
  --al-reading-lead-size: clamp(1.1875rem, 1.65vw, 1.375rem);
  --al-reading-leading: 1.56;
  --al-reading-title-gap: clamp(1.5rem, 2.3vw, 2rem);
  --al-reading-content-gap: clamp(2.5rem, 4.2vw, 3.75rem);
  --al-reading-offer-size: clamp(1.05rem, 1.35vw, 1.275rem);
  --al-reading-offer-measure: 43ch;
  --al-reading-card-size: clamp(1rem, 1.25vw, 1.125rem);
  --al-reading-card-measure: 53ch;
  --al-reading-card-gap: clamp(1rem, 1.55vw, 1.4rem);
  --al-reading-prose-max: 46rem;
  --al-reading-prose-measure: min(100%, 65ch, var(--al-reading-prose-max));
  --al-card-inset: clamp(1.375rem, 2.25vw, 2.375rem);
  --al-stack-peek: clamp(2.15rem, 3.25vw, 3.6rem);
  --al-stack-gap: clamp(.85rem, 1.65vw, 1.55rem);
  --al-content-wide: 74rem;
  --al-measure-intro: 47.5rem;
}

.container { padding-inline: var(--al-gutter); }

@media (max-width: 767px) {
  .grid_split.is-hero .grid_content { padding-inline: var(--al-gutter); }
}

/* The venue and retreat-fit introductions share the native lead scale.
   Mobile already uses 17px. Keep the tablet breakpoint from dipping below it. */
@media (min-width: 768px) {
  .p-large.is-your-stay,
  [data-retreat-fit] .grid:first-child .p-large {
    font-size: max(1.0625rem, 1.6609em);
  }
}

/* Dates, duration, location and price use the same scale within each layout.
   Independent of wrappers introduced by the CMS or by the original card. */
.retreat_info-wrap .retreat_info-block .p-small,
.upcoming-retreat_card .retreat-top .retreat_date .p-small {
  font-size: clamp(.875rem, .97561vw, 1.125rem);
  line-height: 1.4;
}
:is(.upcoming-retreat_card, .retreats_block) .retreat_info-block .p {
  font-size: clamp(.96875rem, 1.2vw, 1.25rem);
  line-height: 1.4;
}

.safety_block .feature_bottom .p,
.feature_bottom.with-description-32 .p {
  font-size: max(1rem, 1.2em);
}

.legal-reading-copy p {
  font-size: max(1rem, 1.5em);
}

/* The type overview and dated-event hero use the same compact controls. */
:is([data-retreat-overview] .retreat_hero-wrap, .dated-hero-panel) .retreat_hero-block {
  flex-wrap: wrap;
  gap: .5rem;
}
:is([data-retreat-overview] .retreat_hero-wrap, .dated-hero-panel) :is(.text-pill-small, .text-pill-small-2) {
  font-size: clamp(1rem, 1.32vw, 1.0625rem);
}
[data-retreat-overview] .retreat_hero-wrap {
  flex-wrap: wrap;
  gap: 1rem;
}
[data-retreat-overview] .retreat_hero-wrap > .button,
.dated-hero-action .offer-button {
  --al-cta-type: 1rem;
  --al-cta-height: 2.75rem;
  --al-cta-pad-x: 1rem;
  --al-cta-pad-y: .45rem;
  --al-cta-gap: .65rem;
  --al-cta-arrow: .875rem;
}
[data-retreat-overview] .retreat_hero-wrap > .button {
  border: 2px solid transparent;
  border-inline: 0;
  background-clip: padding-box;
}
@media (max-width: 47.95rem) {
  :is([data-retreat-overview] .retreat_hero-wrap, .dated-hero-panel) :is(.text-pill-small, .text-pill-small-2) {
    padding: .35em .9em;
  }
}
@media (min-width: 48rem) and (max-width: 56rem) {
  :is([data-retreat-overview] .retreat_hero-wrap, .dated-hero-panel) :is(.text-pill-small, .text-pill-small-2) {
    padding-inline: .85em;
  }
}

/* Practical notes are reading copy, including when the CMS imports them as p-small. */
[data-group-retreats] #experience .text_wrap > .p-small,
[data-retreat-overview="core"] #your-stay .text_wrap > .h4 + .p {
  font: 400 clamp(1.05rem, 1.4vw, 1.2rem)/1.65 Haffer, Arial, sans-serif;
  letter-spacing: normal;
}
:is([data-group-retreats], [data-retreat-design="core"]) #whats-included .whats-included_content > .p,
[data-retreat-overview="core"] #programme-guide .p {
  font: 300 var(--al-type-body)/1.55 Haffer, Arial, sans-serif;
}
:is([data-retreat-overview="core"], [data-retreat-design="core"]) [id^="your-stay"] .p-small.color-terracotta {
  font-size: 1rem;
}
:is([data-group-retreats], [data-retreat-design="core"]) #whats-included .whats-included_content > .p-large,
[data-group-retreats] #experience .text_wrap:has(> .p-small) > .p-large,
[data-retreat-design="core"] [id^="your-stay"] .text_wrap > .p-large {
  font-size: var(--al-type-lead);
}

/* A cost footnote beneath the price pill, at the practical caption size. */
#whats-included .text-pill + .p-small {
  font: 400 var(--al-type-caption)/1.5 Haffer, Arial, sans-serif;
  letter-spacing: normal;
}
