/* OKU v31.120 fix16
   - Restore six-detail pages to the provided dark title/biography panels
   - Repair Mevlana / Yunus portrait scale on detail pages
   - Match title-flower scale closer to the supplied designs
   - Keep Nesimi tears clipped inside the visible Nesimi box
   - Use real rose petals for the O button / Prophet card; old synthetic particles hidden
*/

:root{
  --oku-six-detail-brown:#220e08;
  --oku-six-detail-ink:#f1e8d9;
}

/* ---------- Shared dark-brown detail panels ---------- */
#screen-sufi-mevlana .su-hero,
#screen-sufi-yunus-emre .su-hero,
#screen-ms-pir-sultan-abdal .ms-hero,
#screen-ms-ahmed-yesevi .ms-hero,
#screen-sg-haci-bektas-i-veli .sg-hero,
#screen-sg-nesimi .sg-hero,
#screen-sufi-mevlana .su-person-panel,
#screen-sufi-yunus-emre .su-person-panel,
#screen-ms-pir-sultan-abdal .ms-person,
#screen-ms-ahmed-yesevi .ms-person,
#screen-sg-haci-bektas-i-veli .sg-person--haci,
#screen-sg-nesimi .sg-person--nesimi-custom{
  background:var(--oku-six-detail-brown)!important;
}

#screen-sufi-mevlana :is(.su-hero-copy,.su-person-copy),
#screen-sufi-yunus-emre :is(.su-hero-copy,.su-person-copy),
#screen-ms-pir-sultan-abdal :is(.ms-hero-copy,.ms-person-copy),
#screen-ms-ahmed-yesevi :is(.ms-hero-copy,.ms-person-copy),
#screen-sg-haci-bektas-i-veli :is(.sg-hero-copy,.sg-person-info),
#screen-sg-nesimi :is(.sg-hero-copy,.sg-person-info){
  color:var(--oku-six-detail-ink)!important;
}

#screen-sufi-mevlana :is(.su-hero-tag,.su-hero-copy p,.su-person-copy p,.su-person-copy b,.su-person-copy strong),
#screen-sufi-yunus-emre :is(.su-hero-tag,.su-hero-copy p,.su-person-copy p,.su-person-copy b,.su-person-copy strong),
#screen-ms-pir-sultan-abdal :is(.ms-hero-tag,.ms-hero-copy p,.ms-person-copy p,.ms-person-copy strong),
#screen-ms-ahmed-yesevi :is(.ms-hero-tag,.ms-hero-copy p,.ms-person-copy p,.ms-person-copy strong),
#screen-sg-haci-bektas-i-veli :is(.sg-tag,.sg-hero-copy p,.sg-person-info p,.sg-person-info strong),
#screen-sg-nesimi :is(.sg-tag,.sg-hero-copy p,.sg-person-info p,.sg-person-info strong){
  color:var(--oku-six-detail-ink)!important;
}

/* ---------- Mevlana & Yunus portrait repair ---------- */
#screen-sufi-mevlana .su-person-panel,
#screen-sufi-yunus-emre .su-person-panel{
  overflow:hidden!important;
  grid-template-columns:minmax(0,43%) minmax(0,57%)!important;
  align-items:end!important;
  min-height:472px!important;
}
#screen-sufi-mevlana .su-person-circle,
#screen-sufi-yunus-emre .su-person-circle{
  position:relative!important;
  align-self:end!important;
  width:100%!important;
  min-height:100%!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
}
#screen-sufi-mevlana .su-person-portrait,
#screen-sufi-yunus-emre .su-person-portrait{
  position:absolute!important;
  left:0!important;
  bottom:0!important;
  top:auto!important;
  width:auto!important;
  max-width:100%!important;
  height:calc(100% + 88px)!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:left bottom!important;
  transform:none!important;
  clip-path:none!important;
  mask-image:none!important;
  -webkit-mask-image:none!important;
}
#screen-sufi-mevlana .su-person-copy,
#screen-sufi-yunus-emre .su-person-copy{
  align-self:center!important;
  padding-right:44px!important;
  max-width:100%!important;
}

/* ---------- Title flower scale / crop tuning ---------- */
#screen-sufi-mevlana .su-hero,
#screen-sufi-yunus-emre .su-hero,
#screen-ms-pir-sultan-abdal .ms-hero,
#screen-ms-ahmed-yesevi .ms-hero,
#screen-sg-haci-bektas-i-veli .sg-hero,
#screen-sg-nesimi .sg-hero{
  overflow:hidden!important;
}

#screen-sufi-mevlana .su-hero-flower{width:63%!important;height:165%!important;right:-7%!important;top:-29%!important;object-position:right center!important}
#screen-sufi-yunus-emre .su-hero-flower{width:67%!important;height:170%!important;right:-3%!important;top:-27%!important;object-position:right center!important}
#screen-ms-pir-sultan-abdal .ms-hero-flower{width:60%!important;height:164%!important;right:-3%!important;top:-24%!important;object-position:right center!important}
#screen-ms-ahmed-yesevi .ms-hero-flower{width:63%!important;height:168%!important;right:-5%!important;top:-30%!important;object-position:right center!important}
#screen-sg-haci-bektas-i-veli .sg-hero-flower{width:61%!important;height:168%!important;right:-6%!important;top:-29%!important;object-position:right center!important}
#screen-sg-nesimi .sg-hero-flower{width:58%!important;height:162%!important;right:-1%!important;top:-21%!important;object-position:right center!important}

/* ---------- Hacı work title spacing ---------- */
#screen-sg-haci-bektas-i-veli .sg-work--haci .sg-work-copy{
  padding-top:8px!important;
}
#screen-sg-haci-bektas-i-veli .sg-work--haci .sg-work-copy strong{
  margin-top:6px!important;
}

/* ---------- Nesimi tears: only inside the visible box ---------- */
body .nesimi-falling-layer,
body .nesimi-eye-trace{display:none!important;}
#screen-sg-nesimi .sg-person--nesimi-custom,
#screen-home #okuPermanentSix .oku-six-card--nesimi,
.nesimi-legend-overlay__visual{
  overflow:hidden!important;
}
#screen-sg-nesimi .sg-person--nesimi-custom .sg-person-circle,
#screen-home #okuPermanentSix .oku-six-card--nesimi .nesimi-blood-host,
.nesimi-legend-overlay__visual .nesimi-blood-host{
  overflow:hidden!important;
}
/* Re-enable local eye-drop sprites that earlier fixes hid. */
.nesimi-blood-host > .nesimi-blood{
  display:block!important;
}
.nesimi-air-drops .nesimi-air-drop{
  display:none!important;
}
#screen-sg-nesimi .sg-person--nesimi-custom .nesimi-blood--left{width:7.2%!important}
#screen-sg-nesimi .sg-person--nesimi-custom .nesimi-blood--right{width:5.1%!important}

/* ---------- Real petals for O button + Prophet card ---------- */
.oku-talk-echo,
.oku-muhammad-petal{display:none!important;}
.page-nav__item--muhammad,
.home-feature-card--muhammad{position:relative!important;}
.page-nav__item--muhammad{overflow:visible!important;isolation:isolate;}
.home-feature-card--muhammad{overflow:hidden!important;isolation:isolate;}
.oku-real-petal{
  position:absolute;
  pointer-events:none;
  user-select:none;
  z-index:8;
  opacity:0;
  transform-origin:50% 50%;
  will-change:transform,opacity;
  filter:drop-shadow(0 4px 8px rgba(79,17,22,.16));
  animation:okuPetalFloat var(--petal-duration,5200ms) cubic-bezier(.24,.55,.21,1) 1 both;
}
.page-nav__item--muhammad .oku-real-petal{z-index:2;filter:drop-shadow(0 2px 6px rgba(79,17,22,.14));}
@keyframes okuPetalFloat{
  0%{opacity:0;transform:translate3d(0,10px,0) rotate(0deg) scale(.76)}
  14%{opacity:.98;transform:translate3d(calc(var(--petal-dx,0px) * .12),calc(var(--petal-dy,0px) * .10),0) rotate(calc(var(--petal-rot,0deg) * .18)) scale(.92)}
  60%{opacity:.95;transform:translate3d(calc(var(--petal-dx,0px) * .62),calc(var(--petal-dy,0px) * .62),0) rotate(calc(var(--petal-rot,0deg) * .66)) scale(1)}
  100%{opacity:0;transform:translate3d(var(--petal-dx,0px),var(--petal-dy,0px),0) rotate(var(--petal-rot,0deg)) scale(1.06)}
}

@media(max-width:1100px){
  #screen-sufi-mevlana .su-person-panel,
  #screen-sufi-yunus-emre .su-person-panel{grid-template-columns:minmax(0,42%) minmax(0,58%)!important;min-height:450px!important;}
  #screen-sufi-mevlana .su-person-portrait,
  #screen-sufi-yunus-emre .su-person-portrait{height:calc(100% + 72px)!important;}
}
@media(max-width:980px){
  #screen-sufi-mevlana .su-person-panel,
  #screen-sufi-yunus-emre .su-person-panel{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;min-height:0!important;}
  #screen-sufi-mevlana .su-person-circle,
  #screen-sufi-yunus-emre .su-person-circle{min-height:360px!important;}
  #screen-sufi-mevlana .su-person-copy,
  #screen-sufi-yunus-emre .su-person-copy{padding:20px 24px 26px!important;}
  #screen-sufi-mevlana .su-hero-flower,#screen-sufi-yunus-emre .su-hero-flower,
  #screen-ms-pir-sultan-abdal .ms-hero-flower,#screen-ms-ahmed-yesevi .ms-hero-flower,
  #screen-sg-haci-bektas-i-veli .sg-hero-flower,#screen-sg-nesimi .sg-hero-flower{width:62%!important;height:135%!important;right:-10%!important;top:-16%!important;}
}
@media(max-width:760px){
  #screen-sufi-mevlana .su-person-circle,
  #screen-sufi-yunus-emre .su-person-circle{min-height:300px!important;}
  #screen-sufi-mevlana .su-person-portrait,
  #screen-sufi-yunus-emre .su-person-portrait{left:50%!important;transform:translateX(-50%)!important;height:auto!important;width:min(92%,420px)!important;max-width:92%!important;}
  .page-nav__item--muhammad .oku-real-petal{max-width:18px!important;}
}
