/* New look for Junquera Family Dentistry (2026-11-01). Two color directions, set by data-dir on <html>, and two heading
   fonts, set by data-font. Blue is the default. Shared idea: plaster walls and arched windows from her office, with camel from
   her waiting room in both colors. Loads after dentalrun.css. */

/* Fonts ------------------------------------------------------------------- */
@font-face { font-family: "Soiren"; src: url("../fonts/Soiren.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Malfin"; src: url("../fonts/Malfin-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Malfin"; src: url("../fonts/Malfin-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Parson"; src: url("../fonts/Parson-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Parson"; src: url("../fonts/Parson-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Parson"; src: url("../fonts/Parson-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Parson"; src: url("../fonts/Parson-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Dental Signature"; src: url("../fonts/DentalSignature.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

/* Tokens ------------------------------------------------------------------ */
html:root {
	--font-display: "Soiren", "Parson", system-ui, sans-serif;
	--font-body: "Parson", system-ui, sans-serif;
	--wp--preset--font-family--display: var(--font-display);
	--wp--preset--font-family--body: var(--font-body);
	--head-weight: 400;

	--bg-deep: #13213F; --bg-section: #18294D; --bg-card: #203563;
	--bg-deep-rgb: 19, 33, 63; --bg-card-rgb: 32, 53, 99;
	--surface-light: #F8F4EA; --surface-light-2: #EFE8DA; --surface-light-rgb: 248, 244, 234;
	--text-on-light: #13213F; --text-muted-light: #47536C;
	--text-on-dark: #F8F4EA; --text-muted: #C5CEDF;
	--accent: #B06C3A; --accent-deep: #8F5730; --accent-bright: #D8A06E; --accent-bright-rgb: 216, 160, 110;
	--camel: #B06C3A; --camel-deep: #8F5730; --camel-light: #D8A06E; --fc-lilac: #D8A06E;
	--promise-dash: #D8A06E; --ticker-bg: var(--bg-deep); --stack-bg: var(--surface-light);
	--word-on-dark: #D8A06E;
	--tex-dark: url("../img/junquera/tex/plaster-navy.jpg");
	--tex-light: url("../img/junquera/tex/plaster-ivory.jpg");
	--tex-light-2: url("../img/junquera/tex/plaster-oat.jpg");
	--hero-ink: #fff; --hero-soft: rgba(255, 255, 255, .86);
	--hero-wash: linear-gradient(90deg, rgba(19, 33, 63, .88) 0%, rgba(19, 33, 63, .66) 38%, rgba(19, 33, 63, .14) 74%), linear-gradient(0deg, rgba(19, 33, 63, .55) 0%, rgba(19, 33, 63, 0) 34%);
	--hero-wash-phone: linear-gradient(180deg, rgba(19, 33, 63, .3) 0%, rgba(19, 33, 63, .1) 22%, rgba(19, 33, 63, .94) 62%, #13213F 100%);
}
html[data-dir="ivory"] {
	--bg-deep: #8A5A36; --bg-section: #93623C; --bg-card: #A06C43;
	--bg-deep-rgb: 138, 90, 54; --bg-card-rgb: 160, 108, 67;
	--text-on-light: #3A2A1E; --text-muted-light: #66564A;
	--text-on-dark: #FBF7EE; --text-muted: #F3E7D8;
	--accent-bright: #F4D6B4; --accent-bright-rgb: 216, 160, 110;
	--word-on-dark: #F9E3C8;
	--tex-dark: url("../img/junquera/tex/plaster-camel.jpg");
	--hero-ink: #3A2A1E; --hero-soft: #5C4B3E;
	--hero-wash: linear-gradient(90deg, rgba(248, 244, 234, .96) 0%, rgba(248, 244, 234, .86) 36%, rgba(248, 244, 234, .12) 70%);
	--hero-wash-phone: linear-gradient(180deg, rgba(248, 244, 234, .08) 0%, rgba(248, 244, 234, .1) 24%, rgba(248, 244, 234, .96) 60%, #F8F4EA 100%);
}
html[data-font="malfin"] { --font-display: "Malfin", "Parson", system-ui, sans-serif; --head-weight: 700; }

/* Base ------------------------------------------------------------------- */
body { background: var(--surface-light); }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4, .dr-hero__title, .dr-trust__num, .dr-stack__title, .dr-doctor__name, .dr-review__quote, .dr-ticker__word {
	font-weight: var(--head-weight); font-synthesis: none; font-variant-ligatures: none; font-feature-settings: "liga" 0, "dlig" 0; letter-spacing: -.005em;
}
.dr-eyebrow { display: none !important; }

/* Key words: camel on the dark walls, one solid color on the light ones. */
.dr-main .dr-grad, .dr-section--cream .dr-grad, .dr-hero__title .dr-grad, .dr-hero__title .dr-grad div { background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; }
.dr-main .dr-grad { color: var(--word-on-dark); }
.dr-main .dr-section--cream .dr-grad, .dr-section--cream .dr-grad { color: inherit; }
.dr-hero--promise .dr-hero__title .dr-grad, .dr-hero--promise .dr-hero__title .dr-grad div { color: var(--word-on-dark); }
html[data-dir="ivory"] .dr-hero--promise .dr-hero__title .dr-grad, html[data-dir="ivory"] .dr-hero--promise .dr-hero__title .dr-grad div { color: inherit; }

/* Walls ------------------------------------------------------------------- */
.dr-main .dr-section--cream, .dr-main .dr-stack.dr-section--cream { background: var(--surface-light) var(--tex-light) repeat; color: var(--text-on-light); }
.dr-main .dr-why.dr-section--cream, .dr-main .dr-results.dr-section--cream { background: var(--surface-light-2) var(--tex-light-2) repeat; }
.dr-main .dr-section:not(.dr-section--cream) { background: var(--bg-deep) var(--tex-dark) repeat; color: var(--text-on-dark); }
.dr-main > section::before { background-image: none !important; }
.dr-main .dr-section--cream.dr-contact { background: var(--surface-light) var(--tex-light) repeat !important; }
.dr-footer, .dr-ticker { background: var(--bg-deep) var(--tex-dark) repeat !important; }

/* Header: a floating pill of dark glass, so her white logo works over either wall ------- */
.dr-header, .dr-header.is-scrolled, body:not(.home) .dr-header, body:has(.dr-cpage) .dr-header, body:has(.dr-cpage) .dr-header.is-scrolled, body:has(.dr-thero--full) .dr-header, body:has(.dr-thero--full) .dr-header.is-scrolled {
	top: 12px; left: 16px; right: 16px; width: auto; max-width: 1360px; margin-inline: auto; padding: 8px 12px 8px 22px; border-radius: 999px;
	background: rgba(var(--bg-deep-rgb), .92); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: 0 10px 30px rgba(var(--bg-deep-rgb), .22), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
html:root .dr-header__logo img, html:root .dr-header.is-scrolled .dr-header__logo img { width: 104px; }

/* Hero: one full image, her treatment photo in both colors. Navy wash on Blue, an ivory wash on Ivory ----- */
.dr-hero--promise .dr-hero__media::after { background: var(--hero-wash); }
.dr-hero--promise { background: var(--bg-deep); color: var(--hero-ink); }
html[data-dir="ivory"] .dr-hero--promise { background: var(--surface-light); }
.dr-hero--promise .dr-hero__title { color: var(--hero-ink); font-size: clamp(2.6rem, 4.7vw, 4.6rem); line-height: 1.1; max-width: 13.5em; overflow-wrap: normal; word-break: normal; hyphens: none; }
.dr-hero--promise .dr-hero__lead { color: var(--hero-soft); }
html[data-dir="ivory"] .dr-hero--promise .fc-rating-badge, html[data-dir="ivory"] .fc-rating-badge__text { color: var(--hero-ink); }
html[data-dir="ivory"] .dr-hero--promise .fc-rating-badge { background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(37, 53, 81, .16); }
html[data-dir="ivory"] .dr-hero--promise .dr-btn--primary .wp-block-button__link { background: var(--bg-deep); color: #fff; }
html[data-dir="ivory"] .dr-hero--promise .dr-btn--ghost .wp-block-button__link { color: var(--hero-ink); border-color: rgba(37, 53, 81, .32); background: transparent; }
.dr-hero--promise .dr-hero__promises { background: rgba(var(--bg-deep-rgb), .52); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-color: rgba(255, 255, 255, .3); box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .55); }
.dr-hero__promises strong { font-weight: 600; color: #fff; }
.dr-hero__promises span { font-weight: 400; color: rgba(255, 255, 255, .92); }

/* Ticker ------------------------------------------------------------------ */
.dr-ticker { padding: 14px 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.dr-ticker__word { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-on-dark); }

/* Trust strip: type only, no boxes ---------------------------------------- */
.dr-main .dr-trust .dr-trust__num { font-size: clamp(1.7rem, 2.6vw, 2.5rem); color: var(--text-on-light); }
.dr-main .dr-trust .dr-trust__label { color: var(--text-muted-light); }

/* Treatment cards: a wall with an arched photo rising from its floor ------ */
.dr-stack__card { height: min(72svh, 540px); border-radius: 30px; background: var(--bg-deep) var(--tex-dark) repeat; box-shadow: 0 -14px 36px -24px rgba(var(--bg-deep-rgb), .55), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.dr-stack__card:nth-child(even) { background: var(--surface-light-2) var(--tex-light-2) repeat; box-shadow: 0 -14px 36px -24px rgba(var(--bg-deep-rgb), .35), inset 0 0 0 1px rgba(var(--bg-deep-rgb), .08); }
.dr-stack__card::after { display: none; }
.dr-stack__card .dr-stack__img { z-index: 0; left: auto; right: clamp(24px, 5vw, 72px); top: 28px; bottom: 0; inset-block-end: 0; width: min(42%, 500px); height: calc(100% - 28px); border-radius: 999px 999px 0 0; object-position: 56% 30%; }
.dr-stack__body { top: 50%; bottom: auto; left: clamp(26px, 5vw, 72px); transform: translateY(-50%); max-width: min(46%, 470px); color: var(--text-on-dark); z-index: 1; }
.dr-stack__title { color: inherit; font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.12; }
.dr-stack__text { color: var(--text-muted); font-size: 1.08rem; }
.dr-stack__card:nth-child(even) .dr-stack__body { color: var(--text-on-light); }
.dr-stack__card:nth-child(even) .dr-stack__text { color: var(--text-muted-light); }
.dr-stack__card:nth-child(even) .dr-btn--ghost .wp-block-button__link, .dr-stack__card:nth-child(even) a.dr-btn--ghost { color: var(--text-on-light) !important; border-color: rgba(var(--bg-deep-rgb), .3) !important; background: transparent !important; }

/* Doctors: portrait arches ------------------------------------------------ */
.dr-doctor .dr-media--portrait { border-radius: 999px 999px 22px 22px; aspect-ratio: .78; }
.dr-doctors__grid--2 { gap: clamp(28px, 5vw, 72px); max-width: 1040px; margin-inline: auto; }
.dr-doctor__role { color: var(--accent-bright); }
.dr-section--cream .dr-doctor__role { color: var(--accent-deep); }

/* Inner pages share the arch: bios and the contact portrait. */
.dr-bio .dr-media--portrait, .dr-cpage__photo { border-radius: 999px 999px 22px 22px; aspect-ratio: .74; }
.dr-bio .dr-media img { object-position: 50% 20%; }
.dr-bio .dr-media::after, .dr-cpage__photo::after { display: none; }

/* Why us and info pages: one big soft corner, the curve of a smile ---------------------- */
.dr-why .dr-media { border-radius: 24px 260px 24px 24px; box-shadow: 0 26px 50px -30px rgba(var(--bg-deep-rgb), .6); }
.dr-why__list li strong { color: var(--text-on-light); }

/* Reviews: real glass, soft color behind it so the blur has something to bend ----------- */
.dr-main .dr-reviews { position: relative; isolation: isolate; overflow: hidden; }
.dr-main .dr-reviews::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(38% 46% at 74% 26%, rgba(var(--accent-bright-rgb), .5), transparent 70%), radial-gradient(34% 44% at 34% 84%, rgba(var(--accent-bright-rgb), .34), transparent 70%) !important; }
.fc-quote { background: rgba(255, 255, 255, .46); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 18px 34px -26px rgba(var(--bg-deep-rgb), .5); border: 0; }
/* Nov 2 (Ahmad): no rating card. The testimonials run in one row that scrolls sideways (swipe, trackpad or the arrows),
   cards snap into place, and the row bleeds to the screen edge so the next card peeks in. */
.fc-reviews__grid { display: block; position: relative; }
.fc-reviews__nav { display: flex; justify-content: center; gap: 12px; margin: 4px 0 0; }
html:root .fc-reviews__cards { cursor: grab; }
html:root .fc-reviews__cards.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.fc-reviews__cards.is-dragging .fc-quote { transition: none; transform: none; }
.fc-quote__g { position: absolute; top: 28px; right: 28px; width: 24px; height: 24px; line-height: 0; }
.fc-quote__g svg { width: 100%; height: 100%; }
.fc-reviews__arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(var(--bg-deep-rgb), .18); background: rgba(255, 255, 255, .6);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text-on-light); font-size: 1.2rem; cursor: pointer; transition: background .3s, transform .3s; }
.fc-reviews__arrow:hover { background: #fff; transform: translateY(-2px); }
.fc-reviews__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html:root .fc-reviews__cards { --row-edge: max(20px, calc(50vw - 660px)); display: flex; grid-template-columns: none; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--row-edge); margin: 0 calc(50% - 50vw); padding: 6px var(--row-edge) 34px; scrollbar-width: none; }
.fc-reviews__cards::-webkit-scrollbar { display: none; }
html:root .fc-quote { flex: 0 0 min(400px, 84vw); scroll-snap-align: start; }
.fc-quote__text { font-size: 1.04rem; line-height: 1.65; }
@media (max-width: 767px) { .fc-reviews__nav { display: none; } }
.fc-rating { background: var(--bg-deep) var(--tex-dark) repeat; border-radius: 26px 180px 26px 26px; }
.fc-rating::before { display: none; }
.fc-quote__mark { color: var(--accent); opacity: .22; }
.fc-quote__avatar { background: var(--bg-deep); }

/* Before and after ---------------------------------------------------------- */
.dr-compare { border-radius: 26px; }

/* Forms --------------------------------------------------------------------- */
.dr-main input:focus-visible, .dr-main textarea:focus-visible, .dr-main select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Tablet and phone ---------------------------------------------------------- */
@media (max-width: 767px) {
	.dr-header, .dr-header.is-scrolled, body:not(.home) .dr-header, body:has(.dr-cpage) .dr-header, body:has(.dr-thero--full) .dr-header { top: 8px; left: 10px; right: 10px; padding: 6px 8px 6px 16px; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(var(--bg-deep-rgb), .95); }
	.dr-hero--promise .dr-hero__media::after { background: var(--hero-wash-phone); }
	.dr-hero--promise .dr-hero__title { font-size: clamp(2.05rem, 9.2vw, 2.7rem); }
	.dr-hero--promise .dr-hero__promises { background: var(--bg-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }

	.dr-stack__card { position: relative; top: auto; height: auto; display: grid; padding: 26px 22px 0; }
	.dr-stack__body { position: static; transform: none; max-width: none; padding-bottom: 22px; }
	.dr-stack__card picture { display: block; order: 2; }
	.dr-stack__card .dr-stack__img { position: relative; inset: auto; order: 2; width: 86%; height: auto; aspect-ratio: .95; margin: 0 auto; right: auto; top: auto; display: block; }
	.dr-why .dr-media { border-radius: 20px 150px 20px 20px; }
	.fc-quote { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .78); }
}

/* Review 2 (Ahmad, 2026-11-01): words on the calm side of the photo, and the Ivory direction stays light, camel is the accent. */
.dr-hero--promise .dr-hero__content { display: flex; flex-direction: column; align-items: flex-start; text-align: left; max-width: 1320px; }
.dr-hero--promise .dr-hero__title, .dr-hero--promise .dr-hero__lead { margin-left: 0; margin-right: 0; text-align: left; }
.dr-hero--promise .dr-hero__title { max-width: 10.6em; }
.dr-hero--promise .dr-hero__lead { max-width: 33em; }
.dr-hero--promise .dr-hero__actions { justify-content: flex-start; }
html[data-dir="ivory"] .dr-hero--promise .dr-hero__title, html[data-dir="ivory"] .dr-hero--promise .dr-hero__title *, html[data-dir="ivory"] .dr-hero--promise .dr-hero__lead { text-shadow: none; }

html[data-dir="ivory"] .dr-main .dr-section:not(.dr-section--cream) { --text-on-dark: #3A2A1E; --text-muted: #66564A; background: var(--surface-light-2) var(--tex-light-2) repeat; color: var(--text-on-light); }
html[data-dir="ivory"] .dr-main .dr-section:not(.dr-section--cream) h2, html[data-dir="ivory"] .dr-main .dr-section:not(.dr-section--cream) h3, html[data-dir="ivory"] .dr-main .dr-section:not(.dr-section--cream) .dr-grad { color: var(--text-on-light); }
html[data-dir="ivory"] .dr-main .dr-section:not(.dr-section--cream) .dr-lead, html[data-dir="ivory"] .dr-main .dr-section:not(.dr-section--cream) p { color: var(--text-muted-light); }
html[data-dir="ivory"] .dr-main .dr-section:not(.dr-section--cream) h3, html[data-dir="ivory"] .dr-doctor__name { color: var(--text-on-light); }
html[data-dir="ivory"] .dr-doctor__role { color: var(--accent-deep); }
html[data-dir="ivory"] .dr-faq__item { background: rgba(255, 255, 255, .6); border-color: rgba(37, 53, 81, .12); }
html[data-dir="ivory"] .dr-faq__item summary { color: var(--text-on-light); }
html[data-dir="ivory"] .dr-faq .dr-btn--ghost, html[data-dir="ivory"] .dr-faq a.dr-btn { color: var(--text-on-light) !important; border-color: rgba(37, 53, 81, .3) !important; }
html[data-dir="ivory"] .dr-stack__card, html[data-dir="ivory"] .dr-stack__card:nth-child(even) { background: var(--surface-light-2) var(--tex-light-2) repeat; box-shadow: 0 -14px 36px -24px rgba(37, 53, 81, .35), inset 0 0 0 1px rgba(37, 53, 81, .08); }
html[data-dir="ivory"] .dr-stack__body { color: var(--text-on-light); }
html[data-dir="ivory"] .dr-stack__text { color: var(--text-muted-light); }
html[data-dir="ivory"] .dr-stack__card .dr-btn--ghost, html[data-dir="ivory"] .dr-stack__card a.dr-btn--ghost { color: var(--text-on-light) !important; border-color: rgba(37, 53, 81, .3) !important; background: transparent !important; }
html[data-dir="ivory"] .dr-why__list li strong { color: var(--text-on-light); }
.dr-hero--promise .fc-rating-badge { align-self: flex-start; margin-inline: 0; }
html[data-dir="ivory"] .dr-hero--promise .dr-hero__promises { background: rgba(var(--bg-deep-rgb), .9); }
html[data-dir="ivory"] .dr-hero__promises strong::before { background: #F4D6B4; }

/* Review 3 (Ahmad, 2026-11-02): Ivory keeps her treatment photo in the hero and its glass reads as frosted glass.
   Her logo blue (#253551) is the ink for all Ivory text, with no brown text beside it; camel stays the accent and the
   header is camel frosted glass. */
html[data-dir="ivory"] { --blue-ink: #253551; --blue-ink-rgb: 37, 53, 81;
	--text-on-light: #253551; --text-muted-light: #535E74; --hero-ink: #253551; --hero-soft: #4C576E; }
html[data-dir="ivory"] .dr-main .dr-section:not(.dr-section--cream) { --text-on-dark: #253551; --text-muted: #535E74; }
html[data-dir="ivory"] .dr-header, html[data-dir="ivory"] .dr-header.is-scrolled, html[data-dir="ivory"] body:not(.home) .dr-header, html[data-dir="ivory"] body:has(.dr-cpage) .dr-header, html[data-dir="ivory"] body:has(.dr-cpage) .dr-header.is-scrolled, html[data-dir="ivory"] body:has(.dr-thero--full) .dr-header, html[data-dir="ivory"] body:has(.dr-thero--full) .dr-header.is-scrolled {
	background: linear-gradient(135deg, rgba(var(--bg-deep-rgb), .94), rgba(var(--bg-deep-rgb), .88)); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); /* Nov 5 contrast check: was .8/.68, menu text measured 3.4 to 4.8 to 1 over the hero photo */
	box-shadow: 0 12px 32px -10px rgba(var(--bg-deep-rgb), .4), inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .34);
}
html[data-dir="ivory"] .dr-hero--promise .dr-hero__promises {
	background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .38)); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
	border-color: rgba(255, 255, 255, .7); box-shadow: 0 24px 44px -26px rgba(var(--blue-ink-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .85);
}
html[data-dir="ivory"] .dr-hero__promises strong { color: var(--blue-ink); }
html[data-dir="ivory"] .dr-hero__promises span { color: var(--text-muted-light); }
html[data-dir="ivory"] .dr-hero__promises strong::before { background: var(--camel); }
html[data-dir="ivory"] .dr-hero--promise .fc-rating-badge { background: rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
html[data-dir="ivory"] .dr-doctor__role, html[data-dir="ivory"] .dr-section--cream .dr-doctor__role { color: var(--camel-deep); }

/* Hero photo of both doctors (IMG_1574, 2026-11-02). The pair fill the middle of a wide frame, so on computers the photo
   sits on the right at full height and its left edge melts into the wall color (smoothed fade, 17 stops); the headline
   wraps to three lines and ends before the photo. Tablets and phones: the photo on top, the words below it. */
.dr-hero--promise, html:root .dr-hero--promise { background: var(--bg-deep) var(--tex-dark) repeat; }
html[data-dir="ivory"] .dr-hero--promise { background: var(--surface-light) var(--tex-light) repeat; }
@media (min-width: 1024px) {
	html:root .dr-hero--promise .dr-hero__media { left: 42%;
		--hero-fade: linear-gradient(90deg, rgba(0,0,0,0.000) 0.00%, rgba(0,0,0,0.011) 1.25%, rgba(0,0,0,0.043) 2.50%, rgba(0,0,0,0.092) 3.75%, rgba(0,0,0,0.156) 5.00%, rgba(0,0,0,0.232) 6.25%, rgba(0,0,0,0.316) 7.50%, rgba(0,0,0,0.407) 8.75%, rgba(0,0,0,0.500) 10.00%, rgba(0,0,0,0.593) 11.25%, rgba(0,0,0,0.684) 12.50%, rgba(0,0,0,0.768) 13.75%, rgba(0,0,0,0.844) 15.00%, rgba(0,0,0,0.908) 16.25%, rgba(0,0,0,0.957) 17.50%, rgba(0,0,0,0.989) 18.75%, rgba(0,0,0,1.000) 20.00%); }
	html:root .dr-hero--promise .dr-hero__media img, html:root .dr-hero--promise .dr-hero__media::before { -webkit-mask-image: var(--hero-fade); mask-image: var(--hero-fade); }
	html:root .dr-hero--promise .dr-hero__media img { object-position: 52% 40%; }
	html:root .dr-hero--promise .dr-hero__media::after { background: linear-gradient(0deg, rgba(var(--bg-deep-rgb), .5) 0%, rgba(var(--bg-deep-rgb), 0) 30%); }
	html[data-dir="ivory"] .dr-hero--promise .dr-hero__media::after { background: linear-gradient(0deg, rgba(var(--surface-light-rgb), .45) 0%, rgba(var(--surface-light-rgb), 0) 30%); }
	html:root .dr-hero--promise .dr-hero__title { max-width: 8.2em; }
	html:root .dr-hero--promise .dr-hero__lead { max-width: min(28em, 36vw); }
}
@media (max-width: 1023px) {
	html:root .dr-hero--promise { padding-top: 0; }
	html:root .dr-hero--promise .dr-hero__media { top: 64px; bottom: auto; height: 56.25vw; }
	html:root .dr-hero--promise .dr-hero__media img { object-position: 50% 40%; }
	html:root .dr-hero--promise .dr-hero__media::after { background: linear-gradient(180deg, rgba(var(--bg-deep-rgb), 0) 55%, rgba(var(--bg-deep-rgb), .85) 92%, var(--bg-deep) 100%); }
	html[data-dir="ivory"] .dr-hero--promise .dr-hero__media::after { background: linear-gradient(180deg, rgba(var(--surface-light-rgb), 0) 55%, rgba(var(--surface-light-rgb), .85) 92%, var(--surface-light) 100%); }
	html:root .dr-hero--promise .dr-hero__content { padding-top: calc(64px + 50vw); }
}
@media (max-width: 767px) {
	html:root .dr-hero--promise .dr-hero__media { height: 103vw; }
	html:root .dr-hero--promise .dr-hero__media img { object-position: 50% 30%; }
	html:root .dr-hero--promise .dr-hero__content { padding-top: calc(64px + 88vw); }
}

/* Color grade on the hero photo (Ahmad, 2026-11-02): a light layer of the wall color in soft light pulls the photo toward
   the palette, and the stronger blend lives at the edges (an inner shadow of the wall color), so the faces in the middle
   keep natural skin. A full-strength grade made skin dark and grey on Blue. */
html:root .dr-hero--promise .dr-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: #1B2D55; mix-blend-mode: soft-light; opacity: .3; }
html:root .dr-hero--promise .dr-hero__media img { filter: saturate(.9); }
html:root .dr-hero--promise .dr-hero__media::after { z-index: 2; box-shadow: inset 0 0 180px 40px rgba(var(--bg-deep-rgb), .5); }
html[data-dir="ivory"] .dr-hero--promise .dr-hero__media::before { background: #E9D5BC; mix-blend-mode: soft-light; opacity: .4; }
html[data-dir="ivory"] .dr-hero--promise .dr-hero__media img { filter: saturate(.92) brightness(1.02); }
html[data-dir="ivory"] .dr-hero--promise .dr-hero__media::after { box-shadow: inset 0 0 180px 40px rgba(var(--surface-light-rgb), .55); }

/* Homepage "Family care" section (Ahmad, 2026-11-02): her waiting room in a tall arch with no fade over it, and the six
   reasons as a two column grid with hairlines instead of a column of dots. The About page keeps its own layout. */
.dr-why--home .dr-why__grid, .dr-why--home .dr-why__grid:has(.dr-media) { grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.dr-why--home .dr-why__arch { border-radius: 999px 999px 26px 26px; aspect-ratio: .8; box-shadow: 0 34px 60px -34px rgba(var(--bg-deep-rgb), .45); margin: 0; }
/* Welcome version (Nov 2): a thin camel outline of the arch set behind the photo, offset down and right, a paragraph and
   three facts divided by hairlines, as on Royal Dental's welcome. */
.dr-why--home .dr-why__figure { position: relative; isolation: isolate; margin: 0 22px 22px 0; }
.dr-why--home .dr-why__figure::before { content: ""; position: absolute; z-index: -1; inset: 22px -22px -22px 22px; border: 1.5px solid rgba(var(--accent-bright-rgb), .7); border-radius: 999px 999px 26px 26px; }
html[data-dir="ivory"] .dr-why--home .dr-why__figure::before { border-color: rgba(176, 108, 58, .55); }
.dr-why__welcome { margin: 22px 0 0; max-width: 34em; font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--text-muted-light); }
.dr-why__facts { list-style: none; margin: 34px 0 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 22px 0; border-top: 1px solid rgba(var(--bg-deep-rgb), .14); }
.dr-why__facts li { display: flex; flex-direction: column; gap: 4px; padding: 0 clamp(18px, 2.6vw, 34px); border-left: 1px solid rgba(var(--bg-deep-rgb), .16); }
.dr-why__facts li:first-child { padding-left: 0; border-left: 0; }
.dr-why__fact { font-family: var(--font-display); font-weight: var(--head-weight); font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.1; color: var(--text-on-light); }
.dr-why__factlabel { font-size: .9rem; color: var(--text-muted-light); }
html[data-dir="ivory"] .dr-why__facts, html[data-dir="ivory"] .dr-why__facts li { border-color: rgba(37, 53, 81, .15); }
@media (max-width: 560px) {
	.dr-why__facts { flex-direction: column; gap: 14px; }
	.dr-why__facts li { flex-direction: row; align-items: baseline; gap: 10px; padding: 0; border-left: 0; }
}
/* Nov 2, "make it even better": both doctors in a small circle over the arch's lower corner, the family's signature
   under the paragraph, a link to Our Dentists. Motion runs only with GSAP on and reduced motion off (body.dr-motion). */
.dr-why__duo { position: absolute; z-index: 2; left: -34px; bottom: 34px; width: clamp(118px, 13vw, 168px); aspect-ratio: 1; border-radius: 50%;
	overflow: hidden; border: 5px solid var(--camel-light); box-shadow: 0 22px 40px -18px rgba(var(--bg-deep-rgb), .5); } /* camel ring (Ahmad, Nov 2; was cream) */
html[data-dir="ivory"] .dr-why__duo { border-color: var(--camel); }
.dr-why__duo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-signature--why { font-size: clamp(2.9rem, 3.8vw, 3.7rem); margin: 18px 0 0; padding-left: .45em; } /* the t's lead in stroke reaches left of the letter */
.dr-why--home .dr-why__facts { margin-top: 30px; }
.dr-why__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-weight: 600; color: var(--text-on-light);
	padding-bottom: 4px; border-bottom: 1.5px solid rgba(var(--accent-bright-rgb), .8); transition: gap .25s ease, color .25s ease; }
.dr-why__more:hover { gap: 16px; color: var(--accent-deep, var(--text-on-light)); }
html[data-dir="ivory"] .dr-why__more { color: var(--blue-ink); border-bottom-color: rgba(176, 108, 58, .7); }
/* Motion, second try (Ahmad did not like the rising photo and the drawn outline): the photo fades in while it settles
   from a slight zoom, the outline starts hidden right behind the photo and slides out to its place, then the circle
   fades in. One calm movement, nothing drawn or wiped. */
/* The transitions sit on the shown state only, so hiding (when the motion script starts) is instant, not a fade out. */
.dr-motion .dr-why__arch img { opacity: 0; transform: scale(1.07); }
.dr-motion .dr-why__figure::before { opacity: 0; transform: translate(-22px, -22px); }
.dr-motion .dr-why__duo { opacity: 0; transform: translateY(14px); }
.dr-motion .dr-why__figure.is-in .dr-why__arch img, .dr-motion .dr-why__figure.is-in::before, .dr-motion .dr-why__figure.is-in .dr-why__duo { opacity: 1; transform: none; }
.dr-motion .dr-why__figure.is-in .dr-why__arch img { transition: opacity 1.1s ease, transform 2s cubic-bezier(.22, 1, .36, 1); }
.dr-motion .dr-why__figure.is-in::before { transition: opacity .9s ease .35s, transform 1.4s cubic-bezier(.22, 1, .36, 1) .35s; }
.dr-motion .dr-why__figure.is-in .dr-why__duo { transition: opacity .9s ease .7s, transform 1.2s cubic-bezier(.22, 1, .36, 1) .7s; }
@media (min-width: 1024px) and (max-width: 1279px) { .dr-why__duo { left: -10px; } } /* small laptops have a narrow side margin */
@media (max-width: 1023px) {
	.dr-why--home .dr-why__figure { width: min(calc(100% - 22px), 420px); }
	.dr-why--home .dr-why__figure .dr-why__arch { width: 100%; }
	.dr-why__duo { left: auto; right: -18px; bottom: 30px; }
}
.dr-why--home .dr-why__arch::after { display: none; }
.dr-why--home .dr-why__arch img { object-position: 50% 60%; }
.dr-why--home h2 { max-width: 12em; }
.dr-why--home .dr-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; margin-top: 36px; }
.dr-why--home .dr-why__list li { padding: 18px 0 0; border-top: 1px solid rgba(var(--bg-deep-rgb), .14); font-size: .97rem; }
html[data-dir="ivory"] .dr-why--home .dr-why__list li { border-top-color: rgba(37, 53, 81, .14); }
.dr-why--home .dr-why__list li::before { display: none; }
.dr-why--home .dr-why__list strong { display: block; margin-bottom: 6px; font-size: 1.04rem; }
@media (max-width: 1023px) {
	.dr-why--home .dr-why__grid, .dr-why--home .dr-why__grid:has(.dr-media) { grid-template-columns: 1fr; }
	.dr-why--home .dr-why__arch { width: min(100%, 420px); }
}
@media (max-width: 600px) { .dr-why--home .dr-why__list { grid-template-columns: 1fr; gap: 20px; } }

/* Blue promises bar as clear glass (Ahmad, 2026-11-02, trying it): no navy tint, a thin white sheen, a bright edge, and a
   darker blur behind it so the white words stay readable over the white coats. Undo: delete this rule. */
html:not([data-dir="ivory"]) .dr-hero--promise .dr-hero__promises {
	background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .07) 55%, rgba(255, 255, 255, .12) 100%);
	-webkit-backdrop-filter: blur(24px) saturate(1.6) brightness(.78); backdrop-filter: blur(24px) saturate(1.6) brightness(.78);
	border-color: rgba(255, 255, 255, .42);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .12), 0 24px 48px -24px rgba(0, 0, 0, .45);
}
html:not([data-dir="ivory"]) .dr-hero--promise .dr-hero__promises li { border-color: rgba(255, 255, 255, .22); }
html:not([data-dir="ivory"]) .dr-hero__promises strong, html:not([data-dir="ivory"]) .dr-hero__promises span { text-shadow: 0 1px 10px rgba(10, 18, 36, .35); }

/* Doctor photos: no fade over the portrait, in both colors. */
.dr-doctor .dr-media::after { display: none; }

/* Signatures: each doctor's name in Dental Signature, under the homepage portrait and at the end of their own words. */
.dr-signature { font-family: "Dental Signature", cursive; font-weight: 400; font-size: clamp(3.4rem, 4.8vw, 4.6rem); line-height: 1; letter-spacing: 0; white-space: nowrap;
	margin: 18px 0 -2px; transform: rotate(-4deg); transform-origin: 0 50%; color: var(--accent-bright); -webkit-text-stroke: .4px currentColor; }
.dr-section--cream .dr-signature { color: var(--text-on-light); }
html[data-dir="ivory"] .dr-signature { color: var(--blue-ink); }
.dr-signature--bio { font-size: clamp(3.6rem, 5.2vw, 5rem); margin: 10px 0 30px; }

/* About: the founder's name signed under the page heading. New Patients: a short signed welcome beside her portrait. */
.dr-founder { margin-top: clamp(26px, 3vw, 40px); }
@media (min-width: 1024px) {
	/* The intro and the signed line stack in the right column, beside the big page title. */
	.dr-cpage__head:has(.dr-founder) { align-items: start; row-gap: 0; }
	.dr-cpage__head:has(.dr-founder) .dr-cpage__title { grid-row: 1 / span 2; align-self: center; }
	.dr-cpage__head:has(.dr-founder) .dr-cpage__intro, .dr-founder { grid-column: 2; justify-self: end; width: min(100%, 470px); }
}
.dr-founder__lead { margin: 0; font-size: .95rem; color: var(--text-muted-light); }
.dr-signature--founder { font-size: clamp(3.6rem, 5.4vw, 5.2rem); margin: 6px 0 14px; }
.dr-founder__line { margin: 0; max-width: 34em; font-size: 1rem; color: var(--text-muted-light); }
.dr-note__grid { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 620px); gap: clamp(32px, 6vw, 88px); align-items: center; justify-content: center; }
.dr-note .dr-media--portrait { border-radius: 999px 999px 22px 22px; aspect-ratio: .8; }
.dr-note .dr-media::after { display: none; }
.dr-note__body { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.6; color: var(--text-on-light); }
.dr-note__text .dr-signature--bio { margin: 26px 0 10px; }
.dr-note__name { margin: 0; font-size: .95rem; color: var(--text-muted-light); }
@media (max-width: 767px) {
	.dr-note__grid { grid-template-columns: 1fr; justify-items: start; }
	.dr-note .dr-media--portrait { width: min(220px, 60vw); }
}

/* "What brings you in?" on the homepage form (Nov 2): one tap picks the visit's reason instead of an empty box first.
   Chips are radio buttons dressed as pills; the picked one fills navy. "Ask about this" on a treatment card picks its chip
   and gives it a short camel glow (is-picked, dentalrun-form.js). */
.dr-chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.dr-chips legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 1rem; color: var(--text-on-light); }
.dr-chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-form .dr-chip { position: relative; display: inline-flex; font-weight: 500; font-size: .92rem; cursor: pointer; border-radius: 999px; }
.dr-form .dr-chip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.dr-chip span { padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(var(--bg-deep-rgb), .2); background: rgba(255, 255, 255, .55); color: var(--text-on-light);
	line-height: 1.2; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.dr-chip:hover span { border-color: rgba(var(--bg-deep-rgb), .45); }
.dr-chip input:checked + span { background: var(--text-on-light); border-color: var(--text-on-light); color: #fff; }
.dr-chip input:focus-visible + span { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
html[data-dir="ivory"] .dr-chip span { border-color: rgba(37, 53, 81, .2); }
.dr-chip.is-picked span { animation: dr-chip-glow 1.6s ease-out; }
@keyframes dr-chip-glow { 0%, 30% { box-shadow: 0 0 0 7px rgba(var(--accent-bright-rgb), .45); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-bright-rgb), 0); } }
@media (prefers-reduced-motion: reduce) { .dr-chip.is-picked span { animation: none; } }
.dr-chips__urgent { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; font-size: .9rem; color: var(--text-on-light);
	background: rgba(var(--accent-bright-rgb), .18); border: 1px solid rgba(var(--accent-bright-rgb), .45); }
.dr-chips__urgent a { font-weight: 600; color: inherit; text-decoration: underline; white-space: nowrap; }
.dr-form__optional { font-weight: 400; color: var(--text-muted-light); }

/* SmileRun band on the homepage (Nov 2, inc/smilerun.php), after the before and after photos. Copy left, the real
   SmileRun playing in a tilted phone right, as on Family Crown, in her navy with a soft camel glow. The section takes the
   site's dark section look in Blue and the light one in Ivory, so the text uses the section's own color variables. The
   phone screen is exactly SmileRun's 390:844 stage, which the demo scales to the box's width; position relative is load
   bearing, the demo host fills the box over the still. */
.dr-smile { position: relative; isolation: isolate; overflow: clip; }
.dr-smile::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(42% 70% at 78% 50%, rgba(var(--accent-bright-rgb), .2) 0%, rgba(var(--accent-bright-rgb), 0) 70%); }
.dr-smile__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(40px, 6vw, 80px); }
.dr-smile__copy { display: grid; justify-items: start; }
.dr-smile h2 { margin: 0; color: var(--text-on-dark); max-width: 11em; }
.dr-smile .dr-lead { margin: 20px 0 28px; max-width: 34rem; color: var(--text-muted); }
button[data-smile-preview].dr-btn--inline { font: inherit; font-weight: 600; border: 0; cursor: pointer; display: inline-flex; align-items: center; border-radius: 999px; width: auto; justify-self: start; }
.dr-smile__note, .dr-smile__caption { font-size: .82rem; line-height: 1.5; color: var(--text-muted); } /* Nov 5 contrast check: opacity .85 left Ivory at 3.9 to 1 */
.dr-smile__note { margin: 18px 0 0; max-width: 30rem; }
.dr-smile__msg { margin: 12px 0 0; font-size: .9rem; color: var(--text-on-dark); }
.dr-smile__msg a { color: inherit; text-decoration: underline; }
.dr-smile__stage { margin: 0; display: grid; justify-items: center; gap: 16px; perspective: 1400px; }
.dr-smile__caption { text-align: center; }
.dr-smile__phone { position: relative; width: clamp(240px, 22vw, 300px); padding: 10px; border-radius: 50px;
	background: linear-gradient(150deg, #2A3F6E, #13213F 55%, #0B1428);
	box-shadow: inset 0 0 0 1.5px rgba(216, 160, 110, .35), inset 0 0 0 6px #0B1428, 0 50px 80px -40px rgba(8, 14, 30, .8), 0 20px 36px -24px rgba(8, 14, 30, .6);
	transform: rotateY(-18deg) rotateX(6deg) rotateZ(2deg); animation: dr-smile-float 9s ease-in-out infinite; }
.dr-smile__phone::after { content: ""; position: absolute; inset: 10px; border-radius: 40px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0%, transparent 28%); }
.dr-smile__screen { position: relative; width: 100%; aspect-ratio: 390 / 844; border-radius: 40px; overflow: hidden; background: linear-gradient(180deg, #13213F, #203563); }
.dr-smile__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Ivory (her choice, Nov 5): the phone in the same deep walnut as SmileRun's screens (inc/smilerun.php), not navy. */
html[data-dir="ivory"] .dr-smile__phone { background: linear-gradient(150deg, #7A5236, #5C3C26 55%, #3A2618);
	box-shadow: inset 0 0 0 1.5px rgba(244, 214, 180, .35), inset 0 0 0 6px #3A2618, 0 50px 80px -40px rgba(58, 38, 24, .7), 0 20px 36px -24px rgba(58, 38, 24, .5); }
html[data-dir="ivory"] .dr-smile__screen { background: linear-gradient(180deg, #5C3C26, #765034); }
@keyframes dr-smile-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .dr-smile__phone { animation: none; } }
@media (max-width: 900px) {
	.dr-smile__grid { grid-template-columns: minmax(0, 1fr); }
	.dr-smile__phone { width: min(68vw, 280px); }
}

/* The phone and the address in the contact details are links (the address opens Google Maps, Nov 2). They keep the text's
   look and underline on hover, so they read as tappable without shouting. The footer's own links change color on hover. */
.dr-contact__facts a { text-decoration: none; }
.dr-contact__facts a:hover, .dr-contact__facts a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Live status under the hours (Nov 2, dentalrun_hours_status()): a small pill with a dot, green when open, camel when it
   closes within the hour, grey when closed. Text keeps the section's own color, so it reads on navy and on ivory. */
.dr-hours-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px 12px; border-radius: 999px;
	font-size: .85rem; line-height: 1.4; background: rgba(var(--accent-bright-rgb), .14); border: 1px solid rgba(var(--accent-bright-rgb), .3); }
.dr-hours-status[hidden] { display: none; }
.dr-hours-status strong { font-weight: 600; }
.dr-hours-status__dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #9AA3B5; }
.dr-hours-status.is-open .dr-hours-status__dot { background: #3FAE6A; box-shadow: 0 0 0 3px rgba(63, 174, 106, .22); }
.dr-hours-status.is-soon .dr-hours-status__dot { background: var(--camel-light); box-shadow: 0 0 0 3px rgba(216, 160, 110, .25); }
/* Call (filled) and Get directions (outline) side by side; full width each on a narrow phone. */
.dr-contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) { .dr-contact__actions .dr-btn { width: 100%; justify-content: center; } }
.dr-hours-status:not([hidden]) { display: flex; width: fit-content; } /* always its own line under the hours */
/* Contact page "Location and hours" in Ivory: the section turns light, but its labels and links kept the light camel made
   for navy and nearly vanished (found Nov 2). Labels in deep camel, details and links in the ink, outline button in ink. */
html[data-dir="ivory"] .dr-cpage-info .dr-contact__facts dt { color: var(--camel-deep); }
html[data-dir="ivory"] .dr-cpage-info .dr-contact__facts dd, html[data-dir="ivory"] .dr-cpage-info .dr-contact__facts a { color: var(--blue-ink); }
html[data-dir="ivory"] .dr-cpage-info .dr-btn--ghost.dr-btn--inline { color: var(--blue-ink); border-color: rgba(37, 53, 81, .3); }
html[data-dir="ivory"] .dr-cpage-info .dr-btn--ghost.dr-btn--inline:hover { border-color: var(--blue-ink); background: rgba(37, 53, 81, .05); }
html[data-dir="ivory"] .dr-hours-status { color: var(--blue-ink); }

/* Treatment pages (Nov 3, patterns/treatment.php, 8 pages in inc/treatments.php). The hero photo takes the same arch as
   the doctors' portraits. A small breadcrumb sits where the hidden eyebrow was; the "Your dentist" line under the lead
   links to Our Dentists. The SmileRun strip is a light card, as on Family Crown. */
.dr-thero__photo { border-radius: 999px 999px 26px 26px; aspect-ratio: .8; box-shadow: 0 34px 60px -34px rgba(var(--bg-deep-rgb), .45); }
.dr-thero__photo img { object-position: 50% 30%; }
.dr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .88rem; line-height: 1.4; color: var(--text-muted-light); }
.dr-crumbs a { color: inherit; text-decoration: none; }
.dr-crumbs a:hover, .dr-crumbs a:focus-visible { color: var(--text-on-light); text-decoration: underline; text-underline-offset: 3px; }
.dr-crumbs [aria-current] { color: var(--camel-deep); font-weight: 600; }
.dr-thero__byline { margin: 20px 0 0; max-width: 34rem; font-size: .95rem; line-height: 1.55; color: var(--text-muted-light); }
.dr-thero__byline a { color: var(--text-on-light); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--accent-bright-rgb), .8); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.dr-thero__byline a:hover { text-decoration-color: var(--camel); }
/* Nov 4 (Ahmad): the card is navy now, not white, the brand's dark plaster like the homepage services cards (camel in
   Ivory). Light text, and the filled button turns white with a navy arrow circle. */
.dr-smile-strip__card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
	padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--bg-deep) var(--tex-dark) repeat; color: var(--text-on-dark);
	box-shadow: 0 30px 60px -36px rgba(var(--bg-deep-rgb), .6), inset 0 0 0 1px rgba(255, 255, 255, .06);
	--btn-bg: #ffffff; --btn-fg: var(--bg-deep); --btn-icon-bg: var(--bg-deep); --btn-icon-fg: #ffffff; }
.dr-smile-strip__card h2 { margin: 0; color: var(--text-on-dark); }
.dr-smile-strip__card .dr-lead { margin: 16px 0 0; color: var(--text-muted); }
.dr-smile-strip__action { display: grid; justify-items: start; }
.dr-smile-strip .dr-smile__note { color: var(--text-muted); }
.dr-smile-strip .dr-btn--primary.dr-btn--inline::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E"); }
@media (max-width: 767px) { .dr-smile-strip__card { grid-template-columns: minmax(0, 1fr); } }

/* Meet your dentist on treatment pages (Nov 3, patterns/treatment.php, after Royal Dental's doctor strip). The oat wall
   sets it apart from the light sections around it. One doctor: a tall arch portrait beside the text. Two doctors: two
   cards side by side, each with a smaller arch; one column on phones. */
.dr-main .dr-tdoc.dr-section--cream { background: var(--surface-light-2) var(--tex-light-2) repeat; }
.dr-tdoc__title { margin: 0 0 clamp(32px, 4vw, 56px); color: var(--text-on-light); max-width: 18em; }
.dr-tdoc__grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.dr-tdoc--two .dr-tdoc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dr-tdoc__card { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 600px); justify-content: start; gap: clamp(28px, 5vw, 80px); align-items: center; }
.dr-tdoc--two .dr-tdoc__card { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 32px); align-items: start;
	padding: clamp(20px, 2.4vw, 28px); border-radius: 26px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(var(--bg-deep-rgb), .08); }
.dr-tdoc__photo { overflow: hidden; border-radius: 999px 999px 22px 22px; aspect-ratio: .8; max-width: 420px; box-shadow: 0 30px 56px -34px rgba(var(--bg-deep-rgb), .45); }
.dr-tdoc__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.dr-tdoc__name { margin: 0; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; color: var(--text-on-light); }
.dr-tdoc--two .dr-tdoc__name { font-size: clamp(1.25rem, 1.7vw, 1.5rem); }
.dr-tdoc__role { margin: 6px 0 0; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--camel-deep); }
.dr-tdoc__note { margin: 18px 0 0; font-size: 1.08rem; line-height: 1.55; color: var(--text-on-light); font-weight: 500; }
.dr-tdoc__quote { margin: 18px 0 0; padding: 0 0 0 16px; border-left: 2px solid rgba(var(--accent-bright-rgb), .8); }
.dr-tdoc__quote p { margin: 0; font-style: italic; line-height: 1.6; color: var(--text-muted-light); }
.dr-tdoc__details { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; color: var(--text-muted-light); }
.dr-tdoc__details li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--camel-light); }
.dr-tdoc__more { display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--text-on-light); text-decoration: underline; text-decoration-color: rgba(var(--accent-bright-rgb), .8); text-underline-offset: 5px; }
@media (max-width: 1100px) { .dr-tdoc--two .dr-tdoc__card { grid-template-columns: minmax(0, 1fr); } .dr-tdoc--two .dr-tdoc__photo { max-width: 260px; } }
@media (max-width: 767px) {
	.dr-tdoc--two .dr-tdoc__grid, .dr-tdoc__card { grid-template-columns: minmax(0, 1fr); }
	.dr-tdoc__photo { max-width: 300px; }
	.dr-tdoc--two .dr-tdoc__photo { max-width: 210px; }
}
html[data-dir="ivory"] .dr-tdoc__title, html[data-dir="ivory"] .dr-tdoc__name, html[data-dir="ivory"] .dr-tdoc__more { color: var(--blue-ink); }
/* The doctor's signature under their own words, in the font used on Our Dentists (Ahmad, Nov 3). Smaller in the two
   doctor cards. The t's lead in stroke reaches left of the letter, hence the padding. */
.dr-signature--tdoc { font-size: clamp(2.6rem, 3.4vw, 3.3rem); margin: 14px 0 0; padding-left: .3em; }
.dr-tdoc--two .dr-signature--tdoc { font-size: clamp(2.2rem, 2.6vw, 2.7rem); }

/* Financing (Nov 3). The insurance and financing page: three white cards, the lender's own logo in its own colors at the
   top of each (never recolored, assets/img/partners/README.md). Treatment pages: the two logos under the payment line in
   the cost section, with a link to that page. */
.dr-main .dr-fin.dr-section--cream { background: var(--surface-light-2) var(--tex-light-2) repeat; }
.dr-fin__head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.dr-fin__head h2 { margin: 0; color: var(--text-on-light); }
.dr-fin__head .dr-lead { margin: 16px 0 0; color: var(--text-muted-light); }
.dr-fin__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.dr-fin__card { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 2.6vw, 32px); border-radius: 24px; background: #fff;
	border: 1px solid rgba(var(--bg-deep-rgb), .08); box-shadow: 0 26px 50px -38px rgba(var(--bg-deep-rgb), .4); }
.dr-fin__logo { height: 36px; width: auto; max-width: 100%; justify-self: start; }
.dr-fin__name { margin: 0; min-height: 36px; display: flex; align-items: center; font-size: 1.3rem; color: var(--text-on-light); }
.dr-fin__card p { margin: 0; line-height: 1.6; color: var(--text-muted-light); }
@media (max-width: 900px) { .dr-fin__grid { grid-template-columns: minmax(0, 1fr); } }
.dr-tcost__partners { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.dr-tcost__partners img { height: 26px; width: auto; padding: 10px 14px; box-sizing: content-box; border-radius: 12px; background: #fff;
	border: 1px solid rgba(var(--bg-deep-rgb), .08); }
.dr-tcost__more { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--text-on-light); text-decoration: underline;
	text-decoration-color: rgba(var(--accent-bright-rgb), .8); text-underline-offset: 5px; }
html[data-dir="ivory"] .dr-fin__head h2, html[data-dir="ivory"] .dr-fin__name, html[data-dir="ivory"] .dr-tcost__more { color: var(--blue-ink); }
/* The logos are links (Nov 3): a lift and a camel ring on hover and keyboard focus, the logo itself untouched. */
.dr-fin__logo-link { justify-self: start; display: inline-block; border-radius: 10px; }
.dr-fin__cta { justify-self: start; margin-top: 4px; font-weight: 600; color: var(--text-on-light); text-decoration: underline;
	text-decoration-color: rgba(var(--accent-bright-rgb), .8); text-underline-offset: 5px; }
.dr-tcost__partners a { display: inline-block; border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.dr-tcost__partners a:hover, .dr-tcost__partners a:focus-visible, .dr-fin__logo-link:hover, .dr-fin__logo-link:focus-visible {
	transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(var(--accent-bright-rgb), .7), 0 12px 24px -16px rgba(var(--bg-deep-rgb), .5); outline: none; }
html[data-dir="ivory"] .dr-fin__cta { color: var(--blue-ink); }

/* Our office on About (Nov 3, patterns/info-page.php type "office"). Her rooms in the order a patient meets them, on the
   oat wall like the other photo strips; the facts sit as soft pills beside the heading. Three across on a computer, two
   on a tablet, and a swipe row on a phone with the next room peeking in, so six photos do not become a long stack. */
.dr-main .dr-office.dr-section--cream { background: var(--surface-light-2) var(--tex-light-2) repeat; }
.dr-office__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.dr-office__head h2 { margin: 0; color: var(--text-on-light); }
.dr-office__head .dr-lead { margin: 16px 0 0; max-width: 34rem; color: var(--text-muted-light); }
.dr-office__facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: 30rem; }
.dr-office__facts li { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(var(--bg-deep-rgb), .1);
	font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--text-on-light); }
.dr-office__grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.dr-office__room { margin: 0; }
.dr-office__photo { overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 3; background: var(--bg-card); box-shadow: 0 26px 50px -38px rgba(var(--bg-deep-rgb), .45); }
.dr-office__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-office__room figcaption { margin-top: 12px; font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--text-on-light); }
@media (max-width: 900px) {
	.dr-office__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.dr-office__facts { justify-content: flex-start; }
	.dr-office__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.dr-office__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto;
		scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
	.dr-office__grid::-webkit-scrollbar { display: none; }
	.dr-office__grid > li { scroll-snap-align: start; }
}
html[data-dir="ivory"] .dr-office__head h2, html[data-dir="ivory"] .dr-office__facts li, html[data-dir="ivory"] .dr-office__room figcaption { color: var(--blue-ink); }

/* Smile gallery page (Nov 3, info page "smile-gallery", types cases, prose, smilerun and cards in info-page.php). The
   cases follow the page heading closely, before above after, two across; one across on a phone. The honest note under
   them is a footnote, so it sits tight. Four treatment cards fit one row on a computer. */
.dr-main .dr-sgallery { padding-top: clamp(8px, 1.5vw, 24px); }
/* Three across on a computer (Nov 4, Ahmad: two across made the smiles too big), two on a tablet, one on a phone. */
.dr-sgallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 28px); }
@media (max-width: 1099px) { .dr-sgallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dr-sgallery .dr-ba { box-shadow: 0 26px 50px -38px rgba(var(--bg-deep-rgb), .45); }
.dr-sgallery .dr-sgallery__title { margin: 14px 0 0; font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--text-on-light); }
@media (max-width: 767px) { .dr-sgallery__grid { grid-template-columns: minmax(0, 1fr); } }
.dr-main .dr-prose { padding-top: clamp(8px, 1vw, 16px); }
.dr-prose .dr-lead { max-width: 46rem; margin: 0; color: var(--text-muted-light); }
.dr-tmore__head h2 { margin: 0; }
.dr-tmore__head .dr-lead { margin: 14px 0 0; max-width: 40rem; color: var(--text-muted-light); }
@media (min-width: 1024px) { .dr-tmore__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html[data-dir="ivory"] .dr-sgallery .dr-sgallery__title { color: var(--blue-ink); }
/* "See all smiles" under the homepage before and afters, "See more smiles" under the cases on the veneers and crowns
   pages: they open the smile gallery page once it is published. A block wrapper keeps the button inside the content
   width (a bare link sat at the screen's left edge). Nov 4, Ahmad: a solid button (the filled style, with its arrow),
   centered under the homepage's four cases; on treatment pages it stays left, under cases that sit on the left. */
.dr-more-smiles { margin-top: clamp(28px, 3.4vw, 44px); }
.dr-results .dr-more-smiles { text-align: center; }
/* The heading centered over the four cases too (Ahmad, Nov 4), like the reviews heading: proof sections are centered,
   story sections start on the left. */
.dr-results .dr-section__head { text-align: center; margin-left: auto; margin-right: auto; }
.dr-results .dr-section__head > h2, .dr-results .dr-section__head > .dr-lead { margin-left: auto; margin-right: auto; } /* the heading has its own narrower width */

/* Her patients (Nov 4): About's "Our patients" row (info page type "photos") and the photos under Dr. Jessica's bio on
   Our Dentists. Tall 4:5 tiles in the office section's rounded frame. About: three across, two on a tablet, a swipe row
   on a phone, on the plain light background so it reads apart from Our office above. Under a bio: a row of three kept
   smaller than the portrait, two and a peek on a phone. */
.dr-photos__photo { aspect-ratio: 4 / 5; }
.dr-photos__photo img { object-position: 50% 30%; }
.dr-bio__moments { margin-top: clamp(32px, 4vw, 56px); }
.dr-bio__moments .dr-tfit__label { margin: 0 0 16px; }
.dr-bio__moments-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); max-width: 860px; }
@media (max-width: 560px) {
	.dr-bio__moments-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
	.dr-bio__moments-grid::-webkit-scrollbar { display: none; }
	.dr-bio__moments-grid > li { scroll-snap-align: start; }
}
.dr-main .dr-smile-strip .dr-smile-strip__card .dr-grad { color: var(--word-on-dark); } /* the accent words, as on dark sections */

/* The example before and after on the SmileRun card (Nov 4). Text and button on the left, the pair on the right; the
   pair goes under the button on a tablet and phone. Lower face only, rounded like the other photos, a small caption that
   says it is an example on a fictional person. */
.dr-smile-strip__card--example { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy example" "action example"; row-gap: 24px; }
.dr-smile-strip__card--example .dr-smile-strip__copy { grid-area: copy; align-self: end; }
.dr-smile-strip__card--example .dr-smile-strip__action { grid-area: action; align-self: start; }
.dr-smile-strip__example { grid-area: example; margin: 0; }
.dr-smile-strip__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dr-smile-strip__shot { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 5; background: rgba(255, 255, 255, .06); }
.dr-smile-strip__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-smile-strip__example figcaption { margin-top: 10px; font-size: .82rem; color: var(--text-muted); }
@media (max-width: 900px) {
	.dr-smile-strip__card--example { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "example" "action"; }
	.dr-smile-strip__card--example .dr-smile-strip__copy { align-self: start; }
}
/* Homepage before and afters with three cases (Nov 4): three across on a computer, one per row on a phone. */
@media (min-width: 1024px) { .dr-results__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 1023px) { .dr-results__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Phone card stack (Nov 4, Ahmad: on phones the cards only scrolled). The cards pin again and pile up as on a computer:
   each sticks a little lower than the one before. The photo is wider and shorter on phones so a whole card fits the
   screen under the header, which sticking needs. */
@media (max-width: 767px) {
	.dr-stack__card { position: sticky; top: calc(76px + var(--i) * 12px); }
	.dr-stack__card .dr-stack__img { width: 100%; aspect-ratio: 1.3; border-radius: 18px 18px 0 0; }
	.dr-stack__body { padding-bottom: 18px; }
	.dr-stack__text { font-size: .98rem; }
}

/* Booking buttons inside the treatment pages (Nov 4): in "Meet your dentist" beside the link to the doctor, and at the end
   of the cost section with one line about the consultation. */
.dr-tdoc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.dr-tdoc__actions .dr-tdoc__more { margin-top: 0; }
.dr-tcost__book { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(var(--bg-deep-rgb), .12); display: grid; justify-items: start; gap: 14px; }
.dr-tcost__note { margin: 0; max-width: 30rem; font-size: .95rem; line-height: 1.55; color: var(--text-muted-light); }

/* Nov 5 (Ahmad saw the Ivory step numbers hard to read), from new-look/contrast-check.mjs:
   step numbers on Ivory's light sections were #F4D6B4 on #EFE8DA, 1.1 to 1; the deeper camel reads at 4.7 to 1.
   Review stars were Google yellow on cream, 1.6 to 1; a warm gold reads at 3.4 to 1 (stars are graphics, need 3). */
html[data-dir="ivory"] .dr-tstep__n { color: var(--accent-deep); }
.dr-tcomfort__stars { color: #B07D00; }

/* Reading sizes (Nov 5, Ahmad: "Parson bigger"). Her patients are mostly 40 and over and read on phones; paragraphs
   were 15 px and some notes 12.8 px. Same font, bigger: running text at least 17 px, small notes and labels at least
   15 to 16 px, on computer and phone. Text already bigger (intros, quotes in the comfort sections) is left alone.
   !important because these rules sit in many places with different weights; this block is the one place for sizes.
   List from new-look/ (small.mjs run Nov 5). */
.dr-main .dr-tstep p, .dr-main .dr-why__list li, .dr-main .dr-faq__item p, .dr-main .dr-tdoc__quote p,
.dr-main .dr-doctor__bio, .dr-main .dr-service__text, .dr-main .dr-stack__text, .dr-main .dr-tcost__pay,
.dr-main .dr-tcost__note, .dr-main .dr-tcost__list span, .dr-main .dr-fin__card p, .dr-main .dr-results__text,
.dr-main .dr-bio__list li, .dr-main .dr-thero__byline, .dr-main .dr-founder__line, .dr-main .dr-founder__lead,
.fc-quote blockquote, .dr-main .dr-note__name { font-size: 17px !important; line-height: 1.6 !important; }
.dr-main .dr-thero__byline { line-height: 1.5 !important; }
@media (max-width: 781px) { .dr-main .dr-hero .dr-lead { font-size: 17px !important; } }
.dr-contact__facts dd, .dr-contact__facts a, .dr-main .dr-tdoc__details li, .dr-main .dr-office__facts li,
.dr-main .dr-gallery__caption, .dr-main .dr-office__room figcaption, .dr-main .dr-trust__label, .dr-main .dr-link,
.dr-main .dr-why__more, .dr-main .dr-chips__urgent, .dr-footer__col p, .dr-footer__col a, .dr-footer__brand p { font-size: 16px !important; }
.dr-main .dr-form__note, .dr-main .dr-smile__note, .dr-main .dr-smile__caption, .dr-main .dr-smile-strip__example figcaption,
.dr-main .dr-tstep__time, .dr-main .dr-tcomfort__quote figcaption, .dr-main .dr-doctor__role, .dr-main .dr-why__factlabel,
.dr-main .dr-hero__promises span, .dr-form__note { font-size: 15px !important; line-height: 1.5 !important; }
.dr-main .dr-tfit__label { font-size: 14px !important; }
.dr-footer__bottom p { font-size: 14px !important; }
