/* Wildly Wandering editorial category refresh – Part 6 */
body.ww-editorial-category .category-articles{max-width:1240px;margin:0 auto;padding:clamp(38px,5vw,76px) 22px 85px}
body.ww-editorial-category .category-articles .section-heading{margin-bottom:30px;text-align:left}
body.ww-editorial-category .category-articles .section-heading>p{color:#417251;letter-spacing:.16em;font-weight:800;font-size:12px;text-transform:uppercase}
body.ww-editorial-category .category-articles .section-heading h2{font-family:Georgia,serif;font-size:clamp(29px,3.5vw,49px);line-height:1.12;color:#183b2a;margin:8px 0 0}
body.ww-editorial-category .category-articles .article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;align-items:stretch}
body.ww-editorial-category .category-articles .article-card{min-width:0;display:flex;flex-direction:column;border:1px solid #e1e8df;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 5px 24px rgba(22,55,35,.055);transition:transform .2s,box-shadow .2s}
body.ww-editorial-category .category-articles .article-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(22,55,35,.12)}
body.ww-editorial-category .category-articles .article-image-link{display:block;overflow:hidden}
body.ww-editorial-category .category-articles .article-image{width:100%;aspect-ratio:1.55;overflow:hidden;background:#e6eee6}
body.ww-editorial-category .category-articles .article-image img{width:100%;height:100%;object-fit:cover;display:block}
body.ww-editorial-category .category-articles .article-content{padding:24px;display:flex;flex-direction:column;align-items:flex-start;flex:1;gap:0}
body.ww-editorial-category .category-articles .article-content>span:first-child{font-size:11px;letter-spacing:.11em;font-weight:800;text-transform:uppercase;color:#4b795b}
body.ww-editorial-category .category-articles .article-content h3{font-family:Georgia,serif;font-size:clamp(21px,2vw,28px);line-height:1.23;margin:10px 0 12px;color:#173b29}
body.ww-editorial-category .category-articles .article-content h3 a{color:inherit;text-decoration:none}
body.ww-editorial-category .category-articles .article-content>p{font-size:14px;line-height:1.7;color:#52635a;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
body.ww-editorial-category .category-articles .article-content>a:last-child{margin-top:auto;font-weight:800;font-size:13px;color:#286745;text-decoration:none}
@media(min-width:1050px){body.ww-editorial-category .category-articles .article-card:first-child{grid-column:span 2;display:grid;grid-template-columns:1.08fr 1fr}body.ww-editorial-category .category-articles .article-card:first-child .article-image-link,body.ww-editorial-category .category-articles .article-card:first-child .article-image{height:100%;min-height:310px;aspect-ratio:auto}body.ww-editorial-category .category-articles .article-card:first-child .article-content{justify-content:center;padding:34px}body.ww-editorial-category .category-articles .article-card:first-child h3{font-size:clamp(28px,3vw,39px)}}
@media(max-width:850px){body.ww-editorial-category .category-articles .article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:590px){body.ww-editorial-category .category-articles{padding:35px 16px 55px}body.ww-editorial-category .category-articles .article-grid{grid-template-columns:1fr;gap:18px}body.ww-editorial-category .category-articles .article-content{padding:20px}}

/* Phase 2: consistent magazine presentation across category and subcategory indexes */
body.ww-editorial-category{background:#e8f0e8;color:#193b2a}
body.ww-editorial-category main{overflow:clip}
body.ww-editorial-category .page-hero{max-width:1240px;margin:0 auto;padding:46px 22px 38px;text-align:center}
body.ww-editorial-category .page-hero .section-label{font-size:12px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#356d4c}
body.ww-editorial-category .page-hero h1{font-size:clamp(38px,5vw,70px);line-height:1.08;margin:12px 0 20px}
body.ww-editorial-category .page-hero>p:last-child{max-width:760px;margin:0 auto;line-height:1.65}
body.ww-editorial-category .category-articles{background:#fff;border-radius:16px;margin:0 auto 64px;padding:clamp(28px,4vw,55px)}
body.ww-editorial-category .category-articles .article-card{height:100%}
body.ww-editorial-category .category-articles .article-card img{transition:transform .3s ease}
body.ww-editorial-category .category-articles .article-card:hover img{transform:scale(1.035)}
body.ww-editorial-category .category-articles .article-content h3{overflow-wrap:anywhere}
@media(max-width:650px){body.ww-editorial-category .page-hero{padding:30px 18px}body.ww-editorial-category .category-articles{border-radius:0;margin-bottom:38px;padding:28px 18px 45px}body.ww-editorial-category .category-articles .article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.ww-editorial-category .category-articles .article-content{padding:14px}body.ww-editorial-category .category-articles .article-content h3{font-size:19px}body.ww-editorial-category .category-articles .article-content>p{font-size:13px;-webkit-line-clamp:3}body.ww-editorial-category .category-articles .article-image{aspect-ratio:1.1}}
@media(max-width:370px){body.ww-editorial-category .category-articles .article-grid{grid-template-columns:1fr}}

/* Repair: match actual category-specific hero markup */
body.ww-editorial-category main > section[class$="-hero"]{position:relative;overflow:hidden;background:#163e30}
body.ww-editorial-category main > section[class$="-hero"] > div[class$="-hero-image"]{position:absolute;inset:0;z-index:0}
body.ww-editorial-category main > section[class$="-hero"] > div[class$="-hero-image"] img{width:100%;height:100%;object-fit:cover;filter:brightness(.54)}
body.ww-editorial-category main > section[class$="-hero"] > div[class$="-hero-content"]{position:relative;z-index:1;max-width:1180px;margin:auto;padding:88px 28px;color:#fff}
body.ww-editorial-category main > section[class$="-hero"] > div[class$="-hero-content"] h1{font-family:Georgia,serif;font-size:clamp(44px,6vw,82px);color:#fff;line-height:1.05}
body.ww-editorial-category main > section[class$="-hero"] > div[class$="-hero-content"] p{color:#fff;max-width:690px}
@media(max-width:650px){body.ww-editorial-category main > section[class$="-hero"] > div[class$="-hero-content"]{padding:62px 20px}}

/* 2026-10-25 consistent editorial cards: never enlarge first article */
body.ww-editorial-category .category-articles .article-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:22px!important}
body.ww-editorial-category .category-articles .article-grid>.article-card,
body.ww-editorial-category .category-articles .article-grid>.article-card:first-child{grid-column:auto!important;grid-row:auto!important;display:flex!important;flex-direction:column!important;min-width:0!important;width:auto!important;height:100%!important}
body.ww-editorial-category .category-articles .article-card .article-image-link,
body.ww-editorial-category .category-articles .article-card:first-child .article-image-link{height:auto!important;min-height:0!important;aspect-ratio:1.55!important;overflow:hidden!important}
body.ww-editorial-category .category-articles .article-card .article-image,
body.ww-editorial-category .category-articles .article-card:first-child .article-image{width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important}
body.ww-editorial-category .category-articles .article-card .article-image img{display:block;width:100%!important;height:100%!important;object-fit:cover!important}
body.ww-editorial-category .category-articles .article-card .article-content,
body.ww-editorial-category .category-articles .article-card:first-child .article-content{display:flex!important;flex:1!important;flex-direction:column!important;justify-content:flex-start!important;padding:22px!important;min-width:0!important}
body.ww-editorial-category .category-articles .article-card h3,
body.ww-editorial-category .category-articles .article-card:first-child h3{font-size:clamp(21px,2.2vw,27px)!important;line-height:1.2!important}
body.ww-editorial-category .category-articles .article-card .article-content>a:last-child{margin-top:auto!important}
@media(max-width:950px){body.ww-editorial-category .category-articles .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body.ww-editorial-category .category-articles .article-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}}


/* 2026-10-25 — consistent Blog category cards (all categories/subcategories). */
body .category-articles .article-grid,
body.ww-editorial-category .category-articles .article-grid,
body:has(>main>.page-hero>.section-label) .category-articles .article-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:22px!important;align-items:stretch!important;
}
body .category-articles .article-grid>.article-card,
body .category-articles .article-grid>.article-card:first-child,
body.ww-editorial-category .category-articles .article-grid>.article-card:first-child{
 grid-column:auto!important;grid-row:auto!important;display:flex!important;
 flex-direction:column!important;grid-template-columns:none!important;
 width:100%!important;min-width:0!important;max-width:none!important;
 height:100%!important;box-sizing:border-box!important;overflow:hidden!important;
}
body .category-articles .article-grid>.article-card .article-image-link,
body .category-articles .article-grid>.article-card:first-child .article-image-link{
 display:block!important;width:100%!important;height:auto!important;min-height:0!important;
 aspect-ratio: 3 / 2!important;overflow:hidden!important;flex:none!important;
}
body .category-articles .article-grid>.article-card .article-image,
body .category-articles .article-grid>.article-card:first-child .article-image{
 display:block!important;width:100%!important;height:100%!important;
 min-height:0!important;aspect-ratio:auto!important;
}
body .category-articles .article-grid>.article-card .article-image img{
 display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;
}
body .category-articles .article-grid>.article-card .article-content,
body .category-articles .article-grid>.article-card:first-child .article-content{
 display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
 justify-content:flex-start!important;min-width:0!important;padding:22px!important;
}
body .category-articles .article-grid>.article-card h3,
body .category-articles .article-grid>.article-card:first-child h3{
 font-size:clamp(20px,2vw,27px)!important;line-height:1.22!important;
 overflow-wrap:break-word!important;
}
body .category-articles .article-grid>.article-card .article-content>p{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:4!important;line-clamp:4!important;overflow:hidden!important;
}
body .category-articles .article-grid>.article-card .article-content>a:last-child{margin-top:auto!important}
@media(max-width:950px){
 body .category-articles .article-grid,body.ww-editorial-category .category-articles .article-grid,
 body:has(>main>.page-hero>.section-label) .category-articles .article-grid{
 grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
 body .category-articles .article-grid,body.ww-editorial-category .category-articles .article-grid,
 body:has(>main>.page-hero>.section-label) .category-articles .article-grid{
 grid-template-columns:minmax(0,1fr)!important}
}

/* Uniform blog category grids (published category/subcategory templates) */
body .category-articles .article-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;align-items:stretch!important;}
body .category-articles .article-grid>.article-card,body .category-articles .article-grid>.article-card:first-child{grid-column:auto!important;grid-row:auto!important;display:flex!important;flex-direction:column!important;grid-template-columns:none!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;min-width:0!important;overflow:hidden!important;}
body .category-articles .article-grid>.article-card>.article-image-link,body .category-articles .article-grid>.article-card:first-child>.article-image-link{display:block!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:3/2!important;}
body .category-articles .article-grid>.article-card .article-image{display:block!important;width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important;}
body .category-articles .article-grid>.article-card .article-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;}
body .category-articles .article-grid>.article-card>.article-content{display:flex!important;flex:1!important;flex-direction:column!important;min-width:0!important;padding:20px!important;justify-content:flex-start!important;}
body .category-articles .article-grid>.article-card h3{font-size:clamp(20px,2vw,26px)!important;line-height:1.22!important;overflow-wrap:break-word!important;}
body .category-articles .article-grid>.article-card .article-content>p{display:-webkit-box!important;-webkit-line-clamp:4!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
body .category-articles .article-grid>.article-card .article-content>a:last-child{margin-top:auto!important;}
@media(max-width:950px){body .category-articles .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:620px){body .category-articles .article-grid{grid-template-columns:minmax(0,1fr)!important;}}
