.category-page{padding-top:28px;padding-bottom:64px;min-height:55vh;}
.category-breadcrumb{display:flex;gap:12px;font-size:.7rem;color:var(--ink-2);margin-bottom:20px;}
.category-breadcrumb a:hover{color:var(--maroon);}
.category-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:24px;border-bottom:2px solid var(--ink);margin-bottom:28px;}
.category-header h1{font-family:var(--font-display);font-size:clamp(2rem,4vw,3.4rem);line-height:1.2;letter-spacing:-.025em;}
.category-header p{color:var(--ink-2);font-size:.9rem;margin-top:12px;}
#categoryCount{white-space:nowrap;color:var(--ink-3);font-size:.75rem;}
#categoryStatus:not(:empty){padding:35px 0;line-height:1.8;color:var(--ink-2);}
.category-top{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:30px;}
.category-top:has(>.category-lead:only-child){grid-template-columns:1fr;max-width:900px;}
.category-story{min-width:0;}
.category-photo{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#C3A6A0,#E84F23);overflow:hidden;}
.category-photo img{width:100%;height:100%;object-fit:cover;}
.category-placeholder{height:100%;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:2.6rem;letter-spacing:.1em;color:#F7F1F080;}
.category-story__copy{padding-top:16px;}
.category-tag{font-size:.63rem;color:var(--maroon);letter-spacing:.1em;text-transform:uppercase;font-weight:700;margin-bottom:10px;}
.category-story h2{font-family:var(--font-display);font-size:1.3rem;line-height:1.35;}
.category-story h2 a:hover{color:var(--maroon);}
.category-lead h2{font-size:clamp(1.6rem,2.7vw,2.35rem);line-height:1.25;}
.category-dek{font-family:var(--font-display);color:var(--ink-2);line-height:1.65;margin-top:12px;font-size:1rem;}
.category-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:.65rem;color:var(--ink-3);margin-top:15px;}
.category-top__side{display:grid;gap:24px;align-content:start;border-left:1px solid var(--border);padding-left:28px;}
.category-secondary .category-photo{aspect-ratio:2.2;}
.category-secondary .category-dek{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.category-more{margin-top:40px;}
.category-more__heading{border-top:2px solid var(--ink);padding-top:20px;margin-bottom:24px;font-family:var(--font-display);font-size:1.6rem;}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 26px;}
.category-card{border-bottom:1px solid var(--border);padding-bottom:25px;}
.category-pagination{display:flex;gap:25px;justify-content:center;align-items:center;margin-top:40px;font-size:.8rem;}
.category-pagination a{border:1px solid var(--border-strong);padding:10px 18px;color:var(--maroon);}
.category-pagination a:hover{background:var(--bg-muted);}
@media(max-width:820px){.category-top{grid-template-columns:1fr;}.category-top__side{grid-template-columns:1fr 1fr;border:0;padding:0;}.category-grid{grid-template-columns:1fr 1fr;}.category-header{align-items:flex-start;flex-direction:column;gap:12px;}.category-story h2{font-size:1.15rem;}.category-lead h2{font-size:1.75rem;}}
@media(max-width:480px){.category-top__side,.category-grid{grid-template-columns:1fr;}.category-secondary .category-photo{aspect-ratio:16/9;}.category-pagination{gap:12px;font-size:.7rem;}.category-pagination a{padding:8px 12px;}}

/* ===== Poster-card style: Series / Columns / Specials (thewire.in "Special series" page) ===== */
html.category-poster .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:34px;}
html.category-poster .category-story{display:flex;align-items:center;gap:22px;min-width:0;padding:26px 26px 26px 0;margin-left:0;border-bottom:0;}
html.category-poster .category-grid .category-story:not(:nth-child(3n+1)){padding-left:26px;border-left:1px solid var(--border-strong);}
html.category-poster .category-photo{flex:0 0 170px;width:170px;aspect-ratio:5/7;box-shadow:0 2px 8px rgba(0,0,0,.18);}
html.category-poster .category-story__copy{padding-top:0;flex:1;min-width:0;}
html.category-poster .category-tag{color:#E84F23;font-family:"Mukta",sans-serif;font-size:.85rem;letter-spacing:.02em;margin-bottom:8px;}
html.category-poster .category-story h2{font-family:"Eczar",Georgia,serif;font-size:1.35rem;font-weight:800;line-height:1.22;padding-bottom:10px;border-bottom:1px solid var(--border-strong);}
html.category-poster .category-byline{font-style:italic;color:var(--ink-2);font-size:.8rem;margin-top:8px;}
html.category-poster .category-dek{font-family:"Eczar",Georgia,serif;color:var(--ink-3);font-size:.92rem;line-height:1.5;margin-top:10px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}
@media(max-width:1000px){html.category-poster .category-grid{grid-template-columns:1fr 1fr;}html.category-poster .category-grid .category-story{padding:22px 22px 22px 0;border-left:0;}html.category-poster .category-grid .category-story:nth-child(2n){padding-left:22px;border-left:1px solid var(--border-strong);}}
@media(max-width:600px){html.category-poster .category-grid{grid-template-columns:1fr;}html.category-poster .category-grid .category-story,html.category-poster .category-grid .category-story:nth-child(2n){padding:20px 0;border-left:0;border-bottom:1px solid var(--border-strong);}html.category-poster .category-photo{flex-basis:110px;width:110px;}}

.category-subnav{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:-10px 0 26px;}
.category-subnav[hidden]{display:none;}
.category-subnav__label{font-weight:700;color:var(--ink-2);font-size:.85rem;margin-right:4px;}
.category-subnav a{border:1px solid var(--border-strong);background:var(--bg-raised,#fff);padding:8px 16px;border-radius:999px;font-weight:700;font-size:.88rem;color:var(--ink);}
.category-subnav a:hover{background:var(--maroon);border-color:var(--maroon);color:#fff;}

/* cover cards of श्रृंखला / स्तंभ: photo + the first part of the text, no "read more" */
.category-excerpt{display:-webkit-box!important;-webkit-line-clamp:10;-webkit-box-orient:vertical;overflow:hidden;}

/* event posters (आगामी कार्यक्रम): the whole picture is shown at its own shape, nothing is cut off */
html.category-posters .category-photo{aspect-ratio:auto;background:transparent;overflow:visible;}
html.category-posters .category-photo img{width:100%;height:auto;object-fit:contain;display:block;}

/* the same two alternating colours (set in the admin) for the story cards of a category page */
html:not(.category-poster):not(.rows-plain) .category-grid .category-story{background:var(--row-a,#fff);padding:12px;}
html:not(.category-poster):not(.rows-plain) .category-grid .category-story:nth-child(even){background:var(--row-b,#F7EFE4);}

/* the main text entered for a series / column is shown in full on its first-page card */
.category-excerpt.category-excerpt--main{-webkit-line-clamp:12;}

/* sub-categories (उप-श्रेणियाँ) of श्रृंखला / स्तम्भ: one tidy row of equal chips that scrolls sideways */
.category-subnav{flex-wrap:nowrap;overflow-x:auto;gap:10px;padding:2px 2px 10px;margin:-10px 0 20px;scrollbar-width:thin;scrollbar-color:#C7BFA6 transparent;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;}
.category-subnav::-webkit-scrollbar{height:6px;}
.category-subnav::-webkit-scrollbar-thumb{background:#C7BFA6;border-radius:3px;}
.category-subnav>*{flex:none;}
.category-subnav__label{white-space:nowrap;}
.category-subnav a{white-space:nowrap;font-size:.86rem;line-height:1.2;padding:8px 15px;}

/* summaries under a title: about 5 lines */
.category-excerpt,.category-dek{-webkit-line-clamp:5!important;}

/* sub-category cards (श्रृंखला / स्तम्भ / विशेष): the photo is shown whole, at its own shape */
html.category-poster .category-photo{aspect-ratio:auto;background:transparent;box-shadow:none;}
html.category-poster .category-photo img{width:100%;height:auto;object-fit:contain;display:block;}
html.category-poster .category-placeholder{aspect-ratio:5/7;}
