/* kuntres2.css - fixes and additions on top of kuntres.css (Kuntres page owner). */

/* Amazon page: every card in a row is the same height, so the Buy on Amazon
   buttons line up no matter how many lines the title takes. */
.kz .ka-g{align-items:stretch}
.kz .kz-c{height:100%}
.kz .kz-t{min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kz .kz-ub{margin-top:auto;width:100%}

/* Seasonal strip (Chanukah) */
.kc-sec{margin:2px 0 14px}
.kc-sec .kc-bar{background:#B7791F}
.kc-g{display:flex;justify-content:center;flex-wrap:wrap;gap:22px 48px;padding:2px 8px 4px;align-items:stretch}
.kc-g .kz-c{flex:0 0 calc((100% - 60px)/3);max-width:140px;min-width:0}
.kc-sec .kp-hd{justify-content:center;text-align:center}
.kc-sec .kc-bar{display:none}
.kc-sec .kp-ht{align-items:center;text-align:center}
.kc-sec .kp-ht span{text-align:center!important}
.kc-g .kz-c{height:100%}
.kc-g .ka-cv.kz-cv{width:90%!important;margin:0 auto;aspect-ratio:11/17!important}
@media (max-width:400px){.kc-g .ka-cv.kz-cv{width:90%!important}}
.kc-cv{background:#FBF7EE!important}
.kc-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.kc-ph{font-size:12px;font-weight:700;letter-spacing:.02em;color:#B7791F;text-align:center;line-height:1.35;padding:0 10px}
.kc-g .kz-t{min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kc-g .kz-ub{margin-top:auto;width:100%}
.kc-g .kz-t[hidden]{display:none}


/* ==== dark-mode store+hub contrast (Nov 16): dark.css html.dark .ka b made the store-pill name cream-on-cream; teal #1F6B6B unreadable on #232820; light .ka-cap !important beat the old dark caption rule ==== */
html.dark .kz .kz-st2 .nm{color:#1A1A1A}
html.dark .kz .kt-bk,html.dark .kz .bk-buy{color:#7FC4C4;background:rgba(127,196,196,.12)}
html.dark .kz .bk-buy{border-color:rgba(127,196,196,.4)}
html.dark .ka-cap{color:#E9EBDF!important}
html.dark .kp-arch,html.dark .kp-arch *{color:#B5BCA9!important}
html.dark .kp-srch{color:#7FC4C4!important;background:rgba(127,196,196,.12)!important}
/* 2026-11-16 David: thin frame around Chanukah section + small Available now under the heading */
.kc-sec{border:1px solid rgba(183,121,31,.45);border-radius:14px;padding:12px 12px 14px}
.kc-av{color:#B7791F!important;font-weight:600}
/* Store Chanukah decoration: inset only the outer frame, keep its content geometry. */
.kc-sec{position:relative;border-color:transparent}.kc-sec::before{content:"";position:absolute;inset:0 16px;max-width:480px;margin:0 auto;border:1px solid rgba(183,121,31,.45);border-radius:14px;pointer-events:none}

/* Actual Hebrew Chanukah front cover: exact trim ratio, no added image padding. */
.kc-g .ka-cv.kz-cv.kc-real-cover{aspect-ratio:11/17!important}.kc-g .ka-cv.kz-cv.kc-real-cover img{padding:0!important;object-fit:contain!important;width:100%;height:100%;display:block}

/* Kuntres hub only: upper breathing room, unchanged covers, closer book rows. */
#page .kp{padding-top:clamp(8px,2.3vh,20px)}
#page .kp > .kp-sec > .kp-hd{padding-bottom:clamp(14px,3.5vh,30px)}
#page .kp .kp-g{row-gap:12px!important}
@media (max-height:500px){
  #page .kp{padding-top:8px}
  #page .kp > .kp-sec > .kp-hd{padding-bottom:14px}
}
