/*
 * pages.css — Spotlights, form and sitemap page templates.
 * Depends on tokens/shared components in main.css.
 */

/* ---- Spotlights ---- */

.ghm-featured {
	margin-top: 40px;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 40px;
	align-items: end;
	padding-bottom: 40px;
	border-bottom: var(--ghm-rule);
}

.ghm-featured__img {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.ghm-featured__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ghm-featured__title {
	display: block;
	margin-top: 10px;
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.02;
}

.ghm-featured__title .ghm-highlight {
	padding: 0 0.1em;
}

.ghm-featured__dek {
	display: block;
	margin-top: 14px;
	font-size: 16px;
	line-height: 1.5;
}

.ghm-featured .ghm-story__meta {
	margin-top: 10px;
}

.ghm-spotgrid {
	padding-top: 40px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 24px;
}

.ghm-spot {
	display: block;
}

.ghm-spot__img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	position: relative;
}

.ghm-spot__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ghm-spot__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--ghm-white);
	border: 1.5px solid var(--ghm-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 8px;
}

.ghm-spot__row {
	margin-top: 14px;
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ghm-slate);
}

.ghm-spot__title {
	display: block;
	margin-top: 8px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.12;
}

.ghm-spot__title .ghm-highlight {
	padding: 0 0.12em;
}

.ghm-spot__by {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--ghm-slate);
}

/* ---- Form pages ---- */
.ghm-formpage__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 8px;
}

.ghm-formpage__grid {
	margin-top: 40px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: start;
}

.ghm-formpage__title {
	margin: 14px 0 0;
	font-size: clamp(44px, 6vw, 80px);
	line-height: 0.98;
	text-wrap: pretty;
}

.ghm-formpage__title .ghm-highlight {
	padding: 0 0.1em;
}

.ghm-formpage__lede {
	margin: 20px 0 0;
	font-size: 18px;
	line-height: 1.45;
	max-width: 560px;
}

.ghm-formpage__note {
	margin: 24px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ghm-slate);
	max-width: 560px;
}

.ghm-formpage__fallback {
	padding: 20px 24px;
	background: var(--ghm-cyan);
	border: var(--ghm-rule);
	font-size: 16px;
}

@media (max-width: 900px) {
	.ghm-formpage__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

/* ---- Sitemap (page-sitemap.php) ---- */
.ghm-sitemap { max-width: 1280px; margin: 0 auto; padding: 56px 40px 0; color: var(--ghm-ink); }
.ghm-sitemap a { color: var(--ghm-ink); text-decoration: none; }
.ghm-sitemap a:hover { color: var(--ghm-green); text-decoration: underline; }
.ghm-sitemap__title { margin: 0 0 16px; font-size: clamp(40px, 5.4vw, 70px); font-weight: 900; letter-spacing: -0.05em; line-height: 1; }
.ghm-sitemap__lede { margin: 0 0 24px; max-width: 760px; font-size: 17px; line-height: 1.5; }
.ghm-sitemap__jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.ghm-sitemap__jump a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--ghm-ink); border-radius: 999px; font-size: 13px; font-weight: 600; }
.ghm-sitemap__jump a:hover { background: var(--ghm-ink); color: var(--ghm-white); text-decoration: none; }
.ghm-sitemap__sect { padding-top: 44px; scroll-margin-top: 24px; }
.ghm-sitemap__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: var(--ghm-rule); }
.ghm-sitemap__head h2 { margin: 0; font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.ghm-sitemap__ct { flex: none; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ghm-slate); }
.ghm-sitemap__note { margin: 12px 0 0; max-width: 760px; font-size: 14px; line-height: 1.5; color: var(--ghm-slate); }
.ghm-sitemap__block { margin-top: 20px; }
.ghm-sitemap__label { padding-bottom: 6px; border-bottom: 1px solid var(--ghm-powder); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ghm-slate); }
.ghm-sitemap__label span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.ghm-sitemap__list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 24px; }
.ghm-sitemap__list li { padding: 6px 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ghm-sitemap__cta { margin: 56px 0 0; padding: 32px; background: var(--ghm-cyan); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.ghm-sitemap__cta strong { display: block; font-size: 24px; font-weight: 900; letter-spacing: -0.04em; }
.ghm-sitemap__cta p { margin: 6px 0 0; font-size: 15px; color: var(--ghm-slate); }
.ghm-sitemap__btn { display: inline-block; padding: 13px 20px; background: var(--ghm-ink); color: var(--ghm-white) !important; font-weight: 700; font-size: 14px; }
.ghm-sitemap__btn:hover { background: var(--ghm-green); text-decoration: none !important; }
.ghm-sitemap__btn--alt { background: transparent; color: var(--ghm-ink) !important; border: 2px solid var(--ghm-ink); }
.ghm-sitemap__btn--alt:hover { background: var(--ghm-powder); }
@media (max-width: 640px) { .ghm-sitemap { padding: 40px 20px 0; } .ghm-sitemap__list { grid-template-columns: 1fr; } }
