/* starfishbook.com — Konsensus booking. Modern three-pane scheduling UI. */

/* ---------- fonts: the site-wide copies konsensus.net serves at /assets/fonts/ (same files, one download, one cache; C8-20) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTLYgFE_.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgA.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/fraunces-latin-var.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/fraunces-latinext-var.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- theme tokens ---------- */
:root{--radius:16px;--ease:cubic-bezier(.4,0,.2,1)}
[data-theme="light"]{--bg:#FAFAF8;--bg-elevated:#FFFFFF;--bg-card:#FFFFFF;--bg-sunken:#F4F2EE;--text:#16130F;--text-secondary:#6B6256;--text-dim:#9A9183;--orange:#F7931A;--orange-text:#B45309;--orange-press:#E0850F;--purple:#7C4DBA;--border:#ECE8E1;--border-strong:#DED8CE;--bg-nav:rgba(250,250,248,.8);--shadow-card:0 1px 2px rgba(20,16,12,.04),0 12px 32px -12px rgba(20,16,12,.12);--orange-tint:rgba(247,147,26,.10)}
[data-theme="dark"]{--bg:#0E0C0A;--bg-elevated:#171310;--bg-card:#1A1613;--bg-sunken:#120F0C;--text:#F3F0EB;--text-secondary:#A39A8D;--text-dim:#6B6256;--orange:#F7931A;--orange-text:#F7931A;--orange-press:#FFA733;--purple:#B98BE6;--border:#2A241E;--border-strong:#352D25;--bg-nav:rgba(14,12,10,.8);--shadow-card:0 1px 2px rgba(0,0,0,.3),0 18px 50px -18px rgba(0,0,0,.7);--orange-tint:rgba(247,147,26,.14)}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:'Inter',-apple-system,system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:var(--orange-text);text-decoration:none}
h1,h2,h3{margin:0;font-weight:600}
button{font-family:inherit}
::selection{background:var(--orange-tint)}

/* ---------- nav ---------- */
nav{position:fixed;top:0;left:0;right:0;height:58px;background:var(--bg-nav);backdrop-filter:blur(20px) saturate(1.6);-webkit-backdrop-filter:blur(20px) saturate(1.6);border-bottom:1px solid var(--border);z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,4vw,40px)}
.nav-brand{display:flex;align-items:center;gap:8px;color:var(--text)}
.nav-brand img{width:26px;height:26px}
.nav-brand-text{font-family:'Fraunces','Playfair Display',serif;font-size:1.1rem;font-weight:400;font-variation-settings:'opsz' 40;text-transform:lowercase;letter-spacing:-.4px}
.theme-toggle{width:34px;height:34px;border-radius:50%;border:1px solid var(--border);background:var(--bg-elevated);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.85rem;position:relative;overflow:hidden;transition:border-color .2s}
.theme-toggle:hover{border-color:var(--orange)}
.icon-sun,.icon-moon{position:absolute;transition:all .4s var(--ease)}
[data-theme="dark"] .icon-sun{transform:rotate(90deg) scale(0);opacity:0}
[data-theme="light"] .icon-moon{transform:rotate(-90deg) scale(0);opacity:0}

/* ---------- background wash (subtle, contained — no bleed-through) ---------- */
.bg-wash{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(1100px 620px at 50% -8%, var(--orange-tint), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(124,77,186,.06), transparent 55%);}

/* ---------- page + card ---------- */
.page{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:84px clamp(12px,3vw,24px) 28px}
.bk-card{width:100%;max-width:560px;background:var(--bg-elevated);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow-card);padding:clamp(22px,3vw,38px);transition:max-width .35s var(--ease)}
.bk-card.wide{max-width:940px}
.step{display:none}
.step.active{display:block;animation:rise .4s var(--ease)}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.bk-intro{text-align:center;margin-bottom:24px}
.bk-intro.tight{margin-bottom:18px}
.eyebrow{display:inline-block;font-size:11px;font-weight:600;letter-spacing:1.4px;text-transform:uppercase;color:var(--orange-text);margin-bottom:10px}
.bk-intro h1{font-family:'Playfair Display',serif;font-weight:400;font-size:clamp(30px,5vw,40px);letter-spacing:-.5px}
.bk-intro h1 .hero-star{width:.82em;height:.82em;vertical-align:-.09em;margin-right:.32em;display:inline-block}
/* Typed rotating word after the static "Book a call" (now / today / anytime).
   The wrap reserves the widest word so the static part never shifts. */
.bk-intro h1 .typed-wrap{display:inline-block;min-width:3.9em;text-align:left;white-space:nowrap}
.bk-intro h1 .typed-word{color:var(--orange-text);font-family:'Playfair Display',serif;font-style:italic;font-weight:400}
.bk-intro h1 .typed-cursor{display:inline-block;width:2px;background:var(--orange);margin-left:2px;animation:blink-cursor .8s infinite}
@keyframes blink-cursor{0%,100%{opacity:1}50%{opacity:0}}
.bk-intro h2{font-family:'Playfair Display',serif;font-size:clamp(21px,3vw,26px);font-weight:600}
.bk-intro p{color:var(--text-secondary);margin:8px 0 0;font-size:15px}

.loading{display:flex;justify-content:center;padding:40px 0}
.spin{display:inline-block;width:18px;height:18px;border:2px solid var(--border-strong);border-top-color:var(--orange);border-radius:50%;animation:sp .7s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

/* ---------- service list ---------- */
.services{display:flex;flex-direction:column;gap:10px}
.svc{display:flex;align-items:center;gap:16px;background:var(--bg-card);border:1px solid var(--border);border-radius:14px;padding:18px 20px;cursor:pointer;text-align:left;width:100%;color:inherit;transition:border-color .2s,transform .15s,box-shadow .2s}
.svc:hover{border-color:var(--border-strong);transform:translateY(-1px);box-shadow:var(--shadow-card)}
.svc:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.svc-dot{width:38px;height:38px;border-radius:11px;background:var(--accent,var(--orange));flex-shrink:0;display:flex;align-items:center;justify-content:center;color:#000;font-size:18px;opacity:.92}
.svc-body{flex:1;min-width:0}
.svc-name{display:block;font-family:'Playfair Display',serif;font-size:17px;font-weight:600;margin-bottom:3px}
.svc-desc{display:block;font-size:13px;color:var(--text-secondary);line-height:1.45}
.svc-meta{display:flex;gap:7px;align-items:center;margin-top:9px}
.chip{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;background:var(--bg-sunken);color:var(--text-secondary)}
.chip.accent{background:var(--accent,var(--orange));color:#000}
.svc-arrow{color:var(--text-dim);font-size:18px;transition:transform .2s,color .2s}
.svc:hover .svc-arrow{transform:translateX(3px);color:var(--orange-text)}

/* ---------- schedule: 3-pane ---------- */
.sched{display:grid;grid-template-columns:240px 1fr 224px;gap:clamp(16px,2.4vw,30px);align-items:start;min-height:392px}
.sched-info{display:flex;flex-direction:column}
.back{align-self:flex-start;background:none;border:none;color:var(--text-secondary);cursor:pointer;font:inherit;font-size:13.5px;font-weight:500;padding:4px 0;margin-bottom:16px;transition:color .2s}
.back:hover{color:var(--orange-text)}
.info-hosts{display:flex;align-items:center;margin-bottom:12px}
.av{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:#fff;background:var(--purple);border:2px solid var(--bg-elevated);object-fit:cover}
.av+.av{margin-left:-10px}
.info-hosts .av:nth-child(1){background:var(--orange);color:#000}
.sched-info h2{font-family:'Playfair Display',serif;font-size:21px;font-weight:600;line-height:1.2;margin-bottom:10px}
.info-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.info-desc{font-size:13px;color:var(--text-secondary);line-height:1.5;margin:0 0 18px}
.info-field span{display:block;font-size:12px;font-weight:600;color:var(--text-secondary);margin-bottom:6px}
.select-wrap{position:relative}
.select-wrap::after{content:"▾";position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--text-dim);font-size:12px}
.info-field select{width:100%;appearance:none;-webkit-appearance:none;padding:10px 30px 10px 12px;background:var(--bg-sunken);color:var(--text);border:1px solid var(--border);border-radius:10px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;outline:none}
.info-field select:focus{border-color:var(--orange)}
.info-tz{font-size:12px;color:var(--text-dim);margin-top:16px;line-height:1.5}

/* calendar */
.sched-cal{border-left:1px solid var(--border);border-right:1px solid var(--border);padding:0 clamp(8px,1.6vw,22px)}
.cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.cal-month{font-size:15px;font-weight:600}
.cal-arrow{width:32px;height:32px;border-radius:9px;border:1px solid var(--border);background:var(--bg-elevated);color:var(--text);cursor:pointer;font-size:17px;line-height:1;display:flex;align-items:center;justify-content:center;transition:all .18s}
.cal-arrow:hover:not(:disabled){border-color:var(--orange);color:var(--orange-text)}
.cal-arrow:disabled{opacity:.3;cursor:default}
.cal-dow{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:6px}
.cal-dow span{text-align:center;font-size:11px;font-weight:600;color:var(--text-dim);text-transform:uppercase;letter-spacing:.3px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.cal-earliest{margin-top:12px;padding:9px 12px;background:var(--bg-sunken);border:1px solid var(--border);border-radius:10px;font-size:12.5px;line-height:1.5;color:var(--text-secondary);display:flex;gap:8px;align-items:flex-start}
.cal-earliest .ce-ic{flex-shrink:0;display:inline-flex;padding-top:2px}
.cal-earliest b{color:var(--text);font-weight:600}
.cal-cell{aspect-ratio:1/1;border:none;background:none;border-radius:10px;font:inherit;font-size:14px;font-weight:500;color:var(--text);cursor:pointer;display:flex;align-items:center;justify-content:center;position:relative;transition:background .15s,color .15s,transform .12s}
.cal-cell.blank{visibility:hidden}
.cal-cell.disabled{color:var(--text-dim);opacity:.4;cursor:default;font-weight:400}
.cal-cell.avail{background:var(--orange-tint);color:var(--text);font-weight:600}
.cal-cell.avail:hover{background:var(--orange);color:#000;transform:scale(1.04)}
.cal-cell.sel{background:var(--orange);color:#000;font-weight:700}
.cal-cell.today::after{content:"";position:absolute;bottom:5px;left:50%;transform:translateX(-50%);width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.6}

/* times rail */
.sched-times{display:flex;flex-direction:column;min-width:0}
.times-head{font-size:14px;font-weight:600;margin-bottom:12px;min-height:20px;color:var(--text)}
.times-list{display:flex;flex-direction:column;gap:8px;max-height:344px;overflow-y:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}
.times-list::-webkit-scrollbar{width:6px}
.times-list::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:6px}
.times-list::-webkit-scrollbar-track{background:transparent}
.tslot{padding:12px;border:1px solid var(--border-strong);border-radius:11px;background:var(--bg-elevated);color:var(--text);font:inherit;font-size:15px;font-weight:600;cursor:pointer;text-align:center;letter-spacing:.3px;transition:border-color .15s,background .15s,color .15s;animation:slotin .25s var(--ease) backwards}
.tslot:hover{border-color:var(--orange);color:var(--orange-text)}
.tslot.sel{background:var(--orange);border-color:var(--orange);color:#000}
@keyframes slotin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.times-empty{color:var(--text-dim);font-size:13.5px;padding:24px 0;text-align:center;line-height:1.6}

/* ---------- details + recap ---------- */
.recap{background:var(--bg-sunken);border:1px solid var(--border);border-radius:14px;padding:6px 16px;margin-bottom:20px}
.recap .row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;font-size:14px;border-bottom:1px solid var(--border)}
.recap .row:last-child{border-bottom:none}
.recap .row span{color:var(--text-secondary)}
.recap .row b{text-align:right;font-weight:600}
.field{display:block;margin-bottom:15px}
.field>span,.field-label{display:block;font-size:13px;font-weight:600;color:var(--text);margin-bottom:6px}
.field em,.field-label em{font-style:normal;font-weight:400;color:var(--text-dim)}
input[type=text],input[type=email],textarea{width:100%;padding:12px 14px;background:var(--bg-elevated);color:var(--text);border:1px solid var(--border-strong);border-radius:11px;font:inherit;font-size:15px;outline:none;transition:border-color .2s,box-shadow .2s}
input:focus,textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px var(--orange-tint)}
input::placeholder,textarea::placeholder{color:var(--text-dim)}
textarea{resize:vertical;min-height:76px}
.pay-block{margin:4px 0 16px}
.payopts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.payopt{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--border-strong);border-radius:12px;background:var(--bg-elevated);cursor:pointer;font-weight:600;font-size:14px;transition:border-color .15s,box-shadow .15s}
.payopt:hover{border-color:var(--orange)}
.payopt.sel{border-color:var(--orange);box-shadow:0 0 0 2px var(--orange-tint) inset}
.payopt .ico{display:inline-flex}
/* Paid calls: the refund rule, the Terms link and the consent box (C10-12). */
.consent{margin:0 0 16px;padding:12px 14px;background:var(--bg-sunken);border:1px solid var(--border);border-radius:12px;font-size:13px;line-height:1.55;color:var(--text-secondary)}
.consent[hidden]{display:none}
.consent p{margin:0 0 10px}
.consent a{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.consent-check{display:flex;gap:10px;align-items:flex-start;color:var(--text);cursor:pointer}
.consent-check input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--orange)}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 24px;border-radius:12px;font:inherit;font-size:15px;font-weight:600;cursor:pointer;border:1px solid transparent;transition:background .18s,color .18s,border-color .18s,opacity .18s,transform .1s}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--orange);color:#000}
.btn-primary:hover{background:var(--orange-press)}
.btn-primary:disabled{opacity:.5;cursor:not-allowed}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--border-strong)}
.btn-ghost:hover{border-color:var(--orange);color:var(--orange-text)}
.btn-block{width:100%}
.err{color:#c0392b;font-size:13px;margin:0 0 12px;min-height:0}
[data-theme="dark"] .err{color:#ff8b7a}

/* ---------- result / manage ---------- */
.result{text-align:center}
.result-mark{width:60px;height:60px;border-radius:50%;background:var(--orange-tint);color:var(--orange-text);font-size:30px;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.result h2{font-family:'Playfair Display',serif;font-size:24px;font-weight:600;margin-bottom:18px}
.result .recap{text-align:left}
.result-note{font-size:13.5px;color:var(--text-secondary);margin-top:14px;line-height:1.6}
/* cancelled-checkout resume card: reassure first, one way forward, quiet way out */
.result-lead{font-size:14px;color:var(--text-secondary);line-height:1.65;margin:-8px 0 18px}
.linklike{display:inline-block;background:none;border:none;font:inherit;font-size:13px;color:var(--text-dim);cursor:pointer;padding:6px 2px;margin-top:14px;text-decoration:underline;text-underline-offset:3px;transition:color .2s}
.linklike:hover{color:var(--text-secondary)}
.manage-actions{display:flex;gap:10px;flex-wrap:wrap}

footer{position:relative;z-index:1;text-align:center;color:var(--text-dim);font-size:.72rem;margin-top:24px;padding:14px}

/* ---------- responsive ---------- */
@media(max-width:780px){
  .bk-card.wide{max-width:560px}
  .sched{grid-template-columns:1fr;gap:20px;min-height:0}
  .sched-cal{border-left:none;border-right:none;padding:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
  .times-list{max-height:none;overflow:visible}
  .cal-grid{gap:5px}
  /* Tap targets: the 44px floor of the 2026-08-03 mobile pass (C10-19). */
  .cal-arrow{width:44px;height:44px}
  .back{display:inline-flex;align-items:center;min-height:44px;min-width:44px}
}

/* ---- phone: the calendar has to be TAPPABLE ----------------------------
   At 390px the card and page padding left the grid ~299px wide, so each day
   cell came out 38x38 — under the 44px minimum a finger can reliably hit, on a
   control where a miss looks exactly like a broken calendar (Niko, 2026-08-03:
   "the calendar does not work"). Give the grid the width back and floor the
   cell at 44px; the aspect-ratio still squares them once there is room. */
@media(max-width:560px){
  .page{padding-left:8px;padding-right:8px}
  .bk-card{padding:18px 10px;border-radius:18px}
  .cal-cell{min-height:44px;min-width:0;font-size:15px}
  .cal-dow{font-size:11px}
  /* A slot is a primary action too — same floor. */
  .tslot{min-height:44px}
}

/* ---- host choice (avatars on slots + confirm-step switch) ---- */
.tslot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tslot-avs { display: flex; align-items: center; }
.av-s {
  width: 18px; height: 18px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--purple); color: #fff; font-size: .58rem; font-weight: 700;
  border: 1.5px solid var(--bg-card); vertical-align: -3px;
}
.tslot-avs .av-s + .av-s { margin-left: -6px; }
.host-row { flex-wrap: wrap; }
.host-with { display: inline-flex; align-items: center; gap: 7px; }
.host-title { color: var(--muted, #888); font-weight: 400; font-size: .85em; }
.host-switch {
  margin-left: auto; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  font: inherit; font-size: .78rem; cursor: pointer; white-space: nowrap;
}
.host-switch:hover { border-color: var(--orange); color: var(--orange-text); }

/* Server-rendered consultation copy + the no-JS request form. PERMANENT in the
   DOM: it is what crawlers and no-JS visitors read. booking.js only sets
   [hidden] on it once the live cards paint. Styled to match the card body so a
   no-JS visitor gets a readable page rather than a bare stack of text. */
.bk-static{max-width:620px;margin:22px auto 0;padding:0 4px;text-align:left;line-height:1.65}
.bk-static[hidden]{display:none}
.bk-static h2{font-size:1.05rem;margin:20px 0 8px}
.bk-static p{margin:0 0 12px}
.bk-static ul{margin:0 0 12px 20px}
.bk-static li{margin:0 0 6px}
/* Consultations rendered from D1 — cards, not bullets, so the facts read as facts. */
.bk-static .bk-svc-list{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:10px}
.bk-static .bk-svc-list li{margin:0;padding:12px 14px;background:var(--bg-sunken);border:1px solid var(--border);border-radius:12px;font-size:14px;line-height:1.55}
.bk-svc-meta{color:var(--text-secondary);font-size:13px}

/* The two no-JS paths — the server-rendered booking flow (#bk-nojs) and the
   written request (.bk-request) — are invisible to a JavaScript visitor. At
   2a47e26 that visitor saw the live list's spinner and the short copy until
   /api/bootstrap answered, never a second calendar or a form; since 78379fb /
   350c54b both painted first and vanished when the live cards arrived
   (Niko 2026-09-22: the no-JS work never changes what a JS visitor sees).
   html[data-js] is stamped in the head before first paint. booking.js sets
   html.bk-failed when the live list cannot load, and both come back. */
html[data-js]:not(.bk-failed) #bk-nojs,
html[data-js]:not(.bk-failed) .bk-request { display: none; }
/* bk-failed with the first spinner still turning (booking.js never ran, or the
   bootstrap is still out): the working flow is below it, so the spinner goes. */
html.bk-failed #services > .loading { display: none; }
/* Same condition for the consultation copy: a JS visitor gets 2a47e26's short
   paragraphs (.bk-short); crawlers, no-JS visitors and bk-failed get 78379fb's
   longer crawlable copy with the D1 consultations (.bk-long). */
.bk-short { display: none; }
html[data-js]:not(.bk-failed) .bk-short { display: block; }
html[data-js]:not(.bk-failed) .bk-long { display: none; }

/* No-JS request form (POST /request). */
.bk-form{margin:4px 0 0}
.bk-radios{border:1px solid var(--border);border-radius:12px;padding:10px 14px 12px;margin:0 0 15px}
.bk-radios legend{font-size:13px;font-weight:600;padding:0 6px;color:var(--text)}
.bk-radios label{display:flex;align-items:center;gap:8px;font-size:14px;padding:5px 0;cursor:pointer}
.bk-form-note{font-size:.8rem;line-height:1.5;color:var(--text-dim);margin:12px 0 0;text-align:center}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

/* Outcome strip after a no-JS POST; lives outside .bk-static so it survives the hide. */
.bk-notice{margin:0 0 18px;padding:12px 15px;border:1px solid var(--border);border-radius:12px;background:var(--bg-sunken);font-size:14px;line-height:1.55}
.bk-notice-ok{border-color:var(--orange);background:var(--orange-tint)}
.bk-notice-err{border-color:#c0392b}
/* The mailto link inside a notice: --orange-text is 4.49:1 on the sunken surface, a hair under AA — same treatment as .consent a. */
.bk-notice a{color:var(--text);text-decoration:underline;text-underline-offset:2px}

/* Shown only inside <noscript>, above the fixed nav. */
.nojs-note{max-width:620px;margin:76px auto 0;padding:11px 16px;border:1px solid var(--border);border-radius:12px;background:var(--bg-elevated);color:var(--text-secondary);font-size:13.5px;line-height:1.6;text-align:center;position:relative;z-index:1}

/* ── the no-JS booking flow (src/lib/nojs-booking.js) ──────────────────────
   Rendered server-side and hidden by booking.js the moment the live wizard
   paints, so these rules only ever style what a visitor without JavaScript
   sees. Same tokens as the wizard — a no-JS booking should not look like a
   downgrade, because it is not one. */
.bk-nojs { margin: 0 0 26px; }
.bk-nojs h2 { margin: 0 0 12px; }
.nb-form { display: flex; flex-direction: column; gap: 12px; }
.nb-fs { border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 14px; padding: 12px 14px; margin: 0; }
.nb-fs legend { padding: 0 6px; font-size: 13px; color: var(--muted, #9a9a9a); }
.nb-opt { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.nb-opt input { margin-top: 3px; flex: none; }
.nb-meta { color: var(--muted, #9a9a9a); font-size: 13px; }
.nb-field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.nb-field > span { color: var(--muted, #9a9a9a); font-size: 13px; }
.nb-field input, .nb-field select, .nb-field textarea {
  width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit;
  color: inherit; background: var(--bg-elevated, rgba(255,255,255,.04));
  border: 1px solid var(--border, rgba(255,255,255,.14)); border-radius: 12px;
}
.nb-field input:focus, .nb-field select:focus, .nb-field textarea:focus { outline: none; border-color: var(--orange, #F7931A); }
.nb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.nb-check input { margin-top: 3px; flex: none; }
.nb-note { font-size: 13px; color: var(--muted, #9a9a9a); line-height: 1.6; margin: 2px 0; }
.nb-when { font-size: 15px; line-height: 1.6; margin: 0; }
.nb-back { color: var(--orange, #F7931A); }
.nb-days { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 14px; }
.nb-day h3 { font-size: 14px; margin: 0 0 7px; font-weight: 600; }
.nb-slots { display: flex; flex-wrap: wrap; gap: 7px; }
.nb-slot {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 14px; text-decoration: none;
  color: inherit; border: 1px solid var(--border, rgba(255,255,255,.14));
  background: var(--bg-elevated, rgba(255,255,255,.04)); transition: border-color .15s, color .15s;
}
.nb-slot:hover, .nb-slot:focus-visible { border-color: var(--orange, #F7931A); color: var(--orange, #F7931A); }
.nb-result { margin: 0 0 14px; }
.nb-ok, .nb-err { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.nb-ok { border: 1px solid rgba(52,168,83,.45); background: rgba(52,168,83,.10); }
.nb-err { border: 1px solid rgba(217,48,37,.45); background: rgba(217,48,37,.10); }
.nb-daylink {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 14px; border-radius: 12px; text-decoration: none; color: inherit;
  border: 1px solid var(--border, rgba(255,255,255,.14));
  background: var(--bg-elevated, rgba(255,255,255,.04)); transition: border-color .15s;
}
.nb-daylink:hover, .nb-daylink:focus-visible { border-color: var(--orange, #F7931A); }
.nb-day-on h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* ── the no-JS booking card (src/lib/nojs-manage.js, C10-17) ────────────────
   On an emailed manage link or the post-confirm landing, with a valid token.
   A JavaScript visitor never sees it: booking.js shows the live manage view,
   exactly as before. Without JavaScript it replaces the booking wizard, which
   cannot run anyway. */
html[data-js]:not(.bk-failed) #bk-manage { display: none; }
html:not([data-js]) #bk-card:has(> #bk-manage) > #step-service { display: none; }
.bk-manage h2 { font-family: 'Playfair Display', serif; font-size: clamp(21px, 3vw, 26px); font-weight: 600; text-align: center; margin: 0 0 18px; }
.bk-manage-form { display: flex; flex-direction: column; gap: 12px; }
.bk-manage-form .bk-manage-note { margin: 0; }
.bk-manage-note { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin: 14px 0 0; }
