/**
 * Student Health Services — College Dispensary (Stitch on MARA design system).
 */

.health {
	--health-red: var(--mara-primary, #c62828);
	--health-ink: #1a1a1a;
	--health-muted: #5c5c66;
	--health-surface: #f5f5f6;
	--health-line: #e5e5e7;
	--health-blush: #f8ecec;
	--health-radius: 0.85rem;
	color: var(--mara-text, #333);
	background: #fff;
	overflow-x: clip;
}

.health a:focus-visible,
.health button:focus-visible {
	outline: 2px solid var(--health-red);
	outline-offset: 3px;
}

.health__icon {
	display: block;
	flex-shrink: 0;
}

.health__badge {
	display: inline-flex;
	margin: 0 0 0.55rem;
	padding: 0.3rem 0.65rem;
	border-radius: 0.25rem;
	background: var(--health-red);
	color: #fff;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.health__section-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.35rem, 2.8vw, 1.9rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--health-ink);
}

.health__section-intro {
	margin: 0.55rem 0 0;
	max-width: 36rem;
	line-height: 1.55;
	color: var(--health-muted);
}

.health__section-head {
	margin-bottom: 1.2rem;
}

.health__section-head--center {
	text-align: center;
}

.health__section-head--center .health__section-intro {
	margin-left: auto;
	margin-right: auto;
}

.health__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 2.55rem;
	padding: 0.6rem 1.1rem;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 0.3rem;
}

.health__btn--outline {
	color: var(--health-ink);
	background: transparent;
	border: 1.5px solid var(--health-line);
}

.health__btn--outline:hover {
	border-color: rgba(198, 40, 40, 0.45);
	color: var(--health-red);
}

.health__text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.9rem;
	color: var(--health-red);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.health__text-link:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Hero */
.health__hero {
	position: relative;
	padding: clamp(1.1rem, 2.8vw, 1.75rem) 0 clamp(1.25rem, 3vw, 1.85rem);
	background:
		radial-gradient(circle at 10% 0%, rgba(248, 236, 236, 0.9), transparent 40%),
		linear-gradient(180deg, #fff 0%, var(--health-surface) 100%);
}

.health__hero::before {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--health-line) 20%, var(--health-line) 80%, transparent);
	pointer-events: none;
}

.health__hero-layout {
	display: grid;
	gap: 1.15rem;
	align-items: center;
}

@media (min-width: 900px) {
	.health__hero-layout {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 1.5rem;
	}
}

.health__hero-copy {
	max-width: 34rem;
}

.health__hero-rule {
	display: block;
	width: 2.4rem;
	height: 2px;
	margin: 0 0 0.65rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--health-red), rgba(198, 40, 40, 0.12));
}

.health__hero-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.6rem, 3.4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--health-ink);
	text-wrap: balance;
}

.health__hero-intro {
	margin: 0.55rem 0 0;
	max-width: 30rem;
	font-size: 0.96rem;
	line-height: 1.55;
	color: var(--health-muted);
}

.health__hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1rem;
}

.health__hero-media {
	position: relative;
	margin: 0;
	border-radius: 0.85rem;
	overflow: hidden;
	background: #1a1a1a;
	aspect-ratio: 16 / 11;
	max-height: 19rem;
	box-shadow:
		0 0 0 1px rgba(26, 26, 26, 0.06),
		0 14px 36px rgba(26, 26, 26, 0.1);
}

.health__hero-visual {
	position: relative;
	padding-bottom: 1.5rem;
}

.health__hero-frame {
	position: absolute;
	inset: 0.55rem;
	z-index: 1;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 0.5rem;
	pointer-events: none;
}

.health__hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.health__float-quote {
	position: relative;
	z-index: 2;
	margin: -1.35rem 0.85rem 0;
	padding: 0.95rem 1.05rem 1rem;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid rgba(248, 236, 236, 0.95);
	box-shadow:
		0 16px 36px rgba(18, 18, 18, 0.14),
		0 2px 0 rgba(198, 40, 40, 0.1);
}

.health__float-quote--hero {
	margin-left: 0.75rem;
	margin-right: 0.75rem;
}

.health__float-quote--shared {
	margin: 0 0 0.15rem;
}

.health__float-mark {
	display: block;
	margin: 0 0 0.15rem;
	font-family: var(--mara-font-heading);
	font-size: 1.85rem;
	line-height: 0.75;
	color: var(--health-red);
	opacity: 0.85;
}

.health__float-quote p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	font-style: italic;
	color: var(--health-ink);
	text-wrap: pretty;
}

.health__float-quote footer {
	margin-top: 0.5rem;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--health-red);
	font-style: normal;
}

.health__message-stack {
	display: grid;
	gap: 0;
	padding-bottom: 0.5rem;
}

.health__message-stack .health__message-card {
	padding-bottom: 2.25rem;
}

.health__message-stack .health__float-quote {
	margin-top: -1.25rem;
}

/* Prevention quote — featured square card */
.health__prevention {
	padding: 0 0 clamp(1.5rem, 4vw, 2.25rem);
	background: var(--health-surface);
}

.health__prevention-wrap {
	display: flex;
	justify-content: center;
}

.health__prevention-card {
	position: relative;
	width: min(100%, 22rem);
	aspect-ratio: 1 / 1;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.75rem 1.6rem;
	border-radius: 1rem;
	background:
		radial-gradient(circle at 12% 18%, rgba(255, 214, 170, 0.35), transparent 42%),
		radial-gradient(circle at 88% 82%, rgba(198, 40, 40, 0.35), transparent 45%),
		linear-gradient(155deg, #0f3d3a 0%, #14524d 48%, #1a2f2c 100%);
	color: #fff;
	box-shadow:
		0 18px 40px rgba(15, 61, 58, 0.28),
		inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	text-align: left;
}

.health__prevention-mark {
	display: block;
	margin: 0 0 0.55rem;
	font-family: var(--mara-font-heading);
	font-size: 2.6rem;
	line-height: 0.7;
	color: #f0c56e;
}

.health__prevention-card p {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.05rem, 2.4vw, 1.25rem);
	font-weight: 700;
	font-style: italic;
	line-height: 1.4;
	color: #fff;
	text-wrap: pretty;
}

.health__prevention-card footer {
	margin-top: 1.1rem;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #f0c56e;
	font-style: normal;
}

@media (min-width: 720px) {
	.health__prevention-card {
		width: min(100%, 24rem);
	}
}

/* Quick hours / on-call */
.health__quick {
	padding: 0 0 clamp(1.5rem, 4vw, 2.25rem);
	background: var(--health-surface);
}

.health__quick-grid {
	display: grid;
	gap: 0.75rem;
	margin-top: -0.35rem;
}

@media (min-width: 720px) {
	.health__quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.health__quick-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.85rem;
	align-items: start;
	padding: 1rem 1.1rem;
	border-radius: var(--health-radius);
	background: #fff;
	border: 1px solid var(--health-line);
}

.health__quick-card--alert {
	background: var(--health-blush);
	border-color: rgba(198, 40, 40, 0.2);
}

.health__quick-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 999px;
	background: rgba(198, 40, 40, 0.1);
	color: var(--health-red);
}

.health__quick-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: 1rem;
	font-weight: 800;
	color: var(--health-red);
}

.health__quick-text {
	margin: 0.35rem 0 0;
	font-weight: 600;
	line-height: 1.45;
	color: var(--health-ink);
}

.health__quick-note {
	margin: 0.3rem 0 0;
	font-size: 0.85rem;
	color: var(--health-muted);
}

/* Glance */
.health__glance {
	padding: clamp(1.75rem, 4.5vw, 3rem) 0;
}

.health__glance-grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 720px) {
	.health__glance-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.health__glance-card--wide {
		grid-column: 1 / -1;
	}
}

.health__glance-card {
	padding: 1.05rem 1.1rem;
	border-radius: var(--health-radius);
	background: var(--health-surface);
	border: 1px solid var(--health-line);
}

.health__glance-card--featured {
	background: var(--health-blush);
	border-color: rgba(198, 40, 40, 0.22);
}

.health__glance-icon {
	display: inline-flex;
	color: var(--health-red);
	margin-bottom: 0.55rem;
}

.health__glance-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--health-ink);
}

.health__glance-card p {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--health-muted);
}

/* Detail */
.health__detail {
	padding: clamp(1.75rem, 4.5vw, 3rem) 0;
	background: var(--health-surface);
}

.health__detail-grid {
	display: grid;
	gap: 1rem;
}

@media (min-width: 960px) {
	.health__detail-grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 1.25rem;
		align-items: start;
	}
}

.health__panel,
.health__message-card {
	padding: clamp(1.15rem, 3vw, 1.5rem);
	border-radius: var(--health-radius);
	background: #fff;
	border: 1px solid var(--health-line);
}

.health__panel p {
	margin: 0.75rem 0 0;
	line-height: 1.55;
	color: var(--health-muted);
}

.health__message-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.2rem, 2.4vw, 1.45rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--health-ink);
	text-wrap: balance;
}

.health__message-list {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
	counter-reset: none;
}

.health__message-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.75rem;
	align-items: start;
	font-size: 0.94rem;
	line-height: 1.5;
	color: var(--health-muted);
}

.health__message-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 0.35rem;
	background: var(--health-ink);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
}

/* Journey */
.health__journey {
	padding: clamp(1.75rem, 4.5vw, 3rem) 0;
}

.health__journey-grid {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.75rem;
	counter-reset: none;
}

@media (min-width: 800px) {
	.health__journey-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.health__journey-card {
	position: relative;
	padding: 1.15rem 1.1rem;
	border-radius: var(--health-radius);
	background: var(--health-surface);
	border: 1px solid var(--health-line);
}

.health__journey-card--accent {
	background: var(--health-blush);
	border-color: rgba(198, 40, 40, 0.22);
}

.health__journey-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.4rem;
	margin-bottom: 0.75rem;
	border-radius: 0.35rem;
	background: var(--health-ink);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
}

.health__journey-card--accent .health__journey-step {
	background: var(--health-red);
}

.health__journey-icon {
	display: inline-flex;
	color: var(--health-red);
	margin-bottom: 0.55rem;
}

.health__journey-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--health-ink);
}

.health__journey-card p {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--health-muted);
}

/* Referral */
.health__referral {
	padding: 0 0 clamp(1.75rem, 4.5vw, 2.5rem);
}

.health__referral-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.95rem;
	padding: 1.2rem 1.25rem;
	border-radius: var(--health-radius);
	background: #fff;
	border: 1px solid var(--health-line);
	box-shadow: inset 3px 0 0 var(--health-red);
}

.health__referral-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: var(--health-blush);
	color: var(--health-red);
}

.health__referral-card p {
	margin: 0.55rem 0 0;
	line-height: 1.55;
	color: var(--health-muted);
}

.health__referral-note {
	font-size: 0.88rem !important;
	font-style: italic;
}

/* Blood drives */
.health__blood {
	padding: 0 0 clamp(1.75rem, 4.5vw, 2.5rem);
}

.health__blood-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	padding: 1.25rem 1.3rem;
	border-radius: var(--health-radius);
	background:
		radial-gradient(circle at 100% 0%, rgba(198, 40, 40, 0.12), transparent 45%),
		#fff;
	border: 1px solid rgba(198, 40, 40, 0.22);
}

.health__blood-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.55rem;
	height: 2.55rem;
	border-radius: 999px;
	background: var(--health-blush);
	color: var(--health-red);
}

.health__blood-card p {
	margin: 0.55rem 0 0;
	line-height: 1.55;
	color: var(--health-muted);
}

.health__blood-card .health__btn {
	margin-top: 1rem;
}

/* Shared responsibility */
.health__shared {
	padding: clamp(1.75rem, 4.5vw, 3rem) 0;
	background: var(--health-surface);
}

.health__shared-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 960px) {
	.health__shared-grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		align-items: start;
	}
}

.health__shared-copy {
	display: grid;
	gap: 0.75rem;
}

.health__shared-card,
.health__wellness-card,
.health__council-card {
	padding: 1rem 1.1rem;
	border-radius: var(--health-radius);
	background: #fff;
	border: 1px solid var(--health-line);
}

.health__shared-card h3,
.health__wellness-card h3,
.health__council-card h3 {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--health-ink);
}

.health__shared-card p,
.health__wellness-card p,
.health__council-card p {
	margin: 0.4rem 0 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--health-muted);
}

.health__wellness-card {
	border-color: rgba(198, 40, 40, 0.35);
}

.health__council-card {
	border-color: rgba(20, 82, 77, 0.35);
}

.health__wellness-card .health__btn,
.health__council-card .health__btn {
	margin-top: 0.85rem;
}

.health__shared-media {
	margin: 0;
	border-radius: var(--health-radius);
	overflow: hidden;
	background: #1a1a1a;
}

.health__shared-media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.health__shared-media figcaption {
	padding: 0.85rem 1rem;
	background: #fff;
	border-top: 1px solid var(--health-line);
	font-family: var(--mara-font-heading);
	font-weight: 800;
	color: var(--health-ink);
}

/* FAQ */
.health__faq {
	padding: clamp(1.75rem, 4.5vw, 3rem) 0;
}

.health__accordion {
	max-width: 46rem;
	margin: 0 auto;
	display: grid;
	gap: 0.55rem;
}

.health__faq-item {
	border-radius: var(--health-radius);
	background: #fff;
	border: 1px solid var(--health-line);
	overflow: hidden;
}

.health__faq-question {
	margin: 0;
}

.health__faq-trigger {
	appearance: none;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.1rem;
	border: 0;
	background: transparent;
	color: var(--health-ink);
	font: inherit;
	font-family: var(--mara-font-heading);
	font-size: 1rem;
	font-weight: 800;
	text-align: left;
	cursor: pointer;
}

.health__faq-chevron {
	color: var(--health-muted);
	transition: transform 0.2s ease;
}

.health__faq-item.is-open .health__faq-chevron {
	transform: rotate(180deg);
	color: var(--health-red);
}

.health__faq-panel {
	padding: 0 1.1rem 1rem;
}

.health__faq-panel p {
	margin: 0;
	line-height: 1.55;
	color: var(--health-muted);
}

/* CTA */
.health__cta {
	padding: clamp(2rem, 5vw, 3.25rem) 0;
	background:
		radial-gradient(circle at 100% 0%, rgba(198, 40, 40, 0.18), transparent 42%),
		linear-gradient(160deg, #1a1a1a 0%, #0f0f0f 100%);
	color: #fff;
	text-align: center;
}

.health__cta-inner {
	max-width: 40rem;
}

.health__cta-title {
	margin: 0;
	font-family: var(--mara-font-heading);
	font-size: clamp(1.4rem, 3vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
}

.health__cta-intro {
	margin: 0.7rem auto 0;
	max-width: 32rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
}

.health__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	justify-content: center;
	margin-top: 1.25rem;
}

.health__cta .health__btn--outline {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
	flex-direction: column;
	min-width: 12rem;
	gap: 0.15rem;
}

.health__cta .health__btn--outline:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.health__cta-email {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0.85;
}

@media (max-width: 520px) {
	.health__hero-actions .health__btn,
	.health__cta-actions .health__btn {
		width: 100%;
	}
}
