/* Six lotus categories and bounded image work in scrollable lists. */
#home>.category-back{align-self:flex-start;flex:none;min-height:28px;padding:3px 0;color:#34775e}
#home>.category-back[hidden]{display:none}
#topics[data-layout=categories]{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(145px,1fr));grid-auto-rows:auto;align-content:stretch;max-width:900px;max-height:610px;width:100%;margin:auto;gap:14px;overscroll-behavior:contain;touch-action:pan-y}
.category-card{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-width:0;min-height:0;padding:12px;border:1px solid #e3ebe1;border-bottom:3px solid #d6e3ce;border-radius:20px;background:#fff;color:#2d4d3d;box-shadow:none}
.category-card:hover{background:#f7faf4;border-color:#aac99a}
.category-card:active{background:#eff7e8}
.category-card img{display:block;width:112px;height:112px;max-width:80%;object-fit:contain;pointer-events:none;user-select:none}
.category-card strong{font-size:17px;font-weight:750;line-height:1.25;text-align:center}
.category-card small{font-size:11px;color:#72816c}
#topics[data-layout=topics]{align-content:start;grid-auto-rows:140px}
.topic-card img{mix-blend-mode:normal;pointer-events:none;user-select:none}
#topics,.catalogue-grid{overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;overflow-anchor:none}
.catalogue-card{contain:layout paint style}
.catalogue-card img{display:block;aspect-ratio:4/3;min-height:0}
@media(max-width:800px){#topics[data-layout=categories]{gap:9px}.category-card img{width:93px;height:93px}.category-card strong{font-size:15px}}
@media(max-width:600px){#topics[data-layout=categories]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(105px,1fr));max-height:none;gap:9px}.category-card{border-radius:16px;padding:7px;gap:4px}.category-card img{width:83px;height:83px}.category-card strong{font-size:14px}.category-card small{font-size:10px}#topics[data-layout=topics]{grid-auto-rows:125px}}
@media(max-width:380px){.category-card img{width:71px;height:71px}.category-card strong{font-size:13px}}
@media(max-width:380px) and (max-height:600px){.category-card img{width:64px;height:56px}.category-card small{display:none}}
@media(max-height:420px){#topics[data-layout=categories]{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(75px,1fr));gap:7px;max-height:none}.category-card{padding:4px;gap:2px}.category-card img{width:45px;height:45px}.category-card strong{font-size:12px}.category-card small{font-size:9px}}
