/* ==========================================================================
   Service page (service.php)                                       (.dst-svc)
   --------------------------------------------------------------------------
   The frame around the article: hero with the doctor's byline, a three-column
   body ("On this page" | article | talk to the doctor), then the note, author,
   FAQs, helpful resources and more treatments. The article text itself is
   styled by prose.css (.dst-prose); breadcrumbs, buttons and the service cards
   come from services.css (.dst-cat-*).
   Site rules: full width with 28px / 14px side padding (no max-width on
   wrappers; a reading measure on the article column is fine), Jost only, no
   italics, images are <img>, no shadows or borders on blocks (tinted bands and
   hairlines instead). Motion: transform / opacity only, reduced motion respected.
   ========================================================================== */

.dst-svc {
	--out: cubic-bezier(.23, 1, .32, 1);
	--sticky: calc(var(--dst-bar-h) + var(--dst-topline-h) + 24px); /* clear of the whole sticky header */
	font-family: var(--dst-font);
	color: var(--dst-ink);
	background: #fff;
}
:where(.dst-svc) p { margin: 0; } /* :where() so the article paragraphs keep their spacing (prose.css) */
.dst-svc a:focus-visible, .dst-svc summary:focus-visible { outline: 2px solid var(--dst-rose-ink); outline-offset: 3px; border-radius: 6px; }
.dst-svc .dst-svc-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dst-rose-ink); }
.dst-svc .dst-svc-h2 { margin: 8px 0 0; font: 500 clamp(24px, 2vw, 32px)/1.2 var(--dst-font); letter-spacing: -.01em; color: var(--dst-ink); text-transform: none; }

/* ---------- Hero: the picture large on the left (square corners, from the top of the hero to its
   foot, flush with the screen edge), the words on the right ---------- */
.dst-svc-hero {
	display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center;
	gap: clamp(28px, 3.5vw, 56px);
	height: max(440px, 65vh);   /* compact: about two-thirds of the screen; the picture is a wide rectangle */
	/* the picture keeps the page's side padding, so its left edge lines up with the article below,
	   and sits centred with equal space above and below */
	padding: clamp(24px, 2.6vw, 36px) var(--dst-gutter);
	background:
		radial-gradient(45% 70% at 100% 10%, rgba(255, 178, 140, .18), rgba(255, 178, 140, 0) 70%),
		radial-gradient(50% 80% at 70% 100%, rgba(240, 86, 151, .12), rgba(240, 86, 151, 0) 70%),
		linear-gradient(180deg, #fff7fa 0, #fdeef4 100%);
}
.dst-svc-hero { position: relative; isolation: isolate; overflow: hidden; }
.dst-svc-hero__copy { align-self: center; min-width: 0; }
.dst-svc .dst-svc-hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dst-rose-ink); }
.dst-svc-hero__eyebrow a { color: inherit; text-decoration: none; }
.dst-svc-hero__eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dst-svc-hero__eyebrow span { color: #e3b4c8; }
.dst-svc .dst-svc-hero__title { margin: 10px 0 0; font: 500 clamp(32px, 3.2vw, 52px)/1.06 var(--dst-font); letter-spacing: -.018em; color: var(--dst-ink); text-transform: none; }
.dst-svc .dst-svc-hero__lead { margin-top: 12px; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.55; color: var(--dst-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Byline: the doctor who wrote / reviewed the page */
.dst-svc-by { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.dst-svc-by__photo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #f6d9e5; box-shadow: 0 0 0 3px #fff; }
.dst-svc .dst-svc-by__text { display: grid; gap: 2px; font-size: 15px; line-height: 1.4; color: var(--dst-body); }
.dst-svc-by__text a, .dst-svc-by__text b { color: var(--dst-ink); font-weight: 600; text-decoration: none; }
.dst-svc-by__text a { text-decoration: underline; text-decoration-color: rgba(198, 58, 114, .35); text-underline-offset: 3px; }
.dst-svc-by__text a:hover { color: var(--dst-rose-ink); text-decoration-color: currentColor; }
.dst-svc-by__text small { font-size: 13px; color: var(--dst-muted); }

.dst-svc-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.dst-svc-hero__facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--dst-pill); background: rgba(255, 255, 255, .7); box-shadow: var(--dst-glass-ring); -webkit-backdrop-filter: var(--dst-glass-filter); backdrop-filter: var(--dst-glass-filter); font-size: 13.5px; font-weight: 500; color: var(--dst-body); }
.dst-svc-hero__facts .dst-i { width: 16px; height: 16px; color: var(--dst-rose-ink); }
.dst-svc-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 20px; }
.dst-svc .dst-cat-btn:hover, .dst-svc .dst-cat-btn:focus-visible { background: var(--dst-rose-deep); color: #fff; }
.dst-svc .dst-cat-btn { border-radius: var(--dst-pill); }
.dst-svc-hero__media { position: relative; align-self: stretch; margin: 0; height: 100%; border-radius: var(--dst-r); background: #f6d9e5; overflow: hidden; }
.dst-svc-hero__media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.2s var(--out); }

/* ---------- Body: article | rail, on a soft tinted ground with colour spots; the article sits on a
   white sheet (no border, no shadow) ---------- */
.dst-svc-body {
	display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main rail";
	align-items: start; gap: 32px clamp(24px, 3vw, 48px);
	padding: clamp(32px, 4vw, 56px) var(--dst-gutter) clamp(48px, 5vw, 80px);
	background:
		radial-gradient(30% 40% at 0% 0%, rgba(240, 86, 151, .1), rgba(240, 86, 151, 0) 70%),
		radial-gradient(28% 35% at 100% 30%, rgba(255, 178, 140, .14), rgba(255, 178, 140, 0) 70%),
		radial-gradient(30% 40% at 40% 100%, rgba(176, 130, 255, .07), rgba(176, 130, 255, 0) 70%),
		#fbf5f8;
}
.dst-svc-main { grid-area: main; min-width: 0; padding: clamp(28px, 4vw, 64px) clamp(22px, 4.5vw, 72px); border-radius: var(--dst-r); background: #fff; }
/* no max-width (site rule): the article fills the white sheet, left-aligned; the rail keeps the measure readable */
.dst-svc-rail { grid-area: rail; }   /* sticks via Canvas's sticky-sidebar plugin (service.php) */
.dst-svc-rail__in { display: grid; gap: 14px; }

/* After the article */
.dst-svc .dst-svc-note { display: flex; gap: 12px; margin-top: 40px; padding: 18px 20px; border-radius: var(--dst-r); background: var(--dst-spots-soft), var(--dst-blush); font-size: 14.5px; line-height: 1.6; color: var(--dst-body); }
.dst-svc-note .dst-i { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--dst-rose-ink); }

.dst-svc-author { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; margin-top: 48px; padding: 28px; border-radius: var(--dst-r); background: var(--dst-spots), var(--dst-blush); }
.dst-svc-author img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #f6d9e5; box-shadow: 0 0 0 4px #fff; }
.dst-svc .dst-svc-author__role { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dst-rose-ink); }
.dst-svc .dst-svc-author__name { margin-top: 6px; font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--dst-ink); }
.dst-svc .dst-svc-author__job { margin-top: 2px; font-size: 15px; color: var(--dst-rose-ink); }
.dst-svc .dst-svc-author__text { margin: 12px 0 14px; font-size: 15.5px; line-height: 1.65; color: var(--dst-body); }

/* FAQs: native <details>, hairline rows */
.dst-svc-faq { margin-top: 56px; scroll-margin-top: var(--sticky); }
.dst-svc-faq__list { display: grid; gap: 10px; margin-top: 22px; }
.dst-svc-faq__item { padding: 0 20px; border-radius: var(--dst-r); background: var(--dst-blush); transition: background-color .25s ease; }
.dst-svc-faq__item[open] { background: var(--dst-spots-soft), #fdeef4; }
.dst-svc-faq__item summary {
	position: relative; display: block; padding: 20px 52px 20px 0;
	font-size: 17.5px; font-weight: 500; line-height: 1.4; color: var(--dst-ink);
	cursor: pointer; list-style: none; transition: color .2s ease;
}
.dst-svc-faq__item summary::-webkit-details-marker { display: none; }
.dst-svc-faq__item summary:hover { color: var(--dst-rose-ink); }
.dst-svc-faq__sign { position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: #fff; }
.dst-svc-faq__sign::before, .dst-svc-faq__sign::after { content: ""; position: absolute; left: 10px; top: 15px; width: 12px; height: 2px; border-radius: 2px; background: var(--dst-rose-ink); transition: transform .3s var(--out); }
.dst-svc-faq__sign::after { transform: rotate(90deg); }
.dst-svc-faq__item[open] .dst-svc-faq__sign::after { transform: rotate(0deg); }
.dst-svc-faq__item[open] summary { color: var(--dst-rose-ink); }
.dst-svc .dst-svc-faq__item p { padding: 0 52px 22px 0; margin-top: -4px; font-size: 16px; line-height: 1.7; color: var(--dst-body); }

/* Helpful resources */
.dst-svc-links { margin-top: 56px; }
.dst-svc-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.dst-svc-links a {
	display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px;
	height: 100%; padding: 16px 18px; border-radius: var(--dst-r); background: var(--dst-blush);
	color: var(--dst-ink); text-decoration: none; transition: background-color .2s ease, transform .35s var(--out);
}
.dst-svc-links__kind { grid-column: 1; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dst-rose-ink); }
.dst-svc-links__title { grid-column: 1; margin-top: 3px; font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.dst-svc-links a .dst-i { grid-column: 2; grid-row: 1 / 3; width: 18px; height: 18px; color: var(--dst-rose-ink); transition: transform .25s var(--out); }

/* Rail: talk to the doctor + this sub category's treatments */
.dst-svc-help { position: relative; overflow: hidden; padding: 26px 24px; border-radius: var(--dst-r); background: var(--dst-spots), var(--dst-glass-bg); box-shadow: var(--dst-glass-ring); -webkit-backdrop-filter: var(--dst-glass-filter); backdrop-filter: var(--dst-glass-filter); }
.dst-svc .dst-svc-help__title { margin-top: 8px; font-size: 21px; font-weight: 500; line-height: 1.3; color: var(--dst-ink); }
.dst-svc .dst-svc-help__text { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--dst-body); }
.dst-svc .dst-svc-help__status { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; font-size: 13.5px; font-weight: 500; color: var(--dst-muted); }
.dst-svc-help__status span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dst-svc-help__status.is-open { color: #23805a; }
.dst-svc-help .dst-cat-btn { width: 100%; justify-content: center; }
.dst-svc-help__more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.dst-svc-help__more a {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: var(--dst-pill);
	background: #fff; color: var(--dst-rose-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.dst-svc-help__more .dst-i { width: 16px; height: 16px; }
.dst-svc-siblings { padding: 22px 24px 10px; border-radius: var(--dst-r); background: var(--dst-glass-bg); box-shadow: var(--dst-glass-ring); -webkit-backdrop-filter: var(--dst-glass-filter); backdrop-filter: var(--dst-glass-filter); }
.dst-svc-siblings ul { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--dst-line); }
.dst-svc-siblings li a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0;
	border-bottom: 1px solid var(--dst-line); font-size: 15px; color: var(--dst-ink); text-decoration: none; transition: color .2s ease;
}
.dst-svc-siblings li a .dst-i { flex: none; width: 15px; height: 15px; color: var(--dst-rose-ink); opacity: .5; transition: transform .25s var(--out), opacity .2s ease; }
.dst-svc-siblings li:last-child a { border-bottom: 0; }
.dst-svc-siblings li a[aria-current] { color: var(--dst-rose-ink); font-weight: 500; }
.dst-svc-siblings li a[aria-current] .dst-i { opacity: 1; }

/* More treatments (cards from services.css) */
.dst-svc-more { padding: clamp(44px, 5vw, 72px) var(--dst-gutter) clamp(56px, 6vw, 88px); background: var(--dst-spots), var(--dst-blush); --card: #fff; }
.dst-svc-more__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }

@media (hover: hover) and (pointer: fine) {
	.dst-svc-links a:hover { background: #fbe4ee; transform: var(--dst-lift); }
	.dst-svc-hero__media:hover img { transform: scale(1.03); }
	.dst-svc-links a:hover .dst-i, .dst-svc-siblings li a:hover .dst-i { transform: translateX(3px); opacity: 1; }
	.dst-svc-siblings li a:hover { color: var(--dst-rose-ink); }
	.dst-svc-help__more a:hover { background: var(--dst-rose-ink); color: #fff; }
}

/* ---------- Tablet: the rail drops under the article ---------- */
@media (max-width: 1099.98px) {
	.dst-svc-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "rail"; }
	.dst-svc-rail__in { grid-template-columns: 1fr 1fr; align-items: start; }
}
/* ---------- Phone and small tablet: the picture on top, then the words ---------- */
@media (max-width: 899.98px) {
	.dst-svc-hero { grid-template-columns: 1fr; height: auto; gap: 22px; padding: var(--dst-gutter) var(--dst-gutter) 34px; }
	.dst-svc-hero__media { height: auto; aspect-ratio: 16 / 10; }
	.dst-svc-body { padding: 0 0 40px; gap: 2px; }
	.dst-svc-main { padding: 28px var(--dst-gutter) 32px; border-radius: 0; }
	.dst-svc-rail__in { padding: 0 var(--dst-gutter); }
	.dst-svc-rail__in { grid-template-columns: 1fr; }
	.dst-svc-links ul { grid-template-columns: 1fr; }
}
@media (max-width: 699.98px) {
	.dst-svc .dst-svc-hero__title { font-size: clamp(32px, 9vw, 40px); }
	.dst-svc-hero__actions { gap: 12px 20px; }
	.dst-svc-author { grid-template-columns: 72px 1fr; gap: 16px; padding: 20px; }
	.dst-svc-author img { width: 72px; height: 72px; }
	.dst-svc .dst-svc-author__name { font-size: 20px; }
	.dst-svc-faq__item summary { font-size: 16.5px; padding-right: 46px; }
	.dst-svc .dst-svc-faq__item p { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.dst-svc *, .dst-svc *::before, .dst-svc *::after { transition: none !important; }
}
