/* Immersive editorial glass treatment for the category hub. */
.categories-page{position:relative;isolation:isolate;min-height:100svh;overflow-x:hidden;background:#0a3035}
.categories-backdrop{position:fixed;inset:-2%;z-index:-2;pointer-events:none;background:linear-gradient(180deg,#082f3b38 0%,#0a353c4d 50%,#082d34b8 100%),url('/assets/hendijan-home-boat.webp') center 56%/cover no-repeat;transform:scale(1.02)}
.categories-page::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 18% 10%,#f8d8a423,transparent 42%),linear-gradient(90deg,#082a3280,transparent 38%,#082a3238 72%,#082a3270)}
.categories-page .discover{width:min(1280px,calc(100% - 64px));max-width:none;min-height:calc(100svh - 64px);margin:32px auto;padding:clamp(28px,4vw,58px) clamp(24px,5vw,72px) 0;border:1px solid #f4e4c779;border-radius:30px;background:linear-gradient(135deg,#f5f4ed36 0%,#d8ecea1d 38%,#e9dfcc2b 100%);box-shadow:0 28px 90px #031c2470,inset 0 1px 0 #fff9e7a3,inset 0 -1px 0 #d5ded648;color:#f7efdc;backdrop-filter:blur(26px) saturate(135%);-webkit-backdrop-filter:blur(26px) saturate(135%)}
.categories-page .discover::before{content:"";position:absolute;inset:1px;border-radius:29px;pointer-events:none;background:linear-gradient(112deg,#fff5df42 0%,transparent 17%,transparent 66%,#e6fbf21c 100%);mask:linear-gradient(#000,transparent 42%);}
.categories-page .section-top{position:relative;margin-bottom:clamp(34px,5vh,62px);padding-bottom:20px;border-color:#fff0d64a;color:#f1e7d4}
.categories-page .section-top [lang=en]{color:#f4e6cf;font-size:10px;letter-spacing:2.4px}
.categories-page .return-home{color:#ffdfac}
.categories-page .section-kicker{color:#ffe0a8}
.categories-page :is(h1,h2){text-shadow:0 3px 25px #072a3380}
.categories-page h1[id="discover-title"]{font-size:clamp(34px,5.4vw,66px);line-height:1.45;letter-spacing:-.025em;margin:12px 0 8px}
.categories-page .section-description{max-width:680px;color:#f3ecde;font-size:clamp(14px,1.4vw,17px);margin:0 0 clamp(24px,4vh,42px)}
.categories-page footer{border-color:#fff0d64a;color:#f0e7d5}
@media(max-width:760px){.categories-backdrop{background-position:57% center}.categories-page .discover{width:calc(100% - 28px);min-height:calc(100svh - 28px);margin:14px auto;padding:26px 20px 0;border-radius:24px;backdrop-filter:blur(21px) saturate(130%);-webkit-backdrop-filter:blur(21px) saturate(130%)}.categories-page .discover::before{border-radius:23px}.categories-page .section-top{margin-bottom:35px}}
@media(max-width:480px){.categories-page .discover{width:calc(100% - 20px);margin:10px auto;padding:22px 16px 0;border-radius:21px}.categories-page .discover::before{border-radius:20px}.categories-page .section-top{gap:10px;margin-bottom:30px}.categories-page .section-top [lang=en]{max-width:145px;text-align:left;font-size:8px;letter-spacing:1.1px}.categories-page h1[id="discover-title"]{font-size:clamp(32px,9.5vw,43px);line-height:1.5}.categories-page .section-description{font-size:13px;margin-bottom:23px}.categories-page .chapters{gap:12px}.categories-page footer{line-height:2}}

/* Uniform frames show every source pixel. The inset keeps artwork clear of
   rounded corners; contain preserves baked-in text without cropping or stretching. */
.categories-page .chapters{position:relative;display:grid;direction:rtl;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:18px}
.categories-page .chapter{position:relative;display:block;min-width:0;min-height:0;padding:8px;overflow:hidden;isolation:isolate;border:1px solid #fff1d659;border-radius:20px;background:#103f43;box-shadow:0 8px 24px #031c2440;backdrop-filter:none;-webkit-backdrop-filter:none;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.categories-page .chapter::before,.categories-page .chapter::after{content:none}
.categories-page .chapter img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:8/5;object-fit:contain;object-position:center;transition:filter .4s ease}
.categories-page .chapter .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.categories-page .chapter:focus-visible{outline:3px solid #ffe0a8;outline-offset:4px}
@media(hover:hover) and (pointer:fine){
 .categories-page .chapter:hover{transform:translateY(-3px);border-color:#ffdfa5c7;background:#103f43;box-shadow:0 14px 30px #031c2466}
 .categories-page .chapter:hover img{filter:brightness(1.06)}
}
@media(max-width:1023px){.categories-page .chapters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:639px){.categories-page .chapters{grid-template-columns:1fr;gap:16px}}
@media(prefers-reduced-motion:reduce){.categories-page .chapter,.categories-page .chapter img{transition:none}.categories-page .chapter:hover{transform:none}}
