/* CareBridge logo + loader (approved 10 Nov 2026; App\Support\Brand). Always both colours: teal #038280 + terracotta
   #D84C28 on light, #15AEAA + #E9603C on dark. Never black, white or one colour. Name style A: Archivo 800, -0.05em,
   the mark 1.35em tall on the capitals' line. Self-hosted font, no third-party request. */
@font-face{font-family:"CB Archivo";font-style:normal;font-weight:800;font-display:block;
  src:url(/brand/fonts/archivo-800-latin.woff2) format("woff2")}

/* ── the lockup ─────────────────────────────────────────────────────────── */
.cb-lockup{--cb-mk1:#038280;--cb-mk2:#D84C28;--cb-wm:#0F1715;
  display:inline-flex;align-items:center;gap:.42em;line-height:1;color:var(--cb-wm);vertical-align:middle;white-space:nowrap}
.cb-lockup--dark{--cb-mk1:#15AEAA;--cb-mk2:#E9603C;--cb-wm:#ECF1F0}
[data-theme="dark"] .cb-lockup--auto{--cb-mk1:#15AEAA;--cb-mk2:#E9603C;--cb-wm:#ECF1F0}
.cb-mark{display:block;flex:0 0 auto;height:1.35em;width:auto;aspect-ratio:84/54;transform:translateY(.03em);overflow:visible}
.cb-mark .cb-l1{stroke:var(--cb-mk1)}
.cb-mark .cb-l2{stroke:var(--cb-mk2)}
.cb-wordmark{font-family:"CB Archivo","Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:800;
  letter-spacing:-.05em;line-height:1;color:var(--cb-wm);font-feature-settings:"kern" 1;
  /* "CareBridge" is 5.21em wide in Archivo 800: the box is that wide before the font arrives too, so nothing moves */
  display:inline-block;width:5.21em;white-space:nowrap}
/* On a coloured ground the lockup sits on a white chip (never a white mark). */
.cb-chip{display:inline-flex;align-items:center;background:#fff;border-radius:999px;padding:.38em .8em .38em .6em}
.cb-chip .cb-lockup{--cb-mk1:#038280;--cb-mk2:#D84C28;--cb-wm:#0F1715}

/* ── draw-in: once per visit, website header only (cb-draw-in.js sets html.cb-draw) ─ */
.cb-draw .cb-lockup--draw .cb-mark path[pathLength]{stroke-dasharray:100;animation:cb-draw .55s cubic-bezier(.3,.6,.2,1) both}
.cb-draw .cb-lockup--draw .cb-mark path.d2[pathLength]{animation-delay:.25s}
/* (path.d2[pathLength] outranks the shorthand above; a plain .d2 lost to it and the delay never applied, 10 Nov) */
.cb-draw .cb-lockup--draw .cb-wordmark{animation:cb-fade .35s .55s both}
@keyframes cb-draw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@keyframes cb-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.cb-draw .cb-lockup--draw .cb-mark path,.cb-draw .cb-lockup--draw .cb-wordmark{animation:none!important}}

/* ── loader: the two links draw in, hold joined, draw out, repeat (cb-loader.js) ─ */
.cb-ld{display:block;height:auto;--cb-mk1:#038280;--cb-mk2:#D84C28}
.cb-ld path[pathLength]{stroke-dasharray:100;stroke-dashoffset:100}
.cb-ld .d1{animation:cb-ld-loop 1.8s cubic-bezier(.45,0,.25,1) infinite}
.cb-ld .d2{animation:cb-ld-loop 1.8s .22s cubic-bezier(.45,0,.25,1) infinite}
.cb-ld .cb-l1{stroke:var(--cb-mk1)}
.cb-ld .cb-l2{stroke:var(--cb-mk2)}
@keyframes cb-ld-loop{0%{stroke-dashoffset:100}45%{stroke-dashoffset:0}68%{stroke-dashoffset:0}100%{stroke-dashoffset:-100}}
@keyframes cb-ld-pulse{0%,100%{opacity:.4}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .cb-ld path[pathLength]{animation:none!important;stroke-dashoffset:0}
  .cb-ld{animation:cb-ld-pulse 1.6s ease-in-out infinite}
}
/* full screen: a white card on a dimmed screen, the same on any page, light or dark */
.cb-ld-overlay{position:fixed;inset:0;z-index:20000;display:flex;align-items:center;justify-content:center;
  padding:env(safe-area-inset-top,0px) max(16px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(16px,env(safe-area-inset-left,0px));
  background:rgba(15,23,21,.45);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s .2s}
.cb-ld-overlay.is-on{opacity:1;visibility:visible;transition:opacity .2s ease}
.cb-ld-card{background:#fff;color:#0F1715;border-radius:16px;padding:22px 26px 18px;display:flex;flex-direction:column;
  align-items:center;gap:12px;box-shadow:0 10px 40px rgba(0,0,0,.25);min-width:180px;max-width:320px;text-align:center}
.cb-ld-card .cb-ld{width:84px}
.cb-ld-card .cb-ld-text{font:500 13px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;color:#4E5D5A}
.cb-ld-card .cb-ld-sub{font:400 12px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;color:#7C8B88;margin-top:-6px}
.cb-ld-card .cb-ld-sub:empty{display:none}
/* inside a button while it works (the button stays disabled until done) */
.cb-ld-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px}
/* A working button looks like the mockup's: white, a pale teal edge, full strength (never the faded disabled look,
   which would fade the mark's colours). Website (.btn) and admin app (.btn) alike. */
button[aria-busy="true"],.btn[aria-busy="true"]{opacity:1!important;background:#fff!important;color:#0F1715!important;
  border:1.5px solid #CFE3E1!important;box-shadow:none!important;cursor:progress}
.cb-ld-btn .cb-ld{width:30px;flex:0 0 auto}
/* beside a line of text while a list loads; on a white chip when the page is dark */
.cb-ld-line{display:inline-flex;align-items:center;gap:8px;font-size:13px;line-height:1.4;color:inherit}
.cb-ld-line .cb-ld{width:24px;flex:0 0 auto}
.cb-ld-line .cb-ld-box{display:inline-flex;flex:0 0 auto}
.cb-ld-chip .cb-ld-box,[data-theme="dark"] .cb-ld-line .cb-ld-box{background:#fff;border-radius:8px;padding:6px 8px;border:1px solid rgba(0,0,0,.08)}
.cb-ld-line[data-wait]{visibility:hidden}
.cb-ld-line--css{animation:cb-ld-appear 1ms .3s both}
@keyframes cb-ld-appear{from{visibility:hidden}to{visibility:visible}}
.cb-ld-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){.cb-ld-overlay,.cb-ld-overlay.is-on{transition:none}}
