/*
 * Long-form content: treatment "full guide", blog articles, plain pages.
 * The existing treatment content (Elementor text/heading/accordion widgets
 * or classic HTML) is restyled here as the design's article — every rule is
 * prefixed with the theme body class so it outranks Elementor kit/widget
 * defaults regardless of stylesheet order (skill §8).
 */

/* ── Guide layout: article + sticky aside ─────────────────────────────── */
.dre-guide {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: 20px clamp(24px, 4vw, 56px);
}

.dre-guide__aside {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

@media (min-width: 1100px) {
	.dre-guide {
		grid-template-columns: minmax(0, 880px) minmax(260px, 320px);
		justify-content: space-between;
	}

	.dre-guide__aside {
		order: 2;
		position: sticky;
		top: 24px;
		max-height: calc(100vh - 48px);
		overflow-y: auto;
		scrollbar-width: thin;
	}

	.admin-bar .dre-guide__aside {
		top: 56px;
	}
}

/* "Jump to" list */
.dre-toc {
	border-radius: var(--dre-r-card-sm);
	background: var(--dre-ivory);
}

.dre-toc__head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 18px;
	font-size: 16px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.dre-toc__head::-webkit-details-marker {
	display: none;
}

.dre-toc__count {
	display: grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: var(--dre-teal-text);
}

.dre-toc__chev {
	width: 18px;
	height: 18px;
	margin-inline-start: auto;
	transition: transform .2s ease;
}

.dre-toc[open] .dre-toc__chev {
	transform: rotate(180deg);
}

.dre-toc__list {
	display: flex;
	flex-direction: column;
	max-height: min(60vh, 520px);
	margin: 0;
	padding: 0 10px 12px;
	overflow-y: auto;
	list-style: none;
	counter-reset: dre-toc;
}

.dre-toc__item a {
	display: block;
	padding: 8px 10px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--dre-body);
}

.dre-toc__item a:hover {
	background: #fff;
	color: var(--dre-ink);
}

.dre-toc__item a.is-active {
	background: #fff;
	color: var(--dre-navy);
	font-weight: 600;
}

.dre-toc__item--h2 a {
	font-weight: 600;
	color: var(--dre-ink);
}

/* Booking card in the aside (desktop) */
.dre-bookcard {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	border: 1.5px solid var(--dre-sand-hover);
	border-radius: var(--dre-r-card-sm);
	background: #fff;
}

.dre-bookcard__title {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
}

.dre-bookcard p {
	font-size: 14px;
	line-height: 1.5;
	color: var(--dre-body);
}

.dre-bookcard__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
}

.dre-bookcard__facts div {
	padding: 10px 12px;
	border-radius: 14px;
	background: var(--dre-ivory);
}

.dre-bookcard__facts dt {
	font-size: 12px;
	color: var(--dre-muted);
}

.dre-bookcard__facts dd {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.dre-bookcard .dre-btn {
	padding: 14px 20px;
	font-size: 15px;
}

.dre-bookcard .dre-rating {
	font-size: 13px;
}

/* ── Prose (design article typography) ─────────────────────────────────── */
.dre-theme .dre-prose {
	min-width: 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--dre-article);
	overflow-wrap: break-word;
}

.dre-theme .dre-prose p {
	margin: 0 0 14px;
	text-wrap: pretty;
}

.dre-theme .dre-prose h2 {
	margin: 48px 0 16px;
	font-size: calc(clamp(26px, 2.8vw, 36px) * var(--dre-heading-scale, 1));
	font-weight: var(--dre-heading-weight, 400);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--dre-ink);
	scroll-margin-top: 24px;
	text-wrap: balance;
}

.dre-theme .dre-prose h3 {
	margin: 40px 0 14px;
	padding-top: 28px;
	border-top: 1px solid var(--dre-line-soft);
	font-size: clamp(21px, 2vw, 26px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--dre-ink);
	scroll-margin-top: 24px;
	text-wrap: balance;
}

.dre-theme .dre-prose h4,
.dre-theme .dre-prose h5,
.dre-theme .dre-prose h6 {
	margin: 28px 0 10px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--dre-ink);
}

.dre-theme .dre-prose > :first-child,
.dre-theme .dre-prose .elementor-widget-container > :first-child {
	margin-top: 0;
}

.dre-theme .dre-prose .elementor > .e-con:first-child .elementor-widget:first-child h3:first-child,
.dre-theme .dre-prose > h3:first-child {
	padding-top: 0;
	border-top: 0;
}

.dre-theme .dre-prose a {
	color: var(--dre-teal-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.dre-theme .dre-prose a:hover {
	color: var(--dre-navy);
}

.dre-theme .dre-prose strong,
.dre-theme .dre-prose b {
	font-weight: 600;
	color: var(--dre-ink);
}

.dre-theme .dre-prose ul,
.dre-theme .dre-prose ol {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.dre-theme .dre-prose ul > li {
	position: relative;
	padding-inline-start: 28px;
	line-height: 1.6;
}

.dre-theme .dre-prose ul > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: .38em;
	width: 16px;
	height: 16px;
	background: var(--dre-teal);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dre-theme .dre-prose ol {
	counter-reset: dre-ol;
}

.dre-theme .dre-prose ol > li {
	position: relative;
	padding-inline-start: 36px;
	line-height: 1.6;
	counter-increment: dre-ol;
}

.dre-theme .dre-prose ol > li::before {
	content: counter(dre-ol);
	position: absolute;
	inset-inline-start: 0;
	top: .15em;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--dre-navy);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
}

.dre-theme .dre-prose li > ul,
.dre-theme .dre-prose li > ol {
	margin: 10px 0 0;
}

.dre-theme .dre-prose img {
	height: auto;
	border-radius: var(--dre-r-input);
}

.dre-theme .dre-prose figure,
.dre-theme .dre-prose .wp-block-image {
	margin: 24px 0;
}

.dre-theme .dre-prose figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--dre-meta);
}

.dre-theme .dre-prose blockquote {
	margin: 24px 0;
	padding: 18px 22px;
	border-inline-start: 3px solid var(--dre-teal);
	border-start-end-radius: 16px;
	border-end-end-radius: 16px;
	background: var(--dre-ivory);
	font-size: 18px;
	color: var(--dre-text);
}

.dre-theme .dre-prose blockquote p:last-child {
	margin-bottom: 0;
}

.dre-theme .dre-prose hr {
	height: 1px;
	margin: 32px 0;
	border: 0;
	background: var(--dre-line-soft);
}

.dre-theme .dre-prose iframe,
.dre-theme .dre-prose video {
	max-width: 100%;
	border: 0;
	border-radius: var(--dre-r-input);
}

/* Native details/summary FAQs pasted into articles → the design's FAQ rows. */
.dre-theme .dre-prose details {
	margin: 0 0 6px;
	border: 0;
	border-radius: var(--dre-r-row);
	background: var(--dre-ivory);
	box-shadow: none;
}

.dre-theme .dre-prose summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 16px 18px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--dre-ink);
	list-style: none;
	cursor: pointer;
}

.dre-theme .dre-prose summary::-webkit-details-marker {
	display: none;
}

.dre-theme .dre-prose summary::after {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 15px no-repeat,
		#fff;
}

.dre-theme .dre-prose details[open] > summary::after {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / 15px no-repeat,
		#fff;
}

.dre-theme .dre-prose details:not(.e-n-accordion-item) > :not(summary) {
	margin-inline: 18px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--dre-body);
}

.dre-theme .dre-prose details:not(.e-n-accordion-item) > :last-child:not(summary) {
	margin-bottom: 16px;
}

/* Tables (scroll sideways on phones; the wrapper is added server-side). */
.dre-theme .dre-table-wrap {
	margin: 4px 0 22px;
	overflow-x: auto;
	border: 1px solid var(--dre-line);
	border-radius: var(--dre-r-row);
	-webkit-overflow-scrolling: touch;
}

.dre-theme .dre-prose table {
	width: 100%;
	min-width: 520px;
	margin: 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}

.dre-theme .dre-prose th,
.dre-theme .dre-prose thead td {
	padding: 12px 14px;
	background: var(--dre-ivory);
	font-weight: 600;
	color: var(--dre-ink);
	text-align: start;
	vertical-align: bottom;
}

.dre-theme .dre-prose td {
	padding: 12px 14px;
	border-top: 1px solid var(--dre-line);
	text-align: start;
	vertical-align: top;
}

.dre-theme .dre-prose tr:first-child td {
	border-top: 0;
}

/* ── Legacy Elementor content inside the guide ────────────────────────── */
.dre-theme .dre-legacy .elementor,
.dre-theme .dre-legacy .e-con,
.dre-theme .dre-legacy .e-con-inner,
.dre-theme .dre-legacy .elementor-widget-container {
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: inherit;
}

.dre-theme .dre-legacy .elementor-element {
	position: static;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.dre-theme .dre-legacy .elementor-widget:not(:last-child) {
	margin-bottom: 0;
}

.dre-theme .dre-legacy .elementor-heading-title {
	padding: 0;
	line-height: 1.15;
}

/* Decorative images that Elementor positioned absolutely around headings. */
.dre-theme .dre-legacy .elementor-absolute,
.dre-theme .dre-legacy .elementor-fixed {
	display: none;
}

.dre-theme .dre-legacy .elementor-widget-image img {
	display: block;
	margin: 18px 0;
}

/* Elementor nested accordion → the design's FAQ rows. */
.dre-theme .dre-legacy .e-n-accordion {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 24px;
}

.dre-theme .dre-legacy .e-n-accordion-item {
	border: 0;
	border-radius: var(--dre-r-row);
	background: var(--dre-ivory);
}

.dre-theme .dre-legacy .e-n-accordion-item-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 16px 18px;
	border: 0;
	background: none;
	list-style: none;
	cursor: pointer;
}

.dre-theme .dre-legacy .e-n-accordion-item-title::-webkit-details-marker {
	display: none;
}

.dre-theme .dre-legacy .e-n-accordion-item-title-header,
.dre-theme .dre-legacy .e-n-accordion-item-title-text {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--dre-ink);
}

.dre-theme .dre-legacy .e-n-accordion-item-title-icon {
	display: none;
}

.dre-theme .dre-legacy .e-n-accordion-item-title::after {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 15px no-repeat,
		#fff;
}

.dre-theme .dre-legacy .e-n-accordion-item[open] > .e-n-accordion-item-title::after {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d1c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") center / 15px no-repeat,
		#fff;
}

.dre-theme .dre-legacy .e-n-accordion-item > .e-con,
.dre-theme .dre-legacy .e-n-accordion-item > [role="region"] {
	padding: 0 18px 16px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--dre-body);
}

.dre-theme .dre-legacy .e-n-accordion-item p:last-child {
	margin-bottom: 0;
}

/* Classic accordion/toggle widgets (older pages). */
.dre-theme .dre-legacy .elementor-accordion-item,
.dre-theme .dre-legacy .elementor-toggle-item {
	margin-bottom: 6px;
	border: 0;
	border-radius: var(--dre-r-row);
	background: var(--dre-ivory);
}

.dre-theme .dre-legacy .elementor-tab-title {
	padding: 16px 18px;
	border: 0;
	font-weight: 600;
}

.dre-theme .dre-legacy .elementor-tab-content {
	padding: 0 18px 16px;
	border: 0;
}

/* ── Treatment sections ────────────────────────────────────────────────── */
.dre-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dre-step-num {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--dre-navy);
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.dre-steps .dre-h3 {
	font-size: 19px;
}

.dre-aftercare {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.dre-aftercare__intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.dre-aftercare__intro .dre-head {
	margin-bottom: 0;
}

.dre-aftercare__intro p {
	max-width: 420px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--dre-on-navy-2);
}

.dre-aftercare__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border-radius: var(--dre-r-card);
	background: #fff;
	color: var(--dre-ink);
}

.dre-aftercare__title {
	font-size: 16px;
	font-weight: 600;
}

.dre-aftercare .dre-checks li {
	font-size: 15px;
	color: var(--dre-body);
}

/* ── Plain pages ───────────────────────────────────────────────────────── */
.dre-narrow.dre-prose {
	margin-inline: 0;
}

/* ── Elementor Site Settings shield (see global.css) ─────────────────── */
.dre-theme .dre-toc__item a {
	color: var(--dre-body);
}

.dre-theme .dre-toc__item--h2 a,
.dre-theme .dre-toc__item a:hover {
	color: var(--dre-ink);
}

.dre-theme .dre-toc__item a.is-active {
	color: var(--dre-navy);
}
