/* News page. Add to your theme stylesheet (or enqueue as its own file). All classes start with "news". */
.news{
	--news-green:#25402f;
	--news-oak:#c98a3b;
	--news-bg:#fbfaf6;
	--news-line:#d9d3c4;
	--news-muted:#4a4d42;
	--news-tag:#6b4510;
	padding:40px 0 72px;
}
.news *{box-sizing:border-box}
.news a{text-decoration:none}

.news__layout{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start}
.news__main{flex:999 1 640px;min-width:0}
.news__sidebar{flex:1 1 280px;max-width:340px;min-width:0;display:flex;flex-direction:column;gap:24px}

/* Shared bits */
.news-tag{font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--news-tag)}
.news-tag:hover{text-decoration:underline}
.news-date{font-size:14px;color:var(--news-muted)}
.news-badge{padding:4px 10px;border-radius:3px;background:var(--news-green);color:#fff;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.news-more{font-weight:600;color:var(--news-green);text-decoration:underline!important;text-underline-offset:4px}
.news a:focus-visible,.news summary:focus-visible{outline:3px solid var(--news-oak);outline-offset:2px}

/* Image areas: hatched placeholder shows when a post has no featured image */
.news-featured__image,.news-card__image{display:block;overflow:hidden;background:repeating-linear-gradient(135deg,#e3decf 0 14px,#dad4c2 14px 28px)}
.news-featured__image img,.news-card__image img{display:block;width:100%;height:100%;object-fit:cover}

/* Featured */
.news-featured{display:flex;flex-wrap:wrap;overflow:hidden;border:1px solid var(--news-line);border-radius:6px;background:#fff;}
.news-featured__image{flex:1 1 320px;min-height:280px}
.news-featured__body{flex:1 1 320px;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:32px}
.news-featured__meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.news-featured__title{margin:0;font-size:32px;line-height:1.05;}
.news-featured__title a{color:inherit}
.news-featured__title a:hover{text-decoration:underline}
.news-featured__excerpt{margin:0;font-size:17px;line-height:1.5;color:var(--news-muted)}
.news-featured .news-more{align-self:flex-start}

/* Grid and cards */
.news__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(250px,100%),1fr));gap:24px;margin-top:32px}
.news-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--news-line);border-radius:6px;background:#fff;}
.news-card__image{height:150px}
.news-card__body{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px 18px 20px}
.news-card__title{margin:0;font-size:24px;line-height:1.1;}
.news-card__title a{color:inherit}
.news-card__excerpt{margin:0;font-size:16px;line-height:1.45;color:var(--news-muted)}
.news-card .news-date{margin-top:auto;padding-top:6px}

/* Sidebar: topics */
.news-topics{overflow:hidden;border:1px solid var(--news-line);border-top:5px solid #4db05b;border-radius:6px;background:#fff;}
.news-topics summary{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 20px;font-size:24px;font-weight:700;cursor:pointer;list-style:none}
.news-topics summary::-webkit-details-marker{display:none}
.news-topics summary::after{content:"";width:10px;height:10px;margin-left:12px;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg);transition:transform .15s}
.news-topics details[open] summary::after{transform:rotate(-135deg)}
.news-topics ul{margin:0;padding:0 15px 18px;list-style:none;}
.news-topics li{margin:0;padding:0}
.news-topics li a{display:flex;align-items:center;border-radius:4px;color:inherit;font-size:16px;font-weight:400}
.news-topics li a:hover{color:#4db05b;}
.news-topics li a[aria-current="page"]{color:#4db05b; font-weight:500}

/* Desktop: the list is always open, so the heading is not a button */
@media (min-width:900px){
	.news-topics summary{pointer-events:none;cursor:default}
	.news-topics summary::after{display:none}
}
/* Pagination */
.news-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:8px;clear:both;margin-top:40px}
.news-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;min-height:44px;margin:0;padding:0 14px;border:2px solid #25402f;border-radius:4px;background:transparent;color:var(--news-green);font-size:17px;font-weight:600;line-height:1;text-decoration:none}
.news-pagination .page-numbers::before,.news-pagination .page-numbers::after{content:none}
.news-pagination a.page-numbers:hover{background:#25402f2e;}
.news-pagination .page-numbers.current{background:#25402f;color:#fff}
.news-pagination .page-numbers.dots{min-width:0;padding:0 4px;border-color:transparent}

    /* Sidebar: call to action. Selectors are deliberately specific so theme heading/button styles don't override them. */
.news .news-cta{padding:24px;border-radius:6px;background:var(--news-green);color:#fff}
.news .news-cta .news-cta__title{margin:0;color:#fff;font-size:28px;line-height:1.1;}
.news .news-cta p{margin:8px 0 0;font-size:16px;line-height:1.5;color:#dde3d6}
.news .news-cta dl{margin:16px 0 0;font-size:16px;line-height:1.6;color:#fff}
.news .news-cta dl div{display:flex;justify-content:space-between;gap:12px}
.news .news-cta dt,.news .news-cta dd{margin:0;color:#fff}
.news .news-cta dd{font-weight:600}
.news .news-cta .news-cta__phone{display:block;margin-top:16px;color:#fff;font-size:15px;font-weight:600}
.news .news-cta .news-cta__btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:48px;margin:16px 0 0;padding:0 24px;border-radius:4px;background:#4db05b;color:#fff;font-size:17px;font-weight:600;text-decoration:none}
.news .news-cta .news-cta__btn:hover,.news .news-cta .news-cta__btn:focus{opacity: 0.7;}

@media (max-width:899px){
	.news{padding:20px 0 48px}
	.news__sidebar{order:-1;max-width:none;flex-basis:100%}
	.news-cta{display:none}
	.news-featured__title{font-size:32px}
}
