/*
 * Joie Blocks
 * Rules: every selector starts with .joie- (or targets an element inside a .joie- block),
 * so nothing outside the plugin's blocks is affected. The only exception is the Astra
 * sticky header rule near the end of the mobile bar part (see README).
 * Colors come from the Astra global palette (Customizer); the hex values are fallbacks only.
 */

:root {
	--joie-magenta: var(--ast-global-color-0, #e94073);
	--joie-sky: var(--ast-global-color-1, #ddeffe);
	--joie-navy: var(--ast-global-color-2, #2e3f4c);
	--joie-text-muted: var(--ast-global-color-3, #6f6b6c);
	--joie-gold: var(--ast-global-color-4, #e7aa2a);
	--joie-cream: var(--ast-global-color-5, #fff5e1);
	--joie-salmon: var(--ast-global-color-6, #f7b6ad);
	--joie-pink: var(--ast-global-color-7, #ffd7dc);
	--joie-slate: var(--ast-global-color-8, #526d87);

	/* Body text of the landing, slightly darker than palette color 3. */
	--joie-text: #5f5b5c;
	/* Dashed border of the insurance note and map background (light tints of palette color 1). */
	--joie-sky-line: #cfe4f7;
	--joie-sky-light: #ecf6ff;

	--joie-font-display: "DynaPuff", sans-serif;
	--joie-font-text: "Nunito", sans-serif;
	--joie-font-ui: "Inter", sans-serif;

	--joie-wrap: 1180px;
	--joie-shadow: 0 8px 22px rgba(46, 63, 76, 0.08);

	/*
	 * Text sizes: the global typography of the site (Astra, Customize > Global >
	 * Typography), the same sizes as the rest of the site and as the homepage before
	 * 0.4.0 (rule decided on 21/11/2026). Every text of the sections uses one of these
	 * variables. "rem" follows Astra: 1rem = 16px, 14.6px on phones (up to 544px).
	 * Phone and tablet values are in the two blocks below.
	 */
	--joie-fs-h1: 58px; /* Astra H1 */
	--joie-fs-h2: 40px; /* Astra H2 */
	--joie-fs-h3: 21px; /* card and box titles */
	--joie-fs-body: 1rem; /* Astra body text: 16px, 14.6px on phones */
	--joie-fs-small: 0.9375rem; /* labels and small links: 15px, 13.7px on phones */
	--joie-fs-button: 15px; /* Astra buttons */
}

/* Tablet (Astra: up to 921px). */
@media (max-width: 921px) {
	:root {
		--joie-fs-h1: 45px;
		--joie-fs-h2: 25px;
		--joie-fs-h3: 20px;
	}
}

/* Phone (Astra: up to 544px). */
@media (max-width: 544px) {
	:root {
		--joie-fs-h1: 32px;
		--joie-fs-h2: 24px;
		--joie-fs-h3: 18px;
	}
}

/* ==========================================================================
 * Mobile bar "Call | Book Online" (printed by inc/mobile-bar.php on every page).
 * Same look as the landing page bar. Shown up to 921px, where Astra shows the burger.
 * ========================================================================== */

.joie-mbar {
	display: none;
}

@media (max-width: 921.9px) {
	body.joie-has-mbar {
		padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
	}

	.joie-mbar {
		display: flex;
		gap: 10px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid #d5dade;
		border-top-color: color-mix(in srgb, var(--joie-navy) 20%, #fff);
		box-sizing: border-box;
	}

	.joie-mbar a.joie-mbar__btn {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 52px;
		padding: 0 10px;
		border: 2px solid;
		border-radius: 30px;
		font-family: var(--joie-font-ui);
		font-weight: 700;
		font-size: 19px;
		line-height: 1.2;
		text-decoration: none;
		box-sizing: border-box;
	}

	.joie-mbar a.joie-mbar__btn--call,
	.joie-mbar a.joie-mbar__btn--call:hover,
	.joie-mbar a.joie-mbar__btn--call:focus,
	.joie-mbar a.joie-mbar__btn--call:visited {
		background: #fff;
		color: var(--joie-navy);
		border-color: var(--joie-navy);
	}

	.joie-mbar a.joie-mbar__btn--book,
	.joie-mbar a.joie-mbar__btn--book:hover,
	.joie-mbar a.joie-mbar__btn--book:focus,
	.joie-mbar a.joie-mbar__btn--book:visited {
		background: var(--joie-magenta);
		color: #fff;
		border-color: var(--joie-magenta);
	}

	.joie-mbar a.joie-mbar__btn:focus-visible {
		outline: 3px solid var(--joie-gold);
		outline-offset: 2px;
	}

	/*
	 * Pages with the Joie hero (homepage, landing): the bar starts hidden below
	 * the screen and slides in once the hero has been scrolled past
	 * (assets/js/mobile-bar.js adds "is-visible"). Hidden also for keyboards and
	 * screen readers while it is off screen.
	 */
	.joie-mbar.joie-mbar--after-hero {
		transform: translateY(calc(100% + 2px));
		visibility: hidden;
	}

	.joie-mbar.joie-mbar--after-hero.is-visible {
		transform: none;
		visibility: visible;
	}
}

@media (max-width: 921.9px) and (prefers-reduced-motion: no-preference) {
	.joie-mbar.joie-mbar--after-hero {
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	.joie-mbar.joie-mbar--after-hero.is-visible {
		transition: transform 0.25s ease, visibility 0s;
	}
}

@media print {
	.joie-mbar {
		display: none !important;
	}
}

/*
 * Astra header: the only rule of this file that targets Astra markup (see README).
 * Astra Pro shows a sticky copy of the header (#ast-fixed-header) when the page scrolls.
 * Below 921px it is hidden, so on phones and tablets the header scrolls away and the
 * mobile bar stays at the bottom. Desktop keeps the sticky header.
 */
@media (max-width: 921.9px) {
	#ast-fixed-header {
		display: none !important;
	}
}

/* ==========================================================================
 * Page sections (patterns and shared sections).
 *
 * Specificity: Astra and the WordPress block layout add margins to headings,
 * paragraphs and to every child of a block group. Rules that reset or set margins
 * start with "body .joie-section" so they win over those, whatever the order in
 * which the style sheets load.
 * ========================================================================== */

/* Full-width sections: no theme max-width, no gaps between them. */
.entry-content[data-ast-blocks-layout] > .joie-section,
.entry-content[data-ast-blocks-layout] > .wp-block-joie-section.alignfull {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.entry-content > .joie-section,
.entry-content > .wp-block-joie-section {
	margin-top: 0;
	margin-bottom: 0;
}

.joie-section {
	/* Astra pads every top-level group block through these variables: not ours. */
	--wp--custom--ast-default-block-top-padding: 0px;
	--wp--custom--ast-default-block-right-padding: 0px;
	--wp--custom--ast-default-block-bottom-padding: 0px;
	--wp--custom--ast-default-block-left-padding: 0px;
	font-family: var(--joie-font-text);
	color: var(--joie-text);
	box-sizing: border-box;
}

body .joie-section :is(h1, h2, h3, h4, p, ul, ol, li, figure, details, summary),
body .joie-section .is-layout-flow > *,
body .joie-section.is-layout-flow > * {
	margin-top: 0;
	margin-bottom: 0;
}

body .joie-section :is(h1, h2, h3, h4) {
	font-family: var(--joie-font-display);
	font-weight: 400;
	color: var(--joie-navy);
	letter-spacing: normal;
	text-transform: none;
}

body .joie-section h2 {
	font-size: var(--joie-fs-h2);
	line-height: 1.3;
}

body .joie-section:is(.joie-insurance, .joie-map, .joie-doctor) h2 {
	line-height: 1.15;
}

body .joie-section h3 {
	font-size: var(--joie-fs-h3);
	line-height: 1.3;
}

.joie-section strong {
	color: var(--joie-navy);
}

.joie-section a {
	color: var(--joie-magenta);
}

.joie-section a:hover {
	color: var(--joie-navy);
}

.joie-section img,
.joie-section video {
	max-width: 100%;
}

.joie-wrap {
	max-width: var(--joie-wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

/* Yellow line under a title (add the class "joie-line" to a heading). */
.joie-line::after {
	content: "";
	display: block;
	width: 150px;
	height: 10px;
	margin-top: 10px;
	background: url("../img/deco-line.png") no-repeat left center / 100% 100%;
}

.joie-line--center::after,
.has-text-align-center.joie-line::after {
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------------------------------------
 * Buttons: pill "Schedule" (magenta) and "Call" (outline).
 * Same look for core Buttons blocks with the classes joie-btn--primary /
 * joie-btn--outline and for the buttons printed by the shared sections.
 * -------------------------------------------------------------------------- */

.joie-buttons,
.joie-section .wp-block-buttons.joie-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.joie-buttons--center,
.joie-section .wp-block-buttons.joie-buttons--center {
	justify-content: center;
}

.joie-buttons a.joie-button,
.joie-buttons .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: 2px solid;
	border-radius: 30px;
	font-family: var(--joie-font-ui);
	font-weight: 700;
	font-size: var(--joie-fs-button);
	line-height: inherit;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	box-sizing: border-box;
}

.joie-buttons a.joie-button--primary,
.joie-buttons a.joie-button--primary:is(:hover, :focus, :visited),
.joie-buttons .joie-btn--primary .wp-block-button__link,
.joie-buttons .joie-btn--primary .wp-block-button__link:is(:hover, :focus, :visited) {
	background: var(--joie-magenta);
	color: #fff;
	border-color: var(--joie-magenta);
}

.joie-buttons a.joie-button--outline,
.joie-buttons a.joie-button--outline:is(:hover, :focus, :visited),
.joie-buttons .joie-btn--outline .wp-block-button__link,
.joie-buttons .joie-btn--outline .wp-block-button__link:is(:hover, :focus, :visited) {
	background: #fff;
	color: var(--joie-navy);
	border-color: var(--joie-navy);
}

.joie-buttons a.joie-button:focus-visible,
.joie-buttons .wp-block-button .wp-block-button__link:focus-visible {
	outline: 3px solid var(--joie-gold);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
 * Shared section "topbar": logo, phone, Book Online (pages without the Astra header).
 * -------------------------------------------------------------------------- */

.joie-topbar {
	background: #fff;
	padding: 27px 34px;
	box-sizing: border-box;
}

.joie-topbar__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 35px;
	border-radius: 175px;
	background: var(--joie-pink);
	box-sizing: border-box;
}

.joie-topbar a.joie-topbar__logo {
	display: block;
	line-height: 0;
}

.joie-topbar__logo img {
	display: block;
	width: 110px;
	height: auto;
}

.joie-topbar__actions {
	display: flex;
	align-items: center;
	gap: 28px;
}

.joie-topbar a.joie-topbar__tel,
.joie-topbar a.joie-topbar__tel:is(:hover, :focus, :visited) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 24px;
	border-radius: 30px;
	background: #fff;
	color: var(--joie-navy);
	font-family: var(--joie-font-text);
	font-weight: 700;
	font-size: 16px;
	line-height: 30px;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}

.joie-topbar a.joie-topbar__book,
.joie-topbar a.joie-topbar__book:is(:hover, :focus, :visited) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 35px;
	padding: 0 40px;
	border-radius: 30px;
	background: var(--joie-magenta);
	color: #fff;
	font-family: var(--joie-font-ui);
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}

.joie-topbar a:focus-visible {
	outline: 3px solid var(--joie-gold);
	outline-offset: 2px;
}

@media (min-width: 701px) {
	/* The block wrapper is the element that sticks (it is a direct child of the page content). */
	.entry-content > .joie-shared--topbar {
		position: sticky;
		top: 0;
		z-index: 999;
	}

	.admin-bar .entry-content > .joie-shared--topbar {
		top: 32px;
	}

	.joie-topbar {
		transition: padding 0.2s, box-shadow 0.2s;
	}

	.joie-topbar__bar {
		transition: padding 0.2s;
	}

	.joie-topbar__logo img {
		transition: width 0.2s;
	}

	.joie-topbar.is-stuck {
		padding-top: 10px;
		padding-bottom: 10px;
		box-shadow: 0 6px 16px rgba(46, 63, 76, 0.08);
	}

	.joie-topbar.is-stuck .joie-topbar__bar {
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.joie-topbar.is-stuck .joie-topbar__logo img {
		width: 80px;
	}
}

@media (min-width: 701px) and (max-width: 782px) {
	.admin-bar .entry-content > .joie-shared--topbar {
		top: 46px;
	}
}

@media (max-width: 700px) {
	.joie-topbar {
		padding: 8px 10px;
	}

	.joie-topbar__bar {
		padding: 14px 20px;
	}

	.joie-topbar a.joie-topbar__tel {
		display: none;
	}

	.joie-topbar a.joie-topbar__book {
		min-height: 44px;
		padding: 0 24px;
	}
}

/* --------------------------------------------------------------------------
 * Shared section "rating": Google 5 stars pill. Large variant in the reviews.
 * -------------------------------------------------------------------------- */

.joie-rating {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 8px 18px;
	border-radius: 30px;
	background: #fff;
}

.joie-rating__label {
	font-family: var(--joie-font-ui);
	font-weight: 700;
	font-size: var(--joie-fs-body);
	color: var(--joie-navy);
}

.joie-rating__stars {
	color: var(--joie-gold);
	font-size: 1.125rem;
	letter-spacing: 2px;
}

.joie-rating--large {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 0;
	border-radius: 0;
	background: none;
}

.joie-rating--large .joie-rating__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
}

.joie-rating--large .joie-rating__label {
	font-size: 1.5rem;
}

.joie-rating--large .joie-rating__stars {
	font-size: 1.75rem;
}

/* --------------------------------------------------------------------------
 * Shared section "info": Find us + Hours card.
 * -------------------------------------------------------------------------- */

.joie-info {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	padding: 20px 24px;
	border: 2px solid var(--joie-gold);
	border-radius: 26px;
	background: #fff;
	box-sizing: border-box;
}

.joie-info__item {
	flex: 1 1 150px;
}

.joie-info__item--hours {
	flex-basis: 230px;
}

body .joie-section .joie-info .joie-info__title,
body .joie-info .joie-info__title {
	margin: 0;
	font-family: var(--joie-font-display);
	font-weight: 400;
	font-size: min(19px, var(--joie-fs-h3));
	line-height: 1.3;
	color: var(--joie-navy);
	letter-spacing: normal;
	text-transform: none;
}

body .joie-section .joie-info p,
body .joie-info p {
	margin: 4px 0 0;
	font-size: var(--joie-fs-body);
	line-height: 1.5;
	color: var(--joie-navy);
}

.joie-info a {
	font-weight: 800;
}

/* --------------------------------------------------------------------------
 * Pattern "Hero".
 * -------------------------------------------------------------------------- */

body .joie-section.joie-hero {
	background: var(--joie-cream);
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(32px, 5vw, 64px);
}

.joie-hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 44px;
}

.joie-hero__text {
	flex: 1 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.joie-hero__text > .joie-shared--rating {
	align-self: flex-start;
}

body .joie-section.joie-hero h1 {
	font-size: var(--joie-fs-h1);
	line-height: 1.1;
}

/* The highlighted town ("Ramsey, NJ") goes to a new line as a whole, "NJ" never alone; a long town name still wraps inside. */
.joie-hero h1 mark {
	display: inline-block;
	max-width: 100%;
}

.joie-hero h1.joie-line::after {
	width: 200px;
	height: 14px;
}

body .joie-section .joie-lead {
	font-size: var(--joie-fs-body);
	line-height: 1.55;
}

.joie-hero__media {
	flex: 1 1 400px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.joie-hero .joie-frame {
	width: 100%;
	max-width: 520px;
	padding: 18px;
	border-radius: 56px;
	background: var(--joie-pink);
	box-sizing: border-box;
}

.joie-hero .joie-frame img {
	display: block;
	width: 100%;
	height: auto;
}

body .joie-section .joie-hero__media > .joie-shared--info {
	position: relative;
	width: calc(100% - 32px);
	max-width: 500px;
	margin: -56px 16px 0;
}

/* --------------------------------------------------------------------------
 * Shared section "insurance": logos and "Not sure about your plan?" note.
 * -------------------------------------------------------------------------- */

.joie-insurance {
	background: #fff;
	padding-top: 64px;
}

.joie-insurance .joie-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.joie-insurance h2 {
	text-align: center;
}

body .joie-section .joie-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 18px;
	list-style: none;
	border-radius: 35px;
	background: var(--joie-sky);
	box-sizing: border-box;
}

body .joie-section .joie-logos li {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 calc(50% - 6px);
	max-width: 205px;
	margin: 0;
	padding: 4px 12px;
	border-radius: 22px;
	background: #fff;
	box-sizing: border-box;
}

.joie-logos img {
	width: 100%;
	height: auto;
}

.joie-note {
	width: 100%;
	padding: 28px 20px;
	border: 2px dashed var(--joie-sky-line);
	border-radius: 35px;
	text-align: center;
	box-sizing: border-box;
}

body .joie-section .joie-note p {
	font-size: var(--joie-fs-body);
	line-height: 1.5;
	color: var(--joie-navy);
}

.joie-note a {
	font-weight: 800;
}

/* --------------------------------------------------------------------------
 * Pattern "Meet Dr. Sabrine Obbad".
 * -------------------------------------------------------------------------- */

body .joie-section.joie-doctor {
	background: #fff;
	padding-top: 84px;
	padding-bottom: 84px;
}

.joie-doctor__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
}

.joie-doctor__photo {
	position: relative;
	flex: 0 1 400px;
	margin-left: auto;
	margin-right: auto;
}

.joie-doctor__portrait img {
	display: block;
	width: 100%;
	height: auto;
}

/*
 * Row of badges over the bottom of the photo: ABPD, 40 Under 40, DentistsRanked.
 * The row is 12px wider than the photo (6px out on each side). Widths are
 * percentages of the row, so with the 400px photo (row 412px) ABPD is 104px,
 * 40 Under 40 is 96px and DentistsRanked takes the rest (196px); on narrower
 * photos all three shrink together.
 */
.joie-doctor .joie-doctor__badges {
	position: absolute;
	left: -6px;
	right: -6px;
	bottom: -6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.joie-doctor .joie-doctor__badge {
	flex: none;
	width: 25.243%;
}

.joie-doctor .joie-doctor__badge img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
}

.joie-doctor .joie-doctor__award {
	flex: none;
	width: 23.301%;
}

.joie-doctor .joie-doctor__award img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border: 2px solid var(--joie-gold);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgba(46, 63, 76, 0.18);
}

/* DentistsRanked badge (SVG 240x80 in assets/img). */
.joie-doctor .joie-doctor__ranked {
	flex: 1 1 0;
	min-width: 0;
}

.joie-doctor .joie-doctor__ranked img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 1;
	border-radius: 4.8% / 14.4%;
	box-shadow: 0 4px 14px rgba(46, 63, 76, 0.18);
}

.joie-doctor__text {
	flex: 1 1 460px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

body .joie-section .joie-eyebrow {
	font-size: var(--joie-fs-small);
	font-weight: 800;
	letter-spacing: 1px;
	color: var(--joie-magenta);
}

body .joie-section.joie-doctor h2 {
	font-size: var(--joie-fs-h2);
}

body .joie-section .joie-doctor__text > p:not(.joie-eyebrow) {
	font-size: var(--joie-fs-body);
	line-height: 1.6;
}

/* Check list (add the class "joie-checks" to a List block). */
body .joie-section ul.joie-checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--joie-fs-body);
	line-height: 1.5;
	color: var(--joie-navy);
}

body .joie-section ul.joie-checks li {
	position: relative;
	min-height: 28px;
	margin: 0;
	padding-left: 38px;
}

.joie-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 26px;
	height: 26px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e94073' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E") no-repeat center / 26px 26px;
}

/* --------------------------------------------------------------------------
 * Shared section "reviews": 3 Google reviews, a carousel with dots on phones.
 * -------------------------------------------------------------------------- */

.joie-reviews {
	background: var(--joie-pink);
	padding-top: 76px;
	padding-bottom: 76px;
}

.joie-reviews .joie-wrap {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.joie-reviews__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.joie-reviews__track {
	display: flex;
	align-items: stretch;
	gap: 20px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.joie-reviews__track::-webkit-scrollbar {
	display: none;
}

.joie-review {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--joie-shadow);
	box-sizing: border-box;
}

.joie-review__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.joie-review__avatar {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
}

.joie-review__name {
	font-family: var(--joie-font-ui);
	font-weight: 700;
	font-size: var(--joie-fs-body);
	color: var(--joie-navy);
}

.joie-review__date {
	font-family: var(--joie-font-ui);
	font-size: 0.875rem;
	color: var(--joie-text);
}

.joie-review__source {
	display: inline-flex;
	margin-left: auto;
}

.joie-review__stars {
	color: var(--joie-gold);
	font-size: 1.25rem;
	letter-spacing: 2px;
}

body .joie-section .joie-review p {
	font-family: var(--joie-font-ui);
	font-size: var(--joie-fs-small);
	line-height: 1.6;
	color: var(--joie-navy);
}

.joie-reviews__dots {
	display: none;
	justify-content: center;
	gap: 4px;
	margin-top: -14px;
}

.joie-reviews .joie-reviews__dots button,
.joie-reviews .joie-reviews__dots button:is(:hover, :focus) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
}

.joie-reviews__dots button::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 6px;
	background: var(--joie-salmon);
	transition: width 0.2s, background 0.2s;
}

.joie-reviews__dots button.is-active::before {
	width: 24px;
	background: var(--joie-magenta);
}

@media (max-width: 700px) {
	.joie-reviews__track {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 24px;
		margin: 0 -24px;
		padding: 4px 24px 18px;
	}

	.joie-review {
		flex: 0 0 84%;
		scroll-snap-align: start;
	}

	.joie-reviews__dots {
		display: flex;
	}
}

/* --------------------------------------------------------------------------
 * Patterns "Services with video" and "Services": service cards.
 * -------------------------------------------------------------------------- */

body .joie-section.joie-services {
	background: var(--joie-cream);
	padding-top: 76px;
	padding-bottom: 76px;
}

.joie-services__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 40px;
}

.joie-services__main {
	flex: 1 1 440px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.joie-services__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Without the video the cards use the full width, in two columns on desktop. */
.joie-services:not(.joie-services--video) .joie-services__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.joie-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
	border-radius: 24px;
	background: #fff;
	box-sizing: border-box;
}

.joie-card .joie-card__icon {
	flex: 0 0 52px;
	width: 52px;
}

.joie-card .joie-card__icon img {
	display: block;
	width: 52px;
	height: 52px;
	object-fit: contain;
}

body .joie-section .joie-card h3 {
	font-size: var(--joie-fs-h3);
}

body .joie-section .joie-card .joie-card__text > p {
	margin-top: 4px;
	font-size: var(--joie-fs-body);
	line-height: 1.5;
}

/* Shared section "no-insurance": magenta card with financing logos. */
.joie-noins {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	height: 100%;
	padding: 18px 22px;
	border-radius: 24px;
	background: var(--joie-magenta);
	box-sizing: border-box;
}

body .joie-noins h3,
body .joie-section .joie-noins h3 {
	margin: 0;
	font-family: var(--joie-font-display);
	font-weight: 400;
	font-size: var(--joie-fs-h3);
	color: #fff;
}

body .joie-noins p,
body .joie-section .joie-noins p {
	margin: 0;
	font-size: var(--joie-fs-body);
	font-weight: 700;
	line-height: 1.45;
	color: #fff;
}

.joie-noins__logos {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}

.joie-noins__logo {
	flex: 1 1 0;
	min-width: 0;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 16px;
	background: #fff;
	box-sizing: border-box;
}

.joie-noins__logo img {
	display: block;
	width: 100%;
	max-width: 132px;
	height: auto;
}

.joie-noins__logo--wide img {
	max-width: 150px;
}

/* Shared section "video" (next to the cards in "Services with video"). */
body .joie-section .joie-services__inner > .joie-shared--video {
	flex: 0 1 420px;
	align-self: center;
	margin: 0 auto;
}

.joie-video {
	position: relative;
	overflow: hidden;
	border-radius: 36px;
	background: var(--joie-navy);
	line-height: 0;
}

.joie-video .joie-video__media {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	object-fit: cover;
}

.joie-video .joie-video__play,
.joie-video .joie-video__play:is(:hover, :focus) {
	position: absolute;
	left: 50%;
	bottom: 72px;
	z-index: 2;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 10px 22px 10px 10px;
	border: 0;
	border-radius: 40px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(46, 63, 76, 0.25);
	cursor: pointer;
	font-family: var(--joie-font-ui);
	font-weight: 700;
	font-size: var(--joie-fs-small);
	line-height: 1.2;
	color: var(--joie-navy);
	letter-spacing: normal;
	white-space: nowrap;
}

.joie-video .joie-video__play.is-muted {
	bottom: 20px;
}

.joie-video .joie-video__play:focus-visible {
	outline: 3px solid var(--joie-gold);
	outline-offset: 2px;
}

.joie-video__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--joie-magenta);
}

/* --------------------------------------------------------------------------
 * Shared section "map": map, address, hours, towns, buttons.
 * -------------------------------------------------------------------------- */

.joie-map {
	background: #fff;
	padding-top: 76px;
	padding-bottom: 76px;
}

.joie-map .joie-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 28px;
}

.joie-map__frame {
	flex: 1.3 1 380px;
	min-height: 340px;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border-radius: 36px;
	background: var(--joie-sky-light);
}

.joie-map__frame iframe {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-height: 340px;
	border: 0;
}

.joie-map__text {
	flex: 1 1 340px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
}

body .joie-section .joie-map__text p {
	font-size: var(--joie-fs-body);
	line-height: 1.6;
}

.joie-map__text p a {
	font-weight: 800;
}

/* --------------------------------------------------------------------------
 * Pattern "FAQ" (Details blocks).
 * -------------------------------------------------------------------------- */

body .joie-section.joie-faq {
	background: #fff;
	padding-bottom: 76px;
}

.joie-section .joie-faq__inner {
	max-width: 880px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.joie-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.joie-faq__item {
	padding: 18px 24px;
	border-radius: 20px;
	background: var(--joie-cream);
	box-sizing: border-box;
}

.joie-faq__item summary {
	font-weight: 800;
	font-size: 1.125rem;
	color: var(--joie-navy);
	cursor: pointer;
}

body .joie-section .joie-faq__item > p {
	margin-top: 10px;
	font-size: var(--joie-fs-body);
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
 * Shared section "cta": final call to action.
 * -------------------------------------------------------------------------- */

.joie-cta {
	padding: 0 20px 40px;
}

.joie-cta__box {
	max-width: var(--joie-wrap);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: clamp(32px, 5vw, 60px) 24px;
	border-radius: 44px;
	background: var(--joie-pink);
	text-align: center;
	box-sizing: border-box;
}

body .joie-section.joie-cta h2 {
	font-size: var(--joie-fs-h2);
}

body .joie-section .joie-cta__box p {
	font-size: var(--joie-fs-body);
	color: var(--joie-navy);
}

/* Message shown in the editor when no section is chosen. */
.joie-section-missing {
	padding: 16px;
	border: 1px dashed var(--joie-slate);
	text-align: center;
}

/* ==========================================================================
 * Links for the homepage and the location pages (0.4.0): service cards with
 * links and the "See all our services" card, DentistsRanked badge link, text links,
 * towns linked in the map, nearby towns, live reviews.
 * The Google Ads landing uses none of these classes.
 * ========================================================================== */

/* Service card with a link: the title link covers the whole card. */
.joie-card--link {
	position: relative;
	transition: box-shadow 0.2s;
}

.joie-card--link::after {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin-left: auto;
	margin-right: 4px;
	border-top: 2px solid var(--joie-magenta);
	border-right: 2px solid var(--joie-magenta);
	transform: rotate(45deg);
}

.joie-section .joie-card--link :is(h3, .joie-card__title) a {
	color: inherit;
	text-decoration: none;
}

.joie-section .joie-card--link :is(h3, .joie-card__title) a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.joie-card--link:hover {
	box-shadow: var(--joie-shadow);
}

.joie-section .joie-card--link:hover :is(h3, .joie-card__title) a {
	color: var(--joie-magenta);
}

.joie-section .joie-card--link :is(h3, .joie-card__title) a:focus-visible {
	outline: none;
}

/* "See all our services": white card without icon, before "No insurance?". */
body .joie-section .joie-card .joie-card__text > p.joie-card__title {
	margin-top: 0;
	font-family: var(--joie-font-display);
	font-size: var(--joie-fs-h3);
	line-height: 1.3;
	color: var(--joie-navy);
}

/* DentistsRanked badge with a link (homepage). */
.joie-doctor .joie-doctor__ranked a {
	display: block;
}

/* Shared section "map-links": towns linked to their location pages. */
.joie-map__text p.joie-map__towns a {
	font-weight: 700;
}

.joie-card--link:has(a:focus-visible) {
	outline: 3px solid var(--joie-gold);
	outline-offset: 2px;
}

/* Text link with an arrow (class "joie-textlink" on a Paragraph that holds one link). */
body .joie-section p.joie-textlink,
body .joie-section .joie-doctor__text > p.joie-textlink {
	font-family: var(--joie-font-ui);
	font-weight: 700;
	font-size: var(--joie-fs-small);
	line-height: 1.4;
}

.joie-section .joie-textlink a {
	color: var(--joie-magenta);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.joie-section .joie-textlink a:hover {
	color: var(--joie-navy);
}

.joie-section .joie-textlink a::after {
	content: "\00a0\2192";
	content: "\00a0\2192" / "";
}

/* Shared section "areas": one card for each location page. */
body .joie-section.joie-areas {
	background: var(--joie-sky-light);
	padding-top: 76px;
	padding-bottom: 76px;
}

.joie-areas .joie-wrap {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.joie-areas__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
}

body .joie-section .joie-areas__head p,
body .joie-section p.joie-areas__more {
	font-size: var(--joie-fs-body);
	line-height: 1.6;
}

body .joie-section p.joie-areas__more {
	text-align: center;
}

body .joie-section ul.joie-areas__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.joie-section a.joie-area {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 18px 20px;
	border-radius: 24px;
	background: #fff;
	text-decoration: none;
	box-sizing: border-box;
	transition: box-shadow 0.2s;
}

.joie-section a.joie-area:hover {
	box-shadow: var(--joie-shadow);
}

.joie-section a.joie-area:focus-visible {
	outline: 3px solid var(--joie-gold);
	outline-offset: 2px;
}

.joie-area__pin {
	flex: 0 0 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--joie-pink);
	color: var(--joie-magenta);
}

.joie-area__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.joie-area__town {
	font-family: var(--joie-font-display);
	font-size: var(--joie-fs-h3);
	line-height: 1.3;
	color: var(--joie-navy);
	transition: color 0.2s;
}

.joie-section a.joie-area:hover .joie-area__town {
	color: var(--joie-magenta);
}

.joie-area__label {
	font-family: var(--joie-font-text);
	font-size: var(--joie-fs-small);
	line-height: 1.4;
	color: var(--joie-text);
}

/* Shared section "reviews-widget": SociableKit Google reviews widget. */
.joie-reviews__widget {
	min-height: 320px;
}

/* Shared section "no-insurance-links": link to the insurance page under the logos. */
body .joie-noins p.joie-noins__more,
body .joie-section .joie-noins p.joie-noins__more {
	margin-top: 4px;
	font-family: var(--joie-font-ui);
	font-size: var(--joie-fs-small);
	font-weight: 700;
}

.joie-noins .joie-noins__more a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.joie-noins .joie-noins__more a:hover {
	color: var(--joie-navy);
}

.joie-noins .joie-noins__more a::after {
	content: "\00a0\2192";
	content: "\00a0\2192" / "";
}
