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

/* 1. Title descenders: SplitText mask wrappers (inline overflow:clip) cut off
      the "g" in "Religious". Give each line wrapper room below the glyphs,
      offset by a negative margin so the layout does not move, and open up
      the tight 0.83 line-height a little. */
@media (min-width:761px){
  .original-hero .hero-heading h1{line-height:.9}
  .original-hero .hero-heading h1 div{padding-bottom:.16em;margin-bottom:-.16em}
}

/* 2. Stats row and prayer strip: centre them and keep them inside the frame,
      clear of the diamond corners (frame inset is 12px, corners ~40px). */
@media (min-width:761px){
  .original-hero .stat-row,
  .original-hero .hero-prayer{
    box-sizing:border-box;
    width:min(920px,calc(100% - 120px));
    margin-left:auto;
    margin-right:auto;
  }
  .original-hero .hero-prayer{
    justify-content:center;
    text-align:center;
    gap:10px 28px;
  }
  .original-hero .hero-prayer .text-link{margin-left:0}
}

/* 3. Header vs. frame: the fixed header (106px tall) sat on top of the frame's
      top edge and corner notches, so the gold lines ran behind the logo and
      MENU. Start the frame below the header on desktop. */
@media (min-width:761px){
  .original-hero .islamic-border{
    top:106px;
    bottom:auto;
    height:calc(100% - 118px);
  }
}

/* Syne's "g" has a split tail that reads as broken at display size; use Manrope's single-storey g. */
.original-hero h1 .g-alt{font-family:inherit;font-weight:800;display:inline;letter-spacing:0;transform:none;margin:0}

/* Keep all hero content inside the gold frame: clear the corner diamonds on the sides
   */
@media (min-width:761px){
  .original-hero .hero-heading{padding-top:190px;padding-bottom:70px;padding-left:clamp(110px,9vw,150px);padding-right:clamp(110px,9vw,150px);box-sizing:border-box}
}

/* Phones: the frame is drawn for a landscape box (preserveAspectRatio:none), so on a tall
   narrow screen it stretches and its lines run through the header, text and buttons. Hide it. */
@media (max-width:760px){
  .original-hero .islamic-border{display:none}
}

/* Prayer strip: label on its own line, the five times in one centred row, link below. */
.original-hero .hero-prayer > .eyebrow,
.original-hero .hero-prayer > .text-link{flex-basis:100%;text-align:center;justify-content:center}
.original-hero .hero-prayer > .text-link{display:flex;width:auto}

/* Video and scroll buttons sat on the frame's right diamond; move them inside the frame. */
@media (min-width:761px){
  .original-hero .film-control{right:clamp(110px,9vw,150px);bottom:40px}
  .original-hero .scroll-symbol{right:clamp(110px,9vw,150px)}
}

/* Phones: the video pause button sat on top of the prayer times; give it its own space below. */
@media (max-width:760px){
  .original-hero .hero-heading{padding-bottom:72px}
  .original-hero .film-control{bottom:18px;right:18px}
}

/* Hero title uses the footer wordmark's face: Syne ExtraBold (800). */
.original-hero .hero-heading h1{font-family:var(--display);font-weight:800}
/* ExtraBold is ~20% wider: cap the size so the longest line ("Religious", 6.7em; "LUMS" at 1.4em on phones)
   always fits inside the frame/gutters. */
@media (min-width:761px){
  .original-hero .hero-heading h1{font-size:min(clamp(90px,10.3vw,158px),calc((100vw - 2*clamp(110px,9vw,150px) - 100px)/7.2))}
}
@media (max-width:760px){
  .original-hero .hero-heading h1{font-size:min(clamp(55px,13.3vw,94px),calc((100vw - 64px)/7.2))}
}
/* Widen the swapped-in Manrope "g" so it matches Syne ExtraBold's extended letters. */
.original-hero h1 .g-alt{display:inline;transform:none;margin:0;font-family:inherit;font-weight:800}
