/**
 * Providers template.
 *
 * Swap the two blue variables for the theme's brand blues — everything else
 * derives from them. Keep --provider-navy dark: it carries requirement 5.6
 * and needs to stay well clear of AA contrast on white.
 */

.provider {
	--provider-navy: #0B2545;
	--provider-navy-2: #14375E;
	--provider-blue: #1F6FB2;
	--provider-blue-tint: #EEF4FA;
	--provider-line: #DCE6F0;
	--provider-ink: #23303D;
	--provider-ink-soft: #5A6875;
	--provider-wash: #F6F9FC;
	--provider-header-offset: 96px; /* fixed header height + 16px — measure, don't guess */

	color: var(--provider-ink);
}

.provider .wrap {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 32px;
}

/* ------------------------------------------------------------------ hero */
.provider-hero {
	background: var(--provider-wash);
	border-bottom: 1px solid var(--provider-line);
	padding: 56px 0 48px;
}

.provider-hero__inner {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 44px;
	align-items: center;
}

.provider-hero__portrait {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: 1px solid var(--provider-line);
	border-radius: 4px;
	background: var(--provider-blue-tint);
}

.provider-hero__img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.provider-hero__eyebrow {
	margin: 0 0 14px;
	font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--provider-blue);
}

.provider-hero__name {
	margin: 0 0 10px;
	font-size: clamp(2.1rem, 4.4vw, 3.1rem);
	line-height: 1.08;
	letter-spacing: -.02em;
	color: var(--provider-navy);
}

.provider-hero__creds {
	margin: 0 0 20px;
	font-weight: 600;
	font-size: 16px;
	letter-spacing: .04em;
	color: var(--provider-navy-2);
}

.provider-hero__positioning {
	margin: 0 0 26px;
	/* max-width: 52ch; */
	font-size: 19px;
}

.provider-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.provider .btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border: 1.5px solid var(--provider-navy);
	border-radius: 3px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	text-decoration: none;
	transition: background .18s, color .18s;
}

.provider .btn--solid { background: var(--provider-navy); color: #fff; }
.provider .btn--solid:hover { background: var(--provider-navy-2); color: #fff; }
.provider .btn--ghost { background: transparent; color: var(--provider-navy); }
.provider .btn--ghost:hover { background: var(--provider-navy); color: #fff; }
.provider .btn--see-all { margin-bottom: 8px; }

/* ----------------------------------------------------------------- stats */
.provider-stats {
	display: flex;
	flex-wrap: wrap;
	margin: 34px 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--provider-line);
}

.provider-stats__item {
	padding-right: 40px;
	margin-right: 40px;
	border-right: 1px solid var(--provider-line);
}

.provider-stats__item:last-child {
	padding-right: 0;
	margin-right: 0;
	border-right: 0;
}

.provider-stats__value {
	font-size: 27px;
	font-weight: 700;
	line-height: 1;
	color: var(--provider-navy);
}

.provider-stats__label {
	margin: 4px 0 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--provider-ink-soft);
}

/* ---------------------------------------------------------------- layout */
.provider-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 60px;
	align-items: start;
	padding-top: 60px;
	padding-bottom: 90px;
}

/* ------------------------------------------------------------------ body */
/* Requirement 5.6 — dark-blue section headings. */
.provider-body h2 {
	margin: 60px 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--provider-blue);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.015em;
	color: var(--provider-navy);
	scroll-margin-top: calc(var(--provider-header-offset) + 8px);
}

.provider-body section:first-child h2 { margin-top: 0; }
.provider-body h3 { color: var(--provider-navy-2); font-weight: 600; }
.provider-body p { max-width: 70ch; }

.provider-body .subhead {
	margin: 36px 0 4px;
	font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--provider-ink-soft);
}

/* --------------------------------------------- awards scroller (5.3/5.4) */
.provider .rail-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 500;
	color: var(--provider-ink-soft);
}

.provider .rail-hint::after {
	content: "\2192";
	font-size: 15px;
	color: var(--provider-blue);
}

.award-rail {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 2px 2px 20px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.award-rail::-webkit-scrollbar { height: 6px; }
.award-rail::-webkit-scrollbar-thumb { background: var(--provider-line); border-radius: 3px; }

.award-card {
	flex: 0 0 288px;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 22px 22px 24px;
	background: #fff;
	border: 1px solid var(--provider-line);
	border-left: 4px solid var(--provider-blue);
	border-radius: 3px;
	color: inherit;
	text-decoration: none;
	transition: border-left-color .2s, transform .2s, box-shadow .2s;
}

a.award-card:hover,
a.award-card:focus-visible {
	border-left-color: var(--provider-navy);
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(11, 37, 69, .09);
}

.award-card__year {
	font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .08em;
	color: var(--provider-blue);
}

.award-card__title {
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--provider-navy);
}

.award-card__meta {
	margin-top: auto;
	padding-top: 4px;
	font-size: 14px;
	color: var(--provider-ink-soft);
}

a.award-card::after {
	content: "View credential";
	font-size: 12px;
	font-weight: 600;
	color: var(--provider-blue);
	opacity: 0;
	transition: opacity .2s;
}

a.award-card:hover::after,
a.award-card:focus-visible::after { opacity: 1; }

/* ----------------------------------------------------------------- lists */
.cred-list { list-style: none; margin: 0 0 8px; padding: 0; }
.cred-list li { padding: 16px 0; border-bottom: 1px solid var(--provider-line); }
.cred-list li:last-child { border-bottom: 0; }

.cred-list b {
	display: block;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--provider-navy-2);
}

.cred-list span { font-size: 15px; color: var(--provider-ink-soft); }

.trial-list { list-style: none; margin: 0; padding: 0; }

.trial-list li {
	position: relative;
	padding: 0 0 18px 26px;
	font-size: 16.5px;
}

.trial-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--provider-blue);
}

.trial-list em {
	display: block;
	margin-top: 3px;
	font-style: normal;
	font-size: 14.5px;
	color: var(--provider-ink-soft);
}

/* --------------------------------------------------------- presentations */
.provider .section-count {
	margin: 0 0 20px;
	font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--provider-blue);
}

.city-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.city-strip li {
	padding: 6px 13px;
	border: 1px solid var(--provider-line);
	border-radius: 999px;
	background: var(--provider-wash);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: var(--provider-navy-2);
}

.pres-list { list-style: none; margin: 0 0 28px; padding: 0; }

.pres-list li {
	padding: 16px 0 16px 20px;
	margin-left: 2px;
	border-left: 2px solid var(--provider-line);
	border-bottom: 1px solid var(--provider-line);
	transition: border-left-color .18s;
}

.pres-list li:hover { border-left-color: var(--provider-blue); }

.pres-list__when {
	display: block;
	margin-bottom: 6px;
	font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .08em;
	color: var(--provider-blue);
}

.pres-list__title {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--provider-navy-2);
}

.pres-list__venue {
	display: block;
	margin-top: 3px;
	font-size: 14.5px;
	color: var(--provider-ink-soft);
}

.pres-list__type {
	display: inline-block;
	margin-top: 7px;
	padding: 3px 8px;
	border-radius: 2px;
	background: var(--provider-blue-tint);
	font: 600 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--provider-blue);
}

/* ----------------------------------------------------------- memberships */
.logo-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.logo-row li { flex: 1 1 190px; display: flex; }

.logo-chip {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 74px;
	padding: 14px 18px;
	border: 1px solid var(--provider-line);
	border-radius: 3px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	color: var(--provider-navy-2);
	filter: grayscale(1);
	opacity: .82;
	transition: filter .2s, opacity .2s, border-color .2s;
}

a.logo-chip:hover,
a.logo-chip:focus-visible {
	filter: none;
	opacity: 1;
	border-color: var(--provider-blue);
}

.logo-chip__img { max-height: 44px; width: auto; }

/* --------------------------------------------- sticky rail (5.1 / 5.2) */
.provider-rail {
	position: sticky;
	top: var(--provider-header-offset);
	max-height: calc(100vh - var(--provider-header-offset) - 28px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--provider-line);
	border-top: 4px solid var(--provider-navy);
	border-radius: 4px;
	scrollbar-width: thin;
}

.provider-rail__head {
	padding: 20px 22px 14px;
	border-bottom: 1px solid var(--provider-line);
}

.provider-rail__head p {
	margin: 0;
	font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--provider-ink-soft);
}

.provider-rail__head strong {
	display: block;
	margin-top: 7px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--provider-navy);
}

.provider-rail__nav ul { margin: 0; padding: 8px 0; list-style: none; }

.provider-rail__nav a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding: 11px 22px;
	border-left: 3px solid transparent;
	font-size: 15.5px;
	text-decoration: none;
	color: var(--provider-ink);
	transition: background .16s, border-color .16s, color .16s;
}

.provider-rail__nav a:hover { background: var(--provider-blue-tint); }

.provider-rail__nav a.is-active {
	border-left-color: var(--provider-blue);
	background: var(--provider-blue-tint);
	font-weight: 600;
	color: var(--provider-navy);
}

.provider-rail__nav .count {
	font: 600 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--provider-ink-soft);
}

.provider-rail__foot {
	padding: 18px 22px 22px;
	border-top: 1px solid var(--provider-line);
	background: var(--provider-wash);
}

.cv-download {
	display: block;
	padding: 14px 16px;
	border: 1.5px solid var(--provider-navy);
	border-radius: 3px;
	background: #fff;
	text-decoration: none;
	transition: background .18s;
}

.cv-download:hover { background: var(--provider-navy); }
.cv-download:hover .cv-download__label,
.cv-download:hover .cv-download__meta { color: #fff; }

.cv-download__label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--provider-navy);
}

.cv-download__meta {
	display: block;
	margin-top: 4px;
	font: 500 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--provider-ink-soft);
}

.provider-rail__cta {
	display: block;
	margin-top: 10px;
	padding: 13px 16px;
	border-radius: 3px;
	background: var(--provider-blue);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: #fff;
}

.provider-rail__cta:hover { background: var(--provider-navy); color: #fff; }

.provider-rail__tel {
	display: block;
	margin-top: 10px;
	font-size: 14.5px;
	text-align: center;
	color: var(--provider-ink-soft);
}

.provider-rail__tel b { color: var(--provider-navy); }

.provider-back {
	display: inline-block;
	margin: 0 32px 60px;
	font-size: 15px;
	font-weight: 600;
	color: var(--provider-blue);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
	.provider-grid {
		grid-template-columns: 1fr;
		gap: 36px;
		padding-top: 36px;
		padding-bottom: 64px;
	}

	/* Rail un-sticks and moves inline so mobile still gets credentials early. */
	.provider-rail {
		position: static;
		max-height: none;
		overflow: visible;
		order: -1;
	}
}

@media (max-width: 820px) {
	.provider-hero__inner { grid-template-columns: 1fr; gap: 28px; }
	.provider-hero__portrait { max-width: 220px; }
	.provider-stats__item { padding-right: 26px; margin-right: 26px; }
	.provider .wrap { padding: 0 20px; }
}

.provider :focus-visible {
	outline: 3px solid var(--provider-blue);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.provider *,
	.provider *::before,
	.provider *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
