/* Clinic profile template v3 (pilot). Scoped to body.pv3 and built only from the site's own colours: the root tokens
   --ink, --green, --paper, --line, --muted and --lime (profile shell), white, and the outline colour (#b9cbc0) and pressed fill
   (#e6f1e9) the site already uses on its Save / Share buttons. No other colour is introduced. */
.pv3{--v3-gap:28px;--v3-head:76px;--v3-nav:56px;--v3-radius:16px}
.pv3 .wrap{max-width:1180px}

/* Hero: two balanced columns */
.v3-hero{background:var(--paper);padding:clamp(20px,3vw,36px) 0}
.v3-hero-grid{display:grid;gap:24px;grid-template-columns:minmax(0,1fr);align-items:center}
@media(min-width:900px){.v3-hero-grid{grid-template-columns:minmax(0,10fr) minmax(0,11fr);gap:36px;align-items:start}.v3-identity{padding-top:clamp(12px,3vw,40px)}}
.v3-place{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:17px;color:var(--ink)}
.v3-place .v3-ic{width:20px;height:20px;flex:none;color:var(--green)}
.v3-namerow{display:flex;align-items:center;gap:14px;margin:0 0 14px}
.v3-logo{height:46px;width:auto;max-width:96px;object-fit:contain;flex:none;border-radius:6px}
.v3-identity h1{margin:0;font:800 clamp(36px,5vw,54px)/1.04 Manrope,sans-serif;color:var(--ink);letter-spacing:-.01em}
.v3-badge{display:flex;align-items:center;margin:2px 0 22px}
.v3-badge .dr-shield,.v3-badge .dr-shield.large{font-size:38px;font-weight:800;gap:18px;color:var(--green)}
.v3-badge .dr-shield img,.v3-badge .dr-shield.large img{height:96px;width:auto}
@media(max-width:899px){.v3-badge .dr-shield,.v3-badge .dr-shield.large{font-size:30px;gap:14px}.v3-badge .dr-shield img,.v3-badge .dr-shield.large img{height:68px}}
.v3-actions{display:flex;flex-direction:column;gap:10px;margin:0 0 14px}
.v3-actions .btn{min-height:48px;padding:0 18px;font-size:16px;border-radius:10px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap}
@media(min-width:560px){.v3-actions{flex-direction:row;flex-wrap:wrap;gap:12px}.v3-actions .btn{flex:0 1 auto}}
.v3-save{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin:0}
.v3-save button,.v3-save button+button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;background:#fff;color:var(--green);border:1.5px solid #b9cbc0;border-radius:10px;font:inherit;font-size:16px;font-weight:600;cursor:pointer;white-space:nowrap}
.v3-save button:hover{border-color:var(--green)}
.v3-save button[aria-pressed=true]{background:#e6f1e9;border-color:var(--green)}
@media(max-width:560px){.v3-save button,.v3-save button+button{flex:1 1 0;padding:0 12px;font-size:15px}}
.profile-save-status{margin:4px 0 0;min-height:0}
/* Gallery in the hero: one main image, a row of four thumbnails and a "View all" button */
.v3-gallery .pg{grid-template-columns:minmax(0,1fr);gap:10px 14px;margin:0}
.v3-gallery .pg-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 14px}
.v3-gallery .pg-main{aspect-ratio:3/2}
.v3-gallery .pg-all{justify-self:stretch;border:1.5px solid #b9cbc0;background:#fff;border-radius:10px;padding:10px 16px;color:var(--ink);font-size:14px;font-weight:700;text-align:center;line-height:1.25}
.v3-gallery .pg-credit,.v3-gallery .pg-data{grid-column:1/-1}
@media(max-width:560px){.v3-gallery .pg-strip{grid-template-columns:minmax(0,1fr);gap:10px 0}}

/* Section navigation: sticky under the site header, scrolls sideways on a phone, current section underlined */
.v3-nav{display:block;position:sticky;top:var(--v3-head);z-index:20;width:100%;max-width:100%;height:auto;min-height:0;margin:0;padding:0;overflow:hidden;background:#fff;border-bottom:1px solid var(--line)}
.v3-nav .wrap{max-width:1180px;min-width:0;margin:0 auto;padding-top:0;padding-bottom:0;padding-left:max(16px,env(safe-area-inset-left));padding-right:0}
@media(min-width:900px){.v3-nav .wrap{padding-left:32px}}
.v3-nav-in{display:flex;gap:6px;max-width:100%;min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.v3-nav-in::-webkit-scrollbar{display:none}
.v3-nav a{flex:none;display:inline-flex;align-items:center;min-height:56px;padding:0 14px;font-size:16px;font-weight:500;color:var(--ink);text-decoration:none;border-bottom:3px solid transparent;white-space:nowrap}
.v3-nav a:first-child{padding-left:0}
.v3-nav a:hover{border-bottom-color:#b9cbc0}
.v3-nav a[aria-current="true"]{font-weight:700;border-bottom-color:var(--green)}
.v3-nav a:focus-visible{outline:3px solid var(--green);outline-offset:-3px;border-radius:4px}
@media(max-width:959px){.pv3{--v3-head:64px;--v3-nav:50px}.v3-nav a{padding:0 12px;min-height:50px}.v3-nav a:first-child{padding-left:12px}}
html:has(body.pv3){scroll-padding-top:0}
.v3-section,.v3-ready{scroll-margin-top:calc(var(--v3-head) + var(--v3-nav) + 16px)}
.pv3 .v3-section{padding:0;margin:0}

/* Page body: About + Treatments beside the sidebar, then full-width panels */
.v3-layout{display:grid;gap:36px;padding:clamp(28px,4vw,48px) 0 0;grid-template-columns:minmax(0,1fr)}
@media(min-width:960px){.v3-layout{grid-template-columns:minmax(0,1fr) 340px;gap:56px}}
.v3-wide{display:grid;gap:var(--v3-gap);padding:var(--v3-gap) 0 0}
.v3-section h2,.v3-ready h2{margin:0 0 16px;font:800 clamp(26px,3.2vw,34px)/1.15 Manrope,sans-serif;color:var(--ink)}
.v3-main>.v3-section{padding:0 0 var(--v3-gap);margin:0 0 var(--v3-gap);border-bottom:1px solid var(--line)}
.v3-main>.v3-section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.v3-prose p{margin:0 0 16px;font-size:18px;line-height:1.7;max-width:66ch;color:var(--ink)}
.v3-rows{margin:18px 0 0;padding:0;display:grid;gap:12px}
.v3-row{display:grid;grid-template-columns:24px 110px minmax(0,1fr);gap:12px;align-items:start}
.v3-row dt{font-weight:700;font-size:16px;color:var(--ink)}
.v3-row dd{margin:0;font-size:17px;line-height:1.5;overflow-wrap:anywhere}
.v3-row a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.v3-ic{width:22px;height:22px;color:var(--green)}
@media(max-width:560px){.v3-row{grid-template-columns:24px minmax(0,1fr)}.v3-row dt{grid-column:2;margin-bottom:-8px}.v3-row dd{grid-column:2}}
.v3-small{font-size:15px;line-height:1.5;color:var(--muted);margin:10px 0 0}
.v3-small a,.v3-review a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
/* Treatments: the site's own pills (paper fill, line border), at the site's readable size */
.v3-pills{margin-top:0;gap:10px}
.v3-pills span{font-size:16px;line-height:1.3;padding:10px 17px;color:var(--ink)}

/* Panels: status, reviews, questions (one fill, one border, one radius, one padding, equal white gaps) */
.v3-section.v3-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--v3-radius);padding:clamp(20px,3vw,32px);margin:0}
.v3-status{display:grid;gap:8px;justify-items:start}
.v3-status>*{margin:0}
.v3-status .v3-status-level{font:800 clamp(28px,3.4vw,36px)/1.1 Manrope,sans-serif;color:var(--green)}
.v3-status-line{font-size:18px;line-height:1.5;color:var(--ink)}
.v3-dates{display:grid;gap:4px;margin:0;padding:0}
.v3-dates div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:0 8px;font-size:17px;line-height:1.5}
.v3-dates dt{font-weight:700;color:var(--ink)}.v3-dates dd{margin:0}
.v3-status-link a{font-weight:700;color:var(--green);text-decoration:underline;text-underline-offset:3px}
.v3-more>summary{cursor:pointer;font-weight:700;color:var(--green);list-style:none;padding:6px 0}
.v3-more>summary::-webkit-details-marker{display:none}
.v3-status .v3-more{margin-top:12px;width:100%;background:#fff;border:1px solid var(--line);border-radius:12px;padding:0}
.v3-status .v3-more>summary{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;color:var(--ink)}
.v3-status .v3-more>summary::after{content:"";width:10px;height:10px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg) translateY(-2px);margin-left:12px}
.v3-status .v3-more[open]>summary::after{transform:rotate(225deg) translateY(-2px)}
.v3-status .v3-more[open]>summary{border-bottom:1px solid var(--line)}
.v3-status .v3-more>p,.v3-status .v3-more>div{margin:0;padding:12px 18px 2px;font-size:17px;line-height:1.6;max-width:70ch;color:var(--ink)}
.v3-status .v3-more>p:last-child,.v3-status .v3-more>div:last-child{padding-bottom:16px}
.v3-reviews{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.v3-review{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 20px}
.v3-review h3{margin:0 0 4px;font-size:18px;font-weight:800;color:var(--ink)}
.v3-review p{margin:0 0 6px}
.v3-score strong{font-size:30px;color:var(--ink)}.v3-score span{color:var(--muted)}
.v3-section.v3-panel .dr-checklist{background:#fff;border:1px solid var(--line);border-radius:12px}
.pv3 .dr-checklist>summary{padding:14px 18px}
.pv3 .dr-cl-title{font:700 18px/1.3 Manrope,sans-serif;color:var(--ink)}
.pv3 .dr-cl-list li{border-top-color:var(--line)}
.pv3 .dr-cl-count{background:none;border-radius:0;padding:0;font-size:13px;color:var(--muted)}

/* Contact: one horizontal row */
#contact h2{margin-bottom:12px}
.v3-contact{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:14px 0}
.v3-contact li{display:flex;align-items:center;gap:10px;padding:0 28px;border-left:1px solid var(--line);font-size:17px;overflow-wrap:anywhere}
.v3-contact li:first-child{padding-left:0;border-left:0}
.v3-contact a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.v3-contact{flex-direction:column;gap:12px}.v3-contact li{padding:0;border-left:0}}

/* Sidebar: one compact card */
.v3-side{display:grid;gap:16px;align-content:start}
@media(min-width:960px){.v3-side{position:sticky;top:calc(var(--v3-head) + var(--v3-nav) + 16px)}}
.v3-card{border-radius:14px;padding:24px;background:var(--paper);border:1px solid var(--line)}
.v3-card h3{margin:0 0 14px;font:800 22px/1.2 Manrope,sans-serif;color:var(--ink)}
.v3-next>.btn{width:100%;min-height:48px;margin:0 0 10px;display:flex;align-items:center;justify-content:center;text-align:center;border-radius:10px}
.v3-next .btn.outline{background:#fff}
.v3-visit{display:inline-flex;gap:8px;align-items:center;color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.v3-next p{margin:12px 0 0}
.v3-help{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.v3-help h3{font-size:19px;margin:0 0 8px}
.v3-help p{margin:0}
.v3-compare{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:15px;color:var(--muted)}
.v3-compare a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.v3-linkbtn{background:none;border:0;padding:0;font:inherit;color:var(--green);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.v3-next .saved-hint{margin:4px 0 0;font-size:14px;min-height:0}

/* Ready to ask: full-width panel, with a white gap before the band below it (28px: the site's own band padding) */
.v3-ready{background:var(--paper);border:1px solid var(--line);border-radius:var(--v3-radius);padding:clamp(22px,3vw,36px);margin:var(--v3-gap) 0 var(--v3-gap)}
.v3-ready h2{margin-bottom:16px}
.v3-ready-actions{display:flex;flex-wrap:wrap;gap:12px}
.v3-ready-actions .btn{min-height:50px;padding:0 24px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.v3-ready-actions .btn.outline{background:#fff}
@media(max-width:560px){.v3-ready-actions{flex-direction:column}.v3-ready-actions .btn{width:100%}}
.v3-ready-note{margin:14px 0 0;font-size:15px;color:var(--muted)}

/* Phone: the fixed Enquire / Request bar */
.pv3 .mobile-actions{display:none}
@media(max-width:959px){.pv3 .mobile-actions{display:flex}.pv3 main{padding-bottom:72px}}
.v3-identity-note{margin:-8px 0 16px}
.dr-status-flag{display:inline-block;padding:10px 16px;border:1.5px solid #b9cbc0;border-radius:10px;background:#fff;color:var(--ink);font-size:18px;font-weight:800}

/* Reviews: nothing recorded */
.v3-no-reviews{margin:0;color:var(--ink)}
/* Profile hero (every clinic): a transparent identity wrapper (name, place, divider, compact status aligned with the name), the four actions beneath it, the gallery beside it.
   Below 1150px everything stacks (identity, actions, gallery); from 1150px the two columns sit side by side. Buttons keep their readable size; they stack rather than shrink. */
.v3-hero--id{--pg-strip-pad:3px}
.v3-idcard{background:transparent;border:1px solid transparent;border-radius:0;padding:clamp(20px,2.6vw,30px) clamp(20px,2.6vw,32px) clamp(18px,2.2vw,24px);margin:0 0 16px}
.v3-hero--id .v3-namerow{margin:0 0 6px}
.v3-hero--id .v3-identity h1{font-size:clamp(30px,3.4vw,44px)!important;line-height:1.08;text-wrap:balance;overflow-wrap:break-word}
.v3-hero--id .v3-place{margin:0;padding-bottom:16px;border-bottom:1px solid var(--line);font-size:17px}
.v3-hero--id .v3-badge{justify-content:flex-start;margin:16px 0 0}
.v3-hero--id .v3-badge .dr-shield,.v3-hero--id .v3-badge .dr-shield.large{font-size:24px;gap:12px}
.v3-hero--id .v3-badge .dr-shield img,.v3-hero--id .v3-badge .dr-shield.large img{height:42px}
.v3-hero--id .v3-identity-note{margin:12px 0 0}
.v3-hero-actions{display:grid;grid-template-columns:1fr;gap:12px;margin:0 0 12px}
.v3-hero-actions .btn{min-height:46px;padding:0 16px;font-size:15.5px;border-radius:10px;display:flex;align-items:center;justify-content:center;text-align:center}
.v3-hero-actions .v3-save{display:contents}
.v3-hero-actions .v3-save button,.v3-hero-actions .v3-save button+button{width:100%;min-height:46px;font-size:15.5px;padding:0 12px}
@media(min-width:560px){.v3-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:559px){.v3-hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.v3-hero-actions>.btn{grid-column:1/-1}.v3-hero-actions .v3-save button,.v3-hero-actions .v3-save button+button{padding:0 8px}}
/* 900-1149px: the identity, actions and gallery stack; the gallery is capped so a tablet does not get a huge photograph. */
@media(min-width:900px) and (max-width:1149px){.v3-hero--id .v3-hero-grid{grid-template-columns:minmax(0,1fr)}.v3-hero--id .v3-identity{padding-top:0}.v3-hero--id .v3-gallery{max-width:760px}.v3-hero--id .v3-hero-actions{max-width:760px}}
/* From 1150px: two columns. This plain version is also the fallback for a browser without :has() or container units. */
@media(min-width:1150px){.v3-hero--id .v3-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}.v3-hero--id .v3-identity{padding-top:0}}
/* Equal heights, where the browser supports it: one grid for the whole hero so both columns share rows. Row 1: the identity wrapper and the main photograph (same top, same
   bottom). Row 2: the four buttons and the thumbnail strip (same bottom). The wrappers use display:contents so their children sit directly in the grid; no absolute positioning.
   The identity content sits 38px lower. One photograph or the general cover has no strip, so the picture spans both rows and the columns still end together. */
@supports (width:1cqw) and selector(:has(*)){
@media(min-width:1150px){
.v3-hero--id .v3-hero-grid:is(:has(.pg),:has(.profile-gallery)){container-type:inline-size;grid-template-rows:auto auto auto;gap:0 32px;align-items:stretch}
.v3-hero--id .v3-hero-grid:is(:has(.pg),:has(.profile-gallery)) :is(.v3-identity,.v3-gallery,.pg){display:contents}
.v3-hero--id .v3-hero-grid:is(:has(.pg),:has(.profile-gallery)) .v3-idcard{grid-column:1;grid-row:1;margin:0 0 12px;padding-top:calc(clamp(20px,2.6vw,30px) + 38px)}
.v3-hero--id .v3-hero-grid:is(:has(.pg),:has(.profile-gallery)) .v3-hero-actions{grid-column:1;grid-row:2;align-self:end;margin:0;padding-bottom:var(--pg-strip-pad)}
.v3-hero--id .v3-hero-grid:is(:has(.pg),:has(.profile-gallery)) #profile-action-status{grid-column:1;grid-row:3;margin:0}
.v3-hero--id .v3-hero-grid:is(:has(.pg),:has(.profile-gallery)) #profile-action-status:not(:empty){margin-top:8px}
.v3-hero--id .v3-hero-grid:has(.pg) .pg-stage{grid-column:2;grid-row:1;align-self:stretch;margin:0 0 12px;min-height:calc((100cqw - 32px) / 3)}
.v3-hero--id .v3-hero-grid:has(.pg) .pg-main{position:relative;height:100%;aspect-ratio:auto}
/* The photograph fills the frame without sizing it, so a portrait or square picture cannot stretch the row. */
.v3-hero--id .v3-hero-grid:has(.pg) .pg-main img{position:absolute;inset:0;width:100%;height:100%}
.v3-hero--id .v3-hero-grid:has(.pg) .pg-strip{grid-column:2;grid-row:2;align-self:end}
.v3-hero--id .v3-hero-grid:has(.pg) .pg-credit{grid-column:2;grid-row:3;margin:8px 0 0}
.v3-hero--id .v3-hero-grid:has(.pg):not(:has(.pg-strip)) .pg-stage{grid-row:1 / span 2;margin:0}
.v3-hero--id .v3-hero-grid:is(:has(.pg):not(:has(.pg-strip)),:has(.profile-gallery)) .v3-hero-actions{padding-bottom:0}
.v3-hero--id .v3-hero-grid:has(.profile-gallery) .profile-gallery{grid-column:2;grid-row:1 / span 2;align-self:stretch;display:flex!important;flex-direction:column}
.v3-hero--id .v3-hero-grid:has(.profile-gallery) .profile-gallery figure{flex:1;display:flex;flex-direction:column;min-height:0}
.v3-hero--id .v3-hero-grid:has(.profile-gallery) .profile-gallery img{flex:1;min-height:calc((100cqw - 32px) * 5 / 16);max-height:calc((100cqw - 32px) * 5 / 8);aspect-ratio:auto!important;height:auto!important;object-fit:cover}
}
}
