/* =====================================================================
   [ab_news_all]: the All News page. Three news cards fit
   across the page frame.
   ===================================================================== */
/* Width: uses the same 1080px frame as every other page (theme sections.css, part 22). */
body.ab .page-content > .ab-newsall {
	max-width: calc(var(--ab-container, 1240px) - 80px + 2 * var(--ab-gutter, 40px));
	box-sizing: border-box;
	padding-inline: 0;
	margin-top: clamp(28px, 4vw, 40px);
	margin-bottom: clamp(48px, 6vw, 72px);
}

/* Search */
.ab-newsall__bar { margin: 0 0 24px; max-width: 520px; }
.ab-newsall__bar[hidden] { display: none; }
.ab-newsall__label { display: block; margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.ab-newsall__bar input {
	width: 100%;
	min-height: 50px;
	box-sizing: border-box;
	padding: 10px 16px 10px 44px;
	border: 1px solid var(--ab-field-border, #C9D2C6);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23274B47' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 16px 50% / 18px no-repeat;
	font: inherit;
	font-size: 17px;
}
.ab-newsall__bar input:focus-visible { outline: none; border-color: var(--ab-orange-dark, #C25700); box-shadow: var(--ab-focus-ring, 0 0 0 2px #C25700, 0 0 0 6px rgba(255,115,0,.2)); }
.ab-newsall__status { margin: 8px 0 0; font-size: 15px; color: var(--ab-muted, #4A5856); }
.ab-newsall__status:empty { display: none; }

/* Cards: same as the homepage news cards, in a grid */
.ab-newsall__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 20px;
}
.ab-newsall__item { display: flex; margin: 0; }
.ab-newsall__item[hidden] { display: none; }
.ab-newsall .ab-news { border-radius: 6px; border-color: var(--ab-sage-border, #D3DBCB); box-shadow: var(--ab-shadow-soft); }
.ab-newsall h2.ab-news__title { font-size: clamp(18px, 2vw, 20px); }

/* Show more */
.ab-newsall__more { margin: 32px 0 0; text-align: center; }
.ab-newsall__more[hidden], .ab-newsall__none[hidden] { display: none; }
.ab-newsall__btn {
	min-height: 50px;
	padding: 10px 30px;
	border: 2px solid var(--ab-teal, #274B47);
	border-radius: 999px;
	background: #fff;
	color: var(--ab-teal, #274B47);
	font-family: var(--ab-font-heading, Poppins, sans-serif);
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: background-color .3s ease;
}
.ab-newsall__btn:hover { background: var(--ab-sage, #E7EDE0); }
.ab-newsall__btn:focus-visible { outline: none; box-shadow: var(--ab-focus-ring, 0 0 0 2px #C25700, 0 0 0 6px rgba(255,115,0,.2)); }
.ab-newsall__none { font-size: 18px; color: var(--ab-muted, #4A5856); }
/* Before the script runs, only the first ten show (no jump on load) */
.ab-newsall__item[data-later] { display: none; }
