/* Home-page feedback fixes (type). Loaded after restructure.css. */

/* 1. GSAP SplitText mask:'lines' wraps each heading line in a div with inline
      overflow:clip, which cut descenders and italic gold words site-wide. The reveal
      also fades opacity, so the mask is not needed: let the text overflow. */
h1 [style*="overflow: clip"], h2 [style*="overflow: clip"], h3 [style*="overflow: clip"],
h1 [style*="overflow:clip"], h2 [style*="overflow:clip"], h3 [style*="overflow:clip"] {
  overflow: visible !important;
}

/* 2. Italic gold words: give the overhang room on the right of heading emphasis. */
h1 em,
h2 em,
h3 em {
  padding-right: .08em;
}

/* 3. Display headings with line-height below ~1 let descenders collide with the next line. */
.hero-heading h1 { line-height: 1; }
.cinema-hero h1 { line-height: 1; }
.slide-title { line-height: 1; }
.pillar-story-copy h3 { line-height: 1; }
.journey-content h3 { line-height: 1.02; }
.community-copy h3 { line-height: 1.02; }
.palestine-opening h1 { line-height: 1; }

/* 4. Letters overlapping: headings were tracked at -0.055em (up to -0.09em) in Syne,
      a wide display face, so neighbouring glyphs collided and looked cut into each other
      ("Think deeply", "signature", "Solidarity"). Loosen to a light -0.01em everywhere,
      and set the italic Bodoni emphasis to normal tracking. */
h1, h2, h3, h4,
body.immersive h1, body.immersive h2, body.immersive h3,
:is(h1,h2,h3,h4) :is(a, span, div),
.cinema-hero h1, .footer-invitation > a, .menu-item > span:nth-child(2),
.original-prayer .solar-prayer > span, .card-art.generated strong { letter-spacing: -.01em !important; }
:is(h1,h2,h3,h4) em, :is(h1,h2,h3,h4) em * { letter-spacing: 0 !important; }
.edition-number { letter-spacing: -.01em !important; }
.footer-word { letter-spacing: -.03em !important; font-size: min(24vw, 380px) !important; }
.race-brand > span, .nav-word, .brand-name { letter-spacing: -.03em !important; }

/* Keeps section headings painted above the first card/image of the grid below, so the descenders of the italic gold word (g/p/y) are not covered. (race-nav is z-index 80, so 2 stays below the fixed header.) */
.section-head, .section-head h2 { position: relative; z-index: 2; }

/* Adds room under each section head so the GSAP-revealed cards (translate + rotate) do not rise into the heading's descenders. */
.section-head { padding-bottom: clamp(18px, 2.2vw, 30px); }

/* Syne's lengthened g/j/p/q/y descenders can reach past the heading box; give headings a little room below so overflow:hidden containers under them do not clip the tails. */
h1, h2, h3, h4 { padding-bottom: .06em; }
