/* EduNizam — Public guide hero readability fix (screenshots, 8 Oct 2026)
   Scoped ONLY to public guide heroes, not homepage, app, or Learning Hub.
   Keep existing licensed educational photography, natural palette, glass cards. */

/* Long public-guide titles should lead, not consume an entire phone viewport. */
body.premium-public-page .public-main>.public-hero>h1 {
  width:auto!important;
  max-width:min(100%, 26ch)!important;
  font-size:clamp(2.2rem,3.3vw,3.35rem)!important;
  line-height:1.15!important;
  letter-spacing:-.024em!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  text-wrap:pretty!important;
  color:#113d33!important;
  -webkit-text-fill-color:#113d33!important;
  opacity:1!important;
  text-shadow:0 1px 0 rgba(255,255,255,.90),0 2px 13px rgba(255,255,255,.46)!important;
}

/* Put prose on a genuine light-glass reading plate; the photo is still
   visible around and subtly through it. Never paint the letters translucent. */
body.premium-public-page .public-main>.public-hero>p {
  box-sizing:border-box!important;
  display:block!important;
  width:fit-content!important;
  max-width:min(100%, 73ch)!important;
  margin:0!important;
  padding:14px 17px!important;
  background:rgba(251,255,250,.88)!important;
  border:1px solid rgba(48,133,108,.27)!important;
  border-radius:16px!important;
  -webkit-backdrop-filter:blur(4px) saturate(110%)!important;
  backdrop-filter:blur(4px) saturate(110%)!important;
  color:#21473d!important;
  -webkit-text-fill-color:#21473d!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:clamp(.98rem,1.1vw,1.08rem)!important;
  font-weight:450!important;
  line-height:1.56!important;
  letter-spacing:0!important;
  opacity:1!important;
  text-shadow:none!important;
  box-shadow:0 7px 24px rgba(23,70,55,.08)!important;
}

/* Gentle ivory scrim only over guide hero photos; retain their detail and
   forest/sky/sage colors. Text is not forced onto the bare image. */
body.premium-public-page .public-main>.public-hero {
  background-image:
    linear-gradient(108deg,rgba(250,255,250,.82) 0%,rgba(246,252,249,.68) 52%,rgba(239,249,246,.47) 100%),
    var(--ng-class)!important;
  background-position:center,center 38%!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
body.premium-public-page .public-main>.public-hero>.public-kicker {
  color:#18604b!important;
  -webkit-text-fill-color:#18604b!important;
  text-shadow:none!important;
  opacity:1!important;
}
@media(max-width:760px){
  body.premium-public-page .public-main>.public-hero {
    min-height:0!important;
    padding:clamp(19px,5.2vw,28px)!important;
    background-image:
      linear-gradient(145deg,rgba(250,255,250,.84) 0%,rgba(246,253,251,.65) 58%,rgba(238,249,245,.49) 100%),
      var(--ng-class)!important;
    background-position:center,center 38%!important;
    background-size:cover!important;
    background-repeat:no-repeat!important;
    gap:0!important;
  }
  body.premium-public-page .public-main>.public-hero>h1 {
    max-width:100%!important;
    font-size:clamp(1.83rem,6.6vw,2.25rem)!important;
    line-height:1.17!important;
    margin:0 0 14px!important;
    letter-spacing:-.015em!important;
    text-wrap:pretty!important;
  }
  body.premium-public-page .public-main>.public-hero>p {
    padding:13px 14px!important;
    font-size:clamp(.95rem,3.75vw,1rem)!important;
    line-height:1.55!important;
    border-radius:14px!important;
    max-width:100%!important;
  }
  body.premium-public-page .public-main>.public-hero .public-cta-row{
    width:100%!important;
    min-width:0!important;
    margin-top:16px!important;
  }
  body.premium-public-page .public-main>.public-hero .public-cta{
    box-sizing:border-box!important;
    max-width:100%!important;
    min-height:48px!important;
    padding:12px 15px!important;
    font-size:clamp(.91rem,3.65vw,1rem)!important;
    line-height:1.35!important;
    text-align:center!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    hyphens:none!important;
  }
}
@media(max-width:350px){
  body.premium-public-page .public-main>.public-hero>h1 {
    font-size:1.78rem!important;
  }
}
