/* ══ Settings style guide (10/17, Seth: "the preferred style guide for settings going forward") ══
   Canvas "Settings Style · Proposal". Loaded by settings.html AFTER its own <style>, so these rules win at
   equal specificity. Inline style="…" still wins over this file — new markup should use the classes here
   instead of inline font sizes.

   Text: 5 sizes, 3 big steps
     section title   Bricolage 800 30px navy   (.sg-t — injected once per section by sgDecorate)
     card title      Bricolage 800 21px ink    (.card h2)
     setting name    DM Sans 600 16px          (label)
     body / inputs   15px  (inputs 16px so phones don't zoom)
     help            14px #5B6472              (.hint)
     caps 11.5px     sidebar group labels only
   Buttons: navy = save/confirm (.btn-coral — the old name, navy since 10/4) · coral #C2522B = money only
   (.btn-money) · white outline = everything else (.btn-ghost) · links navy · Remove = red text.
   Radii: 10 inputs · 12 buttons/options · 16 cards · round pills. */

:root { --sg-navy:#2B4163; --sg-btn:#2B4163; --sg-ink:#121C32; --sg-help:#5B6472; --sg-line:#E6E8EC; --sg-field:#CBD2DB; --sg-money:#C2522B; --sg-sel:#EEF2F8; --sg-surface:#fff; }
/* Night (legacy tally-night, still reachable with ?night=1): text and lines follow the night palette. Buttons stay navy (--sg-btn). */
body.tally-night { --sg-navy:#C9D4EA; --sg-ink:#F2F4F7; --sg-help:#9AA1AB; --sg-line:#2B2F36; --sg-field:#3A3F47; --sg-sel:rgba(201,212,234,.14); --sg-surface:#17191D; }

body { font-weight:400; }

/* ── Section header (sgDecorate) ── */
.sg-head { display:flex; flex-direction:column; gap:10px; margin:2px 0 18px; }
.sg-t { margin:0; font-family:'Bricolage Grotesque','DM Sans',sans-serif; font-weight:800; font-size:30px; line-height:1.1; letter-spacing:-.01em; color:var(--sg-navy); }
.sg-jump { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.sg-jump span { font-size:13px; color:var(--sg-help); margin-right:2px; }
.sg-jump button { font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600; color:var(--sg-navy); background:var(--sg-surface); border:1px solid var(--sg-line); border-radius:999px; padding:7px 13px; cursor:pointer; }
.sg-jump button:hover { border-color:var(--sg-navy); }
.card > h2.sg-dup { display:none; }
.card > h2.sg-dup + .hint { margin-top:0; }

/* ── Cards ── */
.card { border-color:var(--sg-line); border-radius:16px; padding:24px; margin-bottom:16px; scroll-margin-top:16px; }
.card h2 { font-family:'Bricolage Grotesque','DM Sans',sans-serif; font-weight:800; font-size:21px; line-height:1.25; letter-spacing:-.01em; color:var(--sg-ink); margin-bottom:6px; }
.card .hint, .hint { font-size:14px; color:var(--sg-help); line-height:1.5; }
.card .hint b, .hint b { color:var(--sg-ink); }

/* ── Setting names, inputs ── */
label { font-size:16px; font-weight:600; color:var(--sg-ink); }
label .muted { font-size:14px; }
.tgl-label { font-size:15px; color:var(--sg-ink); }   /* weight stays 400: many toggles carry their description inside the label */
.card input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
.card select, .card textarea { font-size:16px; border-color:var(--sg-field); border-radius:10px; }
.card input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
.card select { min-height:44px; }
.card input:focus, .card select:focus, .card textarea:focus { outline:2px solid rgba(43,65,99,.25); outline-offset:1px; border-color:var(--sg-navy); }

/* ── Buttons: sentence case, 15px, 12px corners ── */
.btn-coral { text-transform:none; letter-spacing:0; font-family:'DM Sans',sans-serif; font-size:15px; font-weight:600; padding:12px 20px; border-radius:12px; background:var(--sg-btn); }
.btn-coral:disabled { background:#9AA6B8; color:#fff; }
.btn-money { background:var(--sg-money); color:#fff; border:none; font-family:'DM Sans',sans-serif; font-size:15px; font-weight:600; padding:12px 20px; border-radius:12px; cursor:pointer; }
.btn-money:hover { background:#A9461F; }
.btn-ghost { text-transform:none; letter-spacing:0; font-size:15px; font-weight:600; color:var(--sg-navy); border-color:var(--sg-field); border-radius:12px; padding:10px 18px; }
.btn-ghost:hover { border-color:var(--sg-navy); }
.btn-ghost.sm { font-size:13.5px; padding:6px 12px; }
.add-link { font-family:'DM Sans',sans-serif; font-size:15px; font-weight:600; color:var(--sg-navy); }

/* ── Choices: round pills, selected = navy ── */
.tone-opt { font-size:15px; color:#374151; border-color:var(--sg-field); border-radius:999px; padding:9px 16px; }
.tone-opt.on { border:2px solid var(--sg-navy); padding:8px 15px; background:var(--sg-sel); color:var(--sg-navy); font-weight:600; }
.sp-dial { background:var(--sg-surface); border-color:var(--sg-line); border-radius:12px; padding:16px; }
.sp-dial .q { font-size:16px; font-weight:600; }
.sp-dial .why { font-size:14px; color:var(--sg-help); }
.sp-opt { border-radius:12px; }
.sp-opt b { font-size:15px; }
.sp-opt small { font-size:13.5px; }
.sp-opt.on { border-color:var(--sg-navy); box-shadow:inset 0 0 0 1px var(--sg-navy); background:var(--sg-sel); }
.sp-opt.on b { color:var(--sg-navy); }
.pp-seg button.on { border-color:var(--sg-navy); box-shadow:inset 0 0 0 1px var(--sg-navy); background:var(--sg-sel); color:var(--sg-navy); }
.pp-seg button.on small { color:var(--sg-help); }
.sv2-teamlink { color:var(--sg-navy); font-size:14px; }
.teamvis .q { font-size:16px; font-weight:600; }
.teamvis .why { font-size:14px; color:var(--sg-help); }

/* ── One Save bar per section ── */
.sec-save { bottom:12px; margin-top:16px; padding:12px 16px; background:var(--sg-surface); border:1px solid var(--sg-line); border-radius:16px; }
.sec-save.is-dirty { box-shadow:0 8px 24px rgba(18,28,50,.12); }
.sec-save.is-dirty::before { font-size:15px; color:var(--sg-ink); }

/* ── Texts clients get ── */
.txi-m b { font-size:15px; }
.txi-m span { font-size:14px; }
.txi-edit { font-size:14px; font-weight:600; color:var(--sg-navy); }

/* ── Online booking → Stylist links: stylists not taking online bookings fold into one line (W8) ── */
.bksl-off { margin-top:10px; border:1px solid var(--sg-line); border-radius:12px; padding:12px 14px; background:var(--sg-surface); }
.bksl-off summary { cursor:pointer; font-size:15px; line-height:1.5; color:var(--sg-ink); }
.bksl-off .bkslrow { margin-top:8px; }
.bksl-open { margin-left:auto; font-size:14px; font-weight:600; color:var(--sg-navy); white-space:nowrap; text-decoration:none; }

/* ── Pay plan (assets/pay-plan.js) — Settings only; the module keeps its own look elsewhere ── */
body.sv2 #payPlanHost .pp-band { background:var(--sg-surface); color:var(--sg-ink); border:1px solid var(--sg-line); }
body.sv2 #payPlanHost .pp-band small { color:var(--sg-help); letter-spacing:.06em; }
body.sv2 #payPlanHost .pp-band a { color:var(--sg-navy); }
body.sv2 #payPlanHost .pp-sec { border-color:var(--sg-line); padding:24px; }
body.sv2 #payPlanHost .pp-num { width:26px; height:26px; font-size:13px; }
body.sv2 #payPlanHost .pp-sh h2 { font-size:21px; }
body.sv2 #payPlanHost .pp-sh p { font-size:14px; color:var(--sg-help); }
body.sv2 #payPlanHost .pp-row { background:transparent; border:0; border-top:1px solid #F0F1F3; border-radius:0; padding:14px 0; font-size:15px; }
body.sv2 #payPlanHost .pp-lab { font-size:16px; font-weight:600; }
body.sv2 #payPlanHost .pp-sp { font-size:14.5px; border-color:#DDE2E8; }
body.sv2 #payPlanHost .pp-step small { text-transform:none; letter-spacing:0; font-size:14px; font-weight:600; color:#4B5563; }
body.sv2 #payPlanHost .pp-step span { font-size:14px; }
body.sv2 #payPlanHost .pp-btn { font-size:15px; font-weight:600; min-height:44px; border-color:var(--sg-field); color:var(--sg-navy); }
body.sv2 #payPlanHost .pp-btn.pri { background:var(--sg-surface); border-color:var(--sg-field); color:var(--sg-navy); }
body.sv2 #payPlanHost .pp-btn.q { color:var(--sg-navy); }

/* ── Product discounts (assets/discount-rules.js) — Settings only ── */
body.sv2 #pdHost .pdr-h { font-family:'Bricolage Grotesque','DM Sans',sans-serif; font-weight:800; font-size:21px; letter-spacing:-.01em; text-transform:none; color:var(--sg-ink); margin:24px 0 10px; }
body.sv2 #pdHost .pdr-tile span { font-size:13px; text-transform:none; letter-spacing:0; font-weight:600; color:var(--sg-help); }
body.sv2 #pdHost .pdr-tile b { font-family:'Bricolage Grotesque','DM Sans',sans-serif; font-weight:800; font-size:21px; }
body.sv2 #pdHost .pdr-meta, body.sv2 #pdHost .pdr-hint { font-size:14px; color:var(--sg-help); }
body.sv2 #pdHost .pdr-ck { font-size:15px; }

/* ── Phones ── */
@media (max-width:768px){
  .sg-t { font-size:26px; }
  .sg-jump { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:2px; }
  .sg-jump button { flex:none; }
  .card { padding:16px; }
  .sec-save { bottom:8px; }
}
