/* EMOD App — clinical protocols */
.pr-disc { background: var(--amber-soft); border-radius: 14px; padding: 11px 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink); margin: 12px 0; border-left: 4px solid var(--amber); }
.pr-disc b { color: var(--amber); }
.pr-ch { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin: 12px 0; overflow: hidden; }
.pr-ch summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.pr-ch summary::-webkit-details-marker { display: none; }
.pr-ch summary::after { content: "›"; margin-left: auto; font-size: 22px; color: var(--muted); transition: transform .2s; }
.pr-ch[open] summary::after { transform: rotate(90deg); }
.pr-ch .list { padding: 0 10px 12px; }
.pr-ch .txt b { display: block; font-size: 15px; font-weight: 800; }
.pr-ch .txt small { color: var(--slate); font-size: 12.5px; }
.pr-chn { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.pr-row { box-shadow: none; border: 1px solid var(--line); }
.pr-code { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; font-weight: 900; font-size: 13px; font-variant-numeric: tabular-nums; background: var(--teal-soft); color: var(--teal-ink); }
.pr-row .txt b { white-space: normal; font-size: 14px; }
.pr-seg { margin: 4px 0 12px; }
.seg { display: flex; background: var(--navy-soft); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; border: none; background: none; font-weight: 800; font-size: 13.5px; color: var(--slate); padding: 10px 6px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--card); color: var(--navy-ink); box-shadow: 0 1px 3px rgba(18, 60, 99, .14); }
.pr-alg { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lift); padding: 8px; cursor: zoom-in; }
.pr-alg img { width: 100%; height: auto; border-radius: 10px; }
.pr-alg figcaption { text-align: center; font-size: 12px; color: #5b6b7c; font-weight: 700; padding: 6px 0 2px; }
.pr-toc { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; position: sticky; top: 58px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.pr-toc::-webkit-scrollbar { display: none; }
.pr-toc a { flex: none; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--navy-ink); white-space: nowrap; }
.pr-sec, .pr-att { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 12px 0; scroll-margin-top: 110px; font-size: 15px; line-height: 1.55; }
.pr-sec h2, .pr-att h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; color: var(--navy-ink); margin-bottom: 8px; }
.pr-sec h2 span, .pr-att h2 span { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; background: var(--navy); color: #fff; flex: none; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .pr-sec h2, html:not([data-theme="light"]) .pr-att h2, html:not([data-theme="light"]) .pr-h { color: #dbe9f5 !important; } }
html[data-theme="dark"] .pr-sec h2, html[data-theme="dark"] .pr-att h2, html[data-theme="dark"] .pr-h { color: #dbe9f5 !important; }

.pr-ol { list-style: none; padding: 0; margin: 0; }
.pr-ol.d1, .pr-ol.d2, .pr-ol.d3 { padding-left: 14px; border-left: 2px solid var(--line); margin: 4px 0 6px 4px; }
.pr-ol li { margin: 0 0 6px; }
.pr-ol li.hd > p { margin-top: 8px; }
.pr-ol p { margin: 0 0 4px; }
.pr-n { display: inline-block; min-width: 36px; font-weight: 900; font-size: 12px; color: var(--teal-ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.pr-h { color: var(--navy-ink); }
.pr-ul { padding-left: 20px; margin: 4px 0 8px; }
.pr-ul li { margin-bottom: 4px; }
.pr-note, .pr-intro, .pr-ptr { font-style: italic; color: var(--slate); font-size: 14px; }
.pr-ptr a { color: var(--teal-ink); font-weight: 800; }
.pr-xref { color: var(--teal-ink); font-weight: 800; }
.pr-table { margin: 8px 0 12px; }
.pr-table figcaption { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.pr-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 10px; }
.pr-table table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 460px; }
.pr-table th, .pr-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.pr-table th { background: var(--navy-soft); font-weight: 800; }
.pr-table td.c { text-align: center; }
.pr-after, .pr-foot { font-size: 12.5px; color: var(--slate); margin-top: 6px; }
.pr-refs { padding-left: 22px; font-size: 13px; color: var(--slate); }
.pr-refs li { margin-bottom: 5px; }
.pr-print-foot { display: none; }
@media print {
  .top, .tabs, .back, .seg, .pr-toc, .bd-act, .flip, .sheet, .lightbox, .pr-disc.at-bottom { display: none !important; }
  body::before { display: none !important; }
  body, #app, .view { background: #fff !important; color: #000 !important; padding: 0 !important; }
  .pr-sec, .pr-att, .pr-alg { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid-page; }
  .pr-sec h2 span, .pr-att h2 span { background: #000 !important; }
  .pr-table { break-inside: avoid; }
  /* the disclaimer on EVERY printed page: a fixed element repeats on each page */
  .pr-print-foot { display: block; position: fixed; bottom: 0; left: 0; right: 0; font-size: 8.5pt; line-height: 1.3; color: #333; border-top: 1px solid #999; padding-top: 3pt; background: #fff; }
  @page { margin: 14mm 12mm 22mm; }
  body.print-summary .dose-title, body.print-summary .dose-meta, body.print-summary .pr-disc, body.print-summary p.small { display: none !important; }
  body.print-summary .pr-alg { border: none; padding: 0; }
  body.print-summary .pr-alg figcaption { display: none; }
  body.print-summary .pr-alg img { max-height: 250mm; width: auto; margin: 0 auto; }
}
/* phone: nested numbering indents less, and tables break out of the indentation to use the full card width */
@media (max-width: 560px) {
  .pr-ol.d1, .pr-ol.d2, .pr-ol.d3 { padding-left: 8px; margin-left: 2px; }
  .pr-ol .pr-table { margin-left: -12px; margin-right: -4px; }
  .pr-ol.d2 .pr-table, .pr-ol.d3 .pr-table { margin-left: -24px; }
  .pr-table table { font-size: 12.5px; min-width: 420px; }
  .pr-sec, .pr-att { padding: 14px 12px; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pr-toc a { color: #dbe9f5; }
  html:not([data-theme="light"]) .pr-alg { background: #fff; }
}
html[data-theme="dark"] .pr-toc a { color: #dbe9f5; }
  html[data-theme="dark"] .pr-alg { background: #fff; }

