/* Site-wide theme: soft beige background, warm brown text and a gentle coral accent.
   Applies to the home page and every guide. Loaded last, so it overrides earlier themes. */
:root, body.warm{
  --bg:#FAF6F0; --surface:#FFFFFF; --surface-2:#F4ECE2; --line:#EBE1D4;
  --ink:#2E2622; --ink-2:#584C44; --muted:#857669;
  --teal:#C2573F; --teal-2:#D9765E; --teal-soft:#FBEAE3;
  --green:#4F8466; --green-soft:#E5F0E8;
  --warm:#EFB98F; --warm-soft:#FCEEE2; --warm-ink:#8A4A2B;
  --radius:22px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]), :root:not([data-theme="light"]) body.warm{
    --bg:#1A1613; --surface:#221D19; --surface-2:#2B2520; --line:#3A322B;
    --ink:#F4EEE8; --ink-2:#D3C8BE; --muted:#A39588;
    --teal:#EE9479; --teal-2:#F3AC95; --teal-soft:#3A2620;
    --green:#8CC3A0; --green-soft:#1F3127;
    --warm:#E7A97F; --warm-soft:#3A2B20; --warm-ink:#F3C9A6;
  }
}
:root[data-theme="dark"], :root[data-theme="dark"] body.warm{
  --bg:#1A1613; --surface:#221D19; --surface-2:#2B2520; --line:#3A322B;
  --ink:#F4EEE8; --ink-2:#D3C8BE; --muted:#A39588;
  --teal:#EE9479; --teal-2:#F3AC95; --teal-soft:#3A2620;
  --green:#8CC3A0; --green-soft:#1F3127;
  --warm:#E7A97F; --warm-soft:#3A2B20; --warm-ink:#F3C9A6;
}
body{background:var(--bg)}

/* Header: name and tagline */
.brand-sub{display:block;font-size:.72rem;color:var(--muted);letter-spacing:.01em;margin-top:2px}
.brand > span{display:flex;flex-direction:column;line-height:1.1}

/* Home page */
.ap-hero .ap-eyebrow::after{content:" — your surgery companion";font-weight:500;color:var(--ink-2)}
.grad{background:linear-gradient(90deg,var(--teal),var(--warm) 75%);-webkit-background-clip:text;background-clip:text;color:transparent}
.pill{background:var(--teal);color:#fff}
.ap-statement{background:var(--surface-2);color:var(--ink)}
.ap-statement h2{color:var(--ink)}
.ap-statement p{color:var(--ink-2)}
.bt,.ap-tile,.tile{border-radius:24px}
.mod-art{background:var(--surface)}
.mod-art figcaption{color:var(--muted)}

/* Phone mock-ups on the home page */
.iphone{background:#3B302A}
.iphone-screen{background:#FFFDF9;color:#2E2622}
.scr-art,.scr-pills span,.scr-chat .b{background:#F4ECE2}
.scr-wave i{background:#C2573F}
.scr-wave i:nth-child(n+12){background:#E6D9CA}
.scr-ctrl b,.scr-pills span.on{background:#2E2622}
.scr-list li{border-bottom-color:#F1E8DD}
.scr-list li::before{width:8px;height:8px;top:17px;left:6px;border:0;background:#EFB98F}
.scr-list li.ok{color:#2E2622;text-decoration:none}
.scr-list li.ok::before{background:#4F8466;border:0;box-shadow:none}
.scr-list li em{color:#C2573F}
.scr-chat .u{background:#C2573F}
.scr-input{border-color:#EBE1D4;color:#857669}
.scr-ring .ring{--teal:#C2573F;background:conic-gradient(#C2573F calc(var(--p)*1%),#F1E8DD 0)}
.scr-ring .ring span{background:#FFFDF9;color:#2E2622}

/* When to get help */
.help-btn{display:inline-flex;align-items:center;gap:4px;font-size:.85rem;font-weight:600;color:#9B2C1F;background:#FBE4DE;border-radius:999px;padding:7px 12px;text-decoration:none;margin-left:auto;margin-right:8px;white-space:nowrap}
.help-banner{display:flex;align-items:center;gap:14px;margin:0 0 14px;padding:14px 18px;border-radius:20px;background:#FBE4DE;color:#5E1D14;text-decoration:none;border:1px solid #F3C9BD}
.help-banner b{display:block}.help-banner small{display:block;color:#7A3A2D}
.help-banner .mv-chev{margin-left:auto}
.help-i{flex:0 0 32px;height:32px;border-radius:50%;background:#B42318;color:#fff;display:grid;place-items:center;font-weight:700}
.help-tier{border-radius:20px;padding:16px 18px 10px;margin:0 0 14px;border:1px solid var(--line);background:var(--surface)}
.help-tier h2{font-size:1.1rem;margin:0 0 8px}
.help-tier ul{margin:0 0 10px;padding-left:20px}.help-tier li{margin:4px 0}
.help-tier.t911{background:#FDECEA;border-color:#F2B8B0}.help-tier.t911 h2{color:#B42318}
.help-tier.tnow{background:#FFF4E5;border-color:#F4D3A6}.help-tier.tnow h2{color:#8A4B08}
.help-tier.tteam h2{color:var(--ink)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .help-tier.t911{background:#3A1D19;border-color:#5C2A24}:root:not([data-theme="light"]) .help-tier.t911 h2{color:#F4A69A}:root:not([data-theme="light"]) .help-tier.tnow{background:#3A2C18;border-color:#5A4423}:root:not([data-theme="light"]) .help-tier.tnow h2{color:#F3C98E}:root:not([data-theme="light"]) .help-banner,:root:not([data-theme="light"]) .help-btn{background:#3A1D19;color:#F4C3B8;border-color:#5C2A24}:root:not([data-theme="light"]) .help-banner small{color:#E0A598}}
@media (max-width:560px){.help-btn{padding:7px 11px}.help-btn span{display:none}}

/* Medicines: group core messages */
.med-lead{margin:4px 0 6px}
.mg-h{font-size:1rem;margin:0 0 2px}
.mg-core{margin:0 0 8px;color:var(--ink-2);font-weight:500}
