/*
 * TopOrtho theme — component CSS.
 * Plain CSS, BEM-ish naming, all colors/radii/type via tokens.css custom
 * properties (see tokens.css header comment for what's real vs. Tailwind
 * default). No Tailwind runtime. No CDN assets.
 */

/* ── Reset / base ─────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
	font-size: var(--font-size);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-family);
	font-weight: var(--font-weight-normal);
	color: var(--foreground);
	background: var(--background);
	line-height: 1.5;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, button { font-family: inherit; font-size: var(--text-base); }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); letter-spacing: -0.01em; }
p { margin: 0; }

h1 { font-size: var(--text-2xl); font-weight: var(--font-weight-bold); line-height: 1.15; color: var(--foreground); }
h2 { font-size: var(--text-xl); font-weight: var(--font-weight-bold); line-height: 1.25; color: var(--foreground); }
h3 { font-size: var(--text-lg); font-weight: var(--font-weight-bold); line-height: 1.35; color: var(--foreground); }
h4 { font-size: var(--text-base); font-weight: var(--font-weight-semibold); line-height: 1.5; color: var(--foreground); }
label, button { font-size: var(--text-base); font-weight: var(--font-weight-medium); line-height: 1.5; }
input, textarea { font-size: var(--text-base); font-weight: var(--font-weight-normal); line-height: 1.5; }

.main-content { flex: 1 0 auto; }

/* On navy backgrounds, headings must switch to white for readability. */
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4 { color: var(--primary-foreground); }

/* ── Layout / container ───────────────────────────────────────────────── */

.container { max-width: var(--container-7xl); margin: 0 auto; padding: 0 1rem; }
.container--4xl { max-width: var(--container-4xl); }
.container--3xl { max-width: var(--container-3xl); }
.container--2xl { max-width: var(--container-2xl); }

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.bg-white { background: var(--card); }
.bg-muted { background: var(--muted); }
.bg-secondary { background: var(--secondary); }
.bg-primary { background: var(--primary); color: var(--primary-foreground); }
.min-h-screen { min-height: 100vh; }
.text-muted { color: var(--muted-foreground); }
.text-success { color: var(--success); }
.text-destructive { color: var(--destructive); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-lg);
	border: 1px solid transparent;
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	line-height: 1.25;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, opacity .15s ease;
	white-space: nowrap;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 90%, black); }

.btn--accent { background: var(--accent); color: var(--accent-foreground); }
.btn--accent:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 90%, black); }

.btn--outline { background: transparent; border-color: var(--border); color: var(--foreground); }
.btn--outline:hover:not(:disabled) { background: var(--muted); }

.btn--outline-primary { background: transparent; border-color: var(--accent-border); color: var(--primary); }
.btn--outline-primary:hover:not(:disabled) { background: var(--accent-soft); }

.btn--ghost { background: transparent; color: var(--foreground); }
.btn--ghost:hover:not(:disabled) { background: var(--muted); }

.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover:not(:disabled) { background: rgba(255,255,255,.9); }

.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-sm); }
.btn--lg { padding: 0.875rem 2rem; }
.btn--block { width: 100%; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem; border-radius: var(--radius-lg); background: transparent; border: none; color: var(--muted-foreground); }
.icon-btn:hover { background: var(--muted); }

.spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Forms ────────────────────────────────────────────────────────────── */

.field { margin-bottom: 1rem; }
.field__label { display: block; font-size: var(--text-sm); font-weight: var(--font-weight-medium); margin-bottom: 0.375rem; }
.field__required { color: var(--destructive); }

.input, .select, .textarea {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--background);
	color: var(--foreground);
	font-size: var(--text-sm);
}
.input:focus, .select:focus, .textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
	border-color: var(--accent);
}
.textarea { resize: vertical; min-height: 5rem; }

.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }
.input-icon .input, .input-icon .select { padding-left: 2.25rem; }

.checkbox-field { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-weight: var(--font-weight-normal); font-size: var(--text-sm); }
.checkbox-field input { accent-color: var(--primary); width: 1rem; height: 1rem; }

.form-error { color: #dc2626; font-size: var(--text-sm); margin: 0; }
.form-hint { background: var(--muted); border-radius: var(--radius-lg); padding: 0.75rem; font-size: var(--text-xs); color: var(--muted-foreground); }

/* ── Badges ───────────────────────────────────────────────────────────── */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.7rem;
	border-radius: var(--radius-full);
	border: 1px solid transparent;
	font-size: var(--text-xs);
	font-weight: var(--font-weight-semibold);
	line-height: 1.4;
}
.badge--claimed { background: var(--accent); color: var(--accent-foreground); }
.badge--claimed-soft { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.badge--accepting { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.badge--telehealth { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.badge--certified { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.badge--rating { background: var(--amber-bg); color: var(--amber-text); border-color: var(--amber-border); }
.badge--sponsored { background: var(--sponsored); color: var(--sponsored-foreground); }
.badge--secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge--muted { background: var(--muted); color: var(--muted-foreground); }

/* ── Star rating ──────────────────────────────────────────────────────── */

.stars { display: inline-flex; align-items: center; gap: 0.125rem; }
.stars .icon-star { color: var(--muted-foreground); }
.stars .icon-star--filled { color: var(--star); fill: var(--star); }
.rating-inline { display: inline-flex; align-items: center; gap: 0.375rem; }
.rating-inline strong { font-weight: var(--font-weight-semibold); }
.no-reviews { color: var(--muted-foreground); font-size: var(--text-sm); }

/* ── Icons (inline SVG sized via currentColor) ───────────────────────── */

.icon { display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
	background: var(--card);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.site-header__left { display: flex; align-items: center; gap: 2rem; min-width: 0; }
.site-header__brand img { height: 2.5rem; width: auto; }
.site-header__nav { display: none; align-items: center; gap: 1.5rem; }
.nav-link { font-size: var(--text-sm); color: var(--muted-foreground); }
.nav-link:hover { color: var(--foreground); }
.nav-link.is-active { color: var(--primary); }
.site-header__actions { display: none; align-items: center; gap: 1rem; }
.site-header__mobile-toggle { display: inline-flex; padding: 0.5rem; background: none; border: none; color: var(--foreground); }

@media (min-width: 768px) {
	.site-header__nav { display: flex; }
	.site-header__actions { display: flex; }
	.site-header__mobile-toggle { display: none; }
}

.mobile-menu { border-top: 1px solid var(--border); padding: 1rem 0; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu .nav-link { display: block; }
.mobile-menu__auth { display: flex; gap: 0.5rem; padding-top: 0.5rem; }
.mobile-menu__auth .btn { flex: 1; }

@media (min-width: 768px) { .mobile-menu { display: none !important; } }

.user-menu { position: relative; }
.user-menu__trigger { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; border-radius: var(--radius-lg); background: none; border: none; }
.user-menu__trigger:hover { background: var(--muted); }
.user-menu__avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--font-weight-semibold); }
.user-menu__panel { position: absolute; right: 0; margin-top: 0.5rem; width: 13rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 50; padding: 0.25rem 0; }
.user-menu__item { display: flex; align-items: center; gap: 0.5rem; width: 100%; padding: 0.5rem 1rem; font-size: var(--text-sm); background: none; border: none; text-align: left; }
.user-menu__item:hover { background: var(--muted); }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer { background: var(--muted); border-top: 1px solid var(--border); margin-top: auto; padding: 3rem 0; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer__brand img { height: 2rem; width: auto; margin-bottom: 1rem; }
.footer__desc { font-size: var(--text-sm); color: var(--muted-foreground); }
.footer__heading { font-weight: var(--font-weight-semibold); margin-bottom: 1rem; color: var(--foreground); }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a { font-size: var(--text-sm); color: var(--muted-foreground); }
.footer__links a:hover { color: var(--foreground); }
.footer__bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: var(--text-sm); color: var(--muted-foreground); }

@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Sections (marketing / flexible-content blocks) ──────────────────── */

.section { padding: 3.5rem 0; }
.section--sm { padding: 2rem 0; }
.section--lg { padding: 4rem 0; }
.section--muted { background: var(--muted); }
.section--white { background: var(--card); }
.section--primary { background: var(--primary); color: var(--primary-foreground); }
.section__heading { text-align: center; margin-bottom: 2.5rem; }
.section__heading--left { text-align: left; }

/* Hero (generic page-blocks hero) — navy gradient, matches PageHero. */
.hero { position: relative; overflow: hidden; background: var(--hero-gradient); padding: 3.5rem 0; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none; background: var(--hero-glow); }
.hero .container { position: relative; z-index: 1; }
@media (min-width: 640px) { .hero { padding: 5rem 0; } }
.hero__inner { text-align: center; max-width: var(--container-3xl); margin: 0 auto 2.5rem; }
.hero__title { font-size: var(--text-4xl); margin-bottom: 1.25rem; color: #fff; }
@media (min-width: 640px) { .hero__title { font-size: var(--text-5xl); } }
.hero__body { font-size: var(--text-lg); color: rgba(255,255,255,.65); line-height: 1.6; }

.hero-search { max-width: var(--container-4xl); margin: 0 auto; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 1rem; }
.hero-search__grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .hero-search__grid { grid-template-columns: repeat(4, 1fr); } }
.hero-search .btn { padding-top: 0.75rem; padding-bottom: 0.75rem; font-weight: var(--font-weight-semibold); }

.hero-quicklinks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.hero-quicklinks__label { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--muted-foreground); }
.pill-link { font-size: var(--text-sm); font-weight: var(--font-weight-medium); padding: 0.5rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-full); }
.pill-link:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }

/* Stats band */
.stats-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--primary) 10%, transparent); }
.stats-band .stat { text-align: center; }
.stats-band .stat__value { font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--primary); }
.stats-band .stat__label { font-size: var(--text-sm); color: var(--muted-foreground); }
.section--primary .stats-band .stat__value,
.section--primary .stats-band .stat__label { color: var(--primary-foreground); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-grid__item { text-align: center; }
.feature-grid__icon { width: 4rem; height: 4rem; background: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--primary); }
.feature-grid__title { margin-bottom: 0.5rem; }
.feature-grid__body { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.6; }

/* Four-steps (how-it-works) alternating layout */
.steps { display: flex; flex-direction: column; gap: 2.5rem; }
.step { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .step { grid-template-columns: 1fr 1fr; } .step--reverse .step__number { order: 2; } }
.step__number { font-size: 3.5rem; font-weight: var(--font-weight-extrabold); color: var(--secondary); line-height: 1; }
.step__icon { width: 3rem; height: 3rem; background: var(--secondary); color: var(--primary); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.step__title { margin-bottom: 0.5rem; }
.step__body { color: var(--muted-foreground); line-height: 1.6; }

/* CTA band */
.cta-band { text-align: center; max-width: var(--container-4xl); margin: 0 auto; }
.cta-band__icon { margin: 0 auto 1.5rem; opacity: .9; }
.cta-band__heading { margin-bottom: 1rem; }
.cta-band__body { font-size: var(--text-lg); margin-bottom: 2rem; opacity: .85; }

/* FAQ (accordion via <details>) */
.faq { max-width: var(--container-3xl); margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary { padding: 1.25rem 0; font-weight: var(--font-weight-medium); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .15s ease; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 0 1.25rem; color: var(--muted-foreground); line-height: 1.6; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.testimonial__quote { font-style: italic; color: var(--foreground); margin-bottom: 1rem; line-height: 1.6; }
.testimonial__author { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--muted-foreground); }

/* Rich text */
.rich-text { max-width: var(--container-3xl); margin: 0 auto; }
.rich-text + .rich-text { margin-top: 2.5rem; }
.rich-text h2 { margin-bottom: 1rem; }
.rich-text p { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 1rem; }
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul { list-style: disc; padding-left: 1.5rem; color: var(--muted-foreground); margin-bottom: 1rem; }
.rich-text a { color: var(--primary); text-decoration: underline; }
.legal-updated { color: var(--muted-foreground); margin-top: 0.5rem; }

/* Pricing table */
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: var(--container-5xl); margin: 0 auto; align-items: stretch; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; display: flex; flex-direction: column; position: relative; }
.pricing-card--highlighted { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow-lg); }
.pricing-card__badge { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: var(--text-xs); font-weight: var(--font-weight-semibold); padding: 0.25rem 0.875rem; border-radius: var(--radius-full); }
.pricing-card__name { margin-bottom: 0.5rem; }
.pricing-card__price { font-size: var(--text-3xl); font-weight: var(--font-weight-bold); color: var(--primary); margin-bottom: 0.25rem; }
.pricing-card__period { font-size: var(--text-sm); font-weight: var(--font-weight-normal); color: var(--muted-foreground); }
.pricing-card__desc { color: var(--muted-foreground); font-size: var(--text-sm); margin-bottom: 1.5rem; }
.pricing-card__features { flex: 1; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.5rem; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--text-sm); }
.pricing-card__features .icon { color: var(--success); margin-top: 0.15em; }

/* ── Surgeon avatar (photo or gender-inferred stock placeholder — matches
   the SPA's SurgeonAvatar.tsx; see THEME-NOTES.md) ─────────────────────── */

.avatar { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--muted); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── Surgeon cards ────────────────────────────────────────────────────── */

/* Vertical tile — home featured grid */
.surgeon-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; }
.surgeon-tile:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-border); }
.surgeon-tile__name { transition: color .15s ease; }
.surgeon-tile:hover .surgeon-tile__name { color: var(--primary); }
.surgeon-tile__media { aspect-ratio: 1 / 1; position: relative; }
.surgeon-tile__body { padding: 1.5rem; }
.surgeon-tile__name { margin-bottom: 0.25rem; }
.surgeon-tile__specialty { font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: 0.75rem; }
.surgeon-tile__location { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: 1rem; }
.surgeon-tile__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }

/* Horizontal card — search results */
.surgeon-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; }
.surgeon-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-border); }
.surgeon-card__specialty { color: var(--accent); font-weight: var(--font-weight-semibold); }
.surgeon-card__inner { display: flex; flex-direction: column; }
@media (min-width: 640px) { .surgeon-card__inner { flex-direction: row; } }
.surgeon-card__media { width: 100%; height: 12rem; flex-shrink: 0; position: relative; }
@media (min-width: 640px) { .surgeon-card__media { width: 12rem; height: 12rem; } }
.surgeon-card__body { flex: 1; padding: 1.5rem; }
.surgeon-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.surgeon-card__name:hover { color: var(--primary); }
.surgeon-card__specialty { font-size: var(--text-sm); color: var(--muted-foreground); }
.surgeon-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0.75rem 0 1rem; font-size: var(--text-sm); }
.surgeon-card__meta-item { display: flex; align-items: center; gap: 0.375rem; color: var(--muted-foreground); }
.surgeon-card__insurance { margin-bottom: 1rem; }
.surgeon-card__insurance-label { font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: 0.25rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.25rem 0.5rem; background: var(--secondary); color: var(--secondary-foreground); font-size: var(--text-xs); border-radius: var(--radius-sm); }
.chip--muted { background: var(--muted); color: var(--muted-foreground); }
.surgeon-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Badge over media (claimed / sponsored ribbon) */
.media-badge { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; }
.media-ribbon { position: absolute; top: 0; left: 0; right: 0; background: var(--sponsored); color: var(--sponsored-foreground); font-size: var(--text-xs); font-weight: var(--font-weight-semibold); text-align: center; padding: 0.25rem 0; display: flex; align-items: center; justify-content: center; gap: 0.25rem; z-index: 1; }

/* Top-surgeons row card */
.surgeon-row { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s ease; }
.surgeon-row:hover { box-shadow: var(--shadow-md); }
.surgeon-row--sponsored { border: 2px solid color-mix(in srgb, var(--sponsored) 60%, transparent); }
@media (min-width: 640px) { .surgeon-row { flex-direction: row; } }
.surgeon-row__media { width: 100%; height: 11rem; position: relative; flex-shrink: 0; }
@media (min-width: 640px) { .surgeon-row__media { width: 9rem; height: auto; } }
.surgeon-row__body { flex: 1; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .surgeon-row__body { flex-direction: row; } }
.surgeon-row__info { flex: 1; min-width: 0; }
.surgeon-row__name-line { display: flex; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.25rem; }
.surgeon-row__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: var(--text-sm); color: var(--muted-foreground); margin-bottom: 0.75rem; }
.surgeon-row__bio { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.surgeon-row__side { display: flex; flex-direction: row; sm:flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; flex-shrink: 0; }
@media (min-width: 640px) { .surgeon-row__side { flex-direction: column; align-items: flex-end; justify-content: flex-start; } }
.rank-badge { flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--font-weight-bold); color: var(--muted-foreground); margin-top: 1rem; }
.rank-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.rank-row__content { flex: 1; min-width: 0; }

/* Skeleton loading state */
.skeleton { background: var(--muted); border-radius: var(--radius-md); }
.skeleton-pulse { animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ── Search page ──────────────────────────────────────────────────────── */

.page-header { background: #fff; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.page-header--lg { padding: 2rem 0; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--muted-foreground); }
.page-header--primary { position: relative; overflow: hidden; background: var(--hero-gradient); color: var(--primary-foreground); padding: 3.5rem 0; }
.page-header--primary::before { content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none; background: var(--hero-glow); }
.page-header--primary > * { position: relative; z-index: 1; }
.page-header--primary h1, .page-header--primary h2, .page-header--primary h3 { color: #fff; }
.page-header--primary p { color: rgba(255,255,255,.6); }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.toolbar__right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.sort-select-wrap { display: none; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.5rem 0.75rem; }
@media (min-width: 640px) { .sort-select-wrap { display: flex; } }
.sort-select-wrap select { border: none; background: transparent; font-size: var(--text-sm); }
.view-toggle-btn { padding: 0.5rem; border-radius: var(--radius-lg); background: #fff; color: var(--muted-foreground); border: none; }
.view-toggle-btn.is-active { background: var(--primary); color: #fff; }
.filters-toggle { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
@media (min-width: 768px) { .filters-toggle { display: none; } }

/* align-items: stretch (default) lets the sidebar column grow to the full
   height of the results, giving the sticky .filters-card room to travel so it
   stays pinned while the doctor list scrolls past it. */
.search-layout { display: flex; gap: 1.5rem; align-items: stretch; }
.search-sidebar { display: none; width: 16rem; flex-shrink: 0; }
.search-sidebar.is-open {
	display: block; position: fixed; inset: 0; z-index: 50; background: #fff; padding: 1.5rem; overflow-y: auto; width: auto;
}
@media (min-width: 768px) {
	.search-sidebar { display: block; position: static; background: transparent; padding: 0; }
}
.search-sidebar__panel { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .search-sidebar__panel { position: sticky; top: 5rem; } }
.search-sidebar__close { display: inline-flex; position: absolute; top: 1rem; right: 1rem; padding: 0.5rem; background: none; border: none; }
@media (min-width: 768px) { .search-sidebar__close { display: none; } }
.filter-group h3 { margin-bottom: 0.75rem; font-size: var(--text-base); }

.search-results { flex: 1; min-width: 0; }
.results-list { display: flex; flex-direction: column; gap: 1rem; }
.empty-state { background: #fff; border-radius: var(--radius-lg); padding: 3rem 1.5rem; text-align: center; }
.empty-state .icon { margin: 0 auto 1rem; color: var(--muted-foreground); }
.empty-state p { color: var(--muted-foreground); margin-bottom: 1rem; }
.load-more { text-align: center; margin-top: 1.5rem; }

/* ── Surgeon profile page ────────────────────────────────────────────── */

.profile-header { background: #fff; border-bottom: 1px solid var(--border); padding: 2rem 0; }
.profile-header__inner { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .profile-header__inner { flex-direction: row; } }
.profile-header__media { width: 100%; flex-shrink: 0; }
@media (min-width: 1024px) { .profile-header__media { width: 16rem; } }
.profile-header__photo { aspect-ratio: 1 / 1; position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.profile-header__main { flex: 1; }
.profile-header__specialty { font-size: var(--text-lg); color: var(--muted-foreground); margin-bottom: 1rem; }
.profile-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.profile-header__meta-item { display: flex; align-items: center; gap: 0.375rem; color: var(--muted-foreground); }
.profile-header__badges { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .profile-header__badges { grid-template-columns: repeat(3, 1fr); } }
.profile-header__badge { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); }
.profile-header__badge .icon { color: var(--success); }
.profile-header__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.profile-tabs-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 2rem 0; }
.profile-tabs { border-bottom: 1px solid var(--border); display: flex; overflow-x: auto; }
.profile-tab { padding: 1rem 1.5rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; color: var(--muted-foreground); white-space: nowrap; }
.profile-tab:hover { color: var(--foreground); }
.profile-tab.is-active { border-bottom-color: var(--primary); color: var(--primary); }
.profile-tab-panel { padding: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }

.info-block h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.info-block h3 .icon { color: var(--primary); }
.check-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
.check-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem; background: var(--muted); border-radius: var(--radius-lg); font-size: var(--text-sm); }
.check-item .icon { color: var(--primary); flex-shrink: 0; }
.list-card { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.list-card + .list-card { margin-top: 0.75rem; }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.tile { padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: var(--text-sm); text-align: center; }
.empty-note { padding: 1.5rem; background: var(--muted); border-radius: var(--radius-lg); text-align: center; color: var(--muted-foreground); }
.empty-note--lg { padding: 3rem 1.5rem; }

.rating-summary { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; background: var(--muted); border-radius: var(--radius-lg); }
@media (min-width: 768px) { .rating-summary { grid-template-columns: repeat(4, 1fr); } }
.rating-summary__block { text-align: center; }
.rating-summary__value { font-size: var(--text-4xl); font-weight: var(--font-weight-bold); margin-bottom: 0.5rem; }
.rating-summary__value--sm { font-size: var(--text-3xl); }
.rating-summary__label { font-size: var(--text-sm); color: var(--muted-foreground); }

.review { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.review + .review { margin-top: 1rem; }
.review__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.review__author { font-weight: var(--font-weight-medium); }
.review__date { font-size: var(--text-sm); color: var(--muted-foreground); }
.review__procedure { font-size: var(--text-sm); color: var(--muted-foreground); }
.review__body { color: var(--muted-foreground); margin-bottom: 1rem; line-height: 1.6; }
.review__footer { display: flex; align-items: center; gap: 1rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.review__footer button { background: none; border: none; color: inherit; }
.review__footer button:hover { color: var(--foreground); }

/* Star picker (write-a-review form) */
.star-picker { display: flex; align-items: center; gap: 0.75rem; }
.star-picker__label { font-size: var(--text-sm); color: var(--muted-foreground); width: 8rem; flex-shrink: 0; }
.star-picker__stars { display: flex; gap: 0.25rem; }
.star-picker__stars button { background: none; border: none; padding: 0; line-height: 0; }
.star-picker--lg .star-picker__stars button svg { width: 28px; height: 28px; }

/* ── Modal / dialog (Alpine) ─────────────────────────────────────────── */

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 32rem; max-height: 90vh; overflow-y: auto; padding: 1.5rem; }
.modal--lg { max-width: 36rem; }
.modal__header { margin-bottom: 0.5rem; }
.modal__title { margin-bottom: 0.25rem; }
.modal__desc { font-size: var(--text-sm); color: var(--muted-foreground); }
.modal__close { position: absolute; top: 1rem; right: 1rem; }
.modal-success { text-align: center; padding: 1.5rem 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.modal-success__icon { width: 3.5rem; height: 3.5rem; background: var(--success-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #16a34a; }

/* ── Compare page ─────────────────────────────────────────────────────── */

.compare-table-wrap { background: #fff; border-radius: var(--radius-lg); overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 1rem; border-bottom: 1px solid var(--border); }
.compare-table thead th { background: var(--muted); text-align: left; vertical-align: top; }
.compare-table thead th.compare-col { text-align: center; position: relative; min-width: 11rem; }
.compare-table tbody td { text-align: center; }
.compare-table .compare-cat { background: var(--muted); font-weight: var(--font-weight-medium); text-align: left; width: 12rem; }
.compare-remove { position: absolute; top: 0.5rem; right: 0.5rem; }
.compare-col__avatar { width: 6rem; height: 6rem; margin: 0 auto 0.75rem; position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.compare-col__name { font-weight: var(--font-weight-medium); font-size: var(--text-sm); margin-bottom: 0.25rem; }
.compare-col__specialty { font-size: var(--text-xs); color: var(--muted-foreground); margin-bottom: 0.5rem; }
.compare-tray { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); color: #fff; padding: 0.75rem 1rem; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 -4px 12px rgba(0,0,0,.15); }
.compare-tray.is-visible { display: flex; }
.compare-tray__count { font-size: var(--text-sm); }

/* ── Pagination ───────────────────────────────────────────────────────── */

.pagination { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem; border-radius: var(--radius-lg); font-size: var(--text-sm); border: 1px solid var(--border); background: #fff; }
.pagination a:hover { background: var(--muted); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .dots { border: none; background: none; }

/* ── Top surgeons page ────────────────────────────────────────────────── */

.specialty-nav-desktop { display: none; }
@media (min-width: 1024px) { .specialty-nav-desktop { display: block; } }
.specialty-mobile-nav { display: block; margin-bottom: 1rem; }
@media (min-width: 1024px) { .specialty-mobile-nav { display: none; } }
.specialty-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1rem; }
/* Lock the specialty nav on scroll (parent flex row uses align-items:stretch
   so this column is tall enough for the sticky element to travel). */
@media (min-width: 1024px) { .specialty-nav { position: sticky; top: 5rem; } }
.specialty-nav h3 { font-size: var(--text-sm); font-weight: var(--font-weight-semibold); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 0.75rem; }
.specialty-nav__list { display: flex; flex-direction: column; gap: 0.25rem; }
.specialty-nav__link { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; font-size: var(--text-sm); padding: 0.5rem 0.75rem; border-radius: var(--radius-lg); }
.specialty-nav__link:hover { background: var(--muted); }
.specialty-nav__link.is-active { background: var(--primary); color: #fff; font-weight: var(--font-weight-medium); }

.specialty-dropdown { position: relative; }
.specialty-dropdown__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: var(--text-sm); font-weight: var(--font-weight-medium); }
.specialty-dropdown__panel { margin-top: 0.25rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.specialty-dropdown__panel a { display: block; padding: 0.625rem 1rem; font-size: var(--text-sm); }
.specialty-dropdown__panel a:hover { background: var(--muted); }
.specialty-dropdown__panel a.is-active { color: var(--primary); font-weight: var(--font-weight-medium); background: var(--secondary); }

.section-label { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .03em; }

/* ── Blog ─────────────────────────────────────────────────────────────── */

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.blog-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.blog-card__media { aspect-ratio: 16 / 9; background: var(--muted); }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 1.5rem; }
.blog-card__meta { font-size: var(--text-xs); color: var(--muted-foreground); margin-bottom: 0.5rem; }
.blog-card__title { margin-bottom: 0.5rem; }
.blog-card__excerpt { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.6; }
.single-post__meta { margin-bottom: 0; }

/* ── Utility grid helpers used inline in templates ───────────────────── */

.stack { display: flex; flex-direction: column; }
.stack--gap-2 { gap: 0.5rem; }
.stack--gap-3 { gap: 0.75rem; }
.stack--gap-4 { gap: 1rem; }
.stack--gap-6 { gap: 1.5rem; }
.stack--gap-8 { gap: 2rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }
.cluster--gap-2 { gap: 0.5rem; }
.cluster--gap-3 { gap: 0.75rem; }
.cluster--gap-4 { gap: 1rem; }

[x-cloak] { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════════
 * Modernize refresh — components ported from updated-design/src/app/App.tsx.
 * Navy-gradient heroes, teal accents, rounded-2xl surfaces, DM-Mono step
 * labels, 3-step appointment stepper. Colors/radii all via tokens.css.
 * ════════════════════════════════════════════════════════════════════════ */

/* ── Nav polish ───────────────────────────────────────────────────────── */
.nav-link { padding: 0.5rem 0.75rem; border-radius: var(--radius-lg); font-weight: var(--font-weight-medium); transition: color .15s ease, background-color .15s ease; }
.nav-link:hover { color: var(--primary); background: var(--muted); }
.nav-link.is-active { color: var(--primary); background: var(--accent-soft); }

/* ── Shared: eyebrow badge + accent link ──────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); font-size: var(--text-xs); font-weight: var(--font-weight-medium); padding: 0.375rem 0.75rem; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,.15); }
.eyebrow .icon { color: var(--accent); }
.link-accent { display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--text-sm); font-weight: var(--font-weight-semibold); color: var(--accent); transition: gap .15s ease; }
.link-accent:hover { gap: 0.5rem; }
.btn--glass { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
.btn--glass:hover:not(:disabled) { background: rgba(255,255,255,.15); }

/* ── Home hero (navy gradient + glow + faded surgeon image) ────────────── */
.home-hero { position: relative; overflow: hidden; background: var(--hero-gradient-3); color: #fff; }
.home-hero__glow { position: absolute; inset: 0; opacity: .1; pointer-events: none; background: var(--hero-glow); }
.home-hero__media { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; display: none; }
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .2; -webkit-mask-image: linear-gradient(to right, transparent, black 40%); mask-image: linear-gradient(to right, transparent, black 40%); }
@media (min-width: 1024px) { .home-hero__media { display: block; } }
.home-hero__inner { position: relative; z-index: 1; padding: 4rem 0; }
@media (min-width: 1024px) { .home-hero__inner { padding: 6rem 0; } }
.home-hero__content { max-width: 48rem; }
.home-hero__title { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: var(--font-weight-bold); line-height: 1.08; color: #fff; margin: 1.5rem 0 1rem; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .home-hero__title { font-size: 3.75rem; } }
.home-hero__title .accent { color: var(--accent); }
.home-hero__body { color: rgba(255,255,255,.7); font-size: var(--text-lg); line-height: 1.6; margin-bottom: 2.5rem; max-width: 36rem; }

/* Hero search card */
.hero-searchcard { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 0.5rem; max-width: 42rem; }
.hero-searchcard__grid { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 640px) { .hero-searchcard__grid { flex-direction: row; } }
.hero-searchfield { display: flex; align-items: center; gap: 0.75rem; flex: 1; padding: 0.75rem 1rem; border-radius: var(--radius-lg); background: var(--muted); min-width: 0; }
.hero-searchfield .icon { color: var(--accent); flex-shrink: 0; }
.hero-searchfield input, .hero-searchfield select { border: none; background: transparent; width: 100%; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--foreground); outline: none; }
.hero-searchcard .btn { padding: 0.75rem 1.5rem; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.hero-tag { font-size: var(--text-xs); font-weight: var(--font-weight-medium); color: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.2); padding: 0.375rem 0.75rem; border-radius: var(--radius-full); background: rgba(255,255,255,.03); transition: background-color .15s ease; }
.hero-tag:hover { background: rgba(255,255,255,.1); }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; max-width: 32rem; }
.hero-stats__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: #fff; }
.hero-stats__label { font-size: var(--text-xs); color: rgba(255,255,255,.5); margin-top: 0.125rem; }

/* ── Page hero (top-level pages) ──────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; background: var(--hero-gradient); color: #fff; text-align: center; padding: 3.5rem 0; }
@media (min-width: 1024px) { .page-hero { padding: 5rem 0; } }
.page-hero__glow { position: absolute; inset: 0; opacity: .1; pointer-events: none; background: radial-gradient(circle at 15% 60%, var(--accent) 0%, transparent 45%), radial-gradient(circle at 85% 10%, #1a4a7a 0%, transparent 40%); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--font-weight-bold); color: #fff; margin: 1.25rem 0 1rem; line-height: 1.1; letter-spacing: -0.02em; }
@media (min-width: 640px) { .page-hero__title { font-size: var(--text-5xl); } }
.page-hero__title .accent { color: var(--accent); }
.page-hero__body { color: rgba(255,255,255,.6); max-width: 42rem; margin: 0 auto; font-size: var(--text-base); line-height: 1.6; }

/* ── Specialty strip (home) ───────────────────────────────────────────── */
.specialty-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.specialty-strip__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.specialty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .specialty-grid { grid-template-columns: repeat(6, 1fr); } }
.specialty-chip { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; transition: border-color .15s ease, background-color .15s ease; }
.specialty-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.specialty-chip__icon { color: var(--muted-foreground); transition: color .15s ease; }
.specialty-chip:hover .specialty-chip__icon, .specialty-chip:hover .specialty-chip__name { color: var(--accent); }
.specialty-chip__name { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--foreground); line-height: 1.2; transition: color .15s ease; }
.specialty-chip__count { font-size: var(--text-xs); color: var(--muted-foreground); }

/* ── How it works (3 step cards) ──────────────────────────────────────── */
.how-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .how-cards { grid-template-columns: repeat(3, 1fr); } }
.how-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.75rem; transition: border-color .15s ease, box-shadow .15s ease; }
.how-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.how-card__row { display: flex; align-items: flex-start; gap: 1rem; }
.how-card__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color .15s ease, color .15s ease; }
.how-card:hover .how-card__icon { background: var(--accent); color: #fff; }
.how-card__step { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: var(--font-weight-bold); color: var(--muted-foreground); margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.how-card__title { margin-bottom: 0.5rem; }
.how-card__body { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.6; }

/* ── Provider trust banner (navy) ─────────────────────────────────────── */
.provider-banner { background: var(--hero-gradient); color: #fff; }
.provider-banner h1, .provider-banner h2, .provider-banner h3, .provider-banner h4 { color: #fff; }
.provider-banner__top { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .provider-banner__top { grid-template-columns: 1fr 1fr; } }
.provider-banner__lead { color: rgba(255,255,255,.6); font-size: var(--text-sm); line-height: 1.6; max-width: 28rem; }
.provider-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 768px) { .provider-banner__actions { justify-content: flex-end; } }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.1); }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item .icon { color: var(--accent); flex-shrink: 0; }
.trust-item span { color: rgba(255,255,255,.7); font-size: var(--text-sm); font-weight: var(--font-weight-medium); }

/* ── Generic rounded-2xl content card ─────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; }
.card + .card { margin-top: 1.5rem; }
.card__title { margin-bottom: 1rem; }

/* ── Profile hero (navy gradient) ─────────────────────────────────────── */
.profile-hero { background: var(--hero-gradient); color: #fff; padding: 2.5rem 0; }
.profile-hero__back { display: inline-flex; align-items: center; gap: 0.375rem; color: rgba(255,255,255,.6); font-size: var(--text-sm); font-weight: var(--font-weight-medium); margin-bottom: 1.5rem; transition: color .15s ease; }
.profile-hero__back:hover { color: #fff; }
.profile-hero__inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 640px) { .profile-hero__inner { flex-direction: row; } }
.profile-hero__photo { position: relative; flex-shrink: 0; width: 7rem; height: 7rem; }
@media (min-width: 640px) { .profile-hero__photo { width: 9rem; height: 9rem; } }
.profile-hero__photo .avatar { border-radius: var(--radius-xl); border: 4px solid rgba(255,255,255,.2); }
.profile-hero__cert { position: absolute; bottom: -0.5rem; right: -0.5rem; width: 2rem; height: 2rem; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; color: #fff; box-shadow: var(--shadow); }
.profile-hero__main { flex: 1; min-width: 0; width: 100%; }
.profile-hero__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.profile-hero__name { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: #fff; }
@media (min-width: 640px) { .profile-hero__name { font-size: var(--text-3xl); } }
.profile-hero__creds { color: rgba(255,255,255,.6); font-size: var(--text-sm); margin-top: 0.125rem; }
.profile-hero__specialty { color: var(--accent); font-weight: var(--font-weight-semibold); margin-top: 0.25rem; }
.profile-hero__rating { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.75rem; color: #fff; font-size: var(--text-sm); }
.profile-hero__rating .dim { color: rgba(255,255,255,.5); }
.profile-hero__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.profile-hero__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.profile-hero .icon-btn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); border-radius: var(--radius-lg); }
.profile-hero .icon-btn:hover { color: #fff; background: rgba(255,255,255,.18); }
.badge--dark-accepting { background: rgba(20,83,45,.4); color: #86efac; border-color: rgba(21,128,61,.4); }
.badge--dark-telehealth { background: rgba(30,58,138,.4); color: #93c5fd; border-color: rgba(29,78,216,.4); }
.badge--dark-certified { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); border-color: var(--accent-border); }

/* Profile tabs bar — sticky under header, teal active */
.profile-tabs-bar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 4rem; z-index: 30; }
.profile-tabs-bar .profile-tabs { border-bottom: none; }
.profile-tab { font-weight: var(--font-weight-semibold); }
.profile-tab.is-active { border-bottom-color: var(--accent); color: var(--accent); }

/* In the refreshed 2-col profile, each tab panel's sections are their own
   cards, so the panel itself is just a flex stack with no card chrome. */
.profile-layout__main .profile-tab-panel { padding: 0; gap: 1.5rem; }
.profile-tab-panel .card + .card { margin-top: 0; }

/* Profile body layout with sticky booking sidebar */
.profile-layout { display: flex; flex-direction: column; gap: 1.75rem; }
@media (min-width: 1024px) { .profile-layout { flex-direction: row; } }
.profile-layout__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.profile-layout__aside { width: 100%; flex-shrink: 0; }
@media (min-width: 1024px) { .profile-layout__aside { width: 20rem; } }
.booking-sidebar { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 1024px) { .booking-sidebar { position: sticky; top: 5rem; } }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.25rem; }
.side-card__title { font-size: var(--text-sm); font-weight: var(--font-weight-bold); margin-bottom: 0.75rem; }
.next-avail { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: var(--text-sm); font-weight: var(--font-weight-semibold); }
.next-avail .icon { color: var(--accent); }
.next-avail__date { margin-left: auto; color: var(--success); font-weight: var(--font-weight-bold); }
.at-a-glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .at-a-glance { grid-template-columns: repeat(4, 1fr); } }
.glance { background: var(--muted); border-radius: var(--radius-lg); padding: 1rem; }
.glance__icon { color: var(--accent); margin-bottom: 0.5rem; }
.glance__label { font-size: var(--text-xs); color: var(--muted-foreground); margin-bottom: 0.125rem; }
.glance__value { font-family: var(--font-display); font-size: var(--text-sm); font-weight: var(--font-weight-bold); }
/* Location media (office photo or static map), with a CSS placeholder when
   no photo exists and no map key is configured. */
.location-media { border-radius: var(--radius-lg); overflow: hidden; background: var(--muted); }
.location-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.location-media--placeholder { display: flex; align-items: center; justify-content: center; color: var(--accent); background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 2rem 2rem; }
.location-media--placeholder .icon { filter: drop-shadow(0 2px 4px rgba(15,31,61,.2)); }

/* ── Modal / appointment stepper ──────────────────────────────────────── */
.modal-overlay { background: rgba(15,31,61,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal { border-radius: var(--radius-xl); box-shadow: 0 25px 50px -12px rgba(0,0,0,.35); padding: 0; }
.modal__pad { padding: 1.25rem 1.5rem; }
.modal__bar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }

.stepper { display: flex; align-items: center; gap: 0.5rem; padding: 1.25rem 1.5rem 0; }
.stepper__step { display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.stepper__dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--text-xs); font-weight: var(--font-weight-bold); flex-shrink: 0; background: var(--muted); color: var(--muted-foreground); transition: background-color .15s ease, color .15s ease; }
.stepper__step.is-active .stepper__dot { background: var(--primary); color: #fff; }
.stepper__step.is-done .stepper__dot { background: var(--accent); color: #fff; }
.stepper__label { font-size: var(--text-xs); font-weight: var(--font-weight-medium); color: var(--muted-foreground); white-space: nowrap; }
.stepper__step.is-active .stepper__label { color: var(--foreground); }
.stepper__line { height: 1px; flex: 1; background: var(--border); }
.stepper__step.is-done .stepper__line { background: var(--accent); }
@media (max-width: 640px) { .stepper__label { display: none; } }

.appt-step { display: none; }
.appt-step.is-active { display: block; }
.appt-section { margin-bottom: 1.25rem; }
.appt-label { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.appt-options { display: flex; gap: 0.5rem; }
.appt-option { flex: 1; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--foreground); text-align: center; }
.appt-option:hover { background: var(--muted); }
.appt-option.is-selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.appt-dates { display: flex; gap: 0.5rem; }
.appt-date { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0.75rem 0.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.appt-date:hover { background: var(--muted); }
.appt-date.is-selected { background: var(--primary); border-color: var(--primary); }
.appt-date.is-selected .appt-date__day, .appt-date.is-selected .appt-date__sub { color: #fff; }
.appt-date__day { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--foreground); }
.appt-date__sub { font-size: var(--text-xs); color: var(--muted-foreground); margin-top: 0.125rem; }
.appt-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.appt-time { padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--foreground); }
.appt-time:hover { background: var(--muted); }
.appt-time.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.appt-summary { background: var(--secondary); border-radius: var(--radius-lg); padding: 1rem; margin-bottom: 1.25rem; }
.appt-summary__label { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.appt-actions { display: flex; gap: 0.75rem; }

/* ── Rich doctor card (shared: home browse + search results) ───────────── */
.doctor-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.25rem; transition: box-shadow .15s ease, border-color .15s ease; }
.doctor-card.is-hidden { display: none; }
.doctor-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-border); }
.doctor-card__top { display: flex; gap: 1rem; }
.doctor-card__photo { position: relative; flex-shrink: 0; width: 5rem; height: 5rem; }
.doctor-card__photo .avatar { border-radius: var(--radius-lg); }
.doctor-card__cert { position: absolute; bottom: -0.375rem; right: -0.375rem; width: 1.5rem; height: 1.5rem; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.doctor-card__info { flex: 1; min-width: 0; }
.doctor-card__headrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.doctor-card__name { font-family: var(--font-display); font-weight: var(--font-weight-bold); color: var(--foreground); line-height: 1.25; transition: color .15s ease; }
.doctor-card:hover .doctor-card__name { color: var(--primary); }
.doctor-card__name .creds { font-family: var(--font-family); font-weight: var(--font-weight-medium); color: var(--muted-foreground); font-size: var(--text-sm); }
.doctor-card__specialty { font-size: var(--text-sm); color: var(--accent); font-weight: var(--font-weight-semibold); margin-top: 0.125rem; }
.doctor-card__save { flex-shrink: 0; padding: 0.5rem; border-radius: var(--radius-lg); background: transparent; border: none; color: var(--muted-foreground); transition: color .15s ease, background-color .15s ease; }
.doctor-card__save:hover { color: var(--accent); background: var(--accent-soft); }
.doctor-card__save.is-active { color: var(--accent); background: var(--accent-soft); }
.doctor-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; margin-top: 0.5rem; font-size: var(--text-xs); color: var(--muted-foreground); }
.doctor-card__meta-item { display: inline-flex; align-items: center; gap: 0.25rem; }
.doctor-card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.75rem; }
.doctor-card__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.doctor-card__avail-label { font-size: var(--text-xs); color: var(--muted-foreground); }
.doctor-card__avail-value { font-size: var(--text-sm); font-weight: var(--font-weight-semibold); }
.doctor-card__insurance { display: none; }
@media (min-width: 640px) { .doctor-card__insurance { display: block; } }
.doctor-card__insurance-label { font-size: var(--text-xs); color: var(--muted-foreground); margin-bottom: 0.25rem; }
.doctor-card__insurance .chip-row { gap: 0.25rem; }
.doctor-card__insurance .chip { background: var(--muted); color: var(--muted-foreground); }
.doctor-card__actions { display: flex; gap: 0.5rem; }

/* ── Reusable filter sidebar (Filter Results) ─────────────────────────── */
.filters-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.25rem; }
@media (min-width: 1024px) { .filters-card { position: sticky; top: 5rem; } }
.filters-card__title { font-size: var(--text-base); font-weight: var(--font-weight-bold); margin-bottom: 1.25rem; }
.filter-block { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid var(--border); }
.filter-block:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.filter-block__label { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.filter-list { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-list__item { text-align: left; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--foreground); padding: 0.5rem 0.75rem; border-radius: var(--radius-lg); background: transparent; border: none; transition: background-color .15s ease, color .15s ease; }
.filter-list__item:hover { background: var(--muted); }
.filter-list__item.is-active { background: var(--primary); color: #fff; }
.filter-toggle { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; cursor: pointer; }
.filter-toggle span { font-size: var(--text-sm); color: var(--foreground); }
.filter-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { position: relative; width: 2.25rem; height: 1.25rem; border-radius: var(--radius-full); background: var(--switch-background); flex-shrink: 0; transition: background-color .15s ease; }
.switch::after { content: ""; position: absolute; top: 0.125rem; left: 0.125rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
.filter-toggle input:checked + .switch { background: var(--accent); }
.filter-toggle input:checked + .switch::after { transform: translateX(1rem); }
.filter-toggle input:focus-visible + .switch { box-shadow: 0 0 0 3px var(--accent-soft); }
.filter-distance { display: flex; flex-direction: column; gap: 0.125rem; }
.filter-distance a { font-size: var(--text-sm); color: var(--foreground); padding: 0.375rem 0.75rem; border-radius: var(--radius-lg); }
.filter-distance a:hover { background: var(--muted); color: var(--primary); }

/* Browse toolbar (home + search results header) */
.browse-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.browse-toolbar__count { font-size: var(--text-sm); color: var(--muted-foreground); margin-top: 0.125rem; }
.browse-sort { position: relative; }
.browse-sort select { appearance: none; -webkit-appearance: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.5rem 2rem 0.5rem 1rem; font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--foreground); }
.browse-sort .icon { position: absolute; right: 0.625rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); pointer-events: none; }

/* ══ Specialties page ══════════════════════════════════════════════════ */
.spec-searchbar { background: #fff; border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.spec-searchbar__field { display: flex; align-items: center; gap: 0.75rem; background: var(--muted); border-radius: var(--radius-lg); padding: 0.75rem 1rem; max-width: 28rem; }
.spec-searchbar__field .icon { color: var(--accent); flex-shrink: 0; }
.spec-searchbar__field input { border: none; background: transparent; width: 100%; font-size: var(--text-sm); color: var(--foreground); outline: none; }
.spec-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; display: flex; flex-direction: column; }
.spec-card.is-hidden { display: none; }
.spec-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent-border); }
.spec-card__media { position: relative; height: 12rem; overflow: hidden; background: var(--muted); }
.spec-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.spec-card:hover .spec-card__media img { transform: scale(1.05); }
.spec-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,31,61,0.85) 0%, transparent 60%); }
.spec-card__mediahead { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.spec-card__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--accent) 90%, transparent); backdrop-filter: blur(4px); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.spec-card__title { font-family: var(--font-display); color: #fff; font-weight: var(--font-weight-bold); font-size: var(--text-lg); }
.spec-card__sub { color: rgba(255,255,255,.75); font-size: var(--text-xs); }
.spec-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.spec-card__desc { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1rem; }
.spec-card__cond-label { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.spec-card__conditions { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.25rem; }
.spec-card__conditions .chip { background: var(--muted); color: var(--foreground); }
.spec-card__body .btn { margin-top: auto; }
.spec-finder { margin-top: 3rem; text-align: center; border: 1px solid var(--accent-border); background: var(--accent-soft); border-radius: var(--radius-xl); padding: 2rem; }
.spec-finder__icon { width: 3rem; height: 3rem; border-radius: var(--radius-xl); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* ══ Resources / blog ═════════════════════════════════════════════════ */
.res-pills { background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 4rem; z-index: 20; }
.res-pills__inner { display: flex; gap: 0.5rem; overflow-x: auto; }
.res-pill { flex-shrink: 0; font-size: var(--text-sm); font-weight: var(--font-weight-semibold); padding: 0.5rem 1rem; border-radius: var(--radius-full); white-space: nowrap; color: var(--muted-foreground); background: transparent; border: none; transition: background-color .15s ease, color .15s ease; }
.res-pill:hover { background: var(--muted); color: var(--foreground); }
.res-pill.is-active { background: var(--primary); color: #fff; }
.featured-article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 2rem; transition: box-shadow .15s ease; display: flex; flex-direction: column; }
@media (min-width: 768px) { .featured-article { flex-direction: row; } }
.featured-article:hover { box-shadow: var(--shadow-lg); }
.featured-article__media { position: relative; overflow: hidden; background: var(--muted); min-height: 16rem; }
@media (min-width: 768px) { .featured-article__media { width: 50%; } }
.featured-article__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.featured-article:hover .featured-article__media img { transform: scale(1.05); }
.featured-article__cat { position: absolute; top: 1rem; left: 1rem; font-size: var(--text-xs); font-weight: var(--font-weight-bold); color: var(--accent); background: #fff; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }
.featured-article__body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .featured-article__body { width: 50%; } }
.article-meta { display: flex; align-items: center; gap: 0.5rem; font-size: var(--text-xs); color: var(--muted-foreground); margin-bottom: 0.75rem; }
.article-meta__eyebrow { color: var(--accent); font-weight: var(--font-weight-semibold); }
.article-meta__dot { width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--muted-foreground); }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; transition: box-shadow .15s ease, border-color .15s ease; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-border); }
.article-card__media { position: relative; height: 11rem; overflow: hidden; background: var(--muted); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__cat { position: absolute; top: 0.75rem; left: 0.75rem; font-size: var(--text-xs); font-weight: var(--font-weight-bold); color: var(--accent); background: #fff; padding: 0.2rem 0.625rem; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }
.article-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.article-card__title { font-size: var(--text-base); margin: 0 0 0.5rem; line-height: 1.35; transition: color .15s ease; }
.article-card:hover .article-card__title { color: var(--primary); }
.article-card__excerpt { font-size: var(--text-xs); color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card__more { margin-top: auto; }

/* ══ For Providers page ═══════════════════════════════════════════════ */
.prov-stats { background: #fff; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.prov-stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .prov-stats__grid { grid-template-columns: repeat(4, 1fr); } }
.prov-stat { text-align: center; }
.prov-stat__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--font-weight-bold); color: var(--primary); }
.prov-stat__label { font-size: var(--text-xs); color: var(--muted-foreground); margin-top: 0.125rem; }
.feature-cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; transition: box-shadow .15s ease, border-color .15s ease; }
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-border); }
.feature-card__icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; transition: background-color .15s ease, color .15s ease; }
.feature-card:hover .feature-card__icon { background: var(--accent); color: #fff; }
.feature-card__title { font-size: var(--text-base); margin-bottom: 0.5rem; }
.feature-card__body { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.6; }
.billing-toggle { display: inline-flex; align-items: center; gap: 0.25rem; background: var(--muted); border-radius: var(--radius-lg); padding: 0.25rem; margin-top: 1rem; }
.billing-toggle button { padding: 0.5rem 1.25rem; border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: var(--font-weight-semibold); background: transparent; border: none; color: var(--muted-foreground); }
.billing-toggle button.is-active { background: #fff; color: var(--foreground); box-shadow: var(--shadow-sm); }
.billing-toggle .save { margin-left: 0.375rem; font-size: var(--text-xs); color: var(--success); font-weight: var(--font-weight-bold); }
.plan-price__annual { display: none; }
.billing-annual .plan-price__annual { display: inline; }
.billing-annual .plan-price__monthly { display: none; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 64rem; margin: 0 auto; align-items: stretch; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; display: flex; flex-direction: column; position: relative; }
.plan--featured { background: var(--primary); color: #fff; border-color: var(--accent); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 40%, transparent); }
.plan--featured .plan__name, .plan--featured .plan__price { color: #fff; }
.plan__badge { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: var(--text-xs); font-weight: var(--font-weight-bold); padding: 0.25rem 1rem; border-radius: var(--radius-full); white-space: nowrap; }
.plan__name { font-size: var(--text-lg); margin-bottom: 0.25rem; }
.plan__price { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: var(--font-weight-bold); color: var(--primary); }
.plan__per { font-size: var(--text-sm); font-weight: var(--font-weight-normal); color: var(--muted-foreground); }
.plan--featured .plan__per { color: rgba(255,255,255,.6); }
.plan__desc { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.5; margin: 0.5rem 0 1.25rem; }
.plan--featured .plan__desc { color: rgba(255,255,255,.7); }
.plan__features { flex: 1; display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.25rem; }
.plan__features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--text-sm); }
.plan__features .icon { color: var(--success); flex-shrink: 0; margin-top: 0.1em; }
.plan--featured .plan__features .icon { color: var(--accent); }
.prov-testimonials { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .prov-testimonials { grid-template-columns: repeat(3, 1fr); } }
.prov-testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 1.5rem; }
.prov-testimonial__stars { display: flex; gap: 0.125rem; color: var(--star); margin-bottom: 0.75rem; }
.prov-testimonial__quote { font-size: var(--text-sm); color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1rem; }
.prov-testimonial__author { display: flex; align-items: center; gap: 0.75rem; }
.prov-testimonial__avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--secondary); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: var(--font-weight-bold); flex-shrink: 0; }
.prov-cta { border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; background: var(--hero-gradient); color: #fff; }
.prov-cta h2 { color: #fff; }
