/* kafka-tiles.css: the one hover panel for list rows and series rows (kafka-tiles.js), and the series-page row layout.
   Loaded after every other stylesheet. Old panels inside these rows stay in the page but hidden. */
/* Everything sits in the kfix layer and outranks the older layered rules (kafka-home-fix.css), which use !important. */
@layer kfix{

/* ---------- the panel ---------- */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host{position:relative!important;overflow:hidden!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host>.kx-pn{display:none!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host>.kq-pn{position:absolute!important;inset:0!important;grid-area:auto!important;margin:0!important;width:auto!important;height:auto!important;max-width:none!important;z-index:6!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-content:center!important;column-gap:12px!important;row-gap:2px!important;padding:6px 12px 6px 14px!important;box-sizing:border-box!important;border-radius:inherit!important;text-align:left!important;background:linear-gradient(90deg,rgba(32,23,18,.74),rgba(32,23,18,.58))!important;-webkit-backdrop-filter:blur(5px) saturate(1.25)!important;backdrop-filter:blur(5px) saturate(1.25)!important;color:#fff!important;opacity:0!important;pointer-events:none!important;transition:opacity .22s ease!important;cursor:pointer!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host:hover>.kq-pn,:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host:focus-within>.kq-pn,:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host.kq-auto>.kq-pn,:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host.kx-open>.kq-pn{opacity:1!important;pointer-events:auto!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-pn>.kq-t{grid-column:1!important;grid-row:1!important;font:600 13px/1.25 Fraunces,Martel,Georgia,serif!important;color:#ffd9a0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;letter-spacing:.005em!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-pn>.kq-t i{font-style:normal!important;font-weight:500!important;color:rgba(255,217,160,.75)!important;font-size:.9em!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-pn>.kq-d{grid-column:1!important;grid-row:2!important;font:400 12px/1.38 Inter,Martel,system-ui,sans-serif!important;color:#fff!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-pn>.kq-d[lang=ne]{font-family:Martel,Inter,system-ui,sans-serif!important;font-size:12.5px!important;line-height:1.45!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-pn>.kq-go{grid-column:2!important;grid-row:1/3!important;align-self:center!important;display:inline-flex!important;align-items:center!important;white-space:nowrap!important;font:700 12px/1 Inter,system-ui,sans-serif!important;color:#2a1d16!important;background:#ffd9a0!important;border-radius:999px!important;padding:7px 13px!important;text-decoration:none!important;box-shadow:0 1px 0 rgba(0,0,0,.15)!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host.kq-short>.kq-pn{grid-template-rows:auto!important}
/* very slim rows (home lists): one line of description */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .three .col ol.klist>li.kq-host>.kq-pn{padding:4px 10px 4px 12px!important;column-gap:8px!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .three .col ol.klist>li.kq-host>.kq-pn>.kq-t{font-size:12px!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .three .col ol.klist>li.kq-host>.kq-pn>.kq-d{font-size:11px!important;line-height:1.3!important;-webkit-line-clamp:2!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .three .col ol.klist>li.kq-host>.kq-pn>.kq-go{font-size:11px!important;padding:6px 10px!important}
/* series tiles under Archive & Series */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) a.kser-row.kq-host>.kq-pn>.kq-d{-webkit-line-clamp:3!important;font-size:11.5px!important}
@media (prefers-reduced-motion:reduce){:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kq-host>.kq-pn{transition:none!important}}

/* home list rows: a row without a subtitle keeps its title and date centred */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .three .col ol.klist>li.kq-nosub>div:not(.kx-pn){align-self:center!important}

/* ---------- series pages: one row layout for every language ---------- */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .static-page ol.kser-items>li.kq-srow,:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow{background:linear-gradient(rgba(255,253,249,.78),rgba(255,253,249,.78)),var(--kbg,none) center/cover no-repeat!important;min-height:86px!important;box-sizing:border-box!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow::before{opacity:.5!important}
/* the description line under the subtitle is in the hover panel now; rows stay three lines tall at most */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow>p.kq-dek:not(.kt-sub){display:none!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow>p.kt-sub{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:1!important;overflow:hidden!important;margin-top:2px!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow>p.kt-sub.kq-hide{display:none!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow>h2{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
/* the part number sits beside the photo in gold, not on top of it */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow{padding-left:34px!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow>.kser-n{position:absolute!important;left:8px!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translateY(-50%)!important;grid-area:auto!important;margin:0!important;width:20px!important;text-align:center!important;background:none!important;box-shadow:none!important;border:0!important;color:#b8913f!important;font:700 15px/1 Fraunces,Georgia,serif!important;height:auto!important;min-width:0!important;padding:0!important;z-index:2!important}
/* the "In English" / "नेपालीमा" line: the translate button already does this job */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow.kq-hastr .kser-ne{display:none!important}
/* every row keeps a slot for the translate button, so the listen and film buttons line up */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kser-acts>.kq-slot{visibility:hidden!important;pointer-events:none!important;display:inline-flex!important;width:48px!important;min-width:48px!important}
/* the listen / translate / film buttons stay on top of the panel and keep working; the Read button sits just left of them */
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow>.kser-acts{position:relative!important;z-index:7!important}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow>.kq-pn{padding-right:146px!important;padding-left:34px!important}
@media (max-width:640px){:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) ol.kser-items>li.kq-srow>.kq-pn{padding-right:12px!important}}

}
/* home, no post shown twice: on wide screens the three Where to start columns (Nepali, English, Most read) already list the
   newest posts, so the All strip above them is left out; strip tiles already shown higher up are hidden (kafka-tiles.js) */
@layer kfix{
@media (min-width:900px){:root.k3-on:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) .kstart5{display:none!important}}
:root:not(#kq1):not(#kq2):not(#kq3):not(#kq4):not(#kq5) #kafka-home .kq-dup{display:none!important}
}
