/* ==========================================================================
   Hero options 4 and 5 (hero-home, hero-page, hero-program): layout only.
     4  Big type + cut-outs: a solid sage-deep ground, a large friendly
        headline, flat paper cut-outs (sun disc, plane, star, pencil, crane,
        leaf) and the figures as ONE sentence of solid numerals.
     5  Split photo + scene: copy on a solid pastel-grey ground, the photo in
        a soft wavy mask on the right (no card), a drawn desk overlapping the
        edge.
   Grounds and colours are set per option in 12-heroes-color.css (flat brand
   colours, no gradients). Home/Page/Program print real markup (classes
   h4 / h5). Programs and Blog are CSS-only: html[data-o-hero-page="4|5"].
   ========================================================================== */

/* ---- Shared: the figures sentence ---------------------------------------- */
.h4-line { list-style: none; margin: clamp(12px, 1.6vw, 20px) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; font-size: .95rem; }
.h4-f { display: inline-flex; align-items: baseline; gap: .4em; min-width: 0; }
.h4-f + .h4-f::before { content: "\00b7"; margin: 0 .55em; font-weight: 800; font-size: 1.5rem; line-height: 1; }
.h4-f b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; letter-spacing: -.02em; }
.h4-f__l { line-height: 1.2; }
.h4-f.is-text b { font-size: 1.05rem; font-weight: 700; }
.h4-f a { color: inherit; text-decoration: none; display: inline-flex; align-items: baseline; gap: .4em; }
.h4-f a:hover b { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
  .h4-line { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .h4-f { flex-direction: column; gap: 2px; align-items: flex-start; }
  .h4-f + .h4-f::before { content: none; }
  .h4-f.is-text { grid-column: 1 / -1; flex-direction: row; align-items: baseline; }
}

/* ---- 4: Big type + cut-outs ---------------------------------------------- */
html body .h4.h4 { position: relative; overflow: hidden; isolation: isolate; border-radius: 0; }
.h4 .wrap { position: relative; z-index: 2; }
.h4__cut { position: absolute; right: max(1vw, calc(50% - 700px)); top: 4px; width: min(32vw, 430px); height: auto; z-index: 1; pointer-events: none; }
.h4__copy, .h4 .ph__copy { max-width: 660px; }
html .h4.h4 .ph__grid { grid-template-columns: minmax(0, 1fr); }
html .h4.h4 :is(h1, .hero__title), html[data-o-calm] .h4.h4 :is(h1, .hero__title) {
  font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800;
  background: none; -webkit-text-fill-color: currentColor; text-wrap: balance; margin: 0 0 10px;
}
html .h4.h4 :is(.hero__sub, .ph__lead, .mp-lead) { font-size: 1.02rem; line-height: 1.55; max-width: 52ch; }

/* ---- 5: Split photo + scene ---------------------------------------------- */
html body .h5.h5 { position: relative; overflow: hidden; isolation: isolate; border-radius: 0; }
.h5 .wrap { position: relative; z-index: 2; }
.h5__copy, .h5 .ph__copy { max-width: min(620px, 52vw); }
html .h5.h5 .ph__grid { grid-template-columns: minmax(0, 1fr); }
.h5__pic { position: absolute; top: 0; bottom: 9px; right: 0; width: min(44vw, 640px); z-index: 1; pointer-events: none; }
.h5__ph { position: absolute; inset: 0; -webkit-mask: var(--o-mask-side) center / 100% 100% no-repeat; mask: var(--o-mask-side) center / 100% 100% no-repeat; background: var(--sage-tint); }
.h5__ph img, .h5__ph .photo-band { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: auto; object-fit: cover; object-position: center 35%; }
.h5__ph .photo-band img { position: static; }
.h5__ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.h5__desk { position: absolute; left: -44px; bottom: -2px; width: clamp(150px, 15vw, 220px); height: auto; z-index: 2; }
html .h5.h5 :is(h1, .hero__title), html[data-o-calm] .h5.h5 :is(h1, .hero__title) {
  font-size: clamp(1.8rem, 2.7vw, 2.4rem); line-height: 1.12; letter-spacing: -.02em;
  background: none; -webkit-text-fill-color: currentColor; text-wrap: balance; margin: 0 0 10px;
}
html .h5.h5 :is(.hero__sub, .ph__lead, .mp-lead) { font-size: 1rem; line-height: 1.55; max-width: 50ch; }
.h5 .hr-facts { margin-top: clamp(12px, 1.6vw, 20px); }
@media (min-width: 900px) {
  .h5 { min-height: 330px; }
  html[data-o-calm] .h5.h5 { padding-bottom: 34px !important; }
  html[data-o-calm] .mp-hero.hp.h5 { padding-top: 18px; }
}
@media (max-width: 899px) {
  .h5__copy, .h5 .ph__copy { max-width: none; }
  .h5__pic { position: relative; width: auto; top: auto; right: auto; bottom: auto; height: clamp(150px, 34vw, 210px); margin: 14px 0 6px; }
  .h5__ph { -webkit-mask-image: var(--o-mask-top); mask-image: var(--o-mask-top); }
  .h5__desk { left: auto; right: 12px; width: 116px; }
  html[data-o-calm] .h5.h5 { padding-bottom: 0 !important; }
}

/* ==========================================================================
   Programs (.listing-hero) and Blog (.page-hero): CSS only
   ========================================================================== */
html[data-o-hero-page="4"][data-o-hero-page] :is(.listing-hero, .page-hero:not(.ph)) {
  background: var(--o-stripe) left bottom / 100% 9px no-repeat, var(--o-cutouts) right max(1vw, calc(50% - 700px)) top 6px / min(32vw, 430px) auto no-repeat, var(--hg);
}
html[data-o-hero-page="5"][data-o-hero-page] :is(.listing-hero, .page-hero:not(.ph))::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none; opacity: 1; inset: auto; right: calc(min(44vw, 640px) - 44px); bottom: 7px;
  width: clamp(150px, 15vw, 220px); aspect-ratio: 320 / 210; background: var(--o-desk) center / contain no-repeat;
}
html[data-o-hero-page="5"][data-o-hero-page] :is(.listing-hero, .page-hero:not(.ph))::after {
  content: ""; position: absolute; inset: 0 0 9px auto; width: min(44vw, 640px); z-index: -1; opacity: 1; transform: none;
  background: var(--o-photo) center 35% / cover no-repeat; -webkit-mask: var(--o-mask-side) center / 100% 100% no-repeat; mask: var(--o-mask-side) center / 100% 100% no-repeat;
}
html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero, .page-hero:not(.ph)) > .photo-band { display: none; }
html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero, .page-hero:not(.ph)) > .wrap { position: relative; z-index: 2; }
html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) .listing-hero .venue-panel { display: none !important; }
html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) .listing-hero .split-hero__grid { grid-template-columns: minmax(0, 1fr); }
html[data-o-hero-page="5"][data-o-hero-page] :is(.listing-hero .split-hero__copy, .page-hero:not(.ph) .page-hero__inner) { max-width: min(560px, 50vw); }
html[data-o-hero-page="4"][data-o-hero-page] :is(.listing-hero .split-hero__copy, .page-hero:not(.ph) .page-hero__inner) { max-width: 660px; }
html[data-o-hero-page="4"][data-o-calm] :is(.listing-hero h1, .page-hero:not(.ph) h1) { font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.08; font-weight: 800; }

/* The figures sentence for Programs and Blog */
html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero .split-hero__facts, .page-hero .ph-facts) { gap: 4px 0; }
html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero .split-hero__facts li, .page-hero .ph-facts li) { border-left: 0; padding: 0; gap: .4em; }
html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero .split-hero__facts, .page-hero .ph-facts) li + li::before { content: "\00b7"; margin: 0 .55em 0 .15em; font-weight: 800; font-size: 1.5rem; line-height: 1; }
html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero .ph-n, .page-hero .ph-facts b) { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
@media (min-width: 900px) {
  html[data-o-hero-page="5"][data-o-hero-page] :is(.listing-hero, .page-hero:not(.ph)) { min-height: 330px; }
}
@media (max-width: 899px) {
  html[data-o-hero-page="4"][data-o-hero-page] :is(.listing-hero, .page-hero:not(.ph)) {
    background: var(--o-stripe) left bottom / 100% 9px no-repeat, var(--hg);
  }
  html[data-o-hero-page="5"][data-o-hero-page] :is(.listing-hero, .page-hero:not(.ph)) { padding-bottom: 0; }
  html[data-o-hero-page="5"][data-o-hero-page] :is(.listing-hero, .page-hero:not(.ph))::after {
    position: static; inset: auto; display: block; width: auto; height: clamp(150px, 34vw, 210px); margin: 14px 0 6px;
    -webkit-mask-image: var(--o-mask-top); mask-image: var(--o-mask-top); -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  }
  html[data-o-hero-page="5"][data-o-hero-page] :is(.listing-hero, .page-hero:not(.ph))::before { right: 12px; width: 116px; }
  html[data-o-hero-page="5"][data-o-hero-page] :is(.listing-hero .split-hero__copy, .page-hero:not(.ph) .page-hero__inner) { max-width: none; }
}
@media (max-width: 700px) {
  html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero .split-hero__facts, .page-hero .ph-facts) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero .split-hero__facts li, .page-hero .ph-facts li) { flex-direction: column; align-items: flex-start; gap: 2px; }
  html[data-o-hero-page]:is([data-o-hero-page="4"], [data-o-hero-page="5"]) :is(.listing-hero .split-hero__facts, .page-hero .ph-facts) li + li::before { content: none; }
}
