/* WordPress-specific rules that sit on top of the design (district.css stays verbatim). */

/* Logged-in admin bar: keep the fixed header below it. */
.admin-bar .hd,.admin-bar .mnu{top:32px}
@media (max-width:782px){.admin-bar .hd,.admin-bar .mnu{top:46px}}

/* Contact Form 7 inside the design's form (.fm). */
.fm .wpcf7-form-control-wrap{display:block}
.fm .hidden-fields-container{display:none}
.fm input.btn{-webkit-appearance:none;appearance:none;cursor:pointer}
.fm .wpcf7-spinner{display:none}
.fm.submitting input.btn{opacity:.6;cursor:progress}
.fm .fld.wpcf7-not-valid{border-color:#c0705a}
.fm .wpcf7-not-valid-tip{display:block;margin-top:6px;font-size:12.5px;color:#e09a84}
.fm .wpcf7-response-output{margin:16px 0 0!important;padding:0!important;border:0!important;font-size:13px;line-height:1.6;color:var(--mut)}
.fm.invalid .wpcf7-response-output,.fm.failed .wpcf7-response-output,.fm.spam .wpcf7-response-output{color:#e09a84}
.fm.sent .wpcf7-response-output{display:none}

/* Phone icon before the number (header, footer, visit section, contact Call card; user request 30 Oct). */
.ic-tel{display:inline-block;width:14px;height:14px;margin-right:6px;vertical-align:-2px}

/* Page hero: text vertically centred next to the photo (the design aligns it to the bottom; user request 3 Nov). */
.ph-in{align-items:center}

/*
 * Areas: columns fill the row (user request 3 Nov; the design left 1 or 2 columns in a 3-column grid).
 * One column spreads its items over 2 or 3 columns (classes from blocks/areas/render.php). Phones keep one column.
 */
@media (min-width:901px){
  .ar-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ar-n1{grid-template-columns:minmax(0,1fr)}
  .ar-n1 .ar-c ul{display:grid;column-gap:48px}
  .ar-i2 .ar-c ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ar-i3 .ar-c ul{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ar-n1 .ar-c li:last-child{border-bottom:1px solid var(--line)}
  .ar-i2 .ar-c li:nth-child(2n+1):nth-last-child(-n+2),.ar-i2 .ar-c li:nth-child(2n+1):nth-last-child(-n+2)~li,
  .ar-i3 .ar-c li:nth-child(3n+1):nth-last-child(-n+3),.ar-i3 .ar-c li:nth-child(3n+1):nth-last-child(-n+3)~li{border-bottom:0}
}

/* Treatments page district lists: two treatments per row (user request 3 Nov; the design has one). Phones keep one. */
@media (min-width:601px){
  .ds-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}
}

/* Results page: reviews and the visit section share one background, so their two paddings doubled the gap (user request 3 Nov). */
.rvw + .vis{padding-top:0}

/* Meet the team rows: photo and text as one balanced pair, centred with even space on both sides (user request 3 Nov). */
@media (min-width:901px){
  .tp{grid-template-columns:minmax(0,480px) minmax(0,560px);justify-content:center}
  .tp.flip{grid-template-columns:minmax(0,560px) minmax(0,480px)}
}

/* Phone menu: each district opens and closes (native <details>, one open at a time; user request 3 Nov). */
.mnu-body{gap:0;align-content:start}
.mn-acc{border-bottom:1px solid var(--line)}
.mn-acc>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:16px 0;font-size:17px;color:var(--ink);cursor:pointer}
.mn-acc>summary::-webkit-details-marker{display:none}
.mn-acc>summary i{position:relative;flex:none;width:14px;height:14px}
.mn-acc>summary i::before,.mn-acc>summary i::after{content:"";position:absolute;left:0;top:6.5px;width:14px;height:1px;background:var(--acc);transition:transform .25s var(--ease)}
.mn-acc>summary i::after{transform:rotate(90deg)}
.mn-acc[open]>summary{color:var(--acc)}
.mn-acc[open]>summary i::after{transform:rotate(0)}
.mn-l{display:flex;flex-direction:column;padding:0 0 14px 14px}
.mn-acc+.mn-g:not(.mn-acc){padding-top:18px}

/* Footer hours: each line stays on one line (Kas, 4 Nov: "Weekends & After Hours: By Appointment Only" together); the clinic column widens to fit it. */
.ft-line{white-space:nowrap}
@media (min-width:901px){.ft-top{grid-template-columns:minmax(min-content,.8fr) minmax(0,2.4fr)}}

/* Before/after with two pairs (Botox page): the pair fills the row instead of stopping at 820px (user request 5 Nov). */
@media (min-width:768px){.res.two .bas{max-width:none}}
/* The design hides the last pair at 768 to 900px (for its 3-pair row); keep every pair on the 2-pair and 12-pair layouts. */
@media (min-width:768px) and (max-width:900px){.res.two .baf:last-child,.res.six .baf:last-child{display:block}}

/* Prep and aftercare timeline (intro block, info sections; option C, 16 Nov). Heading stays in view on desktop. */
.ip-tl{list-style:none;margin:0;padding:0 0 0 44px;position:relative}
.ip-tl::before{content:"";position:absolute;left:11px;top:6px;bottom:6px;width:1px;background:var(--line2,rgba(238,233,225,.28))}
.ip-tl{counter-reset:ipst}
.ip-st{position:relative;padding-bottom:36px;counter-increment:ipst}
.ip-st:last-child{padding-bottom:0}
.ip-st::before{content:counter(ipst);position:absolute;left:-44px;top:0;width:23px;height:23px;border-radius:50%;background:var(--bg);border:1px solid var(--acc);color:var(--acc);font-size:12px;line-height:1;display:grid;place-items:center}
.ip.alt .ip-st::before{background:var(--bg2)}
.ip-sh{font-size:21px;font-weight:600;letter-spacing:-.02em;line-height:1.2;color:var(--ink);margin:0 0 10px}
.ip-st p{margin:0}
.ip-wb{border:1px solid rgba(224,154,132,.45);background:rgba(224,154,132,.06);padding:22px 24px}
.ip-wb .ip-sh{font-size:17px;color:#e09a84;margin-bottom:6px}
.ip-wb .ip-ul{border-top:0}
.ip-wb .ip-ul li:last-child{border-bottom:0}
@media (min-width:901px){.ip-t .tx-in{align-items:start}.ip-t .tx-l{position:sticky;top:136px}.admin-bar .ip-t .tx-l{top:168px}}
@media (max-width:767px){.ip-tl{padding-left:36px}.ip-st::before{left:-36px}.ip-tl::before{left:11px}.ip-wb{padding:18px}}

/* One gap before the visit section, site-wide (16 Nov). When the section above has the same background as the
   visit section, their two paddings doubled the space; the visit section now adds none. Sections on a different
   background (alt panels, reviews) keep both paddings, as between any two coloured blocks. Contact "ways" ends with
   only 24px, so the visit section tops it up to one section gap. */
.sec:not(.alt):not(.rv) + .vis:not(.alt){padding-top:0}
.sec.ways:not(.alt):not(.rv) + .vis:not(.alt){padding-top:88px}
@media (max-width:900px){.sec.ways:not(.alt):not(.rv) + .vis:not(.alt){padding-top:48px}}

/* Before/after captions: treatment name on its own line, detail underneath (user request 16 Nov). */
.baf figcaption b{display:block;margin-bottom:2px}
/* Before/after note ("Real District patients ...") belongs to the whole section: centred, more space above (16 Nov). */
.res .res-n{text-align:center;margin-top:48px;font-weight:600}
@media (max-width:900px){.res .res-n{margin-top:32px}}

/* Podium chat bubble: on phones, sit above the Call / Text / Book bar (bar is about 67px high). 16 Nov; Podium ids not verified on Local (widget bubble does not load there). */
@media (max-width:900px){#podium-bubble,#podium-prompt{bottom:80px!important}}
