/* Category pages use the same centered site canvas and post cards as other archives. */
.hn-category-archive{padding-top:28px;padding-bottom:56px}
.hn-category-archive,body.category{background:var(--paper,#fff)!important;color:var(--ink,#17191d)}
.hn-category-archive-header{margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.hn-category-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px;color:var(--muted);font-size:11px}
.hn-category-breadcrumb a{color:var(--muted)}
.hn-category-archive-header h1{margin:0;font-family:var(--serif);font-size:clamp(30px,4vw,42px);line-height:1.12}
.hn-category-archive-description{max-width:820px;margin-top:10px;color:var(--muted);font-size:14px;line-height:1.65}
.hn-category-results-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.hn-category-results-grid .post-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #e0e6e1;border-radius:9px;background:linear-gradient(155deg,#fff 0%,#fbfcfb 62%,#f5f8f6 100%);box-shadow:0 2px 0 #d8e0da,0 8px 18px #0b3c2414,0 16px 28px #0b3c2408;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.hn-category-results-grid .post-card:hover{transform:translateY(-4px);border-color:#c9d8ce;box-shadow:0 4px 0 #d3ded6,0 14px 24px #0b3c2420,0 24px 36px #0b3c2410}
.hn-category-results-grid .post-card:focus-within{outline:3px solid color-mix(in srgb,var(--red) 32%,transparent);outline-offset:3px}
.hn-category-results-grid .post-thumb{flex:none;width:100%;margin:0;overflow:hidden;border-radius:8px 8px 0 0;background:#eef2ef}
.hn-category-results-grid .mini-cat{margin:14px 15px 0;color:var(--red);font-weight:800}
.hn-category-results-grid .post-card h3{margin:7px 15px 9px;font-size:19px;line-height:1.24}
.hn-category-results-grid .post-card p{display:block;margin:0 15px 10px;color:var(--muted);font-size:13px;line-height:1.55}
.hn-category-results-grid .post-card .meta{margin:0 15px 15px;color:var(--muted);font-size:11px}
.hn-category-results .pagination{margin-top:30px}
@media(max-width:900px){.hn-category-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.hn-category-archive{padding-top:22px;padding-bottom:40px}.hn-category-archive-header{margin-bottom:19px;padding-bottom:15px}.hn-category-archive-header h1{font-size:30px}.hn-category-archive-description{font-size:13px}.hn-category-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}.hn-category-results-grid .post-card h3{font-size:17px}.hn-category-results-grid .post-card p{font-size:12px}}
@media(max-width:420px){.hn-category-results-grid{grid-template-columns:minmax(0,1fr)}.hn-category-results-grid .post-card{display:grid;grid-template-columns:40% minmax(0,1fr);align-items:start;gap:0 12px;padding-bottom:12px}.hn-category-results-grid .post-thumb{grid-column:1;grid-row:1/5;height:100%;min-height:125px;aspect-ratio:auto;border-radius:8px 0 0 8px}.hn-category-results-grid .mini-cat{margin:10px 10px 0}.hn-category-results-grid .post-card h3{margin:5px 10px 7px;font-size:16px}.hn-category-results-grid .post-card p{display:none}.hn-category-results-grid .post-card .meta{margin:0 10px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.hn-category-results-grid .post-card{transition:none}}

/* Desktop category archive: balanced editorial cards with aligned actions. */
@media(min-width:681px){
	.hn-category-archive{width:min(calc(100% - 32px),1240px);max-width:1240px;margin-inline:auto;padding-top:34px}
	.hn-category-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:25px}
	.hn-category-results-grid .post-card{height:100%;overflow:visible;border:1px solid #dce8de;border-radius:15px;background:linear-gradient(155deg,#f1f8f2 0%,#fff 72%);box-shadow:0 3px 0 #dce6dd,0 10px 22px #173c2a12;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
	.hn-category-results-grid .post-card:nth-child(4n+2){background:linear-gradient(155deg,#fff8e9,#fff 72%);border-color:#eee0b9}
	.hn-category-results-grid .post-card:nth-child(4n+3){background:linear-gradient(155deg,#edf6f2,#fff 72%);border-color:#d1e5da}
	.hn-category-results-grid .post-card:nth-child(4n){background:linear-gradient(155deg,#f5f8eb,#fff 72%);border-color:#dce5c9}
	.hn-category-results-grid .post-card:hover{transform:translateY(-5px);border-color:#a9cbb2;box-shadow:0 5px 0 #d3e0d5,0 16px 28px #0b3c2420,0 26px 42px #0b3c2410}
	.hn-category-results-grid .post-thumb{aspect-ratio:16/10;border-radius:14px 14px 0 0}
	.hn-category-results-grid .post-thumb img{display:block;width:100%;height:100%;object-fit:cover}
	.hn-category-results-grid .mini-cat{align-self:flex-start;margin:15px 18px 0;padding:5px 9px;border-radius:999px;background:#e8f3ea;color:#087a3b;font-size:10px;letter-spacing:.05em;text-transform:uppercase}
	.hn-category-results-grid .post-card h3{display:-webkit-box;overflow:hidden;min-height:3em;margin:10px 18px 9px;font-size:20px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
	.hn-category-results-grid .post-card>p{display:-webkit-box;overflow:hidden;min-height:4.5em;margin:0 18px 12px;color:#66736a;font-size:13px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:3}
	.hn-category-results-grid .post-card .meta{margin:auto 18px 12px;color:#6c786f;font-size:11px}
	.hn-category-results-grid .hn-home-card-actions{margin:0 12px 13px}
}
@media(max-width:680px){.hn-category-results-grid .post-card{overflow:visible}.hn-category-results-grid .hn-home-card-actions{margin:9px 8px 0}}

/* Let category listings use the full viewport and size the grid to the available width. */
.hn-category-archive{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;padding-right:clamp(12px,2.2vw,32px)!important;padding-left:clamp(12px,2.2vw,32px)!important}
.hn-category-results{box-sizing:border-box;width:100%;min-width:0}
.hn-category-results-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;gap:clamp(12px,1.7vw,25px)!important}
.hn-category-results-grid .hn-home-card{min-width:0;width:100%;height:100%}
@media(max-width:560px){.hn-category-archive{padding-right:10px!important;padding-left:10px!important}.hn-category-results-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;gap:12px!important}}
