/**
 * MSAD Homepage 2026 -- PAGE-SPECIFIC sections only.
 *
 * Spec: design_handoff_homepage/MSAD Homepage v5.dc.html, Direction A
 * (marigold accent + Space Grotesk / Hanken Grotesk).
 *
 * Shared chrome and components (header, footer, buttons, section heads, card
 * grids, bill rows, tokens, fonts) live in msad-2026.css / msad-2026-tokens.css
 * -- this file styles only what exists on the homepage alone: the photo hero,
 * pathway cards, announcement, events/news section wrappers, mission band and
 * membership section.
 */

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */

.msad-h26__hero {
	position: relative;
	background: var(--h26-navy);
	overflow: hidden;
}

.msad-h26__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.msad-h26__hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		rgba(15, 25, 52, 0.94) 0%,
		rgba(15, 25, 52, 0.82) 40%,
		rgba(15, 25, 52, 0.3) 75%,
		rgba(15, 25, 52, 0.15) 100%
	);
}

.msad-h26__hero-inner {
	position: relative;
	max-width: var(--h26-max);
	margin: 0 auto;
	/* 150px bottom leaves room for the pathway row's -72px overlap. */
	padding: 120px var(--h26-gutter) 150px;
}

.msad-h26__hero-title {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: clamp(50px, 5.8vw, 82px);
	line-height: 0.98;
	letter-spacing: -0.04em;
	margin: 24px 0 0;
	color: #fff;
	text-wrap: balance;
	max-width: 14ch;
}

.msad-h26__hero-stop {
	color: var(--accent-on-navy);
}

.msad-h26__hero-sub {
	font-size: 19px;
	line-height: 1.65;
	max-width: 44ch;
	margin: 24px 0 0;
	color: var(--h26-hero-sub);
}

.msad-h26__hero-ctas {
	display: flex;
	gap: 20px;
	margin-top: 36px;
	align-items: center;
	flex-wrap: wrap;
}

/* Hero primary CTA: yellow fill, navy text -- 7.8:1, fine on navy. */
.msad-h26__hero-cta {
	min-height: 54px;
	padding: 0 30px;
	font-size: 16px;
	background: var(--h26-cranberry);
	color: var(--h26-on-accent);
}

.msad-h26__hero-cta:hover,
.msad-h26__hero-cta:focus-visible {
	background: var(--h26-cranberry-deep);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* The whole unit -- ring and label -- turns sky on hover, via currentColor. */
.msad-h26__hero-play {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-weight: 700;
	font-size: 16px;
	color: #fff;
	transition: color var(--h26-transition);
}

.msad-h26__hero-play:hover,
.msad-h26__hero-play:focus-visible {
	color: var(--h26-cranberry);
}

.msad-h26__hero-play-ring {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 2px solid currentColor;
	color: inherit;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Pathway cards (overlap the hero by -72px)
   --------------------------------------------------------------------------- */

.msad-h26__paths {
	max-width: var(--h26-max);
	margin: -72px auto 0;
	padding: 0 var(--h26-gutter);
	position: relative;
}

.msad-h26__paths-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	/* 2px gap over an #ecebe5 background = hairline dividers between cards. */
	gap: 2px;
	background: var(--h26-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(15, 25, 52, 0.18);
}

.msad-h26__path {
	display: block;
	background: #fff;
	padding: 24px 26px;
	position: relative;
	transition: transform var(--h26-transition), box-shadow var(--h26-transition),
		background-color var(--h26-transition);
}

.msad-h26__path:hover,
.msad-h26__path:focus-visible {
	background: var(--h26-band);
	transform: translateY(-4px);
	box-shadow: inset 0 -5px 0 var(--h26-sky), 0 16px 32px rgba(15, 25, 52, 0.2);
}

.msad-h26__path-label {
	display: block;
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.02em;
	color: var(--h26-navy);
	margin-top: 14px;
}

.msad-h26__path-sub {
	display: block;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--h26-muted);
	margin-top: 6px;
}

.msad-h26__path-arrow {
	color: var(--h26-sky-700);
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Announcement
   --------------------------------------------------------------------------- */

.msad-h26__announce {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 48px var(--h26-gutter) 0;
}

.msad-h26__announce-card {
	background: var(--h26-navy);
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(15, 25, 52, 0.22);
	padding: 34px;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	/* Stretch (the grid default) so the flyer's height always matches
	   whatever the text column needs -- a longer card (more meta rows, a
	   two-line title) makes the flyer bigger too, instead of the flyer
	   being a fixed size that can look small next to a tall text column. */
	align-items: stretch;
}

/* Flyer column is dropped entirely when no image is set, so the text column
   still starts flush against the card's left padding. */
.msad-h26__announce-card--no-image {
	grid-template-columns: 1fr;
}

/* Sets a floor under the whole card's height, not just the flyer -- sparse
   content (no button, no time/location) still gets a little breathing room
   instead of hugging down to a razor-thin card. */
.msad-h26__announce-body {
	min-height: 170px;
}

/* Whichever element ends up last (title only, or +sub, +meta, +button)
   shouldn't carry a trailing margin -- keeps the bottom gap equal to the
   card's top padding instead of quietly growing past it. */
.msad-h26__announce-body > *:last-child {
	margin-bottom: 0;
}

/* Height is a plain 100% of the grid row (no min-height floor): the img is
   taken out of flow below, so its own aspect ratio can't leak into the
   row's auto-height calculation. Without that, a percentage-height flyer
   would resolve circularly back to the image's intrinsic aspect ratio and
   act as an invisible floor no matter what min-height said -- which is
   exactly the bug a min-height tweak alone couldn't fix.

   Width is auto + capped at 160px: the actual aspect-ratio comes from an
   inline style (see the PHP render), computed per-image from its real
   pixel dimensions -- not a hardcoded guess -- so the box keeps whatever
   shape the uploaded flyer actually has while height still tracks content. */
.msad-h26__announce-flyer {
	position: relative;
	width: auto;
	height: 100%;
	max-width: 160px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.3);
	flex-shrink: 0;
	display: block;
	cursor: pointer;
}

.msad-h26__announce-flyer:focus-visible {
	outline: 2px solid var(--accent-on-navy);
	outline-offset: 2px;
}

.msad-h26__announce-flyer img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.msad-h26__announce-label {
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-on-navy);
}

.msad-h26__announce-label i {
	margin-right: 7px;
}

.msad-h26__announce-title {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.02em;
	color: #fff;
	margin-top: 6px;
}

.msad-h26__announce-sub {
	font-size: 14.5px;
	color: var(--h26-on-navy);
	margin-top: 5px;
}

.msad-h26__announce-meta {
	display: flex;
	flex-wrap: wrap;
	column-gap: 20px;
	row-gap: 6px;
	margin-top: 22px !important;
}

.msad-h26__announce-meta-item {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--h26-on-navy);
	white-space: nowrap;
}

.msad-h26__announce-meta-item i {
	margin-right: 7px;
	color: var(--h26-cranberry);
}

.msad-h26__announce-meta-item--location {
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Button now sits in normal flow under the meta row (not a separate grid
   item), so it just needs space above it instead of grid placement. Scoped
   under the card so it doesn't touch the shared .msad-h26__btn component. */
.msad-h26__announce-card .msad-h26__btn {
	margin-top: 18px;
}

/* ---------------------------------------------------------------------------
   Section wrappers -- "Coming up" and "Latest news, signed"
   --------------------------------------------------------------------------- */

.msad-h26__events {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 88px var(--h26-gutter) 0;
}

.msad-h26__news {
	background: var(--h26-band);
	border-top: 1px solid var(--h26-band-border);
	border-bottom: 1px solid var(--h26-band-border);
	margin-top: 96px;
}

.msad-h26__news-inner {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 80px var(--h26-gutter);
}

/* ---------------------------------------------------------------------------
   Mission band
   --------------------------------------------------------------------------- */

.msad-h26__mission {
	background: var(--h26-navy);
	color: #fff;
}

.msad-h26__mission-inner {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 88px var(--h26-gutter);
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 40px;
	align-items: start;
}

.msad-h26__mission-bar {
	width: 4px;
	border-radius: 2px;
	background: var(--accent-on-navy);
	align-self: stretch;
}

.msad-h26__mission-eyebrow {
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--h26-cranberry);
}

.msad-h26__mission-statement {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.18;
	letter-spacing: -0.025em;
	margin-top: 16px;
	max-width: 30ch;
	text-wrap: balance;
}

.msad-h26__mission-note {
	font-size: 15px;
	line-height: 1.6;
	color: var(--h26-on-navy);
	margin: 18px 0 0;
	max-width: 68ch;
}

.msad-h26__mission-note em {
	font-style: normal;
	font-weight: 700;
	color: var(--h26-on-navy-strong);
}

/* ---------------------------------------------------------------------------
   On Beacon Hill (section wrapper; rows are shared components)
   --------------------------------------------------------------------------- */

.msad-h26__bills {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 88px var(--h26-gutter) 0;
}

/* ---------------------------------------------------------------------------
   Membership
   --------------------------------------------------------------------------- */

.msad-h26__membership {
	background: var(--h26-band);
	border-top: 1px solid var(--h26-band-border);
	margin-top: 96px;
}

.msad-h26__membership-inner {
	max-width: var(--h26-max);
	margin: 0 auto;
	padding: 88px var(--h26-gutter) 92px;
}

.msad-h26__membership-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: end;
}

.msad-h26__membership-eyebrow {
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--h26-sky-700);
}

.msad-h26__membership-title {
	font-family: var(--h26-font-head);
	font-weight: 700;
	font-size: clamp(34px, 4vw, 50px);
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: var(--h26-navy);
	margin-top: 14px;
	text-wrap: balance;
}

.msad-h26__membership-stop {
	color: var(--h26-accent);
}

.msad-h26__membership-intro {
	font-size: 17px;
	line-height: 1.65;
	color: var(--h26-muted);
	margin: 18px 0 0;
	max-width: 52ch;
}

.msad-h26__membership-intro strong {
	color: var(--h26-navy);
}

.msad-h26__benefits {
	display: grid;
	gap: 14px;
	padding-bottom: 6px;
	list-style: none;
	margin: 0;
}

.msad-h26__benefit {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--h26-font-head);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--h26-navy);
}

.msad-h26__benefit .msad-h26__tile {
	width: 44px;
	height: 44px;
	font-size: 18px;
}

.msad-h26__membership-ctas {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-top: 40px;
	flex-wrap: wrap;
}

.msad-h26__membership-ctas .msad-h26__btn--accent {
	min-height: 52px;
	padding: 0 28px;
	font-size: 16px;
}

.msad-h26__membership-note {
	font-size: 14px;
	color: var(--h26-muted);
}

/* ---------------------------------------------------------------------------
   Responsive (homepage sections only; shared chrome handled in msad-2026.css)
   --------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.msad-h26__hero-inner {
		padding-top: 96px;
		padding-bottom: 130px;
	}

	.msad-h26__paths-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.msad-h26__membership-grid {
		grid-template-columns: 1fr;
		gap: 36px;
		align-items: start;
	}
}

@media (max-width: 720px) {
	.msad-h26__hero-inner {
		padding-top: 72px;
		padding-bottom: 116px;
	}

	.msad-h26__hero-sub {
		font-size: 17px;
	}

	.msad-h26__paths {
		margin-top: -56px;
	}

	.msad-h26__paths-grid {
		grid-template-columns: 1fr;
	}

	.msad-h26__events,
	.msad-h26__bills {
		padding-top: 64px;
	}

	.msad-h26__news,
	.msad-h26__membership {
		margin-top: 64px;
	}

	.msad-h26__news-inner,
	.msad-h26__membership-inner,
	.msad-h26__mission-inner {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.msad-h26__mission-inner {
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.msad-h26__announce-card,
	.msad-h26__announce-card--no-image {
		grid-template-columns: 1fr;
		padding: 22px;
	}

	.msad-h26__announce-body {
		min-height: 0;
	}

	/* Flyer drops to its own full-width row above the text, sized by its own
	   aspect ratio (not cropped) instead of the fixed portrait box used
	   side-by-side with text on desktop. Both go back to static/auto since
	   the desktop absolute-positioning trick (see base rules) only makes
	   sense next to a sibling column to stretch-match. */
	/* !important is required here: the aspect-ratio/max-height above come from
	   an inline style (computed per-image in PHP), and an inline style always
	   beats an external rule of any specificity unless that rule is !important. */
	.msad-h26__announce-flyer {
		position: static !important;
		aspect-ratio: auto !important;
		max-width: none !important;
		max-height: none !important;
		width: 100% !important;
		height: auto !important;
	}

	.msad-h26__announce-flyer img {
		position: static;
		width: 100%;
		height: auto;
		object-fit: contain;
	}
}

@media (max-width: 520px) {
	.msad-h26__hero-ctas {
		gap: 16px;
	}

	.msad-h26__hero-cta {
		width: 100%;
	}

	.msad-h26__membership-ctas .msad-h26__btn {
		width: 100%;
	}
}

/* Reduced motion: page-specific transforms (generic kill lives in msad-2026.css). */
@media (prefers-reduced-motion: reduce) {
	.msad-h26__path:hover,
	.msad-h26__path:focus-visible {
		transform: none;
	}
}
