/* EMOD App — the 13 Oct 2026 additions: home page, your tools, report an error, calculators, adult doses,
   newborn runner, handover aid, stroke clocks. Colours come from the tokens in app.css, so dark mode follows. */

/* ---------- home ---------- */
.hm-band { height: 96px; margin-bottom: 2px; }
@media (min-width: 520px) { .hm-band { height: 120px; } }
.hm-greet { padding: 4px 2px 10px; }
.hm-greet h1 { font-size: 23px; }
.hm-search { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 4px 6px 4px 14px; margin-bottom: 14px; border: 1.5px solid transparent; }
.hm-search:focus-within { border-color: var(--teal); }
.hm-search svg { flex: none; color: var(--slate); }
.hm-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 16px; color: var(--ink); min-height: 46px; }
.hm-search input::placeholder { color: var(--muted); }
.hm-search button { flex: none; border: none; cursor: pointer; background: var(--teal-btn); color: #fff; font: inherit; font-weight: 800; font-size: 13.5px; border-radius: 12px; padding: 0 14px; min-height: 44px; }
.hm-dose { display: flex; gap: 12px; align-items: stretch; background: var(--hero); color: #fff; border-radius: 20px; box-shadow: var(--shadow-lift); padding: 12px; margin-bottom: 16px; }
.hm-dose .th { width: 84px; flex: none; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.14); display: grid; place-items: center; align-self: stretch; }
.hm-dose .th img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hm-dose .th span { font-size: 26px; font-weight: 900; }
.hm-dose .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-dose .k { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hm-dose h2 { font-size: 17.5px; font-weight: 900; line-height: 1.18; margin: 3px 0 2px; letter-spacing: -.2px; }
.hm-dose p { font-size: 12.5px; color: rgba(255,255,255,.85); font-weight: 600; }
.hm-dose .btn { margin-top: auto; align-self: flex-start; background: #fff; color: #0a2243; padding: 9px 16px; font-size: 13.5px; box-shadow: none; min-height: 44px; }
.hm-dose .btn.done { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.hm-dose .bd > div { margin-top: 10px; }
.hm-code { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #b3261e, #dc3b30); color: #fff; border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 10px 22px rgba(179, 38, 30, .28); }
.hm-code .ic { width: 50px; height: 50px; flex: none; border-radius: 14px; background: rgba(255,255,255,.94); display: grid; place-items: center; }
.hm-code .ic img { width: 82%; height: 82%; object-fit: contain; }
.hm-code b { display: block; font-size: 18px; font-weight: 900; letter-spacing: .2px; }
.hm-code small { display: block; font-size: 12.5px; font-weight: 700; opacity: .92; }
.hm-code .go { margin-inline-start: auto; font-weight: 900; font-size: 13px; background: rgba(255,255,255,.2); border-radius: 999px; padding: 8px 14px; flex: none; }
.hm-code.live { animation: cbflash 1.2s infinite; }
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
@media (min-width: 620px) { .hm-grid { grid-template-columns: repeat(4, 1fr); } }
.hm-tile { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 112px; }
.hm-tile .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.hm-tile b { font-size: 12.5px; font-weight: 800; line-height: 1.15; color: var(--ink); }
.hm-tile small { font-size: 10.5px; color: var(--muted); font-weight: 700; line-height: 1.2; }
.hm-tile:active, .hm-code:active, .q-chip:active { transform: scale(.98); }

/* ---------- your tools, the star, the report link ---------- */
.q-chips { display: flex; gap: 8px; margin: 0 -16px 12px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.q-chips::-webkit-scrollbar { display: none; }
.q-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 72vw; background: var(--card); color: var(--navy-ink); box-shadow: var(--shadow); border-radius: 999px; padding: 0 14px; min-height: 44px; font-size: 13px; font-weight: 800; }
.q-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-chip.saved svg { color: var(--amber); flex: none; }
.view.q-has-star { position: relative; }
.q-star { position: absolute; top: 2px; inset-inline-end: 0; width: 44px; height: 44px; border-radius: 999px; border: none; cursor: pointer; background: var(--card); color: var(--slate); box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; }
.q-star[aria-pressed="true"] { color: var(--amber); }
.q-fb { text-align: center; padding: 22px 0 4px; }
.q-rep-row { align-items: flex-start; }
.q-rep-text { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
#q-fb-text { resize: vertical; }

/* ---------- calculators ---------- */
.cx-form { display: flex; flex-direction: column; gap: 12px; }
.cx-f { display: block; }
.cx-l { display: block; font-size: 13px; font-weight: 800; color: var(--ink); }
.cx-in { display: flex; align-items: center; gap: 8px; }
.cx-in .cb-input { flex: 1; min-width: 0; margin-top: 6px; }
.cx-in em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--slate); flex: none; max-width: 46%; margin-top: 6px; }
.cx-in.two .in { font-size: 13px; font-weight: 700; color: var(--slate); margin-top: 6px; }
.cx-f .seg { margin-top: 6px; }
.cx-res { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 4px; border-inline-start: 5px solid var(--line); }
.cx-res.info { border-color: var(--teal); }
.cx-res.good { border-color: var(--green); background: var(--green-soft); }
.cx-res.warn { border-color: var(--amber); background: var(--amber-soft); }
.cx-res.bad { border-color: var(--red); background: var(--red-soft); }
.cx-res p { font-size: 13.5px; line-height: 1.45; margin-top: 6px; }
.cx-res p:first-child { margin-top: 0; }
.cx-big { font-size: 30px; font-weight: 900; letter-spacing: -.5px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--navy-ink); }
.cx-lab { font-size: 13.5px; font-weight: 800; color: var(--slate); margin-top: 2px; }
.cx-src { margin: 12px 0 0; font-size: 12.5px; color: var(--slate); }
.cx-src summary { cursor: pointer; font-weight: 800; color: var(--teal-ink); min-height: 44px; display: flex; align-items: center; }
.cx-src ul { padding-inline-start: 18px; line-height: 1.5; }

/* ---------- dose rows (adult doses, infusions, newborn, stroke) ---------- */
.dr-group { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card .dr-group { box-shadow: none; border: 1px solid var(--line); }
.dr-row { padding: 12px 14px; border-top: 1px solid var(--line); }
.dr-row:first-child { border-top: none; }
.dr-n { font-size: 13px; font-weight: 800; color: var(--slate); }
.dr-d { font-size: 18px; font-weight: 900; line-height: 1.25; color: var(--navy-ink); font-variant-numeric: tabular-nums; margin-top: 1px; }
.dr-how { font-size: 12.5px; color: var(--ink); line-height: 1.4; margin-top: 3px; }
.dr-warn { font-size: 12.5px; font-weight: 700; color: var(--amber); background: var(--amber-soft); border-radius: 9px; padding: 6px 9px; margin-top: 6px; line-height: 1.4; }
.dr-src { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.dr-src a { color: var(--teal-ink); font-weight: 800; }

/* ---------- newborn runner and stroke clocks ---------- */
.nb-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.nb-top.two { grid-template-columns: 1fr 1fr; }
.nb-st { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 8px; text-align: center; }
.nb-st.wide { grid-column: 1 / -1; }
.nb-st b { display: block; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--navy-ink); line-height: 1.15; }
.nb-st.wide b { font-size: 17px; }
.nb-st span { font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--slate); }
.nb-st.due { background: var(--red-soft); }
.nb-st.due b { color: var(--red); }
.nb-step { border-radius: 16px; padding: 14px 16px; border-inline-start: 6px solid var(--teal); background: var(--card); box-shadow: var(--shadow); }
.nb-step b { display: block; font-size: 19px; font-weight: 900; line-height: 1.2; color: var(--navy-ink); }
.nb-step p { font-size: 14px; line-height: 1.45; margin-top: 5px; }
.nb-step.warn { border-color: var(--amber); background: var(--amber-soft); }
.nb-step.crit { border-color: var(--red); background: var(--red-soft); }
.nb-step.good { border-color: var(--green); background: var(--green-soft); }
.nb-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nb-acts .btn { width: 100%; min-height: 52px; font-size: 15px; }
.nb-hr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.nb-hr > span { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--slate); }
.nb-hr .btn { min-height: 56px; padding: 6px; font-size: 13.5px; line-height: 1.15; }
.btn.nb-red { background: var(--red-soft); color: var(--red); }
.nb-log { display: flex; flex-direction: column; gap: 6px; }
.nb-ev { display: flex; gap: 12px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 9px 12px; font-size: 14px; }
.nb-ev b { font-variant-numeric: tabular-nums; color: var(--teal-ink); flex: none; min-width: 44px; }
.nb-ev span { font-weight: 700; }
.nb-ev small { display: block; font-weight: 500; color: var(--slate); font-size: 12.5px; }
.sk-steps { display: flex; flex-direction: column; gap: 8px; }
.sk-step { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; }
.sk-step.done { background: var(--teal-soft); }
.sk-t { flex: 1; min-width: 0; }
.sk-t b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.sk-t small { display: block; font-size: 12px; color: var(--slate); line-height: 1.35; margin-top: 2px; }
.sk-t em { display: block; font-style: normal; font-size: 13px; font-weight: 800; margin-top: 4px; }
.sk-t em.ok { color: var(--green); } .sk-t em.late { color: var(--red); }
.sk-step .btn { flex: none; min-width: 72px; min-height: 44px; width: auto; padding: 0 14px; box-shadow: none; }

/* ---------- handover and referral ---------- */
.ad-form { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.ad-part { display: flex; gap: 12px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; }
.ad-l { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--teal-btn); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.ad-b { flex: 1; min-width: 0; }
.ad-b b { display: block; font-size: 15px; font-weight: 900; }
.ad-b small { display: block; font-size: 12.5px; color: var(--slate); line-height: 1.4; margin-top: 2px; }
.ad-b textarea { resize: vertical; font-size: 15px; }

@media print { .q-star, .q-fb, .hm-search { display: none !important; } }

/* ---------- about: the project leader ---------- */
.ab-top { display: flex; align-items: center; gap: 14px; }
.ab-av { width: 62px; height: 62px; flex: none; border-radius: 20px; background: linear-gradient(135deg, var(--navy), var(--teal-btn)); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.ab-lead h3 { font-size: 21px; font-weight: 900; line-height: 1.15; }
.ab-role { font-size: 12px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; color: var(--teal-ink); margin-top: 3px; }
.ab-title { font-size: 14.5px; font-weight: 700; margin-top: 14px; line-height: 1.4; }
.ab-post { font-size: 13px; font-weight: 800; color: var(--slate); margin-top: 6px; letter-spacing: .3px; line-height: 1.5; }
.ab-lines { margin: 12px 0 0; padding-inline-start: 18px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.ab-lines li { margin-bottom: 5px; }
/* Who we are (25 Oct 2026): real photos, round */
img.ab-av { border-radius: 50%; object-fit: cover; background: var(--line, #e5e9f0); }
.ab-av.ini { border-radius: 50%; }
.ab-bio { font-size: 14px; line-height: 1.55; margin-top: 10px; color: var(--ink); }
.ab-rev { margin-bottom: 12px; } .ab-rev h3 { font-size: 18px; font-weight: 900; line-height: 1.2; }
.ab-in { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 800; color: var(--teal-ink); text-decoration: none; }
.ab-in::after { content: " ›"; }

/* ---------- short and full checklist: two downloads on a row; the short list on a bundle ---------- */
.ck-row { align-items: center; }
.ck-dl { display: flex; gap: 6px; flex: none; }
.ck-dl a { display: grid; place-items: center; min-width: 58px; min-height: 44px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 900; background: var(--teal-btn); color: #fff; }
.ck-dl a.full { background: var(--navy-soft); color: var(--navy-ink); }
.bd-quick { margin-top: 12px; }
.bd-q { padding: 9px 10px; border-top: 1px solid var(--line); }
.bd-q:first-of-type { border-top: none; }
.bd-q em { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--slate); }
.bd-q b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.35; }

/* ---------- join free: the card on home and the bar above the tabs (22 Oct 2026) ---------- */
.hm-join { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 12px 12px 14px; margin-bottom: 14px; border: 1.5px solid var(--teal); }
.hm-join div { flex: 1; min-width: 0; } .hm-join b { display: block; font-size: 15px; font-weight: 900; } .hm-join small { display: block; font-size: 12.5px; color: var(--slate); line-height: 1.35; margin-top: 2px; }
.hm-join .btn { width: auto; flex: none; padding: 10px 14px; min-height: 44px; }
.join-bar { position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 696px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 8px); z-index: 25;
  display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lift); padding: 8px 8px 8px 14px; border: 1px solid var(--line); }
.join-bar span { flex: 1; min-width: 0; font-size: 13px; color: var(--slate); line-height: 1.3; } .join-bar b { color: var(--ink); }
.join-bar .btn { width: auto; flex: none; padding: 8px 14px; min-height: 44px; font-size: 14px; }
.join-bar .jb-x { flex: none; width: 44px; height: 44px; border: none; background: none; color: var(--slate); font-size: 22px; cursor: pointer; border-radius: 12px; }
body.has-join .view { padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 96px); }
body.cb-live .join-bar { display: none; }
@media print { .join-bar, .hm-join { display: none !important; } }
.ab-faq details { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 2px 14px; margin-bottom: 8px; }
.ab-faq summary { font-weight: 800; font-size: 15px; cursor: pointer; min-height: 48px; display: flex; align-items: center; }
.ab-faq p { font-size: 14px; color: var(--slate); line-height: 1.5; padding-bottom: 12px; }

/* EM Orbit Pro (25 Oct 2026) */
.pro-chip { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: .8px; padding: 2px 6px; border-radius: 6px; background: linear-gradient(135deg, #f5b301, #e58a00); color: #1b1300; }
.hm-tile { position: relative; }
.pro-card h3 { font-size: 17px; font-weight: 900; margin: 6px 0 4px; }
.pro-card .kicker { color: #b07a00; }

/* Triage (26 Oct 2026) */
.tg-num { background: var(--navy) !important; }
.tg-step { margin-top: 12px; } .tg-step h3 { font-size: 16.5px; font-weight: 900; margin: 6px 0 10px; line-height: 1.3; }
.tg-yn { display: flex; gap: 8px; margin-top: 10px; } .tg-yn .btn { flex: 1; } .tg-yn.three .btn { padding-inline: 6px; }
.tg-more { margin: 4px 0 6px; } .tg-more summary { cursor: pointer; font-weight: 800; color: var(--teal-ink); font-size: 14px; }
.tg-chk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line, #e5e9f0); font-size: 14px; }
.tg-chk input { width: 22px; height: 22px; flex: none; margin-top: 1px; } .tg-chk small { display: block; color: var(--slate); font-size: 12.5px; margin-top: 2px; }
.tg-res { margin-top: 14px; border-radius: 18px; padding: 16px 18px; color: #fff; } .tg-res b { font-size: 22px; font-weight: 900; display: block; } .tg-res p { margin-top: 4px; font-size: 14px; }
.tg-l1 { background: #c62828; color: #fff; } .tg-l2 { background: #e65100; color: #fff; } .tg-l3 { background: #f9a825; color: #1b1300; } .tg-l4 { background: #2e7d32; color: #fff; } .tg-l5 { background: #1565c0; color: #fff; }
.tg-dot { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 900; flex: none; }
.tg-cat { margin-top: 10px; padding: 0; } .tg-cat summary { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.tg-cat summary small { display: block; color: var(--slate); font-size: 12.5px; margin-top: 2px; } .tg-cat .ab-lines, .tg-cat p { padding: 0 16px 14px; margin-top: 0; }
.tg-signs { margin-top: 10px; } .tg-sh { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 4px; }
.tg-red { background: #c62828; color: #fff; } .tg-orange { background: #e65100; color: #fff; } .tg-yellow { background: #f9a825; color: #1b1300; }
.tg-sticky { position: sticky; bottom: calc(var(--tabs-h, 64px) + 10px); z-index: 4; }
.tg-rows { display: flex; flex-direction: column; gap: 10px; } .tg-row { display: flex; gap: 12px; align-items: center; } .tg-row small { display: block; color: var(--slate); font-size: 12.5px; }
.tg-cmp { width: 100%; border-collapse: collapse; font-size: 13px; } .tg-cmp th, .tg-cmp td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line, #e5e9f0); } .tg-cmp tbody th { text-align: left; font-weight: 900; }
