/* OKU · 2026-11-11
   Only the home page's 10 master cards on phones/small tablets.
   Portraits are shown in full and names/work links take their natural space.
   No desktop, reader, navigation, language, audio or content rules change. */
@media (max-width:850px) {
  #screen-home #okuPermanentSix .oku-six-grid {
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }

  /* The first six master cards: restore normal document flow. */
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card {
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    padding:0 0 54px!important;
    border-radius:28px!important;
    overflow:hidden!important;
  }
  /* Older mobile patches target these two by name with stronger selectors. */
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card.oku-six-card--haci,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card.oku-six-card--nesimi {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card[hidden] {
    display:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-cover,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-cover:is(:hover,:focus-visible) {
    position:relative!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    flex:none!important;
    gap:0!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-copy,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card:nth-child(3) .oku-six-copy,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card:nth-child(4) .oku-six-copy {
    position:relative!important;
    inset:auto!important;
    display:block!important;
    align-self:stretch!important;
    width:100%!important;
    max-width:none!important;
    padding:48px 20px 8px 45px!important;
    margin:0!important;
    box-sizing:border-box!important;
    text-align:left!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-title {
    display:block!important;
    font-size:clamp(24px,6.2vw,36px)!important;
    line-height:1.15!important;
    overflow-wrap:anywhere!important;
    white-space:normal!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-portrait {
    position:relative!important;
    inset:auto!important;
    display:block!important;
    align-self:stretch!important;
    width:100%!important;
    height:clamp(215px,64vw,355px)!important;
    max-width:100%!important;
    margin:0!important;
    overflow:visible!important;
    transform:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-portrait > img,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-portrait > img.nesimi-eye-source {
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-works,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card:nth-child(3) .oku-six-works,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card:nth-child(4) .oku-six-works {
    position:relative!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:auto!important;
    max-width:none!important;
    max-height:none!important;
    gap:9px!important;
    padding:0!important;
    margin:8px 20px 0!important;
    box-sizing:border-box!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-work {
    position:relative!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:43px!important;
    height:auto!important;
    padding:10px 14px!important;
    font-size:clamp(12px,3vw,15px)!important;
    line-height:1.3!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-n {
    top:18px!important;
    left:20px!important;
    font-size:12px!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card .oku-six-arrow {
    bottom:11px!important;
    left:19px!important;
    font-size:29px!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku-six-card--nesimi .sg-nesimi-info--home {
    top:auto!important;
    right:20px!important;
    bottom:12px!important;
    transform:none!important;
  }

  /* Gazzali and Hatayi: the face and blinking overlay share a full frame. */
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master {
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    padding:0 0 54px!important;
    border-radius:28px!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master[hidden] {
    display:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master .oku25-cover {
    position:relative!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master .oku25-name {
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    padding:48px 20px 8px 45px!important;
    box-sizing:border-box!important;
    font-size:clamp(24px,6.2vw,36px)!important;
    line-height:1.15!important;
    text-align:left!important;
    overflow-wrap:anywhere!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master .oku25-face {
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:clamp(215px,64vw,355px)!important;
    overflow:visible!important;
    transform:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master .oku25-face img,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master.oku25-right .oku25-face img {
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master .oku25-work,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master.oku25-right .oku25-work {
    position:relative!important;
    inset:auto!important;
    display:flex!important;
    align-self:flex-start!important;
    width:auto!important;
    max-width:calc(100% - 40px)!important;
    min-height:43px!important;
    padding:10px 14px!important;
    margin:8px 20px 0!important;
    box-sizing:border-box!important;
    font-size:clamp(12px,3vw,15px)!important;
    line-height:1.3!important;
    overflow-wrap:anywhere!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master .oku25-number {
    top:18px!important;
    left:20px!important;
    font-size:12px!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master .oku25-arrow {
    display:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku25-master::after {
    content:'↓';
    position:absolute;
    bottom:11px;
    left:19px;
    font:600 29px/1 'JetBrains Mono Local',ui-monospace,monospace;
    pointer-events:none;
  }

  /* Ibn Arabi and Abdulkadir Geylani: no portrait zoom/cropping on mobile. */
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master {
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    padding:0 0 54px!important;
    border-radius:28px!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master[hidden] {
    display:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master .oku26-cover {
    position:relative!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master .oku26-cover > strong {
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    padding:48px 20px 8px 45px!important;
    box-sizing:border-box!important;
    font-size:clamp(24px,6.2vw,36px)!important;
    line-height:1.15!important;
    text-align:left!important;
    overflow-wrap:anywhere!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master .oku26-portrait,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master.oku26-arabi .oku26-portrait,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master.oku26-geylani .oku26-portrait {
    position:relative!important;
    inset:auto!important;
    display:block!important;
    width:100%!important;
    height:clamp(215px,64vw,355px)!important;
    overflow:visible!important;
    transform:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master .oku26-portrait img,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master.oku26-arabi .oku26-portrait img,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master.oku26-geylani .oku26-portrait img {
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    transform:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master .oku26-works,
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master.oku26-geylani .oku26-works {
    position:relative!important;
    inset:auto!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    width:auto!important;
    max-width:none!important;
    gap:9px!important;
    padding:0!important;
    margin:8px 20px 0!important;
    box-sizing:border-box!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master .oku26-works a {
    width:auto!important;
    max-width:100%!important;
    min-height:43px!important;
    padding:10px 14px!important;
    font-size:clamp(12px,3vw,15px)!important;
    line-height:1.3!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master .oku26-no {
    top:18px!important;
    left:20px!important;
    font-size:12px!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master .oku26-arrow {
    display:none!important;
  }
  #screen-home #okuPermanentSix .oku-six-grid > article.oku26-master::before {
    content:'↓';
    position:absolute;
    bottom:11px;
    left:19px;
    z-index:6;
    font:600 29px/1 'JetBrains Mono Local',ui-monospace,monospace;
    pointer-events:none;
  }
}
