/* Shared finishing layer. Medical wording and image mappings stay in their source records. */
.directory-section { scroll-margin-top:0; }
.filter-form { padding:24px; background:var(--surface); gap:12px 20px; }
.filter-form input,.filter-form select { min-height:56px; }
.filter-form.has-category-buttons { grid-template-columns:minmax(0,1fr) auto; }
.filter-form.has-category-buttons label:nth-of-type(2),.filter-form.has-category-buttons select { display:none; }
.filter-form.has-category-buttons .button { grid-column:2; }
.filter-reset { display:block; min-height:44px; border:0; padding:8px 0; margin:8px 0 16px; background:none; color:var(--accent); font-size:var(--control); text-decoration:underline; text-underline-offset:4px; }
.filter-summary { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:44px; margin:24px 0 12px; }
.filter-summary .results-count { margin:0; }
.filter-summary .filter-reset { margin:0; flex-shrink:0; }
.filter-summary .filter-reset[hidden] { display:block!important; visibility:hidden; pointer-events:none; }
.care-filters { display:flex; gap:10px; flex-wrap:wrap; margin:24px 0 28px; }
.care-filters button { min-height:48px; padding:12px 18px; background:transparent; border:1px solid var(--border-soft); border-radius:var(--radius); font-size:var(--control); line-height:1.4; white-space:nowrap; touch-action:manipulation; transition:background-color 200ms ease,border-color 200ms ease,color 200ms ease; }
.care-filters button:hover { border-color:var(--accent); color:var(--accent); background:var(--surface); }
.care-filters button[aria-pressed=true] { color:var(--white); background:var(--accent); border-color:var(--accent); }
.care-filters button:active { background:var(--accent-hover); color:var(--white); }
.care-filters button:focus-visible { outline-width:2px; outline-offset:2px; }
.results-count { color:var(--muted); font-size:var(--control); min-height:26px; font-variant-numeric:tabular-nums; }
.empty-state { margin:24px 0; padding:32px; background:var(--surface); }
.empty-state h3 { font-size:var(--card-title); }.empty-state p { margin-top:16px; }
.empty-state .text-button { margin:12px 0 0; color:var(--accent); }
.treatment-grid,.services-directory .directory-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; align-items:stretch; }
.service-options>h2 { margin-bottom:32px; }
.services-directory .directory-items>[data-item] { min-width:0; display:flex; background:none; }
/* Treatment cards float: a white card with a soft shadow, the picture on a tinted plate.
   On hover the card rises, its picture lifts off the plate, and the other cards step back. */
.treatment-card { display:flex; flex-direction:column; min-width:0; width:100%; height:100%; background:var(--white); border:0; border-radius:16px; color:var(--ink); box-shadow:var(--card-shadow); transition:transform 380ms var(--motion-ease),box-shadow 380ms var(--motion-ease),opacity 380ms var(--motion-ease),filter 380ms var(--motion-ease); touch-action:manipulation; }
.treatment-card-media { position:relative; height:230px; margin:12px 12px 0; border-radius:12px; overflow:visible; background:linear-gradient(160deg,var(--bg),var(--surface)); }
.treatment-card-media img { width:100%; height:100%; object-fit:cover; border-radius:12px; transition:transform 420ms var(--motion-ease),box-shadow 420ms var(--motion-ease),filter 420ms var(--motion-ease); }
.treatment-card-media[data-fit=contain] img { object-fit:contain; padding:18px; }
.treatment-card-copy { display:flex; flex:1; flex-direction:column; gap:12px; padding:22px 24px 20px; }
.treatment-card h3 { font-family:var(--font-display); font-size:var(--card-title); font-weight:400; line-height:1.12; letter-spacing:-.01em; overflow-wrap:break-word; color:var(--wine); }
.treatment-card-intro { font-size:var(--small); line-height:1.55; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.treatment-card-group { align-self:flex-start; padding:4px 12px; border-radius:999px; background:var(--surface); color:var(--wine); font-size:var(--small); line-height:1.5; }
.treatment-card-action { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:auto; padding-top:12px; border-top:1px solid var(--border-soft); color:var(--accent); font-size:var(--control); line-height:1.5; min-height:44px; }
.treatment-card-action>span { display:inline-block; transition:transform 240ms var(--motion-ease); }
.treatment-card:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
.treatment-card:active { background:var(--surface); }
@media(any-hover:hover) {
 .treatment-card:hover { transform:translateY(-8px); box-shadow:var(--card-shadow-lifted); }
 .treatment-card:hover .treatment-card-media img { transform:translateY(-14px) scale(1.04); box-shadow:var(--plate-shadow); }
 .treatment-card:hover .treatment-card-media[data-fit=contain] img { box-shadow:none; filter:var(--plate-drop); }
 .treatment-card:hover .treatment-card-action>span { transform:translate(3px,-3px); }
 :is(.treatment-grid,.directory-items:not(.is-stack)):has(.treatment-card:hover) .treatment-card:not(:hover) { opacity:.55; filter:blur(1px) saturate(.8); transform:scale(.98); }
}
/* Treatment stack (scripted, motion allowed): every card shares one grid cell; --d is its distance from the front.
   Nearer cards sit larger and sharper, farther ones step aside, shrink, fade and blur; beyond three steps they hide. */
.services-directory .directory-items.is-stack { grid-template-columns:minmax(0,1fr); justify-items:center; align-items:stretch; gap:0; padding:36px 0 16px; overflow-x:clip; touch-action:pan-y; user-select:none; }
.directory-items.is-stack>[data-item] { grid-area:1/1; width:clamp(270px,30vw,420px); z-index:calc(10 - var(--ad,0)); transform:translateX(calc(var(--d,0) * 62%)) scale(calc(1 - var(--ad,0) * .13)); opacity:calc(1 - var(--ad,0) * .28); filter:blur(calc(var(--ad,0) * 1.5px)) saturate(calc(1 - var(--ad,0) * .18)); transition:transform var(--stack-ms,760ms) var(--motion-ease),opacity var(--stack-ms,760ms) var(--motion-ease),filter var(--stack-ms,760ms) var(--motion-ease); }
.directory-items.is-stack>[data-offset="3"],.directory-items.is-stack>[data-offset="-3"] { opacity:0; visibility:hidden; transition:transform var(--stack-ms,760ms) var(--motion-ease),opacity var(--stack-ms,760ms) var(--motion-ease),filter var(--stack-ms,760ms) var(--motion-ease),visibility 0s linear var(--stack-ms,760ms); }
/* The first run-through (pages.js) flicks the cards past faster; its last step lands at the usual pace. */
.directory-items.is-stack.is-sweeping { --stack-ms:180ms; }
.directory-items.is-stack>[data-item]:not([data-offset="0"]) .treatment-card { cursor:pointer; }
.directory-items.is-stack .treatment-card[data-front] { box-shadow:var(--card-shadow-front); }
.directory-items.is-stack .treatment-card[data-front]::before { transform:scaleX(1); transition-delay:200ms; }
.directory-items.is-stack .treatment-card[data-front] .treatment-card-media img { transform:translateY(-16px) scale(1.05); box-shadow:var(--plate-shadow); transition-delay:180ms; }
.directory-items.is-stack .treatment-card[data-front] .treatment-card-media[data-fit=contain] img { box-shadow:none; filter:var(--plate-drop); }
.directory-items.is-stack .treatment-card[data-front] .treatment-card-action>span { transform:rotate(45deg); background:var(--accent); border-color:var(--accent); color:var(--white); }
.stack-controls { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:20px; }
.stack-controls button { min-width:44px; min-height:44px; border:1px solid var(--border-wine); border-radius:999px; background:var(--white); color:var(--wine); font:inherit; font-size:var(--control); cursor:pointer; transition:background-color 200ms ease,color 200ms ease; }
.stack-controls button:hover { background:var(--wine); color:var(--white); }
.stack-controls button:disabled { opacity:.4; pointer-events:none; }
.stack-count { min-width:84px; text-align:center; font-family:var(--font-display); font-style:italic; font-size:var(--body); color:var(--wine); font-variant-numeric:tabular-nums; }
@media(max-width:599px) {
 .directory-items.is-stack>[data-item] { width:min(76vw,340px); transform:translateX(calc(var(--d,0) * 70%)) scale(calc(1 - var(--ad,0) * .12)); }
 /* On a short phone screen the picture gives up some height so the whole card fits under the header. */
 .directory-items.is-stack .treatment-card-media { height:clamp(180px,calc(100vh - 436px),210px); height:clamp(180px,calc(100svh - 436px),210px); }
}
/* At the owner's request the stack's cards are drawn 15% larger than the grid cards, picture and type included.
   Upright phones keep the plain size: there the card already fills most of the screen. On a short screen, such as a
   laptop's browser window, the picture gives up height (down to 180px) so the whole card still fits under the sticky
   header; below 621px tall the card turns on its side instead (further down). */
@media(min-width:600px) and (min-height:621px) {
 .directory-items.is-stack>[data-item] { width:clamp(310px,34.5vw,483px); }
 .directory-items.is-stack .treatment-card { border-radius:18px; }
 .directory-items.is-stack .treatment-card::before { left:28px; right:28px; }
 .directory-items.is-stack .treatment-card-media { height:clamp(180px,calc(100vh - 454px),265px); height:clamp(180px,calc(100svh - 454px),265px); margin:14px 14px 0; border-radius:14px; }
 .directory-items.is-stack .treatment-card-media img { border-radius:14px; }
 .directory-items.is-stack .treatment-card-media[data-fit=contain] img { padding:21px; }
 .directory-items.is-stack .treatment-card-media::after { top:12px; left:12px; padding:3px 12px; font-size:calc(var(--small) * 1.15); }
 .directory-items.is-stack .treatment-card-copy { gap:14px; padding:25px 28px 23px; }
 .directory-items.is-stack .treatment-card h3 { font-size:calc(var(--card-title) * 1.15); }
 .directory-items.is-stack .treatment-card-intro { font-size:calc(var(--small) * 1.15); }
 .directory-items.is-stack .treatment-card-group { padding:5px 14px; font-size:calc(var(--small) * 1.15); }
 .directory-items.is-stack .treatment-card-action { gap:18px; padding-top:14px; min-height:51px; font-size:calc(var(--control) * 1.15); }
 .directory-items.is-stack .treatment-card-action>span { width:46px; height:46px; font-size:calc(var(--input) * 1.15); }
 .directory-items.is-stack .treatment-card[data-front] .treatment-card-media img { transform:translateY(-18px) scale(1.05); }
}
@media(min-width:600px) and (max-width:1100px) and (min-height:621px) { .directory-items.is-stack .treatment-card-media { height:clamp(180px,calc(100vh - 490px),242px); height:clamp(180px,calc(100svh - 490px),242px); } }
@media(min-width:600px) and (max-width:740px) and (min-height:621px) { .directory-items.is-stack .treatment-card-copy { padding:25px; } }
/* Up to 1100px wide the stack's cards are too narrow for some descriptions in two lines, so they may take a third
   rather than stop mid-sentence. */
@media(max-width:1100px) { .directory-items.is-stack .treatment-card-intro { -webkit-line-clamp:3; } }
/* Phones turned sideways and other screens under 621px tall: an upright card would not fit under the header, so the
   picture stands beside the words and the whole card fits on screen. The picture fills its column without setting
   the card's height. */
@media(min-width:600px) and (max-height:620px) {
 .services-directory .directory-items.is-stack { padding-top:14px; }
 .directory-items.is-stack>[data-item] { width:min(600px,80vw); }
 .directory-items.is-stack .treatment-card { flex-direction:row; }
 .directory-items.is-stack .treatment-card-media { flex:0 0 42%; height:auto; margin:12px 0 12px 12px; }
 .directory-items.is-stack .treatment-card-media img { position:absolute; inset:0; }
 .directory-items.is-stack .treatment-card-copy { gap:10px; padding:16px 20px 14px; }
 .directory-items.is-stack .treatment-card-intro { -webkit-line-clamp:3; }
 .directory-items.is-stack .treatment-card[data-front] .treatment-card-media img { transform:translateY(-8px) scale(1.03); }
}
/* Without overflow:clip (Safari 15 and older) the hidden side cards would widen the page. */
@supports not (overflow:clip) { .services-directory .directory-items.is-stack { overflow-x:hidden; } }
/* Letterhead touches: each card is numbered like a catalogue print, the plate carries laid lines,
   a champagne foil rule draws across the top on hover, and the arrow sits in a wine seal. */
.treatment-grid,.directory-items { counter-reset:treatment-card; }
.treatment-card { position:relative; counter-increment:treatment-card; }
.treatment-card::before { content:""; position:absolute; top:0; left:24px; right:24px; height:2px; background:linear-gradient(90deg,transparent,var(--champagne) 20%,var(--foil-light) 50%,var(--champagne) 80%,transparent); transform:scaleX(0); transition:transform 520ms var(--motion-ease); z-index:2; }
.treatment-card-media { isolation:isolate; }
.treatment-card-media::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:repeating-linear-gradient(0deg,rgb(121 36 42 / .025) 0 1px,transparent 1px 6px); pointer-events:none; }
.treatment-card-media::after { content:"No. " counter(treatment-card,decimal-leading-zero); position:absolute; top:10px; left:10px; z-index:1; padding:3px 10px; background:rgb(250 247 245 / .92); border:1px solid rgb(197 166 138 / .6); border-radius:999px; font-family:var(--font-display); font-style:italic; font-size:var(--small); line-height:1.4; color:var(--wine); }
.treatment-card-action>span { display:inline-grid; place-items:center; width:40px; height:40px; border-radius:50%; border:1px solid rgb(167 52 57 / .35); font-size:var(--input); transition:transform 240ms var(--motion-ease),background-color 240ms ease,color 240ms ease,border-color 240ms ease; }
@media(any-hover:hover) {
 .treatment-card:hover::before { transform:scaleX(1); }
 .treatment-card:hover .treatment-card-action>span { transform:rotate(45deg); background:var(--accent); border-color:var(--accent); color:var(--white); }
}
.breadcrumbs { display:flex; flex-wrap:wrap; gap:10px 20px; font-size:var(--small); line-height:1.6; }
.breadcrumbs a { min-height:44px; display:inline-flex; align-items:center; text-decoration:underline; text-underline-offset:4px; }
.breadcrumbs [aria-current] { display:flex; align-items:center; color:var(--muted); overflow-wrap:anywhere; }
.page-hero.treatment-hero h1 { font-size:var(--title-long); line-height:1.06; max-width:20ch; overflow-wrap:break-word; }
.page-hero.treatment-hero .page-intro { font-size:var(--lead); line-height:1.5; max-width:38ch; }
.treatment-jump { display:flex; flex-wrap:wrap; gap:12px 32px; margin-top:32px; }
.treatment-jump a { display:inline-flex; align-items:center; min-height:44px; font-size:var(--control); text-decoration:underline; text-underline-offset:5px; color:var(--accent); }
.treatment-information { padding-bottom:24px; }
.treatment-information .source-widget :is(h2,h3,h4,h5,h6) { line-height:1.14; }
.treatment-information :is(table,video,iframe) { max-width:100%; }
.treatment-information:focus,.source-widget[id]:focus { outline:none; }
.required-label { color:var(--muted); font-size:var(--small); font-weight:400; }
.enquiry-form { min-width:0; }
.enquiry-form label { line-height:1.5; }
.enquiry-form .field-error { font-size:var(--control); line-height:1.5; }
.enquiry-form .form-error-summary { background:var(--bg); padding:16px; border:1px solid var(--accent); }
.enquiry-form [aria-invalid=true] { background:var(--bg); }
.enquiry-feedback:focus { outline:2px solid var(--accent); }
.enquiry-form[data-state=preparing] [data-prepare] { opacity:.75; }
.resource-navigation a,.footer-navigation a { min-height:44px; display:inline-flex; align-items:center; }
.clinic-footer a { overflow-wrap:anywhere; }
main,main>section,main>article,.page-hero>div,.source-section { min-width:0; }
@media(max-width:1100px) {
 .treatment-grid,.services-directory .directory-items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
 .treatment-card-media { height:210px; }
 .page-hero.treatment-hero .page-intro { font-size:var(--body); }
}
@media(max-width:740px) {
 .filter-form { padding:20px; }
 .filter-form.has-category-buttons { grid-template-columns:minmax(0,1fr) auto; gap:12px; }
 .filter-form.has-category-buttons label:first-child { grid-column:1/-1; grid-row:1; }
 .filter-form.has-category-buttons input { grid-column:1; grid-row:2; min-width:0; padding-inline:12px; }
 .filter-form.has-category-buttons .button { grid-column:2; grid-row:2; margin:0; padding-inline:16px; }
 .care-filters { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; padding:4px 4px 12px; margin:16px -4px 20px; scroll-padding-inline:4px; }
 .care-filters button { flex:0 0 auto; }
 .treatment-card-copy { padding:22px; gap:12px; }
 .page-hero.treatment-hero h1 { max-width:none; }
 .page-hero.treatment-hero .page-intro { font-size:var(--body); margin-top:20px; }
 .page-hero.treatment-hero figure { height:280px; }
 .treatment-jump { margin-top:24px; gap:8px 24px; }
 .enquiry-feedback .text-button { display:flex; }
}
@media(max-width:599px) {
 .treatment-grid,.services-directory .directory-items { grid-template-columns:1fr; gap:20px; }
 .treatment-card-media { height:210px; }
 .treatment-card-media[data-fit=contain] img { padding:16px; }
}
/* Restored original content: clinic media, author archive and article clinic note. */
.home-environment-media { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; align-items:start; margin-top:32px; }
.home-environment-media .restored-gallery figure img { width:100%; height:auto; }
.clinic-video { margin:0; }
.video-frame { position:relative; aspect-ratio:16/9; background:var(--surface,var(--surface)); overflow:hidden; }
.video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.clinic-video figcaption { margin-top:12px; font-size:var(--small); line-height:1.5; }
.author-archive-label { font-family:var(--font-ui); font-size:var(--control); color:var(--muted); margin-bottom:20px; }
.author-archive h1 { margin-bottom:40px; }
.article-excerpt { margin-top:8px; }
.article-clinic-about .lead { max-width:var(--reading); margin-top:16px; }
@media(max-width:740px) {
 .home-environment-media { grid-template-columns:1fr; gap:24px; }
}
@media(prefers-reduced-motion:reduce) {
 .care-filters button,.treatment-card,.treatment-card::before,.treatment-card-media img,.treatment-card-action>span { transition:none; }
 .treatment-card:hover,.treatment-card:hover .treatment-card-media img,.treatment-card:hover .treatment-card-action>span { transform:none; }
 :is(.treatment-grid,.directory-items):has(.treatment-card:hover) .treatment-card:not(:hover) { opacity:1; filter:none; transform:none; }
}
/* Footer contact and legal links get full-height tap areas, sized to their words. */
.clinic-footer :is(.footer-address,.footer-bottom) a,.clinic-footer .footer-phone { display:flex; align-items:center; width:fit-content; min-height:44px; }
/* While the clinic video loads (or if YouTube is blocked), the frame says so instead of sitting blank. */
.video-frame::before { content:"Loading the clinic video…"; position:absolute; inset:0; display:grid; place-items:center; padding:16px; text-align:center; font-size:var(--small); color:var(--muted); }
.clinic-video figcaption a { color:var(--wine); text-decoration:underline; text-underline-offset:.2em; white-space:nowrap; }
