.bag {
	--bag-navy: #002147;
	--bag-blue: #0c4a7d;
	--bag-gold: #fdc800;
	--bag-white: #ffffff;
	--bag-soft: #f5f5f5;
	--bag-border: #e5e5e5;
	--bag-text: #222222;
	--bag-muted: #666666;
	color: var(--bag-text);
	font-family: inherit;
}

.bag *,
.bag *::before,
.bag *::after {
	box-sizing: border-box;
}

.bag-inner {
	width: min(1200px, calc(100% - 40px));
	margin: 0 auto;
}

.bag-hero,
.bag-giving {
	width: 100vw;
	margin-left: calc(50% - 50vw);
}

.bag-hero {
	padding: clamp(42px, 6vw, 78px) 0;
	background: var(--bag-navy);
	color: var(--bag-white);
}

.bag-hero span,
.bag-section-head span,
.bag-giving__content > span {
	display: block;
	margin-bottom: 7px;
	color: var(--bag-gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.bag-hero h1 {
	margin: 0;
	max-width: 880px;
	color: var(--bag-white);
	font-size: clamp(34px, 5vw, 60px);
	line-height: 1.08;
}

.bag-hero p {
	margin: 18px 0 0;
	max-width: 790px;
	color: #d6e1ec;
	font-size: 16px;
	line-height: 1.75;
}

.bag-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.bag-hero__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 16px;
	background: var(--bag-gold);
	color: var(--bag-navy) !important;
	font-weight: 800;
	text-decoration: none !important;
}

.bag-hero__actions .bag-hero__secondary {
	border: 1px solid rgba(255,255,255,.35);
	background: transparent;
	color: var(--bag-white) !important;
}

.bag-hero__actions a:hover,
.bag-hero__actions a:focus-visible {
	background: var(--bag-blue);
	color: var(--bag-white) !important;
	outline: none;
}

.bag-content {
	padding-top: clamp(44px, 7vw, 82px);
	padding-bottom: clamp(44px, 7vw, 82px);
}

.bag-section-head {
	margin-bottom: 24px;
}

.bag-section-head span {
	color: var(--bag-blue);
}

.bag-section-head h2 {
	margin: 0;
	color: var(--bag-navy);
	font-size: clamp(29px, 4vw, 43px);
	line-height: 1.15;
}

.bag-featured {
	margin-bottom: clamp(50px, 7vw, 86px);
}

.bag-featured-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.bag-tools {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 15px 20px;
	align-items: center;
	margin-bottom: 22px;
}

.bag-search {
	grid-column: 1 / -1;
}

.bag-search input,
.bag-batches select {
	width: 100%;
	min-height: 50px;
	padding: 12px 15px;
	border: 1px solid var(--bag-border);
	border-radius: 0;
	background: var(--bag-white);
	color: var(--bag-text);
	font: inherit;
}

.bag-search input:focus,
.bag-batches select:focus {
	border-color: var(--bag-gold);
	outline: none;
	box-shadow: 0 0 0 3px rgba(253,200,0,.22);
}

.bag-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bag-filter {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--bag-border);
	border-radius: 0;
	background: var(--bag-white);
	color: var(--bag-navy);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.bag-filter:hover,
.bag-filter:focus-visible,
.bag-filter.is-active {
	border-color: var(--bag-gold);
	background: var(--bag-gold);
	color: var(--bag-navy);
	outline: none;
}

.bag-batches {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 220px;
}

.bag-batches label {
	color: var(--bag-navy);
	font-weight: 700;
}

.bag-batches select {
	min-height: 40px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.bag-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.bag-card {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	min-width: 0;
	border: 1px solid var(--bag-border);
	border-top: 4px solid var(--bag-gold);
	background: var(--bag-white);
	box-shadow: 0 7px 22px rgba(0,33,71,.05);
	overflow: hidden;
}

.bag-card[hidden] {
	display: none !important;
}

.bag-card--featured {
	grid-template-columns: 210px minmax(0, 1fr);
	border-top-width: 5px;
}

.bag-card__image {
	position: relative;
	min-height: 100%;
	background: var(--bag-soft);
}

.bag-card__image img,
.bag-card__placeholder {
	width: 100%;
	height: 100%;
	min-height: 190px;
	object-fit: cover;
}

.bag-card--featured .bag-card__image img,
.bag-card--featured .bag-card__placeholder {
	min-height: 290px;
}

.bag-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bag-navy);
	color: var(--bag-gold);
}

.bag-card__placeholder svg {
	width: 58px;
	height: 58px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bag-card__batch {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 7px 10px;
	background: var(--bag-gold);
	color: var(--bag-navy);
	font-size: 12px;
	font-weight: 800;
}

.bag-card__body {
	padding: 20px;
}

.bag-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 9px;
}

.bag-card__meta span {
	display: inline-flex;
	align-items: center;
	min-height: 23px;
	padding: 3px 8px;
	background: var(--bag-soft);
	color: var(--bag-muted);
	font-size: 11px;
	font-weight: 700;
}

.bag-card h3 {
	margin: 0;
	color: var(--bag-navy);
	font-size: 20px;
	line-height: 1.35;
}

.bag-card strong {
	display: block;
	margin-top: 6px;
	color: var(--bag-blue);
	font-size: 14px;
}

.bag-card p {
	margin: 10px 0 0;
	color: var(--bag-muted);
	line-height: 1.65;
}

.bag-card__achievement {
	margin-top: 14px;
	padding: 12px 14px;
	border-left: 4px solid var(--bag-gold);
	background: var(--bag-soft);
	color: var(--bag-text);
	font-size: 13px;
	line-height: 1.55;
}

.bag-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 18px;
}

.bag-card__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	background: var(--bag-navy);
	color: var(--bag-white) !important;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none !important;
}

.bag-card__actions a:first-child {
	background: var(--bag-gold);
	color: var(--bag-navy) !important;
}

.bag-card__actions a:hover,
.bag-card__actions a:focus-visible {
	background: var(--bag-blue);
	color: var(--bag-white) !important;
	outline: none;
}

.bag-empty {
	grid-column: 1 / -1;
	padding: 26px;
	border: 1px dashed var(--bag-border);
	background: var(--bag-soft);
	color: var(--bag-muted);
	text-align: center;
}

.bag-giving {
	padding: clamp(42px, 6vw, 72px) 0;
	background: var(--bag-gold);
	color: var(--bag-navy);
}

.bag-giving__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 30px;
}

.bag-giving__content > span {
	color: var(--bag-blue);
}

.bag-giving h2 {
	margin: 0;
	color: var(--bag-navy);
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.12;
}

.bag-giving p {
	margin: 14px 0 0;
	max-width: 780px;
	color: #373737;
	line-height: 1.7;
}

.bag-giving ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 20px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.bag-giving li {
	position: relative;
	padding-left: 24px;
	line-height: 1.55;
}

.bag-giving li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--bag-blue);
	font-weight: 800;
}

.bag-giving__note {
	margin-top: 20px;
	padding: 13px 15px;
	border-left: 4px solid var(--bag-navy);
	background: rgba(255,255,255,.48);
	color: #3a3a3a;
	font-size: 13px;
	line-height: 1.6;
}

.bag-giving__action a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 13px 20px;
	background: var(--bag-navy);
	color: var(--bag-white) !important;
	font-weight: 800;
	text-decoration: none !important;
	white-space: nowrap;
}

.bag-giving__action a:hover,
.bag-giving__action a:focus-visible {
	background: var(--bag-blue);
	color: var(--bag-white) !important;
	outline: none;
}

.bag-giving__admin {
	max-width: 340px;
	padding: 14px 16px;
	background: #fff0ee;
	color: #9c2b21;
	font-weight: 600;
	line-height: 1.55;
}

@media (max-width: 1080px) {
	.bag-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.bag-featured-grid {
		grid-template-columns: 1fr;
	}

	.bag-card--featured {
		grid-template-columns: 180px minmax(0, 1fr);
	}

	.bag-giving__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.bag-inner {
		width: min(100% - 28px, 1200px);
	}

	.bag-tools {
		grid-template-columns: 1fr;
	}

	.bag-search {
		grid-column: auto;
	}

	.bag-batches {
		width: 100%;
	}

	.bag-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 5px;
		scrollbar-width: thin;
	}

	.bag-filter {
		flex: 0 0 auto;
	}

	.bag-giving ul {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.bag-grid {
		grid-template-columns: 1fr;
	}

	.bag-card,
	.bag-card--featured {
		grid-template-columns: 92px minmax(0, 1fr);
	}

	.bag-card__image img,
	.bag-card__placeholder,
	.bag-card--featured .bag-card__image img,
	.bag-card--featured .bag-card__placeholder {
		min-height: 190px;
	}
}
