/* EMOD App — emergency drug leaflets. Colours = syringe-label colours (ISO 26825); "-s" = the striped antagonist label. */
.iso-yellow { --iso: #f5d018; } .iso-orange, .iso-orange-s { --iso: #f39a2e; } .iso-red, .iso-red-s { --iso: #f2545b; }
.iso-blue, .iso-blue-s { --iso: #5db4e8; } .iso-violet, .iso-violet-s { --iso: #a17fd0; } .iso-grey { --iso: #a6a9ad; }
.iso-green { --iso: #5dbb6f; } .iso-salmon { --iso: #f4a38a; } .iso-white { --iso: #ffffff; }

/* the label chip: a white syringe label with its coloured band */
.md-lab { display: inline-flex; align-items: stretch; min-width: 54px; height: 26px; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(10, 34, 67, .18); flex: none; }
.md-lab::before { content: ""; width: 12px; background: var(--iso); flex: none; }
.md-lab[class*="-s"]::before { background: repeating-linear-gradient(135deg, var(--iso) 0 4px, #fff 4px 7px); }
.md-lab.iso-white::before { background: repeating-linear-gradient(90deg, #dfe8ec 0 1px, #fff 1px 3px); }
.md-lab b { display: flex; align-items: center; padding: 0 8px; font-size: 10.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; color: #0a2243; white-space: nowrap; }
.md-lab b:empty { padding: 0 6px; }
.md-lab.big { height: 34px; border-radius: 8px; }
.md-lab.big::before { width: 18px; }
.md-lab.big b { font-size: 14px; padding: 0 12px; letter-spacing: .8px; }

/* index: the calculators first (2 Nov 2026, Osama: "an icon to take you to the dose calculator") */
.md-calcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.md-calc { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.md-calc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.md-calc img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.md-calc b { display: block; font-size: 14.5px; font-weight: 900; }
.md-calc small { display: block; font-size: 12px; color: var(--slate); line-height: 1.3; margin-top: 2px; }
.md-calc:first-child { background: linear-gradient(135deg, #0a2243, #0f5f7c 60%, #19838c); color: #fff; }
.md-calc:first-child small { color: rgba(255, 255, 255, .8); }
@media (max-width: 620px) { .md-calcs { grid-template-columns: 1fr; } .md-calc:not(:first-child) img { width: 38px; height: 38px; } }

.md-calc.ad { background: linear-gradient(135deg, #7a1f2b, #b3372f 55%, #ec6f55); color: #fff; }
.md-calc.ad small { color: rgba(255, 255, 255, .85); }
.md-calc.ad img { width: 52px; height: 52px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }

/* antidote finder */
.ad-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 190px; padding: 22px; margin: 6px 0 12px; border-radius: 22px; color: #fff; box-shadow: var(--shadow);
  background: radial-gradient(140% 120% at 0% 0%, #3b0d17 0%, #7a1f2b 38%, #b3372f 66%, #f3b0a0 100%); }
.ad-hero .md-water { -webkit-text-stroke-color: rgba(255, 255, 255, .14); font-size: 96px; }
.ad-hero-t { position: relative; z-index: 2; flex: 1 1 55%; min-width: 0; }
.ad-hero h1 { font-size: 40px; font-weight: 900; text-transform: uppercase; letter-spacing: -.5px; line-height: 1; margin: 10px 0 6px; }
.ad-hero p { font-size: 14px; opacity: .9; max-width: 420px; }
.ad-pics { position: relative; z-index: 1; display: flex; align-items: flex-end; flex: 0 1 auto; padding-left: 30px; }
.ad-pics img { width: 104px; height: 104px; object-fit: contain; margin-left: -34px; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }
.ad-pics img:nth-child(2) { width: 124px; height: 124px; z-index: 2; }
.ad-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: none; }
.ad-chips button { flex: none; border: 0; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 12.5px; font-weight: 800; background: var(--card); color: var(--slate); box-shadow: var(--shadow); cursor: pointer; }
.ad-chips button[aria-pressed="true"] { background: #7a1f2b; color: #fff; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ad-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; border-top: 5px solid #b3372f; }
.ad-card header { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ad-card h3 { font-size: 16.5px; font-weight: 900; }
.ad-g { flex: none; font-size: 10.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; color: #7a1f2b; background: #fbeae8; border-radius: 999px; padding: 3px 8px; max-width: 45%; text-align: right; }
.ad-anti { display: grid; gap: 6px; margin-top: 10px; }
.ad-a { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.ad-a:hover { transform: translateX(3px); }
.ad-a img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.ad-a small { display: block; font-size: 12.5px; color: var(--slate); margin-top: 3px; line-height: 1.35; }
.ad-tip { margin-top: 10px; font-size: 13px; line-height: 1.4; background: var(--navy-ink); color: var(--card); border-left: 5px solid var(--mint); border-radius: 10px; padding: 8px 10px; }
@media (max-width: 620px) { .ad-pics img { width: 76px; height: 76px; margin-left: -26px; } .ad-pics img:nth-child(2) { width: 90px; height: 90px; } .ad-hero h1 { font-size: 30px; } .ad-grid { grid-template-columns: 1fr; } }
html[data-theme="dark"] .ad-tip { background: #e8eef3; color: #0a2243; border-left-color: var(--teal-btn); }
html[data-theme="dark"] .ad-g { background: #3a1c1a; color: #ffb4a8; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .ad-tip { background: #e8eef3; color: #0a2243; border-left-color: var(--teal-btn); } html:not([data-theme="light"]) .ad-g { background: #3a1c1a; color: #ffb4a8; } }
@media (prefers-reduced-motion: no-preference) { .ad-card { animation: md-up .5s cubic-bezier(.2, .8, .2, 1) both; } .ad-pics img { animation: md-float 6s ease-in-out infinite; } .ad-pics img:nth-child(2) { animation-delay: -2s; } .ad-pics img:nth-child(3) { animation-delay: -4s; } }

/* index */
.md-row { gap: 12px; }
.md-row .md-lab { width: 104px; }
.md-row .md-lab b { overflow: hidden; text-overflow: ellipsis; }
.md-row.soon { opacity: .55; pointer-events: none; }
.md-key { margin: 10px 2px 2px; font-size: 13px; }
.md-key summary { cursor: pointer; font-weight: 800; color: var(--teal-ink); }
.md-key div { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; padding: 10px 0 4px; }
.md-key span { display: flex; align-items: center; gap: 8px; color: var(--slate); font-weight: 600; }
.md-key .md-lab { min-width: 34px; height: 20px; }

/* ===== the leaflet (1 Nov 2026 — from the ChatGPT templates Osama chose; he kept the blue "Ocean" look, dropped the green one):
   navy-to-blue header with the bottle picture, slanted navy card titles, coral "dose at a glance" arrow */
.md-tools { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin: 4px 0 10px; flex-wrap: wrap; }
.md-print { font-size: 13px; padding: 9px 14px; }
.md-sheet { --coral: #ec6f55; --gold: #d6a531; --green: #0f4d45; position: relative; overflow: hidden; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); }
.md-main { padding: 0 0 18px; }
.md-pic { position: relative; display: grid; place-items: center; overflow: hidden; }
.md-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(4, 20, 40, .35)); }
.md-pic:has(.md-photo:not([style*="hidden"])) .md-ghost { visibility: hidden; }
.md-ghost { color: rgba(255, 255, 255, .55); }
.md-ghost img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(10, 34, 67, .25)); }
.md-head h1 { font-size: 46px; font-weight: 900; letter-spacing: -.5px; line-height: 1; text-transform: uppercase; margin: 10px 0 2px; }
.md-aka { font-size: 13.5px; font-weight: 700; opacity: .85; }
.md-meta { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 12px 0 0; }
.md-meta div { display: flex; gap: 5px; padding: 0 12px; border-left: 1.5px solid currentColor; font-size: 13px; line-height: 1.35; }
.md-meta div:first-child { padding-left: 0; border-left: 0; }
.md-meta dt { font-weight: 900; } .md-meta dt::after { content: ":"; }
.md-meta dd { margin: 0; }
.md-meta .pr-dose, .md-strip .pr-dose { display: inline; background: none; box-shadow: none; padding: 0; color: inherit; font-weight: 800; }
.md-glance { display: grid; grid-template-columns: auto auto 1fr; align-items: center; margin: 18px 18px 6px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); }
.md-gi { display: grid; place-items: center; padding: 0 4px 0 18px; align-self: stretch; }
.md-gi img { width: 56px; height: 56px; }
.md-ic img { width: 100%; height: 100%; object-fit: contain; }
.md-gl span { display: block; font-size: 17px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; line-height: 1.1; max-width: 140px; }
.md-gd { padding: 14px 20px; text-align: center; }
.md-gtag { display: none; }
.md-gd b { display: block; font-size: 25px; font-weight: 900; line-height: 1.2; color: var(--navy-ink); }
.md-gd b .pr-dose { font-size: 25px; display: inline; }
.md-gd small { display: block; font-size: 13px; color: var(--slate); margin-top: 4px; line-height: 1.4; }
.md-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 12px 18px 4px; align-items: start; }
.md-card { border-radius: 16px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.md-card header { display: flex; align-items: center; gap: 0; }
.md-card h2 { font-size: 17px; font-weight: 900; }
.md-ic { display: grid; place-items: center; flex: none; }
.md-body { padding: 10px 16px 14px; font-size: 14px; line-height: 1.45; }
.md-body ul { list-style: none; margin: 0; padding: 0; }
.md-body li { position: relative; padding: 3px 0 3px 18px; }
.md-body li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.md-card.t-no li::before { background: var(--coral); }
.md-card.t-mech li::before { background: var(--gold); }
.md-body li small { color: var(--slate); font-weight: 700; font-size: 12px; margin-left: 4px; }
.md-body .pr-dose { display: inline; }
.md-dl { padding: 8px 0; border-top: 1px dashed var(--line); }
.md-dl:first-child { border-top: 0; padding-top: 2px; }
.md-dt { font-size: 14.5px; font-weight: 900; }
.md-r { font-size: 10.5px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; color: var(--teal-ink); background: var(--teal-soft); border-radius: 999px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }
.md-dd { font-size: 16px; font-weight: 800; margin-top: 4px; }
.md-dh { font-size: 13px; color: var(--slate); margin-top: 2px; }
.md-cp { display: inline-block; font-size: 11.5px; font-weight: 900; color: var(--teal-ink); margin-top: 4px; }
.md-inf { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--teal-ink); margin: 4px 10px 0 0; }
.md-kg { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 10px; border-radius: 12px; background: var(--teal-soft); font-size: 13px; font-weight: 800; }
.md-kg input { flex: 1; min-width: 0; max-width: 120px; padding: 8px 10px; font-size: 16px; }
.md-kg em { font-style: normal; color: var(--slate); }
.md-fx { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.md-fx1 { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--navy-soft); font-size: 12.5px; font-weight: 800; }
.md-fx1 b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--navy-ink); color: var(--card); }
.md-fx1.down b { background: var(--teal-btn); color: #fff; } .md-fx1.open b { background: var(--teal-soft); color: var(--teal-ink); }
.md-pearls { list-style: none; counter-reset: p; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.md-pearls li { counter-increment: p; position: relative; padding: 2px 0 2px 30px; }
.md-sheet .md-body .md-pearls li::before { content: counter(p); position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 900; font-size: 11.5px; display: grid; place-items: center; }
.md-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 18px 0; border-radius: 18px; overflow: hidden; }
.md-strip div { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; padding: 12px 12px; border-left: 1.5px solid var(--line); }
.md-strip div:first-child { border-left: 0; }
.md-strip .md-ic { grid-row: span 2; width: 38px; height: 38px; }
.md-strip dt { font-size: 13.5px; font-weight: 900; }
.md-strip dd { margin: 0; font-size: 12.5px; color: var(--slate); line-height: 1.35; }
.md-src { font-size: 12px; color: var(--muted); margin: 12px 20px 0; line-height: 1.5; }

/* wide screens: the leaflet leaves the 720-px app column and reads like an A4 sheet */
@media (min-width: 1040px) {
  .md-sheet, .md-tools { width: min(1000px, calc(100vw - 64px)); position: relative; left: 50%; transform: translateX(-50%); }
}

/* --- Ocean --- */
.look-ocean .md-head { position: relative; min-height: 300px; padding: 26px 24px 26px; color: #fff; overflow: hidden;
  background: radial-gradient(140% 120% at 0% 0%, #0a2243 0%, #0f4f72 38%, #1a7fa0 62%, #bfe3f0 100%); }
.look-ocean .md-head::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--card) 22%, transparent); }
.md-head { position: relative; overflow: hidden; }
.md-head > :not(.md-pic):not(.md-water):not(.md-sweep) { position: relative; z-index: 2; }
.look-ocean .md-head > :not(.md-pic):not(.md-water):not(.md-sweep) { max-width: 62%; }
.look-ocean .md-head h1::before { content: ""; display: inline-block; width: 11px; height: 38px; margin-right: 14px; background: var(--coral); border-radius: 6px; transform: skewX(-24deg); vertical-align: -2px; }
.look-ocean .md-pic2 { position: absolute; right: 1%; top: 2%; bottom: 2%; width: 42%; z-index: 1; }
.look-ocean .md-glance .md-gi, .look-ocean .md-glance .md-gl { background: linear-gradient(120deg, #f08a6c, var(--coral)); color: #fff; }
.look-ocean .md-glance .md-gl { padding: 16px 34px 16px 10px; align-self: stretch; display: flex; align-items: center; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.look-ocean .md-card { border: 1px solid color-mix(in srgb, var(--teal) 14%, transparent); }
.look-ocean .md-card header { padding: 12px 12px 0 10px; }
.look-ocean .md-card .md-ic { width: 52px; height: 52px; padding: 5px; border-radius: 16px 16px 16px 5px; background: linear-gradient(160deg, #ffffff, #e6f3f4); box-shadow: inset 0 0 0 1px rgba(10, 34, 67, .06), 0 4px 10px rgba(10, 34, 67, .1); position: relative; z-index: 1; }
.look-ocean .md-card h2 { flex: 1; color: #fff; background: #123c5e; padding: 9px 30px 9px 22px; margin-left: -10px; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); border-radius: 0 0 0 6px; }
.look-ocean .md-strip { border: 2px solid color-mix(in srgb, var(--teal) 45%, transparent); background: color-mix(in srgb, var(--teal-soft) 45%, var(--card)); }

/* --- tablets: their own look (1 Nov 2026, Osama: "we had other style for the tablet") — teal-to-mint header with a
   blister-pack pattern, capsule-shaped titles (half navy, half teal, like our dose icon), pill bullets, a capsule "dose at a glance" --- */
.kind-tablet .md-head { background:
    radial-gradient(circle at 16px 16px, rgba(255, 255, 255, .10) 9px, rgba(255, 255, 255, .04) 10px, transparent 11px) 0 0 / 34px 34px,
    linear-gradient(135deg, #0b3f4a 0%, #0f6f6a 40%, #2bb5a6 72%, #c9f1e8 100%); }
.kind-tablet .md-head::after { background: color-mix(in srgb, var(--card) 26%, transparent); }
.kind-tablet .md-head h1::before { width: 30px; height: 30px; border-radius: 50%; transform: none; vertical-align: 2px; background: radial-gradient(circle at 35% 30%, #fff 0 20%, #f3f6f7 21% 100%); box-shadow: inset 0 -3px 0 rgba(10, 34, 67, .12), 0 3px 8px rgba(0, 0, 0, .25); }
.kind-tablet .md-glance { border-radius: 999px; }
.kind-tablet .md-glance .md-gi, .kind-tablet .md-glance .md-gl { background: linear-gradient(120deg, #0f6f6a, #1a98a3); }
.kind-tablet .md-glance .md-gl { clip-path: none; border-radius: 0 999px 999px 0; padding-right: 26px; margin-right: 6px; }
.kind-tablet .md-glance .md-gi { border-radius: 999px 0 0 999px; padding-left: 22px; }
.kind-tablet .md-card { border-radius: 26px; border-color: color-mix(in srgb, #2bb5a6 22%, transparent); }
.kind-tablet .md-card header { padding: 12px 12px 2px; }
.kind-tablet .md-card .md-ic { border-radius: 50%; }
.kind-tablet .md-card h2 { clip-path: none; border-radius: 999px; margin-left: 8px; padding: 9px 60px 9px 22px; background: linear-gradient(90deg, #123c5e calc(100% - 46px), #1a98a3 calc(100% - 46px)); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .18); }
.kind-tablet .md-card.t-no h2 { background: linear-gradient(90deg, #123c5e calc(100% - 46px), #ec6f55 calc(100% - 46px)); }
.kind-tablet .md-card.t-mech h2 { background: linear-gradient(90deg, #123c5e calc(100% - 46px), #d6a531 calc(100% - 46px)); }
.kind-tablet .md-body li::before { width: 13px; height: 7px; border-radius: 999px; top: 11px; left: 0; background: linear-gradient(90deg, #123c5e 0 50%, #2bb5a6 50% 100%); }
.kind-tablet .md-card.t-no .md-body li::before { background: linear-gradient(90deg, #123c5e 0 50%, #ec6f55 50% 100%); }
.kind-tablet .md-strip { border-radius: 999px; border-color: color-mix(in srgb, #2bb5a6 50%, transparent); }
.kind-tablet .md-strip div:first-child { padding-left: 24px; }
.kind-tablet .md-route, .kind-tablet .md-r { border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) {
  .kind-tablet .md-head { animation: md-blister 26s linear infinite; }
  .kind-tablet .md-head h1::before { animation: md-roll 1.1s .2s cubic-bezier(.3, 1.4, .5, 1) both; }
  .kind-tablet .md-glance .md-gl { animation: none; }
  .kind-tablet .md-photo { animation: md-drift 9s ease-in-out infinite alternate; }
}
@keyframes md-blister { to { background-position: 34px 34px, 0 0; } }
@keyframes md-roll { from { opacity: 0; transform: translateX(-60px) rotate(-360deg); } to { opacity: 1; transform: none; } }

/* --- phones --- */
@media (max-width: 720px) {
  .md-grid { grid-template-columns: 1fr; padding: 12px 12px 4px; }
  .md-glance { margin: 14px 12px 4px; grid-template-columns: auto 1fr; }
  .look-ocean .md-glance .md-gl { display: none; }
  .md-gd { text-align: left; padding: 12px 14px; } .md-gd b, .md-gd b .pr-dose { font-size: 20px; }
  .md-gtag { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }
  .md-head h1 { font-size: 34px; }
  .look-ocean .md-head > :not(.md-pic):not(.md-water):not(.md-sweep) { max-width: 100%; }
  .md-water { font-size: 72px; }
  .look-ocean .md-head { padding-bottom: 150px; }
  .look-ocean .md-pic2 { top: auto; bottom: 8px; right: 0; left: 0; height: 150px; width: 100%; }
  .md-meta { display: grid; gap: 4px; } .md-meta div { border-left: 0; padding: 0; }
  .md-strip { grid-template-columns: 1fr 1fr; margin: 12px 12px 0; }
  .kind-tablet .md-strip { border-radius: 26px; } .kind-tablet .md-glance { border-radius: 26px; }
  .md-strip div { border-left: 0; border-top: 1.5px solid var(--line); }
  .md-strip div:nth-child(-n+2) { border-top: 0; }
}

/* the worked-out child dose, the age table, the "Never" alert */
.md-mine { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--navy-ink); color: var(--card); border-left: 6px solid var(--mint); }
.md-mine span { width: 100%; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; opacity: .8; }
.md-mine b { font-size: 21px; font-weight: 900; color: var(--mint); }
.md-mine em { font-style: normal; font-size: 14px; font-weight: 700; }
.md-mine em.md-cap { font-size: 12px; opacity: .85; width: 100%; }
.md-bands { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.md-bands th { text-align: start; font-size: 10.5px; text-transform: uppercase; color: var(--slate); padding: 5px 6px; border-bottom: 2px solid var(--line); }
.md-bands td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-alert { background: var(--navy-ink); color: var(--card); border-left: 6px solid var(--mint); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.md-alert .pr-dose { background: transparent; box-shadow: none; color: var(--mint); }

/* --- dark mode (both switches) --- */
html[data-theme="dark"] .look-ocean .md-card .md-ic { background: linear-gradient(160deg, #1b2a38, #0c2646); }
html[data-theme="dark"] .md-mine, html[data-theme="dark"] .md-alert { background: #e8eef3; color: #0a2243; border-left-color: var(--teal-btn); }
html[data-theme="dark"] .md-mine b, html[data-theme="dark"] .md-alert .pr-dose { color: #0f5f7c; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .look-ocean .md-card .md-ic { background: linear-gradient(160deg, #1b2a38, #0c2646); }
  html:not([data-theme="light"]) .md-mine, html:not([data-theme="light"]) .md-alert { background: #e8eef3; color: #0a2243; border-left-color: var(--teal-btn); }
  html:not([data-theme="light"]) .md-mine b, html:not([data-theme="light"]) .md-alert .pr-dose { color: #0f5f7c; }
}

/* --- motion (1 Nov 2026, Osama: "can we have motion on it") --- */
.md-water { position: absolute; right: -2%; bottom: -14px; z-index: 0; font-size: 120px; font-weight: 900; letter-spacing: -3px; text-transform: uppercase; line-height: 1; white-space: nowrap; pointer-events: none; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .16); }
.md-sweep { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); }
@media (prefers-reduced-motion: no-preference) {
  .look-ocean .md-photo { animation: md-drift 9s ease-in-out infinite alternate; }
  .md-sweep { animation: md-sweep 1.6s .5s ease-out both; }
  .md-water { animation: md-water 1.2s .15s cubic-bezier(.2, .8, .2, 1) both; }
  .md-head h1, .md-head .md-lab, .md-head .md-aka, .md-meta { animation: md-in .7s cubic-bezier(.2, .8, .2, 1) both; }
  .md-head .md-lab { animation-delay: .05s; } .md-head h1 { animation-delay: .12s; } .md-head .md-aka { animation-delay: .2s; } .md-meta { animation-delay: .28s; }
  .md-glance { animation: md-up .7s .35s cubic-bezier(.2, .8, .2, 1) both; }
  .md-gi svg, .md-gi img { animation: md-pop .8s .6s cubic-bezier(.3, 1.6, .5, 1) both; }
  .look-ocean .md-glance .md-gl { animation: md-nudge 2.8s 1.6s ease-in-out infinite; }
  .md-rv { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .6s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
  .md-rv.in { opacity: 1; transform: none; }
  .md-card .md-ic, .md-strip .md-ic { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
  .md-card:hover .md-ic, .md-strip div:hover .md-ic { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
  .md-card { transition: box-shadow .25s ease; } .md-card:hover { box-shadow: var(--shadow-lift); }
  .md-rv.in .md-ic img { animation: md-pop .7s calc(var(--d, 0ms) + .15s) cubic-bezier(.3, 1.6, .5, 1) both; }
  .md-mine { animation: md-pop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
  .md-fx1 b { animation: md-bob 2.4s ease-in-out infinite; } .md-fx1:nth-child(2) b { animation-delay: .3s; } .md-fx1:nth-child(3) b { animation-delay: .6s; } .md-fx1:nth-child(4) b { animation-delay: .9s; }
}
@keyframes md-drift { from { transform: translateY(6px) rotate(-1.5deg); } to { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes md-sweep { to { transform: translateX(120%); } }
@keyframes md-water { from { opacity: 0; transform: translateX(8%); } to { opacity: 1; transform: none; } }
@keyframes md-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes md-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes md-pop { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes md-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(5px); } }
@keyframes md-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes md-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* --- print: one A4 page, colours kept --- */
@media print {
  @page { size: A4; margin: 8mm; }
  .md-tools, .md-kg, .back, .pr-disc, .md-sweep { display: none !important; } .md-rv { opacity: 1 !important; transform: none !important; }
  .md-sheet { box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .md-card { break-inside: avoid; box-shadow: none; }
}
