/* Khayap physiotherapy demo: additions on top of the porcelain look (site.css, craft.css). Colours keep WCAG AA on their grounds. */
.avatar{display:inline-grid;place-items:center;border-radius:50%;background:var(--glacier);color:var(--ink);font-family:var(--display);font-weight:600;flex:none;letter-spacing:.02em}
.avatar-fig{margin:0 0 16px;aspect-ratio:4/5;border-radius:var(--r);background:var(--glacier-2);display:grid;place-items:center}
.slot .avatar{width:44px;height:44px}
.hero-art{background:var(--glacier-2)}
.hero-art img{object-fit:contain}
.tc-ic{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--glacier-2);color:var(--cobalt-d);margin:20px 0 0 22px}
.tc-ic .ic{width:30px;height:30px}
.tc-ic.lg{width:96px;height:96px;margin:0;border-radius:24px;flex:none}.tc-ic.lg .ic{width:50px;height:50px}
.tcard{grid-template-rows:auto 1fr}
.cat-h{margin:0 0 16px}
.th-row{display:flex;gap:12px;flex-wrap:wrap}
.th-chip{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--white);border-radius:99px;padding:5px 16px 5px 5px;text-decoration:none}
.faq-i{border-bottom:1px solid var(--line);padding:18px 0}
.faq-i summary{cursor:pointer;font-family:var(--display);font-weight:500;font-size:19px}
.faq-i p{margin:12px 0 0;color:var(--ink-2);max-width:68ch}
.policy-list{padding-left:22px;max-width:76ch}.policy-list li{margin:0 0 10px}
.card-form{display:grid;gap:16px;align-content:start}
.field label{display:block;font-weight:500;margin-bottom:6px}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--ink-2);border-radius:12px;padding:12px 14px;background:var(--white)}
.field .err{color:#9A2F24;font-size:14px}
.pack-card .tc-ic{margin-top:20px}
.pack-box{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px}
.pack-row{padding:10px 0;border-top:1px solid var(--line);font-size:15px}.pack-row:first-of-type{border-top:0}
.consents .consent{margin:12px 0}
#rf-warn{margin-top:12px}
.notice.err{border-color:#9A2F24;color:#6E1F15;background:#FBEDEA}
.badge{display:inline-block;padding:3px 12px;border-radius:99px;background:var(--glacier);color:var(--ink);font-size:14px}
.badge.ok{background:#DDEFE3;color:#1B5A34}.badge.bad{background:#F6DEDA;color:#7A2418}
.doc-pick button .avatar{width:34px;height:34px;font-size:13px}
.sum .who{display:flex;gap:10px;align-items:center;margin-top:12px}
.ticket-top .avatar{width:56px;height:56px}
.dcs-menu .dc-note{margin-top:20px}

.hdr .nav a{white-space:nowrap}
.hdr .nav{gap:clamp(12px,1.6vw,26px)}

/* ── phase 2: home exercise programme, phone proof, home visit ───────────────────────────── */
.hep-art{display:block;width:100%;height:auto;fill:none;stroke-linecap:round;stroke-linejoin:round}
.hep-art .p1{stroke:var(--ink);stroke-width:3.5}.hep-art .p2{stroke:var(--cobalt);stroke-width:3;stroke-dasharray:5 4}
.hep-art .far{opacity:.7}.hep-art .env{stroke:var(--mist);stroke-width:2}.hep-art .arw{stroke:var(--cobalt-d);stroke-width:2.2}
.hep-cards{list-style:none;margin:22px 0;padding:0;display:grid;gap:18px}
.hep-card{display:grid;grid-template-columns:minmax(200px,300px) 1fr;gap:24px;background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px}
.hep-art-box{background:var(--glacier-2);border-radius:14px;padding:10px 12px}
.hep-dose{margin:6px 0 10px;font-weight:500;color:var(--cobalt-d)}
.hep-steps{margin:0 0 10px;padding-left:22px}.hep-steps li{margin:0 0 4px}
.hep-caution,.hep-note{margin:0 0 8px;font-size:15px;color:var(--ink-2)}
.hep-done{margin-top:26px;background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px}
.hep-strip{display:flex;gap:4px;margin-top:14px}.hep-strip i{flex:1;height:14px;border-radius:4px;background:transparent;border:1.5px solid var(--mist)}.hep-strip i.on{background:var(--cobalt-d);border-color:var(--cobalt-d)}
@media (max-width:720px){.hep-card{grid-template-columns:1fr}}
.otp-panel{margin:8px auto 18px;background:var(--white);border:1px solid var(--cobalt);border-radius:var(--r);padding:20px 24px;max-width:880px}
.otp-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:10px 0 0}
.otp-form input{border:1px solid var(--ink-2);border-radius:12px;padding:10px 14px;width:10em;letter-spacing:.3em;font-size:18px}
.otp-demo{margin-top:10px}.otp-code{font-size:22px;letter-spacing:.3em;font-variant-numeric:tabular-nums}
.zone-pick select{max-width:520px}

/* ── phase 3: English overflow fix ─────────────────────────────────────────────────────────
   The service rows of the home menu put the price and the unit ("per session (about 20 min) · 20 min") in an auto column with white-space:nowrap.
   In English the unit is long, so the column grew past the screen (document 405 px on a 390 px phone). The column may now shrink (minmax(0,1fr)), the unit
   may wrap, and below 560 px the row stacks so price and unit sit under the name instead of squeezing it. */
.mi{grid-template-columns:minmax(0,1fr) auto}
.mi .u{white-space:normal;overflow-wrap:anywhere}
@media (max-width:560px){
  .mi{grid-template-columns:minmax(0,1fr)}
  .mi .p,.mi .u{text-align:left}
}
/* the price tables: the unit under a price may wrap (English units are long); the number itself stays on one line */
.price-table td.n small{white-space:normal;overflow-wrap:anywhere}
@media (max-width:560px){.price-table th,.price-table td{padding:12px 10px}}
