/*
 * Inner-page design layer.
 *
 * The homepage matches the live reference via assets/css/reference.css. That
 * file also defines the design tokens (--teal, --ivory, --ink, --paper, --sand,
 * --coral, --muted, --line ...) and the base type/buttons. Its global h1/h2 are
 * intentionally homepage-scale, so here we (1) tame headings on inner pages via
 * the `.is-inner` body class and (2) add the shared components inner templates
 * use so the whole theme reads as one design.
 */

:root {
	--ktf-wrap: min(1180px, 100% - 48px);
	--ktf-wrap-narrow: min(880px, 100% - 48px);
}

/* ---------------------------------------------------------------- layout - */
.ktf-wrap { width: var(--ktf-wrap); margin-inline: auto; }
.ktf-wrap-narrow { width: var(--ktf-wrap-narrow); margin-inline: auto; }
.ktf-section { padding: clamp(56px, 8vw, 108px) 0; }
.ktf-section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.ktf-section--paper { background: var(--paper); }
.ktf-section--ivory { background: var(--ivory); }
.ktf-section--deep { background: var(--deep); color: var(--paper); }

/* -------------------------------------------------------- inner headings - */
:where(.is-inner) h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 300; line-height: 1.02; letter-spacing: -.04em; text-shadow: none; }
:where(.is-inner) h2 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 300; line-height: 1.05; letter-spacing: -.03em; margin: 0 0 .5em; }
:where(.is-inner) h3 { font-size: clamp(21px, 2vw, 27px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4em; }
:where(.is-inner) h4 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .4em; }

/* ------------------------------------------------------------- page hero - */
.ktf-page-hero {
	position: relative;
	background: var(--deep);
	color: var(--paper);
	padding: clamp(140px, 18vh, 220px) 0 clamp(56px, 8vh, 96px);
	overflow: hidden;
	isolation: isolate;
}
.ktf-page-hero::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
	        mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%);
	opacity: .5;
}
.ktf-page-hero::after {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(90% 70% at 80% -10%, #0f4f5566 0%, transparent 60%), radial-gradient(70% 60% at 0% 110%, #d7836826 0%, transparent 55%);
}
.ktf-page-hero .system-label { color: #ffffffcc; }
.ktf-page-hero h1 { max-width: 18ch; color: var(--paper); }
.ktf-page-hero__lede { max-width: 60ch; margin: 22px 0 0; color: #ffffffc4; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.7; }
.ktf-page-hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ktf-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #ffffff9e; margin-bottom: 26px; }
.ktf-breadcrumbs a { color: inherit; opacity: .8; }
.ktf-breadcrumbs a:hover { opacity: 1; }
.ktf-breadcrumbs span { opacity: .5; }

/* light hero variant for simple pages */
.ktf-page-hero--light { background: var(--ivory); color: var(--ink); }
.ktf-page-hero--light::after { background: radial-gradient(80% 60% at 85% -10%, #0f4f5514 0%, transparent 60%); }
.ktf-page-hero--light::before { -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%); background-image: linear-gradient(#0c2f3510 1px, transparent 1px), linear-gradient(90deg, #0c2f3510 1px, transparent 1px); }
.ktf-page-hero--light h1 { color: var(--ink); }
.ktf-page-hero--light .system-label { color: var(--teal); }
.ktf-page-hero--light .ktf-page-hero__lede { color: var(--muted); }
.ktf-page-hero--light .ktf-breadcrumbs { color: var(--muted); }

/* --------------------------------------------------------------- eyebrow - */
.ktf-eyebrow { font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mineral); display: inline-flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------- article - */
.ktf-prose { max-width: 72ch; color: var(--ink); font-size: 1.075rem; line-height: 1.78; }
.ktf-prose > * + * { margin-top: 1.15em; }
.ktf-prose h2 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; margin: 1.8em 0 .5em; }
.ktf-prose h3 { font-size: clamp(20px, 2vw, 25px); font-weight: 600; margin: 1.6em 0 .4em; }
.ktf-prose p, .ktf-prose li { color: var(--ink); }
.ktf-prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ktf-prose a:hover { color: var(--deep); }
.ktf-prose ul, .ktf-prose ol { padding-left: 1.3em; }
.ktf-prose li { margin-top: .5em; }
.ktf-prose img { border-radius: 8px; max-width: 100%; height: auto; }
.ktf-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--coral); color: var(--deep); font-size: 1.2rem; line-height: 1.5; }
.ktf-prose strong { color: var(--ink); }
.ktf-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* --------------------------------------------------------------- cards - */
.ktf-grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.ktf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ktf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ktf-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .ktf-grid--3, .ktf-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ktf-grid--2, .ktf-grid--3, .ktf-grid--4 { grid-template-columns: 1fr; } }

.ktf-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 2.4vw, 32px); transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.ktf-card:hover { transform: translateY(-3px); box-shadow: 0 24px 60px #071b2114; border-color: #0c2f3540; }
.ktf-card__num { font: 600 12px/1 var(--mono); color: var(--mineral); letter-spacing: .1em; }
.ktf-card h3 { margin-top: 14px; }
.ktf-card p { color: var(--muted); font-size: .98rem; line-height: 1.65; margin-top: 8px; }
.ktf-card__media { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; margin: -8px -8px 18px; }
.ktf-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ktf-card--link { color: inherit; }
.ktf-card--link .ktf-card__arrow { margin-top: auto; padding-top: 16px; color: var(--teal); font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 8px; }
.ktf-card__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: #0f4f5518; color: var(--teal); margin-bottom: 18px; }

/* --------------------------------------------------------------- stats - */
.ktf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (max-width: 720px) { .ktf-stats { grid-template-columns: repeat(2, 1fr); } }
.ktf-stat { background: var(--paper); padding: clamp(22px, 2.4vw, 34px); }
.ktf-stat b { display: block; font-size: clamp(32px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.03em; color: var(--deep); line-height: 1; }
.ktf-stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .9rem; }

/* ----------------------------------------------------------------- cta - */
.ktf-cta { position: relative; background: var(--deep); color: var(--paper); border-radius: 14px; padding: clamp(40px, 6vw, 80px); overflow: hidden; text-align: center; isolation: isolate; }
.ktf-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% -20%, #0f4f5566, transparent 60%); }
.ktf-cta h2 { color: var(--paper); }
.ktf-cta p { color: #ffffffbf; max-width: 54ch; margin: 16px auto 0; line-height: 1.7; }
.ktf-cta__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --------------------------------------------------------------- forms - */
.ktf-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ktf-field label { font: 600 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ktf-field input, .ktf-field select, .ktf-field textarea { width: 100%; padding: 14px 16px; border: 1px solid #0c2f353d; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.ktf-field input:focus, .ktf-field select:focus, .ktf-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px #0f4f5522; }

/* solid teal button (complements reference .button / .button-outline) */
.button-solid { background: var(--teal); color: #fff; border-color: var(--teal); }
.button-solid:hover { background: var(--deep); border-color: var(--deep); }

/* --------------------------------------------------------------- media - */
.ktf-figure { border-radius: 12px; overflow: hidden; }
.ktf-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ktf-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.ktf-split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .ktf-split, .ktf-split--reverse { grid-template-columns: 1fr; } .ktf-split--reverse > :first-child { order: 0; } }

/* ------------------------------------------------------------ accordion - */
.ktf-faq { border-top: 1px solid var(--line); }
.ktf-faq details { border-bottom: 1px solid var(--line); }
.ktf-faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-size: 1.1rem; font-weight: 500; color: var(--deep); }
.ktf-faq summary::-webkit-details-marker { display: none; }
.ktf-faq summary::after { content: "+"; position: absolute; right: 6px; top: 22px; font-size: 1.4rem; font-weight: 300; color: var(--mineral); transition: transform .25s; }
.ktf-faq details[open] summary::after { transform: rotate(45deg); }
.ktf-faq details > div { padding: 0 40px 26px 0; color: var(--muted); line-height: 1.75; }

/* team roster cards are defined in the "Orphaned inner-page components"
   section at the end of this file. */

/* ----------------------------------------------------------- pagination - */
.ktf-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }
.ktf-pagination .page-numbers { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: 600 13px/1 var(--mono); padding: 0 12px; }
.ktf-pagination .page-numbers.current { background: var(--deep); color: #fff; border-color: var(--deep); }
.ktf-pagination a.page-numbers:hover { border-color: var(--teal); color: var(--teal); }

/* --------------------------------------------------------- misc helpers - */
.ktf-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font: 500 13px/1 var(--mono); letter-spacing: .04em; }
.ktf-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--deep); background: #fff; }
.ktf-center { text-align: center; }
.ktf-lede { font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }

/* ==========================================================================
   Heading size refinements
   --------------------------------------------------------------------------
   The ported reference design uses very large editorial headings (clamp mins
   of 48–62px) that overflow and feel oversized on small screens. These re-tune
   the homepage + inner-page section headings so they scale smoothly from mobile
   to desktop. Loaded after reference.css, so they win the cascade.
   ========================================================================== */

/* Homepage hero */
.hero-center h1 { font-size: clamp(2.15rem, 7.4vw, 4.75rem); }

/* Homepage section headings (h2) */
.intro-heading h2,
.section-split-heading h2,
.coverage-heading h2,
.decision-grid h2,
.treatment-navigator-heading h2,
.florida-network-copy h2,
.fit-intro h2,
.science-system-copy h2 { font-size: clamp(1.9rem, 5vw, 3.35rem); }

.reclaim-copy h2,
.care-air-heading h2 { font-size: clamp(2rem, 5.4vw, 3.6rem); }

.closing-inner h2 { font-size: clamp(2.1rem, 6.4vw, 4.25rem); }

/* Homepage sub-headings (h3) */
.care-milestone-copy h3 { font-size: clamp(1.5rem, 3.6vw, 2.35rem); }
.pathway-content h3 { font-size: clamp(1.35rem, 3vw, 2.05rem); }
.fit-question h3,
.fit-result h3 { font-size: clamp(1.3rem, 2.8vw, 1.9rem); }

/* Inner-page reference heroes / article headings (used by some inner templates) */
.inner-hero-copy h1 { font-size: clamp(2rem, 6vw, 4rem); }
.article-callout h2,
.article-chapter h2,
.article-question-panel h2,
.article-sources h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }

/* Wrap long words / balance lines so nothing overflows the viewport */
.hero-center h1,
.reclaim-copy h2,
.care-air-heading h2,
.closing-inner h2,
[class*="-heading"] h2,
[class*="-copy"] h2 { overflow-wrap: break-word; text-wrap: balance; }

/* Tighten section rhythm + horizontal padding on small screens */
@media (max-width: 620px) {
	.hero-center h1 { font-size: clamp(1.3rem, 5.2vw, 1.85rem); letter-spacing: -.03em; line-height: 1.06; }
	.hero-center, .reclaim-copy, .fit-intro { padding-left: 20px; padding-right: 20px; }
	/* Let the mono sub-lines wrap instead of overflowing the viewport. */
	.hero-subline, .hero-condition-line { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
	.hero-subline { font-size: .6rem; }
	.intro-heading h2,
	.section-split-heading h2,
	.coverage-heading h2,
	.decision-grid h2,
	.treatment-navigator-heading h2,
	.florida-network-copy h2,
	.fit-intro h2,
	.science-system-copy h2,
	.reclaim-copy h2,
	.care-air-heading h2,
	.closing-inner h2 { font-size: clamp(1.35rem, 5.6vw, 1.95rem); letter-spacing: -.02em; line-height: 1.1; }
	.care-milestone-copy h3,
	.pathway-content h3,
	.fit-question h3,
	.fit-result h3,
	.inner-hero-copy h1 { font-size: clamp(1.3rem, 5.6vw, 1.8rem); }

	/* Inner-page layer on phones */
	:where(.is-inner) h1 { font-size: clamp(1.85rem, 8vw, 2.6rem); }
	:where(.is-inner) h2 { font-size: clamp(1.55rem, 6.4vw, 2.1rem); }
	.ktf-page-hero { padding: clamp(110px, 22vw, 150px) 0 clamp(40px, 9vw, 60px); }
	.ktf-section { padding: clamp(40px, 11vw, 64px) 0; }
	.ktf-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
	.hero-center h1 { font-size: 1.5rem; }
	.intro-heading h2,
	.section-split-heading h2,
	.reclaim-copy h2,
	.care-air-heading h2,
	.closing-inner h2,
	.florida-network-copy h2,
	.fit-intro h2,
	.treatment-navigator-heading h2,
	.science-system-copy h2 { font-size: 1.45rem; }
}

/* -------------------------------------------------- closing CTA card width - */
/* The dark closing card (.closing-cta-frame) is a block-level grid that
 * shrink-wraps to its content (~540px) instead of filling its section, leaving
 * huge ivory margins. Give it an explicit wrap width so it reads as a wide,
 * contained feature card; the inner content then spans properly. Mobile stays
 * fluid (the calc leaves a small side gutter). */
.closing-cta-frame {
	width: min(1200px, 100% - 40px);
	margin-inline: auto;
}

/* ==========================================================================
   Orphaned inner-page components
   --------------------------------------------------------------------------
   When the legacy 2,600-line app.css was removed, these components lost their
   styling (team roster, single-team sidebar, forms, booking datepicker, FAQ
   header, search). Re-authored here in the teal/ivory clinical system using the
   tokens from reference.css (--teal, --deep, --ivory, --paper, --mineral,
   --muted, --line, --coral, --mono, --sans). Loaded after reference.css.
   ========================================================================== */

/* --------------------------------------------------------- team roster --- */
.ktf-team-group + .ktf-team-group { margin-top: clamp(40px, 5vw, 72px); }
.ktf-team-group > .system-label { margin-bottom: 26px; }

.ktf-person { display: flex; flex-direction: column; color: inherit; }
.ktf-person__photo {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(160deg, var(--ivory), #e6ddce);
	border: 1px solid var(--line);
}
.ktf-person__photo img {
	width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 22%;
	display: block;
	transition: transform .55s cubic-bezier(.2, .72, .2, 1);
}
.ktf-person:hover .ktf-person__photo img { transform: scale(1.045); }
.ktf-person__placeholder {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: var(--mineral);
}
.ktf-person h3 {
	margin: 16px 0 0;
	font-size: clamp(18px, 1.4vw, 21px); font-weight: 500;
	letter-spacing: -.02em; line-height: 1.25; color: var(--deep);
}
.ktf-person > span {
	display: block; margin-top: 8px;
	color: var(--mineral); font: 600 11px/1.5 var(--mono);
	letter-spacing: .07em; text-transform: uppercase;
}
.ktf-person > span svg { vertical-align: -2px; opacity: .8; }
.ktf-person::after {
	content: ""; height: 2px; width: 26px; margin-top: 14px;
	background: var(--coral); border-radius: 2px;
	opacity: 0; transform: translateX(-6px);
	transition: opacity .3s, transform .3s;
}
.ktf-person:hover::after { opacity: 1; transform: none; }

/* -------------------------------------------------- single-team sidebar --- */
.ktf-hero-creds { font-weight: 300; color: #ffffffcc; }
.ktf-page-hero--light .ktf-hero-creds { color: var(--muted); }
.ktf-team-aside {
	background: #fff; border: 1px solid var(--line); border-radius: 12px;
	padding: clamp(24px, 2.4vw, 34px);
	box-shadow: 0 20px 50px #071b210d;
}
.ktf-team-aside__block > .system-label { margin-bottom: 4px; }
.ktf-creds li svg { color: var(--teal); flex: none; margin-top: 2px; }

/* --------------------------------------------------------------- forms --- */
.ktf-form { max-width: none; }
.ktf-field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.ktf-field input::placeholder,
.ktf-field textarea::placeholder { color: #7d8f90; }
.ktf-field select {
	appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2365787a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field-error { color: #c0392b; font: 500 12px/1.4 var(--mono); letter-spacing: .01em; }
.field-error:empty { display: none; }
.ktf-field input.has-error,
.ktf-field select.has-error,
.ktf-field textarea.has-error { border-color: #c0392b; box-shadow: 0 0 0 3px #c0392b1f; }

.btn-icon { display: inline-flex; align-items: center; gap: 10px; }

.booking-form__actions {
	margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center;
	gap: 16px 22px;
}
.booking-form__fineprint {
	display: inline-flex; align-items: center; gap: 8px; margin: 0;
	color: var(--muted); font-size: .82rem;
}
.booking-form__fineprint svg { color: var(--teal); flex: none; }
.booking-form__spinner {
	width: 15px; height: 15px; border-radius: 50%;
	border: 2px solid #ffffff66; border-top-color: #fff;
	display: none; animation: ktfSpin .7s linear infinite;
}
.button.is-loading { opacity: .85; cursor: progress; }
.button.is-loading .booking-form__spinner { display: inline-block; }
.button.is-loading .booking-form__arrow { display: none; }
@keyframes ktfSpin { to { transform: rotate(360deg); } }
.booking-form__status {
	margin-top: 20px; padding: 16px 18px; border-radius: 8px;
	font-size: .95rem; line-height: 1.55;
	border: 1px solid var(--line); background: var(--paper);
}
.booking-form__status.is-success { border-color: #1f8a5a3d; background: #1f8a5a12; color: #14603d; }
.booking-form__status.is-error { border-color: #c0392b3d; background: #c0392b10; color: #922; }

/* dark surface variant (homepage booking band) */
.booking-form--dark .ktf-field label { color: #ffffffb0; }
.booking-form--dark .ktf-field input,
.booking-form--dark .ktf-field select,
.booking-form--dark .ktf-field textarea {
	background: #ffffff0f; border-color: #ffffff2e; color: #fff;
}
.booking-form--dark .ktf-field input::placeholder,
.booking-form--dark .ktf-field textarea::placeholder { color: #ffffff70; }
.booking-form--dark .ktf-field input:focus,
.booking-form--dark .ktf-field select:focus,
.booking-form--dark .ktf-field textarea:focus {
	border-color: var(--aqua); box-shadow: 0 0 0 3px #8abfba26;
}
.booking-form--dark .ktf-datepicker__display { color: #fff; }
.booking-form--dark .ktf-datepicker__icon { color: #ffffffb0; }

/* ---------------------------------------------------------- datepicker --- */
.ktf-datepicker { position: relative; }
.ktf-datepicker__display { cursor: pointer; padding-right: 44px !important; }
.ktf-datepicker__icon {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	color: var(--mineral); pointer-events: none; display: inline-flex;
}
.ktf-datepicker__pop {
	position: fixed; z-index: 1000; width: 288px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 28px 70px #071b2124; padding: 14px;
}
.ktf-datepicker__pop[hidden] { display: none; }
.dp__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp__title { font: 600 14px/1 var(--sans); color: var(--deep); letter-spacing: -.01em; }
.dp__nav {
	width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
	background: #fff; color: var(--deep); font-size: 18px; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.dp__nav:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.dp__nav:disabled { opacity: .35; cursor: not-allowed; }
.dp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp__wd span { text-align: center; color: var(--muted); font: 600 10px/2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.dp__days { margin-top: 4px; }
.dp__empty { aspect-ratio: 1; }
.dp__day {
	aspect-ratio: 1; border: 0; background: none; border-radius: 8px; cursor: pointer;
	color: var(--ink); font: 500 13px/1 var(--sans);
	display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.dp__day:hover:not(:disabled) { background: #0f4f5514; color: var(--teal); }
.dp__day.is-today { box-shadow: inset 0 0 0 1px var(--mineral); }
.dp__day.is-sel { background: var(--teal); color: #fff; }
.dp__day:disabled { color: #c3cccc; cursor: not-allowed; }
.ktf-datepicker__pop--dark { background: #0a2930; border-color: #ffffff26; box-shadow: 0 28px 70px #00000059; }
.ktf-datepicker__pop--dark .dp__title { color: #fff; }
.ktf-datepicker__pop--dark .dp__nav { background: #ffffff0f; border-color: #ffffff26; color: #fff; }
.ktf-datepicker__pop--dark .dp__day { color: #e6efee; }
.ktf-datepicker__pop--dark .dp__day:hover:not(:disabled) { background: #ffffff1a; color: #fff; }
.ktf-datepicker__pop--dark .dp__day:disabled { color: #ffffff40; }

/* ---------------------------------------------------------------- FAQ --- */
.ktf-faq__intro { margin-bottom: 30px; }
.ktf-faq__intro h2 { margin-top: 8px; }
.ktf-faq__lede { margin-top: 14px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; max-width: 60ch; }
.ktf-faq__still {
	margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
	color: var(--deep); font-weight: 500;
}

/* -------------------------------------------------------------- search --- */
.ktf-search { position: relative; width: 100%; max-width: 560px; }
.ktf-search__icon {
	position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
	color: var(--mineral); pointer-events: none; display: inline-flex;
}
.ktf-search input[type="search"] {
	width: 100%; padding: 15px 20px 15px 52px;
	border: 1px solid #0c2f353d; border-radius: 999px; background: #fff;
	color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.ktf-search input[type="search"]::placeholder { color: #7d8f90; }
.ktf-search input[type="search"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px #0f4f5522; }

/* ------------------------------------------------- adaptive header (inner) ---
 * The reference header paints light text for dark heroes. On inner pages with a
 * pale hero (blog posts, the journal, light page heroes) that text is invisible
 * and the scrolled pill crams its menu under the centred brand. The site-nav
 * script flags `.is-light-top` whenever the header sits over light content; we
 * recolour it to ink there and, once scrolled, drop the brand into the flex row
 * so the menu / brand / actions share the pill instead of overlapping.
 * ------------------------------------------------------------------------- */

/* Scoped to `.innerBody` (every non-front page) so the home header is untouched.
 *
 * Ink text while the header floats (un-scrolled) over a light hero. These
 * variables feed the existing var-driven header rules, so the menu, brand,
 * phone and "Start conversation" button all flip together. */
.innerBody .adaptive-header.is-light-top:not(.is-scrolled) {
	--header-text: #10272c;
	--header-muted: #4d6265;
	--header-action-bg: rgba(16, 39, 44, 0.05);
	--header-action-border: rgba(16, 39, 44, 0.22);
}
.innerBody .adaptive-header.is-light-top:not(.is-scrolled) .desktop-nav a:hover { color: var(--teal); }

/* The compact "Call now" pill (≤900px) hard-codes white, so recolour it too. */
@media (max-width: 900px) {
	.innerBody .adaptive-header.is-light-top:not(.is-scrolled) .header-phone span {
		color: #10272c;
		background: rgba(16, 39, 44, 0.06);
		border-color: rgba(16, 39, 44, 0.28);
		box-shadow: none;
	}
}

/* Scrolled pill (desktop, all pages): the brand is absolutely centred, which
 * lets a wide menu overlap it. Return it to the flex flow so nothing collides —
 * space is shared and the menu gets a little more breathing room. The un-scrolled
 * header keeps its original centred brand, so the home page top is unchanged. */
@media (min-width: 901px) {
	.adaptive-header.is-scrolled .adaptive-header-shell > .header-brand {
		position: static;
		transform: none;
		margin: 0 auto;
	}
	.adaptive-header.is-scrolled .desktop-nav { gap: clamp(14px, 1.5vw, 26px); }
}

/* ============================================================================
 * Home — dynamic FAQ accordion (template-parts/home/questions.php).
 * The conditions/team/journal sections reuse .treatment-section markup, so they
 * need no new CSS; only the FAQ section is bespoke.
 * ========================================================================== */
.home-faq-section { background: var(--paper, #fbf9f3); padding: clamp(70px, 10vw, 160px) 0; }
.home-faq-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 9vw; align-items: start; }
.home-faq-intro h2 {
	font-size: clamp(30px, 4vw, 52px); line-height: 1.02; letter-spacing: -.02em;
	margin: 0 0 20px; color: var(--ink, #10272c);
}
.home-faq-intro > p { color: var(--muted, #65787a); max-width: 46ch; line-height: 1.6; margin: 0; }
.home-faq-intro .text-arrow { margin-top: 26px; }
.home-faq-list { border-top: 1px solid var(--line, #0c2f3526); }
.home-faq-item { border-bottom: 1px solid var(--line, #0c2f3526); }
.home-faq-item summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	gap: 20px; padding: 22px 2px; color: var(--ink, #10272c);
	font-weight: 560; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.35;
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary:focus-visible { outline: 2px solid var(--coral, #d78368); outline-offset: 3px; }
.home-faq-item summary i { position: relative; flex: none; width: 16px; height: 16px; margin-top: 3px; }
.home-faq-item summary i::before, .home-faq-item summary i::after {
	content: ""; position: absolute; background: var(--teal, #0f4f55);
	transition: transform .3s ease, opacity .3s ease;
}
.home-faq-item summary i::before { top: 7px; left: 0; width: 16px; height: 2px; }
.home-faq-item summary i::after { top: 0; left: 7px; width: 2px; height: 16px; }
.home-faq-item[open] summary i::after { transform: scaleY(0); opacity: 0; }
.home-faq-answer { padding: 0 2px 24px; color: var(--muted, #65787a); line-height: 1.65; max-width: 62ch; }
.home-faq-answer p { margin: 0 0 12px; }
.home-faq-answer p:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
	.home-faq-grid { grid-template-columns: 1fr; gap: 36px; }
}
