/* OKU 31.12: homepage spacing, card inversion, common works geometry and reading progress. */
/* Keep permanent six-card titles and work actions in separate vertical zones on phones. */
@media (max-width:760px){
 #screen-home #okuPermanentSix .oku-six-card{height:226px;min-height:226px;}
 #screen-home #okuPermanentSix .oku-six-title{line-height:1.08!important;}
 #screen-home #okuPermanentSix .oku-six-works{top:115px!important;gap:7px!important;}
 #screen-home #okuPermanentSix .oku-six-card:nth-child(3) .oku-six-works,
 #screen-home #okuPermanentSix .oku-six-card:nth-child(4) .oku-six-works{top:115px!important;}
 #screen-home #okuPermanentSix .oku-six-card:nth-child(-n+2) .oku-six-works{top:96px!important;}
 #screen-home #okuPermanentSix .oku-six-work{min-height:37px!important;padding:9px 14px!important;}
}
@media (max-width:390px){
 #screen-home #okuPermanentSix .oku-six-card{height:231px;min-height:231px;}
 #screen-home #okuPermanentSix .oku-six-works,
 #screen-home #okuPermanentSix .oku-six-card:nth-child(3) .oku-six-works,
 #screen-home #okuPermanentSix .oku-six-card:nth-child(4) .oku-six-works{top:120px!important;}
 #screen-home #okuPermanentSix .oku-six-card:nth-child(-n+2) .oku-six-works{top:101px!important;}
}
/* Aşk-ı Meşk: reverse the original black/gold palette, including nested copy. */
html:root #screen-home .home-album-card--askimesk.home-album-card:is(:hover,:focus-visible,:focus-within){
 background:#e6bd4a!important;color:#1c1b1a!important;border-color:#e6bd4a!important;
}
html:root #screen-home .home-album-card--askimesk.home-album-card:is(:hover,:focus-visible,:focus-within) :is(.home-card-number,.home-card-down,.home-album-copy,.home-album-title,.home-album-lead,.home-album-body,.home-album-detail,.home-album-closing){
 color:#1c1b1a!important;
}
/* Four caliphs: the daily verse tile gold on hover, also usable on keyboard/touch focus. */
#screen-home .hc-card:is(:hover,:focus-visible,:focus-within){
 background:#c99e45!important;--hc-bg:#c99e45;
}
#screen-home .hc-card{transition:background-color .22s ease,box-shadow .22s ease!important;}
@media(max-width:760px){
 /* Match Umar's smaller lower-left flower treatment on all four cards. */
 #screen-home .hc-card .hc-flower,
 #screen-home .hc-card:nth-child(1) .hc-flower,
 #screen-home .hc-card:nth-child(2) .hc-flower,
 #screen-home .hc-card:nth-child(3) .hc-flower,
 #screen-home .hc-card:nth-child(4) .hc-flower{
  left:0!important;bottom:0!important;top:auto!important;right:auto!important;
  width:48%!important;max-height:29%!important;object-fit:contain!important;object-position:left bottom!important;
 }
 #screen-home .hc-card .hc-calligraphy,
 #screen-home .hc-card:nth-child(2) .hc-calligraphy,
 #screen-home .hc-card:nth-child(3) .hc-calligraphy,
 #screen-home .hc-card:nth-child(4) .hc-calligraphy{
  top:106px!important;height:31%!important;right:9px!important;width:59%!important;
 }
}
/* Nesîmî mobile portrait: preserve full drawing instead of object-fit:cover cropping. */
@media(max-width:720px){
 .sages-screen .sg-person--nesimi{overflow:hidden!important;}
 .sages-screen .sg-person--nesimi .sg-person-circle{
  position:absolute!important;inset:0 auto 0 0!important;width:43%!important;
  overflow:visible!important;pointer-events:none!important;
 }
 .sages-screen .sg-person--nesimi .sg-person-img{
  position:absolute!important;left:0!important;bottom:0!important;top:auto!important;
  width:100%!important;height:100%!important;max-height:none!important;
  object-fit:contain!important;object-position:left bottom!important;
  -webkit-mask-image:none!important;mask-image:none!important;
 }
}
/* One shared work-card geometry across Mevlânâ, Yunus, Pir Sultan, Yesevî, Hacı Bektaş and Nesîmî. */
.sufi-screen .su-work,.mystic-screen .ms-work,.sages-screen .sg-work{
 position:relative!important;box-sizing:border-box!important;width:100%!important;
 min-height:214px!important;padding:25px 32px 70px!important;border-radius:30px!important;
 overflow:hidden!important;isolation:isolate!important;text-align:left!important;
}
.sufi-screen .su-work strong,.mystic-screen .ms-work strong,.sages-screen .sg-work-copy strong{
 position:relative!important;z-index:4!important;max-width:64%!important;
 font-size:clamp(30px,3.2vw,53px)!important;line-height:1.09!important;
 overflow-wrap:normal!important;
}
.sufi-screen .su-work span:not(.su-work-arr),.mystic-screen .ms-work span,.sages-screen .sg-work-copy em{
 position:relative!important;z-index:4!important;max-width:64%!important;
 font-size:clamp(11px,1vw,16px)!important;line-height:1.38!important;
}
.sages-screen .sg-work-copy{max-width:64%!important;}
.sages-screen .sg-work-copy strong,.sages-screen .sg-work-copy em{max-width:100%!important;}
.sufi-screen .su-work-arr,.mystic-screen .ms-work em,.sages-screen .sg-work-arrow{
 position:absolute!important;left:27px!important;bottom:15px!important;top:auto!important;
 z-index:6!important;display:block!important;font-size:34px!important;line-height:1!important;
 margin:0!important;pointer-events:none!important;
}
.sufi-screen .su-work img,.mystic-screen .ms-work img,.sages-screen .sg-work img{
 position:absolute!important;z-index:1!important;right:-9%!important;left:auto!important;
 top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;
 height:160%!important;width:59%!important;object-fit:contain!important;object-position:right center!important;
 pointer-events:none!important;
}
@media(max-width:720px){
 .sufi-screen .su-work,.mystic-screen .ms-work,.sages-screen .sg-work{
  min-height:176px!important;padding:20px 20px 52px!important;border-radius:23px!important;
 }
 .sufi-screen .su-work strong,.mystic-screen .ms-work strong,.sages-screen .sg-work-copy strong{
  max-width:67%!important;font-size:clamp(23px,6.3vw,35px)!important;line-height:1.1!important;
 }
 .sufi-screen .su-work span:not(.su-work-arr),.mystic-screen .ms-work span,.sages-screen .sg-work-copy em{
  max-width:68%!important;font-size:10px!important;line-height:1.4!important;margin-top:7px!important;
 }
 .sages-screen .sg-work-copy{max-width:68%!important;}
 .sufi-screen .su-work-arr,.mystic-screen .ms-work em,.sages-screen .sg-work-arrow{
  left:19px!important;bottom:11px!important;font-size:29px!important;
 }
 .sufi-screen .su-work img,.mystic-screen .ms-work img,.sages-screen .sg-work img{
  right:-16%!important;width:63%!important;height:145%!important;
 }
}
/* Working 'Kaldığın Yer' actions share the design language of the existing Sufi resume chips. */
.mystic-screen .ms-hero,.sages-screen .sg-hero{position:relative;}
.mystic-screen .oku-book-resume,.sages-screen .oku-book-resume{
 position:absolute;right:24px;bottom:20px;z-index:8;
 box-sizing:border-box;min-width:165px;max-width:34%;padding:14px 19px;
 border:1px solid rgba(255,245,224,.72)!important;border-radius:16px!important;
 background:rgba(28,24,25,.76)!important;color:#f9e8c6!important;
 cursor:pointer!important;text-align:left!important;display:flex!important;flex-direction:column!important;
 gap:4px;backdrop-filter:blur(5px);
 font:650 12px/1.25 'JetBrains Mono Local',ui-monospace,monospace;
}
.mystic-screen .oku-book-resume small,.sages-screen .oku-book-resume small{font-size:10px;letter-spacing:.06em;opacity:.9;}
.mystic-screen .oku-book-resume strong,.sages-screen .oku-book-resume strong{font-size:clamp(15px,1.5vw,22px);line-height:1.2;}
.mystic-screen .oku-book-resume span,.sages-screen .oku-book-resume span{font-size:11px;}
.mystic-screen .oku-book-resume:is(:hover,:focus-visible),.sages-screen .oku-book-resume:is(:hover,:focus-visible){background:#f6e6c5!important;color:#28211c!important;outline:2px solid rgba(28,24,25,.7);outline-offset:2px;}
@media(max-width:720px){
 .mystic-screen .oku-book-resume,.sages-screen .oku-book-resume{
  min-width:116px;max-width:35%;right:10px;bottom:9px;padding:9px 11px;border-radius:11px!important;gap:2px;
 }
 .mystic-screen .oku-book-resume small,.sages-screen .oku-book-resume small{font-size:8px;}
 .mystic-screen .oku-book-resume strong,.sages-screen .oku-book-resume strong{font-size:12px;}
 .mystic-screen .oku-book-resume span,.sages-screen .oku-book-resume span{font-size:9px;}
 .mystic-screen .ms-hero-copy,.sages-screen .sg-hero-copy{padding-bottom:8px;}
}
/* Index captions for Nesîmî: show the opening verse, not only a generic 'Şiir 001'. */
.sages-screen .sg-index-card span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.42;}

/* v31.13 | Ayet Paylaş: the one randomized right-hand ebru is the ONLY artwork. */
#screen-home #okuLabSection .oku-lab-card--cinema .oku-lab-ebru{
 background-image:none!important;
 background-color:transparent!important;
}
/* v31.13 | The reference-card CSS used a more specific background declaration
   than the older hover rule. This one beats the reference selector. */
#screen-home #okuCaliphsHome .hc-grid .hc-card:is(:hover,:focus-visible,:focus-within,:active,.oku-hc-pressed){
 background:#d9b34e!important;
 background-color:#d9b34e!important;
 color:#171714!important;
 box-shadow:none!important;
}
#screen-home #okuCaliphsHome .hc-grid .hc-card:is(:hover,:focus-visible,:focus-within,:active,.oku-hc-pressed) :is(.hc-card-name,.hc-card-sub,.hc-num,.hc-down){
 color:#171714!important;
}
@media(hover:none){#screen-home #okuCaliphsHome .hc-grid .hc-card:active{background:#d9b34e!important;}}
