/* Bogso Blue skin, Oct 2026 — makes every PHP page (Farmasi, login, register, team, visit, apply, patient portal
   and the staff console) match the homepage: blue header, beating-heart logo, Fraunces + Manrope, blue/navy colours.
   Loaded after style.css and ui.css. */

/* ---------- logo: red heart (white edge + white heartline) the height of BOGSO ---------- */
.bg-logo{display:inline-flex;align-items:baseline;gap:10px;color:inherit;line-height:1;text-decoration:none}
.bg-heart{display:block;flex:none;width:31px;height:29px;margin-bottom:-2px;overflow:visible;transform-origin:50% 60%;animation:bg-beat 1.4s ease-in-out infinite}
.bg-word{font-family:'Fraunces',Georgia,serif;font-weight:600;font-variation-settings:'SOFT' 100;font-size:34px;letter-spacing:.03em}
@keyframes bg-beat{0%,100%{transform:scale(1)}12%{transform:scale(1.18)}24%{transform:scale(.96)}36%{transform:scale(1.1)}52%{transform:scale(1)}}
.drawer .bg-word,body.staff .bg-word{font-size:28px}
.drawer .bg-heart,body.staff .bg-heart{width:26px;height:24px}
@media (max-width:560px){.bg-word{font-size:28px}.bg-heart{width:26px;height:24px}}
@media (prefers-reduced-motion:reduce){.bg-heart{animation:none}}

/* ---------- every page ---------- */
html:not([data-theme="dark"]) body.app{
  --display:'Fraunces',Georgia,serif; --body:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  --sky:#2F7FD8; --sky-deep:#1E62B0; --hero-bg:#2F7FD8;
  --bg:#EEF4FC; --bg-2:#E2EDFB; --surface:#FFFFFF; --surface-2:#F2F6FC; --surface-3:#E2EDFB;
  --text:#0A171C; --text-soft:#3B4F63; --muted:#566B7E; --line:#D3E1F3; --line-strong:#0A171C;
  --field:#FFFFFF; --field-line:#C3D4EA; --accent-text:#1E62B0; --chip:#E2EDFB; --chip-text:#1E62B0;
  --shadow:0 24px 50px -30px rgba(6,18,38,.35);
}
html[data-theme="dark"] body.app{
  --display:'Fraunces',Georgia,serif; --body:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  --sky:#2F7FD8; --sky-deep:#1E62B0; --hero-bg:#173F78;
  --bg:#061226; --bg-2:#0A1B33; --surface:#0E2240; --surface-2:#132A4D; --surface-3:#173057;
  --text:#FFFFFF; --text-soft:#B9C8DC; --muted:#9FB0C6; --line:rgba(255,255,255,.10); --line-strong:rgba(255,255,255,.55);
  --field:#0A1B33; --field-line:rgba(255,255,255,.2); --accent-text:#7CC0FF; --chip:rgba(124,192,255,.14); --chip-text:#A9D4FF;
  --shadow:0 24px 50px -30px rgba(0,0,0,.7);
}
body.app{font-family:var(--body);background:var(--bg)}
body.app :is(h1,h2){font-weight:600;letter-spacing:-.012em}
body.app h3{letter-spacing:-.005em}

/* buttons: deeper blue so white text stays easy to read */
body.app .btn-sky{background:#1E62B0;color:#fff}
body.app .btn-sky:hover{background:#174E8D}
html[data-theme="dark"] body.app .btn-sky{background:#7CC0FF;color:#061226}
html[data-theme="dark"] body.app .btn-sky:hover{background:#A5D4FF}

/* header: Bogso Blue bar with white text, like the homepage */
body.app .nav.is-solid{background:var(--hero-bg);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.12);-webkit-backdrop-filter:none;backdrop-filter:none}
body.app .nav .nav-links a{font-weight:700;opacity:.95}
body.app .nav .lang{border-color:rgba(255,255,255,.55);opacity:1}
body.app .nav .lang a[aria-pressed="true"]{background:#fff}
body.app .nav .lang a[aria-pressed="true"] span{color:#1E62B0}
body.app .nav .icon-btn{border:0;background:rgba(255,255,255,.14);opacity:1}
body.app .nav .icon-btn:hover{background:rgba(255,255,255,.24)}
body.app .nav .btn-line{color:#1E62B0;background:#fff;border-color:#fff;font-weight:800}
body.app .nav .btn-line:hover{background:#EEF4FC;color:#1E62B0}

/* footer: navy, like the homepage */
body.app .app-foot{background:#061226;color:#C9D6E4;border-top:0;padding:30px 0 44px}
html[data-theme="dark"] body.app .app-foot{background:#030B18}

/* Farmasi: hero on Bogso Blue, white text; search box and offer cards stay light */
body.app .fx-hero{background:var(--hero-bg);color:#fff;border-bottom:0}
body.app .fx-hero .fx-eyebrow,body.app .fx-hero h1{color:#fff}
body.app .fx-hero .fx-eyebrow svg{fill:#E5383B;stroke:#fff;stroke-width:1.6;stroke-linejoin:round;paint-order:stroke}
body.app .fx-hero .fx-trust li{color:#fff}
body.app .fx-hero .fx-trust svg{color:#fff}
body.app .fx-hero .fx-search{border-color:#fff;color:var(--text)}
body.app .fx-hero .fx-deals{color:var(--text)}
html:has(body.app){background:#061226}

/* staff console: blue for the busy tiles and the current menu item, instead of black */
body.app .stat b{letter-spacing:-.01em}
body.app .stat.hot{background:#1E62B0;color:#fff}
body.app .stat.hot small,body.app .stat.hot span{color:#E4EFFC}
body.staff .side-nav a[aria-current]{background:#1E62B0;color:#fff}
html[data-theme="dark"] body.staff .side-nav a[aria-current]{background:#7CC0FF;color:#061226}

/* iPhone "Add to Home Screen": the page runs full-screen under the clock and Dynamic Island
   (viewport-fit=cover + black-translucent status bar). Keep the header, menu and pop-ups clear of it.
   env(safe-area-inset-top) is 0 in normal browsers, so nothing changes there. */
:root{--safe-top:env(safe-area-inset-top,0px)}
.nav{padding-top:var(--safe-top)}
.app-main{padding-top:calc(var(--nav-h) + 36px + var(--safe-top))}
body.staff .app-main{padding-top:0}
.staff-shell{padding-top:calc(var(--nav-h) + 28px + var(--safe-top))}
.side-desktop{top:calc(var(--nav-h) + 28px + var(--safe-top))}
.shop-page .app-main{padding-top:calc(var(--nav-h) + var(--safe-top))}
.shop-tools{top:calc(var(--nav-h) + var(--safe-top))}
.drawer-panel{padding-top:calc(18px + var(--safe-top))}
.cm{padding-top:calc(16px + var(--safe-top))}
@media (max-width:560px){
  .cm{padding-top:0}
  .cm-panel{max-height:min(94dvh,calc(100dvh - var(--safe-top) - 12px))}
}