/* 2026-10-25 · Only the four newest Turkish masters.
   Existing Yunus Emre screens are the layout reference. */

/* The final four cards follow the dimensions of the original six. */
#screen-home #okuPermanentSix .oku-six-grid > .oku25-master,
#screen-home #okuPermanentSix .oku-six-grid > .oku26-master{
  position:relative!important;width:100%!important;aspect-ratio:2.685/1!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  border-radius:clamp(28px,3.4vw,65px)!important;overflow:hidden!important;
  box-sizing:border-box!important;
}
#screen-home #okuPermanentSix .oku-six-grid > .oku26-master{
  background:var(--oku26-home)!important;color:#fae9ca!important;
  transition:background-color .24s ease!important;
}
#screen-home #okuPermanentSix .oku-six-grid > .oku26-master:is(:hover,:focus-within){background:#803b28!important;}
#screen-home #okuPermanentSix .oku26-cover{position:absolute!important;inset:0!important;z-index:1!important;color:inherit!important;}
#screen-home #okuPermanentSix .oku26-no{left:2.35%!important;top:8.2%!important;font-size:clamp(12px,.9vw,17px)!important;}
#screen-home #okuPermanentSix .oku26-cover>strong,
#screen-home #okuPermanentSix .oku26-geylani .oku26-cover>strong{
  top:8.1%!important;left:7.1%!important;right:auto!important;
  width:53%!important;max-width:53%!important;text-align:left!important;
  font-family:'JetBrains Mono Local',ui-monospace,monospace!important;
  font-size:clamp(23px,2.5vw,44px)!important;line-height:1.08!important;
  letter-spacing:-.048em!important;font-weight:700!important;overflow-wrap:normal!important;
}
#screen-home #okuPermanentSix .oku26-portrait{
  position:absolute!important;right:-1%!important;left:auto!important;
  bottom:0!important;width:56%!important;height:100%!important;
  overflow:visible!important;pointer-events:none!important;
}
#screen-home #okuPermanentSix .oku26-portrait img{
  position:absolute!important;right:0!important;left:auto!important;
  bottom:0!important;top:auto!important;width:100%!important;height:auto!important;
  object-fit:contain!important;object-position:right bottom!important;
  max-height:none!important;max-width:none!important;
}
#screen-home #okuPermanentSix .oku26-geylani .oku26-portrait{width:54%!important;}
#screen-home #okuPermanentSix .oku26-works,
#screen-home #okuPermanentSix .oku26-geylani .oku26-works{
  top:32.6%!important;left:7.2%!important;right:auto!important;
  align-items:flex-start!important;gap:clamp(7px,.8vw,14px)!important;
  width:52%!important;max-width:52%!important;
}
#screen-home #okuPermanentSix .oku26-works a{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:clamp(38px,3vw,53px)!important;padding:clamp(8px,.7vw,14px) clamp(14px,1.2vw,24px)!important;
  border:1px solid rgba(245,225,190,.6)!important;border-radius:999px!important;
  color:inherit!important;background:transparent!important;font:600 clamp(12px,.92vw,18px)/1.12 'JetBrains Mono Local',ui-monospace,monospace!important;
  text-align:center!important;white-space:normal!important;
}
#screen-home #okuPermanentSix .oku26-works a:is(:hover,:focus-visible){background:#21140e!important;color:#f0ebdd!important;border-color:#21140e!important;}
#screen-home #okuPermanentSix .oku26-arrow{left:2.65%!important;bottom:4.5%!important;font-size:clamp(27px,2.1vw,40px)!important;}

/* Page width and first-content spacing: exact Yunus main container. */
#oku26-screen .oku26-page,
#oku21-screen .oku21-page{
  width:min(100%,1680px)!important;max-width:1680px!important;
  margin:0 auto!important;padding:14px 32px 74px!important;
}
#oku26-screen .oku26-shell,
#oku21-screen .oku21-shell{width:100%!important;max-width:none!important;margin:0 auto!important;}
#oku26-screen .oku26-hero,#oku26-screen .oku26-biography,
#oku26-screen .oku26-work-panel,#oku26-screen .oku26-reader-heading{
  border-radius:36px!important;
}

/* A long name must increase hero height rather than be cut off. */
#oku26-screen .oku26-hero{
  height:auto!important;min-height:260px!important;
  display:flex!important;align-items:center!important;
  padding:37px 4%!important;margin-bottom:15px!important;
}
#oku26-screen .oku26-hero-copy{width:62%!important;max-width:850px!important;}
#oku26-screen .oku26-hero h1{font-size:clamp(37px,4.1vw,65px)!important;line-height:1.1!important;margin:8px 0 13px!important;}
#oku26-screen .oku26-hero--geylani h1{font-size:clamp(35px,3.7vw,60px)!important;}
#oku26-screen .oku26-hero-copy small{line-height:1.55!important;overflow-wrap:break-word!important;}
#oku26-screen .oku26-hero p{font-size:clamp(12px,1.05vw,16px)!important;line-height:1.55!important;margin:0!important;}
#oku26-screen .oku26-biography{
  min-height:465px!important;height:auto!important;margin-bottom:15px!important;
}
#oku26-screen .oku26-biography-person{height:100%!important;width:45%!important;}
#oku26-screen .oku26-biography-text{
  margin-left:46%!important;width:52%!important;padding:66px 3% 54px 1%!important;
}
#oku26-screen .oku26-biography-text h2{margin-bottom:22px!important;}
#oku26-screen .oku26-works-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;}
#oku26-screen .oku26-works-grid--single{grid-template-columns:1fr;}
#oku26-screen .oku26-work-panel{
  min-height:255px!important;height:100%!important;margin:0!important;
  padding:32px 4%!important;
}
#oku26-screen .oku26-work-copy{max-width:75%!important;}
#oku26-screen .oku26-work-copy small{font-size:clamp(14px,1.3vw,20px)!important;}
#oku26-screen .oku26-work-copy strong{font-size:clamp(30px,3.1vw,52px)!important;}
#oku26-screen .oku26-work-copy>span{font-size:clamp(11px,.9vw,15px)!important;line-height:1.5!important;}
#oku26-screen .oku26-down{bottom:15px!important;left:4%!important;}

/* Yunus-style chapter index and reading surfaces. */
#oku26-screen .oku26-reader-heading{min-height:260px!important;margin-bottom:15px!important;padding:32px 4%!important;}
#oku26-screen .oku26-heading-text{min-width:0!important;overflow-wrap:break-word!important;}
#oku26-screen .oku26-heading-text p{white-space:normal!important;overflow-wrap:break-word!important;line-height:1.5!important;max-width:100%!important;}
#oku26-screen .oku26-chapter-grid{gap:15px!important;}
#oku26-screen .oku26-chapter-tile{min-height:171px!important;border-radius:25px!important;}
#oku26-screen .oku26-section-title{
  min-height:132px!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto 1fr!important;gap:5px 20px!important;
  padding:23px 30px!important;margin-bottom:13px!important;
  border-radius:32px!important;align-items:center!important;
}
#oku26-screen .oku26-section-title small{grid-column:1/-1!important;width:auto!important;}
#oku26-screen .oku26-section-title h2{
  grid-column:1!important;grid-row:2!important;min-width:0!important;
  font-size:clamp(24px,2.5vw,39px)!important;
}
#oku26-screen .oku26-section-title .oku26-share-button{
  grid-column:2!important;grid-row:2!important;align-self:center!important;
  display:inline-flex!important;justify-content:center!important;
  min-height:50px!important;margin:0!important;padding:12px 25px!important;
  border:1px solid currentColor!important;border-radius:999px!important;
  background:transparent!important;color:inherit!important;
  font:700 16px/1.35 'JetBrains Mono Local',ui-monospace,monospace!important;
  white-space:nowrap!important;
}
#oku26-screen .oku26-section-title .oku26-share-button:is(:hover,:focus-visible){background:#241c18!important;color:#f4ebd9!important;}
#oku26-screen .oku26-content{
  padding:39px 40px 52px!important;border-radius:26px!important;
  font-size:clamp(16px,1.15vw,22px)!important;line-height:1.75!important;
  overflow-wrap:break-word!important;word-break:normal!important;
  letter-spacing:0!important;word-spacing:normal!important;
}
#oku26-screen .oku26-content p{
  white-space:normal!important;letter-spacing:0!important;word-spacing:normal!important;
  margin:0 0 1.22em!important;text-align:left!important;
}
#oku26-screen .oku26-content p:last-child{margin-bottom:0!important;}

/* Gazzâlî/Hatayî share belongs at the right INSIDE the chapter heading. */
#oku21-screen .oku30-chapter-title{min-height:132px!important;border-radius:32px!important;padding:23px 30px!important;margin-bottom:13px!important;}
#oku21-screen .oku30-chapter-title h2{margin:4px 180px 10px 0!important;padding:0!important;}
#oku21-screen .oku30-chapter-title .oku77-sharebar{
  position:absolute!important;bottom:18px!important;right:25px!important;
  margin:0!important;padding:0!important;min-height:0!important;
}
#oku21-screen .oku30-chapter-title .oku77-share{min-height:50px!important;padding:12px 25px!important;}
#oku21-screen .oku30-note,#oku21-screen .oku30-actions{display:none!important;}

@media(max-width:850px){
  #screen-home #okuPermanentSix .oku-six-grid > .oku25-master,
  #screen-home #okuPermanentSix .oku-six-grid > .oku26-master{aspect-ratio:2.685/1!important;border-radius:clamp(20px,5vw,38px)!important;}
  #screen-home #okuPermanentSix .oku26-cover>strong,
  #screen-home #okuPermanentSix .oku26-geylani .oku26-cover>strong{font-size:clamp(19px,4.1vw,36px)!important;}
  #screen-home #okuPermanentSix .oku26-works{top:32.6%!important;gap:5px!important;}
  #screen-home #okuPermanentSix .oku26-works a{min-height:clamp(29px,6vw,43px)!important;font-size:clamp(11px,2.4vw,15px)!important;padding:7px 12px!important;}
  #oku26-screen .oku26-chapter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:650px){
  #oku26-screen .oku26-page,#oku21-screen .oku21-page{padding:12px 14px 50px!important;}
  #oku26-screen .oku26-hero{min-height:245px!important;padding:25px 23px!important;}
  #oku26-screen .oku26-hero-copy{width:75%!important;}
  #oku26-screen .oku26-hero h1{font-size:clamp(29px,7vw,43px)!important;}
  #oku26-screen .oku26-hero--geylani h1{font-size:clamp(28px,6.3vw,41px)!important;}
  #oku26-screen .oku26-hero p{font-size:11px!important;}
  #oku26-screen .oku26-biography{min-height:570px!important;}
  #oku26-screen .oku26-biography-person{width:100%!important;height:65%!important;}
  #oku26-screen .oku26-biography-text{width:100%!important;margin:0!important;padding:25px 24px 345px!important;}
  #oku26-screen .oku26-works-grid{grid-template-columns:1fr!important;gap:12px!important;}
  #oku26-screen .oku26-work-panel{min-height:200px!important;padding:25px 24px!important;}
  #oku26-screen .oku26-reader-heading{min-height:240px!important;padding:24px 19px!important;}
  #oku26-screen .oku26-section-title{padding:18px!important;grid-template-columns:1fr!important;}
  #oku26-screen .oku26-section-title h2{grid-column:1!important;grid-row:2!important;font-size:clamp(22px,5.6vw,32px)!important;}
  #oku26-screen .oku26-section-title .oku26-share-button{grid-column:1!important;grid-row:3!important;justify-self:end!important;font-size:13px!important;min-height:42px!important;padding:10px 20px!important;}
  #oku26-screen .oku26-content{padding:24px 19px!important;font-size:16px!important;line-height:1.72!important;}
  #oku21-screen .oku30-chapter-title{padding:17px!important;min-height:155px!important;}
  #oku21-screen .oku30-chapter-title h2{margin-right:0!important;padding-bottom:56px!important;}
  #oku21-screen .oku30-chapter-title .oku77-sharebar{right:15px!important;bottom:13px!important;}
}
@media(max-width:480px){
  #screen-home #okuPermanentSix .oku-six-grid > .oku26-master,
  #screen-home #okuPermanentSix .oku-six-grid > .oku25-master{border-radius:25px!important;}
  /* Compact mobile crop: same untouched artwork, aligned to the lower right. */
  #screen-home #okuPermanentSix .oku26-arabi .oku26-portrait{width:55%!important;right:-2%!important;}
  #screen-home #okuPermanentSix .oku26-geylani .oku26-portrait{width:52%!important;right:-2%!important;}
  #screen-home #okuPermanentSix .oku26-cover>strong,
  #screen-home #okuPermanentSix .oku26-geylani .oku26-cover>strong{font-size:clamp(18px,5.4vw,27px)!important;}
  #screen-home #okuPermanentSix .oku26-no{font-size:11px!important;}
  #screen-home #okuPermanentSix .oku26-works a{font-size:11px!important;min-height:29px!important;padding:6px 9px!important;}
  #screen-home #okuPermanentSix .oku26-geylani .oku26-works{top:43%!important;}
  #screen-home #okuPermanentSix .oku26-arrow{font-size:24px!important;}
}
