/* Category directory; deliberately scoped to keep magazine/list layouts intact. */
.category-overview { padding:38px 0 45px; background:#f4f7f8; color:#2d404c; }
.category-intro { display:flex; justify-content:space-between; align-items:center; gap:25px; margin-bottom:27px; }
.category-intro p { margin:0; color:#5e737f; font-size:15px; line-height:1.6; }
.category-intro .category-total { text-align:right; flex-shrink:0; font-size:12px; }
.category-total strong { display:block; color:#344e5e; font-size:17px; font-weight:600; margin-bottom:3px; }
.category-total span { display:block; }
.category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding:0; margin:0; list-style:none; }
.category-grid>li { padding:0; margin:0; min-width:0; }
.category-card { display:flex; flex-direction:column; height:100%; color:#2d404c; background:white; border:1px solid #dce5ea; border-radius:9px; overflow:hidden; transition:border-color .18s,box-shadow .18s; }
.category-card-copy { padding:21px 22px 0; }
.category-card h3 { margin:0 0 8px; color:#2d404c; font-size:20px; line-height:1.35; font-weight:600; }
.category-card p { margin:0; color:#637581; font-size:13px; line-height:1.65; min-height:43px; }
.category-covers { display:flex; gap:12px; align-items:flex-end; justify-content:center; height:124px; margin:14px 22px 0; overflow:hidden; background:linear-gradient(0deg,#f0f5f7,transparent 90%); border-radius:4px 4px 0 0; }
.category-covers img { display:block; width:70px; height:96px; object-fit:contain; object-position:bottom; filter:drop-shadow(0 2px 3px #18354c24); transform:translateY(6px); transition:transform .18s; }
.category-covers img:nth-child(2) { width:79px; height:108px; transform:translateY(2px); }
.category-card-bottom { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:14px 22px; margin-top:auto; border-top:1px solid #edf1f4; font-size:12px; color:#55717f; background:#fff; z-index:1; }
.category-card-bottom strong { color:#17698b; font-weight:700; }
.category-arrow { font-size:22px; line-height:1; color:#007fb1; transition:transform .18s; }
.category-card:hover { color:#2d404c; border-color:#85b5cc; box-shadow:0 5px 18px #1b4a6510; text-decoration:none; }
.category-card:hover .category-arrow { transform:translateX(3px); }
@media (min-width:601px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 .category-covers img { transform-origin:center bottom; transition:transform .3s cubic-bezier(.2,.7,.3,1),filter .3s ease-out; }
 .category-card:hover .category-covers img { filter:drop-shadow(0 5px 5px #18354c38); }
 .category-card:hover .category-covers img:first-child { transform:translate(-2px,-2px) rotate(-3deg); }
 .category-card:hover .category-covers img:nth-child(2) { transform:translateY(-8px); }
 .category-card:hover .category-covers img:nth-child(3) { transform:translate(2px,-2px) rotate(3deg); }
}
.category-alternatives { display:flex; align-items:center; justify-content:space-between; gap:25px; margin-top:32px; padding-top:28px; border-top:1px solid #dce5ea; }
.category-alternatives h2 { margin:0 0 7px; font-size:18px; font-weight:600; line-height:1.4; }
.category-alternatives p { margin:0; color:#637581; font-size:13px; line-height:1.6; }
.category-alternatives nav { display:flex; flex-wrap:wrap; gap:10px; }
.category-alternatives a { display:inline-flex; align-items:center; gap:12px; padding:10px 13px; border:1px solid #cfdee6; border-radius:5px; background:white; color:#096e98; font-size:12px; font-weight:600; }
.category-alternatives a:hover { background:#eaf3f7; }
@media(max-width:1199px) {
 .category-grid { gap:16px; }
 .category-card-copy { padding:18px 17px 0; }
 .category-card h3 { font-size:18px; }
 .category-card-bottom { padding:13px 17px; }
 .category-alternatives { align-items:flex-start; flex-direction:column; gap:17px; }
}
@media(max-width:991px) { .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .category-overview { padding-bottom:30px; }
 .category-intro { display:block; margin-bottom:20px; }
 .category-intro p { font-size:14px; }
 .category-intro .category-total { text-align:left; margin-top:12px; font-size:11px; display:flex; gap:8px; align-items:baseline; }
 .category-total strong { display:inline; font-size:12px; margin:0; }
 .category-total span { display:inline; }
 .category-total span::before { content:'·'; margin-right:8px; }
 .category-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
 .category-card { display:grid; grid-template-columns:minmax(0,1fr) 94px; border-radius:7px; }
 .category-card-copy { padding:17px 0 14px 16px; }
 .category-card h3 { font-size:17px; margin-bottom:6px; }
 .category-card p { font-size:12px; line-height:1.55; min-height:0; }
 .category-covers { align-self:center; height:90px; margin:12px 12px 12px 10px; position:relative; background:none; overflow:visible; }
 .category-covers img { position:absolute; right:0; bottom:0; width:51px; height:72px; transform:rotate(7deg); }
 .category-covers img:nth-child(2) { left:0; bottom:3px; width:55px; height:78px; transform:rotate(-6deg); }
 .category-covers img:nth-child(3) { display:none; }
 .category-card:hover .category-covers img { transform:rotate(7deg); }
 .category-card:hover .category-covers img:nth-child(2) { transform:rotate(-6deg); }
 .category-card-bottom { grid-column:1/-1; padding:10px 16px; font-size:11px; }
 .category-arrow { font-size:19px; }
 .category-alternatives { margin-top:25px; padding-top:22px; }
 .category-alternatives h2 { font-size:17px; }
 .category-alternatives nav { width:100%; gap:8px; }
 .category-alternatives a { flex:1 1 auto; justify-content:space-between; }
}
@media(prefers-reduced-motion:reduce) { .category-card,.category-covers img,.category-arrow { transition:none; } }

@media(max-width:767px) { .category-overview { padding-top:32px; } }
