/* Medicine Path additions (loaded after media-path.css). Shared Unizon setup, plus the Medicine accent below. */
.drawzone{position:relative;}
.drawzone svg{display:block;width:100%;height:auto;}
.zkey{display:inline-block;width:11px;height:11px;border-radius:3px;border:1px solid var(--ink);vertical-align:-1px;margin-right:4px;}
.mini-t{font-size:8.6pt;}
.mini-t td,.mini-t th{padding:3px 5px!important;}
.sym{font-family:'DMMono';font-weight:500;}
@media screen and (max-width:640px){.calc{white-space:normal;}}

/* ---- Contrast fixes carried over from the Hockey Path (Oct 10, 2026): every text colour pair at 4.5:1 or better ---- */
:root{--muted:#5E5A72;}                                   /* was #6E6A80 (4.35:1 on violet tint) */
.brick .eg{color:#B23A1E;}                                /* coral #FF5B3A on white was 3.1:1 */
.qn[style*="--coral"],.qtype[style*="--coral"],.mono[style*="color:var(--coral)"]{color:#C2381B!important;}
.qn[style*="#7FA313"],.qtype[style*="#6C8F12"]{color:#4E6E00!important;}
.qn[style*="#E0A100"],.qtype[style*="#B88400"]{color:#8A5F00!important;}
.fp-step .badge.c2{color:var(--ink);}                     /* white on coral was 3.1:1 */
.plan h4 .i:not([style]){color:var(--ink);}  /* white on coral was 3.1:1 */
[style*="background:var(--lens);color:#fff"]{color:var(--lens-on)!important;}   /* route stops */
[style*="background:#7FA313;color:#fff"],[style*="background:var(--coral);color:#fff"]{color:var(--ink)!important;}

/* ---- Medicine Path accent (Oct 11, 2026): "pulse + care". Clinic teal and a coral heartbeat on ink.
   A heartbeat (ECG) line across the cover band, a rounded header dot, a teal/coral footer rule and a dbox with a "+" tag.
   No red-cross shapes (the Red Cross emblem is protected in Canada). Text on light uses --md-ink (about 9:1 on white). ---- */
:root{--md:#0E7C86;--md-ink:#0B4F57;--md-t:#E4F3F4;--mda:#E8546B;--en-ink:var(--md-ink);}
.cover .band{background:linear-gradient(180deg,rgba(40,170,180,.18),rgba(40,170,180,0) 70%),var(--ink);}
.cover .band::after{content:"";position:absolute;left:6%;right:6%;bottom:10px;height:16px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='16' viewBox='0 0 80 16'%3E%3Cpath d='M0 8 H28 L32 2 L37 14 L41 4 L44 8 H80' fill='none' stroke='%23E8546B' stroke-width='2'/%3E%3C/svg%3E") repeat-x;}
.hdr .dot:not([style]){background:var(--md);border-radius:50% 50% 50% 0;}
.ftr{border-top:3px solid var(--md-ink);box-shadow:0 -5px 0 -3px var(--mda);}
.dbox{background:var(--md-t);border:2px solid var(--ink);border-top:6px solid var(--md-ink);border-radius:4px;}
.dbox .tag{background:#fff;color:var(--ink);border:1.5px solid var(--ink);border-radius:3px;}
.dbox .tag::before{content:"+ ";color:var(--md-ink);font-weight:700;}
code.code{padding:0 4px;font-size:.92em;}
.views{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px;}
.views div{border:1.5px solid var(--ink);border-radius:6px;padding:6px 8px;background:#fff;font-size:8.4pt;line-height:1.35;}
.views b{display:block;font-family:'DMMono';font-size:7.4pt;letter-spacing:.08em;text-transform:uppercase;color:var(--en-ink);margin-bottom:2px;}
.safebox{background:#FFF4D6;border:2.5px solid var(--ink);border-left:10px solid #B3261E;}
.safebox .tag{background:#B3261E;color:#fff;}
.kb{display:block;width:100%;height:auto;margin:4px 0;}
.ledger td.num,.ledger th.num{text-align:right;font-family:'DMMono';}
.ledger tr.tot td{border-top:1.5px solid var(--ink);border-bottom:4px double var(--ink);font-weight:600;}
.grid-plot{display:grid;gap:2px;margin:4px 0;}
.grid-plot span{aspect-ratio:1;border:1.5px solid var(--ink);border-radius:3px;background:#fff;font-family:'DMMono';font-size:7pt;display:flex;align-items:center;justify-content:center;color:var(--ink);}

/* Lens inks darkened for AA contrast on their tints */
.lens-8{--lens-ink:#4A6E00;}
.lens-7{--lens-ink:#006A63;}
