
.jhcat{margin:6px 0 40px}
.jhcat-h{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 18px;flex-wrap:wrap}
.jhcat-h h2{margin:0;font-family:var(--jhcat-f,inherit);font-size:clamp(1.5rem,2.6vw,2.1rem)!important;line-height:1.15;color:#1d2a24}
.jhcat-h p{margin:4px 0 0;color:#5d665f;font-size:1rem!important}
.jhcat-h span{font-size:.78rem!important;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#7b6f5c}
.jhcat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.jhcat-t{position:relative;display:flex;flex-direction:column;background:#fff;border-radius:22px;overflow:hidden;text-decoration:none!important;color:#1d2a24!important;box-shadow:0 1px 0 rgba(0,0,0,.04),0 10px 28px rgba(40,30,10,.08);border:2px solid transparent;transition:transform .25s,box-shadow .25s,border-color .25s}
.jhcat-t:hover,.jhcat-t:focus-visible{transform:translateY(-4px);box-shadow:0 18px 40px rgba(40,30,10,.14);border-color:var(--a)}
.jhcat-art{position:relative;height:190px;background:var(--bg);overflow:hidden}
.jhcat-art img{position:absolute;bottom:-18px;width:38%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;box-shadow:0 10px 24px rgba(0,0,0,.22);border:3px solid #fff;background:#fff}
.jhcat-art img:nth-child(1){left:31%;z-index:3;bottom:-8px;width:40%}
.jhcat-art img:nth-child(2){left:6%;transform:rotate(-8deg);z-index:2}
.jhcat-art img:nth-child(3){right:6%;transform:rotate(8deg);z-index:1}
.jhcat-t.one .jhcat-art img:nth-child(1){left:30%}
.jhcat-t.wide .jhcat-art img{aspect-ratio:16/10;width:62%}
.jhcat-t.wide .jhcat-art img:nth-child(1){left:19%;width:64%}
.jhcat-t.wide .jhcat-art img:nth-child(2){left:-6%}.jhcat-t.wide .jhcat-art img:nth-child(3){right:-6%}
.jhcat-b{display:flex;flex-direction:column;gap:6px;padding:18px 20px 20px}
.jhcat-b b{font-family:var(--jhcat-f,inherit);font-size:1.3rem!important;line-height:1.2}
.jhcat-b em{font-style:normal;color:#5d665f;font-size:.95rem!important;line-height:1.45}
.jhcat-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
.jhcat-c{font-size:.78rem!important;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--a)}
.jhcat-go{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--a);color:#fff;font-size:1.1rem!important;transition:transform .25s}
.jhcat-t:hover .jhcat-go{transform:translateX(4px)}
.jhcat-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;padding:9px 18px;border-radius:99px;border:1.5px solid #d8cfbf;background:#fff;color:#1d2a24;font-weight:700;font-size:.95rem;cursor:pointer}
.jhcat-back:hover{border-color:#1d2a24}
html.jhcat-ready .wrap > section.grp{display:none}
html.jhcat-ready .wrap > section.grp.jhcat-open{display:block}
html.jhcat-ready .gnav{display:none!important}
.jhcat-open .rv,.jhcat-open .sc{opacity:1!important;transform:none!important}
.jhcat-hide{display:none!important}
/* per-category ZIP */
.jhcat-pack{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:-4px 0 22px;padding:12px 16px;border-radius:16px;background:#fff;border:1.5px dashed #d8cfbf}
.jhcat-pack span{flex:1 1 220px;font-size:.98rem!important;color:#3a4540}.jhcat-pack span b{color:#1d2a24}
.jhcat-pack a{display:inline-flex;align-items:center;gap:7px;padding:9px 18px;border-radius:99px;background:var(--a,#1f6b4a);color:#fff!important;font-weight:700;font-size:.92rem!important;text-decoration:none!important}
.jhcat-pack a.l{background:none;color:#1d2a24!important;padding:9px 4px;text-decoration:underline!important;font-weight:600}
.jhcat-pack svg{width:16px;height:16px}
/* compact shelf hero so the categories show without scrolling */
.shelf-hero-grid{padding-top:30px!important;padding-bottom:44px!important;align-items:center}
.shelf-h1{font-size:clamp(34px,4.2vw,54px)!important;line-height:1.05!important}
.shelf-lede{font-size:17px!important}
.shelf-eyebrow{margin-bottom:6px!important}
.lib-search{margin-top:18px!important}
.jhls-pops{max-height:44px;overflow:hidden}
.shelf-art{height:250px!important}
.shelf-art .fan{transform:scale(.74);transform-origin:center center}
@media(max-width:980px){.jhcat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.shelf-hero-grid{padding-top:18px!important;padding-bottom:20px!important}.shelf-art{display:none!important}.shelf-lede{display:none!important}.shelf-eyebrow{flex-wrap:wrap}.jhls-pops{display:none!important}.shelf-h1{font-size:34px!important}}
@media(max-width:560px){.jhcat-grid{grid-template-columns:repeat(2,1fr);gap:12px}.jhcat-art{height:120px}.jhcat-b{padding:12px 12px 14px}.jhcat-b b{font-size:1.02rem!important}.jhcat-b em{display:none}.jhcat-go{width:30px;height:30px}.jhcat-h p{font-size:.92rem!important}}
/* v1.3 Islamic Rulings topics */
.jhr-topics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:4px 0 8px}
.jhr-tc{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:18px;background:#fff;border:1.5px solid #e6dcc4;text-decoration:none!important;color:#1d2a24!important;transition:transform .2s,border-color .2s,box-shadow .2s}
.jhr-tc:hover,.jhr-tc:focus-visible{transform:translateY(-3px);border-color:#b08a3e;box-shadow:0 12px 28px rgba(40,30,10,.1)}
.jhr-ic{flex:none;width:48px;height:48px;border-radius:14px;background:#1B4332;color:#E7C87A;display:grid;place-items:center}
.jhr-ic svg{width:26px;height:26px}
.jhr-tb{display:flex;flex-direction:column;gap:4px;min-width:0}
.jhr-tb b{font-family:var(--jhcat-f,inherit);font-size:1.22rem!important;line-height:1.2}
.jhr-tb em{font-style:normal;color:#5d665f;font-size:.92rem!important;line-height:1.45}
.jhr-n{font-size:.76rem!important;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#b08a3e;margin-top:2px}
.g-rules .jhr-sec{display:none}
.g-rules.jhr-in .jhr-topics{display:none}
.g-rules.jhr-in .jhr-sec.on{display:block}
.jhr-sh{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 16px}
.jhr-sh h3{margin:0;font-family:var(--jhcat-f,inherit);font-size:clamp(1.3rem,2.2vw,1.7rem)!important;color:#1d2a24}
.jhr-back{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:99px;border:1.5px solid #d8cfbf;background:#fff;color:#1d2a24;font-weight:700;font-size:.9rem;cursor:pointer}
.jhr-back:hover{border-color:#1d2a24}
/* tool cards inside a topic */
.jhr-tool{display:flex;flex-direction:column;gap:8px;padding:22px;border-radius:18px;background:#1B4332;color:#eef3ef!important;text-decoration:none!important;min-height:220px;transition:transform .2s}
.jhr-tool:hover{transform:translateY(-3px)}
.jhr-tl{align-self:flex-start;font-size:.72rem!important;letter-spacing:.14em;text-transform:uppercase;font-weight:700;color:#1B4332;background:#E7C87A;padding:4px 10px;border-radius:99px}
.jhr-tool b{font-family:var(--jhcat-f,inherit);font-size:1.4rem!important;color:#fff;line-height:1.2}
.jhr-tool em{font-style:normal;font-size:.95rem!important;line-height:1.5;color:#dfe7e1}
.jhr-go{margin-top:auto;font-weight:700;color:#E7C87A}
@media(max-width:980px){.jhr-topics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.jhr-topics{grid-template-columns:1fr;gap:10px}.jhr-tc{padding:14px}.jhr-ic{width:42px;height:42px}.jhr-tb em{display:block}}
