/* Khayap Physiotherapy, loaded after site.css and before the preset (never on a patient page).
   1. One spacing scale (4 8 12 16 24 32 48 64 96, tokens --t-space-*) and one radius system (--rad-s inputs, --rad-m cards, --rad-l large media, --rad-btn buttons).
      Rhythm: inner padding < gap between items < gap between sections, and all three step down together on a phone.
   2. The structure of every home section the presets use (ladder, cards, photo row, ...). A preset's own stylesheet only decorates and rearranges.
   3. Headers, the phone dock, and the shared slider's look. No coloured side bars, no frosted glass, no gradient text on any preset.
   4. Everything is visible without JS and with reduced motion (assets/js/motion.js only adds a restrained reveal). */

:root{--t-space-1:4px;--t-space-2:8px;--t-space-3:12px;--t-space-4:16px;--t-space-5:24px;--t-space-6:32px;--t-space-7:48px;--t-space-8:64px;--t-space-9:96px;--dc-ease:cubic-bezier(.2,.7,.2,1);--dc-dock:76px}
body{--dc-sec:var(--t-space-9);--rad-s:12px;--rad-m:18px;--rad-l:28px;--rad-btn:999px}
@media (max-width:980px){body{--dc-sec:var(--t-space-8)}}
@media (max-width:720px){body{--dc-sec:var(--t-space-7)}}

/* ── spacing from the scale (all presets) ───────────────────────── */
.sec{padding:var(--dc-sec) 0}
.sec-tight{padding:var(--t-space-7) 0}
.page-top{padding:var(--t-space-7) 0 var(--t-space-5)}
.sec-head{margin-bottom:var(--t-space-7);gap:var(--t-space-5)}
.sec-head .lead{max-width:56ch}
.facts .wrap>div{padding:var(--t-space-5) var(--t-space-5) var(--t-space-5) 0}
.aside,.sum{padding:var(--t-space-6)}
.tgrid{gap:var(--t-space-5)}
.docs{gap:var(--t-space-5)}
.ftr{padding:var(--t-space-9) 0 var(--t-space-6)}
.ftr .base{margin-top:var(--t-space-8);padding-top:var(--t-space-5)}
.btn{padding:0 var(--t-space-5);gap:var(--t-space-2)}
.btn-sm{padding:0 var(--t-space-4)}
.field{gap:var(--t-space-2);margin-bottom:var(--t-space-4)}
@media (max-width:900px){.sec-head{margin-bottom:var(--t-space-6)}.ftr{padding:var(--t-space-8) 0 var(--t-space-5)}.aside,.sum{padding:var(--t-space-5)}}
.small{font-size:15px}
.lead{font-size:18px}
.hero-actions{display:flex;gap:var(--t-space-4);flex-wrap:wrap;align-items:center;margin-top:var(--t-space-5)}

/* ── section openings: ko-r0 side by side, r1 numbered, r2 ruled, r3 title alone ───────────── */
.dc-head>div{min-width:0}
.dc-head .link{white-space:nowrap}
.dc-note{margin-top:var(--t-space-5)}

/* ── brand lock-up: clear space on every side, centred in the header, never clipped ─────── */
.hdr .brand{flex:none;white-space:nowrap;gap:var(--t-space-3)}
.hdr .brand .brand-mark{width:44px;height:44px}
.hdr .brand .wm b{font-size:22px}
.hdr .brand .wm small{font-size:10px;margin-top:var(--t-space-1)}
@media (max-width:720px){.hdr .brand .brand-mark{width:38px;height:38px}.hdr .brand .wm b{font-size:19px}.hdr .brand .wm small{font-size:9px}}

/* ── header frame shared by the presets (each preset's own sheet sets colour and layout) ─────── */
.hdr .burger{display:none;margin-left:0;width:48px;height:48px;border-color:var(--t-edge,var(--line))}
@media (max-width:1100px){
  .hdr .burger{display:block}
}
.drawer .dr-top{display:flex;justify-content:space-between;align-items:center}
.drawer .dr-x{display:block;margin:0}
.drawer .dr-c{display:grid;gap:var(--t-space-2);margin:var(--t-space-5) 0 0}
.drawer .dr-c a{display:flex;align-items:center;gap:var(--t-space-2);text-decoration:none;min-height:48px;font-weight:500}
.drawer nav a{min-height:48px;display:flex;align-items:center}

/* ── phone dock: one persistent action that never covers content ─────── */
@media (max-width:720px){
  body{padding-bottom:calc(var(--dc-dock) + env(safe-area-inset-bottom))}
}

/* ── the shared slider follows the preset ─────── */
.docs[data-slider],.journey[data-slider]{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;gap:var(--t-space-5);overflow-x:auto;grid-template-columns:none;grid-auto-columns:calc((100% - 3*var(--t-space-5))/3.3)}
.docs[data-slider]{grid-auto-columns:calc((100% - 3*var(--t-space-5))/3.3)}
.journey[data-slider]{grid-auto-columns:calc((100% - 3*var(--t-space-5))/3.3);counter-reset:none}
@media (max-width:900px){.docs[data-slider],.journey[data-slider]{grid-auto-columns:calc((100% - var(--t-space-4))/1.3);gap:var(--t-space-4)}}
/* the dentists as a sliding row: equal portraits */
.docs[data-slider] .doc{display:flex;flex-direction:column}
.docs[data-slider] .doc figure{aspect-ratio:4/5}

/* ── service cards (sliding row) ─────── */

/* ── ladder rows (treatments by chair time and price) ─────── */

/* ── dentist feature ─────── */

/* ── info (everything before you come) ─────── */

/* ── faq (accordion) ─────── */

/* ── braces: three methods side by side ─────── */

/* ── cosmetic: two rows with a photo, a price and a booking button ─────── */

/* ── implants: the path and the two prices ─────── */

/* ── kids: a ticket ─────── */

/* ── toothache: two doors ─────── */

/* ── social security ladder ─────── */

/* ── roster (premium) ─────── */

/* ── office: the week grid and the quick list ─────── */

/* ── six-month recall ─────── */

/* ── journey drawn as a timeline or a sliding trail ─────── */
.journey li{padding-top:var(--t-space-5)}

/* ── results (before / after) ─────── */

/* ── no two boxes touch: cards in rows and stacks always have a gap ─────── */
.menu-cat{margin-bottom:var(--t-space-7)}
.svc-pick{gap:var(--t-space-3)}

/* ── off-scale values of the original stylesheet, pulled onto the 4-base scale ─────── */
p{margin-bottom:var(--t-space-4)}
.mi{column-gap:var(--t-space-4);row-gap:var(--t-space-1)}
.mi b,.ftr-c li,.mi-ic+*{gap:var(--t-space-3)}
.mi b{column-gap:var(--t-space-3);row-gap:var(--t-space-3)}
.menu-cat h3{margin-bottom:var(--t-space-2);gap:var(--t-space-3)}
.nav a{padding:var(--t-space-2) 0}
.faq details{padding:var(--t-space-4) 0}
.faq summary{gap:var(--t-space-4)}
.slot{gap:var(--t-space-3);padding:var(--t-space-3) var(--t-space-1)}
.dl li{padding:var(--t-space-3) 0}
.ftr h4{margin:0 0 var(--t-space-3)}
.ftr-c{gap:var(--t-space-3)}
.ftr-c li{gap:var(--t-space-3)}
.lsw{padding:var(--t-space-1)}
.hdr-d .wrap{gap:var(--t-space-4)}
.lead{margin-bottom:var(--t-space-4)}
.hero .lead{margin:var(--t-space-5) 0 var(--t-space-6)}
.crumb{margin-bottom:var(--t-space-3)}
.kv div,.sched td,.price-table th,.price-table td{padding-top:var(--t-space-3);padding-bottom:var(--t-space-3)}
.tcard>div{padding:var(--t-space-5) var(--t-space-5) var(--t-space-5)}
.tcard p{margin:var(--t-space-2) 0 var(--t-space-4)}
.slots{padding:var(--t-space-5)}
.nextq{padding:var(--t-space-2) var(--t-space-4) var(--t-space-2) var(--t-space-3);gap:var(--t-space-3)}
.hero{padding:var(--t-space-7) 0 var(--t-space-9)}
.hero .wrap{gap:var(--t-space-8)}
.menu{column-gap:var(--t-space-8)}
.quote{margin-bottom:var(--t-space-4)}
.kv dt{gap:var(--t-space-3)}
@media (max-width:900px){.hero{padding:var(--t-space-5) 0 var(--t-space-8)}.hero .wrap{gap:var(--t-space-5)}}
/* the caption on the hero photograph sits on its own dark label so it is readable on any photograph */
.hero-img figcaption{left:var(--t-space-4);right:auto;bottom:var(--t-space-4);padding:var(--t-space-1) var(--t-space-3);background:rgba(19,36,58,.78);border-radius:var(--t-space-2);text-shadow:none}
