/**
 * Modern links/resources page layout.
 */

.sac-links-modern-page {
	background: var(--acg-bg);
	color: var(--acg-dark);
}

.sac-links-modern-page #ac-main-content {
	overflow: hidden;
}

.sac-links-hero {
	position: relative;
	padding: 154px 24px 82px;
	background:
		radial-gradient(circle at 16% 18%, rgba(232, 168, 124, 0.24), transparent 28rem),
		radial-gradient(circle at 84% 14%, rgba(26, 95, 95, 0.28), transparent 28rem),
		linear-gradient(135deg, #2d2926 0%, #3d3936 100%);
	color: #fff;
}

.sac-links-container,
.sac-links-hero__inner {
	width: min(1180px, 92vw);
	margin: 0 auto;
}

.sac-links-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
	gap: 48px;
	align-items: end;
}

.sac-links-eyebrow {
	margin: 0 0 16px;
	color: var(--acg-peach);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.sac-links-hero h1 {
	max-width: 800px;
	margin: 0;
	font-family: var(--acg-font-heading);
	font-size: clamp(2.85rem, 7vw, 6.5rem);
	font-weight: 300;
	line-height: 0.98;
	letter-spacing: -0.05em;
}

.sac-links-hero h1 strong {
	display: block;
	color: var(--acg-peach);
	font-weight: 700;
}

.sac-links-hero__lead {
	max-width: 700px;
	margin: 26px 0 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: clamp(1.125rem, 2vw, 1.42rem);
	line-height: 1.58;
}

.sac-links-stat {
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 28px;
	padding: 30px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
	backdrop-filter: blur(14px);
}

.sac-links-stat strong {
	display: block;
	color: #fff;
	font-size: clamp(3.2rem, 7vw, 5.25rem);
	line-height: 0.9;
}

.sac-links-stat span {
	display: block;
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.72);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sac-links-intro {
	background: #fff;
	padding: 66px 0;
}

.sac-links-intro__panel {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
	gap: 42px;
	align-items: start;
}

.sac-links-intro h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.7rem);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.sac-links-intro h2 strong {
	color: var(--acg-accent);
	font-weight: 700;
}

.sac-links-intro p {
	margin: 0 0 16px;
	color: var(--acg-muted);
	font-size: 1.08rem;
	line-height: 1.72;
}

.sac-links-intro p:last-child {
	margin-bottom: 0;
}

.sac-links-toolbar {
	position: sticky;
	top: 80px;
	z-index: 20;
	border-top: 1px solid var(--acg-border);
	border-bottom: 1px solid var(--acg-border);
	background: rgba(250, 247, 242, 0.95);
	backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
	.sac-links-toolbar {
		top: 96px;
	}
}

.sac-links-toolbar__inner {
	width: min(1180px, 92vw);
	margin: 0 auto;
	padding: 18px 0;
	display: grid;
	grid-template-columns: minmax(260px, 420px) 1fr;
	gap: 20px;
	align-items: center;
}

.sac-links-search input {
	width: 100%;
	min-height: 52px;
	border: 1px solid var(--acg-border);
	border-radius: 999px;
	background: #fff;
	color: var(--acg-dark);
	font: inherit;
	padding: 0 20px;
	outline: none;
}

.sac-links-search input:focus {
	border-color: rgba(196, 91, 40, 0.48);
	box-shadow: 0 0 0 4px rgba(196, 91, 40, 0.1);
}

.sac-links-showing {
	margin: 0;
	color: var(--acg-muted);
	font-weight: 800;
	text-align: right;
}

.sac-links-section {
	padding: 66px 0 92px;
}

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

.sac-link-card {
	display: flex;
	min-height: 100%;
	border: 1px solid var(--acg-border);
	border-radius: 26px;
	background: #fff;
	box-shadow: 0 16px 38px rgba(45, 41, 38, 0.08);
	transition: transform var(--acg-duration) var(--acg-ease), box-shadow var(--acg-duration) var(--acg-ease);
}

.sac-link-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 56px rgba(45, 41, 38, 0.14);
}

.sac-link-card[hidden] {
	display: none;
}

.sac-link-card__inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 26px;
	color: inherit;
	text-decoration: none;
}

.sac-link-card__top {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 16px;
}

.sac-link-card__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: rgba(26, 95, 95, 0.1);
	color: var(--acg-teal);
	font-weight: 900;
}

.sac-link-card h2 {
	margin: 0;
	color: var(--acg-dark);
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	line-height: 1.08;
}

.sac-link-card p {
	margin: 0;
	color: var(--acg-muted);
	line-height: 1.68;
}

.sac-link-card__url {
	margin-top: auto;
	padding-top: 20px;
	color: var(--acg-accent);
	font-weight: 800;
	overflow-wrap: anywhere;
}

.sac-link-card__inner:hover {
	text-decoration: none;
}

.sac-links-empty {
	margin: 34px 0 0;
	border: 1px solid var(--acg-border);
	border-radius: 22px;
	background: #fff;
	color: var(--acg-muted);
	padding: 28px;
	text-align: center;
}

.sac-links-empty[hidden] {
	display: none;
}

.sac-links-cta {
	background: var(--acg-dark);
	color: #fff;
	padding: 64px 0;
}

.sac-links-cta__inner {
	width: min(1040px, 92vw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: center;
}

.sac-links-cta h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 300;
	line-height: 1.05;
}

.sac-links-cta h2 strong {
	color: var(--acg-peach);
	font-weight: 700;
}

.sac-links-cta p {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 1.1rem;
}

.sac-links-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 999px;
	background: var(--acg-accent);
	color: #fff;
	font-weight: 800;
	padding: 13px 24px;
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--acg-duration) var(--acg-ease), transform var(--acg-duration) var(--acg-ease);
}

.sac-links-button:hover,
.sac-links-button:focus-visible {
	background: var(--acg-accent-hover);
	color: #fff;
	text-decoration: none;
	transform: translateY(-2px);
}

@media (max-width: 1040px) {
	.sac-links-hero__inner,
	.sac-links-intro__panel,
	.sac-links-cta__inner {
		grid-template-columns: 1fr;
	}

	.sac-links-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.sac-links-hero {
		padding-top: 128px;
	}

	.sac-links-toolbar {
		position: static;
	}

	.sac-links-toolbar__inner,
	.sac-links-grid {
		grid-template-columns: 1fr;
	}

	.sac-links-showing {
		text-align: left;
	}

	.sac-links-cta__inner {
		align-items: stretch;
	}
}
