/* ============================================================================
   renalcarematters.com — classes for the 15 new handouts (December 1, 2026)
   Partial (not rendered). Linked AFTER _companion-style.css by:
     wgmr-sick-day-medicine-card, wgmr-emergency-red-flag-card,
     wgmr-medication-list-wallet-card, wgmr-fluid-weight-log-dialysis,
     wgmr-av-fistula-graft-self-care, wgmr-pd-exchange-exit-site-log,
     wgmr-home-bp-weight-log, wgmr-hyperkalemia-filipino-food-swaps,
     wgmr-contrast-nsaid-alert-card, wgmr-travel-transient-dialysis-checklist,
     wgmr-philhealth-dialysis-transplant-benefits, wgmr-pre-transplant-workup-checklist,
     wgmr-kidney-stone-prevention, wgmr-pregnancy-and-ckd,
     wgmr-herbal-supplement-safety-card
   Patient body text is 11 pt (rule: body text >= 11 pt in patient handouts).
   Wallet/fold cards are the one documented exception (9-9.5 pt on the card
   itself); every card's content is also printed full size on the same page.
   Candidates to merge into _companion-style.css later: every .nh-* class.
   ========================================================================== */

body.nh{font-size:11pt;}
.nh .sec{padding:1.5mm 14mm 0;}
.nh .sec-title{font-size:13pt;}
.nh .hero-title{font-size:19pt;}
.nh .hero{padding:5px 14mm;}
.nh .hero-sub{font-size:10.5pt;}
.nh .kn-num{font-size:14pt;}
.nh .kn-label{font-size:9pt;}
.nh .doc-ftr{font-size:7.5pt;}
.nh .doc-ftr .url{font-size:8pt;}
.nh .page-hdr-title{font-size:13pt;}
.nh .page-hdr-sub{font-size:9pt;}
.nh .rcm-line{font-size:9pt;}
.nh .rcm-h{font-size:10.5pt;}
.nh .rcm-reviewed{font-size:8.5pt;}
.nh .rcm-refs li{font-size:7pt;line-height:1.25;}
.nh .rcm-refs .rcm-refs-h{font-size:8.5pt;}
.nh .rcm-qr-cap{font-size:7pt;}

/* ---------- running text ---------- */
.nh-p{font-size:11pt;line-height:1.4;color:#1f2937;margin:1.2mm 0;}
.nh-small{font-size:9.5pt;line-height:1.35;color:#374151;margin:1mm 0;}
.nh-lead{font-size:11.5pt;line-height:1.4;color:#0f1e2e;font-weight:600;margin:1.5mm 0;}
.nh-ul{margin:1mm 0 1mm 6mm;padding:0;font-size:11pt;line-height:1.4;color:#1f2937;}
.nh-ul li{margin:0 0 .8mm;break-inside:avoid;page-break-inside:avoid;}
.nh-ol{margin:1mm 0 1mm 7mm;padding:0;font-size:11pt;line-height:1.4;color:#1f2937;}
.nh-ol li{margin:0 0 1mm;break-inside:avoid;}
.nh-ul.cols-2,.nh-ol.cols-2{column-count:2;column-gap:7mm;}
.nh b,.nh strong{color:#0f1e2e;}

/* ---------- callout boxes ---------- */
.nh-box{border-radius:2mm;padding:2mm 3.5mm;margin:1.5mm 0;font-size:11pt;line-height:1.4;break-inside:avoid;page-break-inside:avoid;border:1px solid #cbd5e1;background:#f8fafc;color:#1f2937;}
.nh-box .nh-bh{font-weight:800;font-size:11.5pt;margin-bottom:.8mm;color:#0f1e2e;}
.nh-box.red{background:#fff5f5;border-color:#fca5a5;}
.nh-box.red .nh-bh{color:#991b1b;}
.nh-box.amber{background:#fffbeb;border-color:#fcd34d;}
.nh-box.amber .nh-bh{color:#92400e;}
.nh-box.green{background:#f0fdf4;border-color:#86efac;}
.nh-box.green .nh-bh{color:#166534;}
.nh-box.teal{background:#eef6f7;border-color:#9fc5c9;}
.nh-box.teal .nh-bh{color:#0f4f55;}
.nh-box.blue{background:#eff6ff;border-color:#93c5fd;}
.nh-box.blue .nh-bh{color:#1e3a8a;}
.nh-box p{margin:.6mm 0;}
.nh-box ul{margin:.5mm 0 .5mm 5mm;padding:0;}
.nh-box li{margin:0 0 .5mm;}

/* two boxes side by side (table so WeasyPrint keeps heights equal) */
.nh-2up{width:100%;border-collapse:separate;border-spacing:3mm 0;margin:0 -3mm;}
.nh-2up > tbody > tr > td{width:50%;vertical-align:top;padding:0;}
.nh-3up{width:100%;border-collapse:separate;border-spacing:2.5mm 0;margin:0 -2.5mm;}
.nh-3up > tbody > tr > td{width:33.3%;vertical-align:top;padding:0;}

/* ---------- data / log tables ---------- */
.nh-tbl{width:100%;table-layout:fixed;border-collapse:collapse;margin:1.5mm 0;font-size:10.5pt;line-height:1.28;}
.nh-tbl th{background:#13315a;color:#fff;font-weight:700;font-size:9.5pt;padding:1.4mm 1.5mm;text-align:left;vertical-align:bottom;border:0.6pt solid #13315a;}
.nh-tbl td{border:0.6pt solid #b8c2d0;padding:.7mm 1.5mm;vertical-align:middle;color:#1f2937;}
.nh-tbl tr{break-inside:avoid;page-break-inside:avoid;}
.nh-tbl tr.alt td{background:#f6f8fb;}
.nh-tbl td.c,.nh-tbl th.c{text-align:center;}
.nh-tbl td.c{white-space:nowrap;}
.nh-tbl td.lbl{font-weight:700;color:#0f1e2e;background:#f1f5f9;}
.nh-tbl.log td{height:8.2mm;padding:0 1mm;}
.nh-tbl.log input.rcm-in{height:6.4mm;font-size:10pt;border-bottom:none;}
.nh-tbl.low{font-size:10.5pt;}
.nh-tbl .ok{color:#166534;font-weight:700;}
.nh-tbl .warn{color:#b91c1c;font-weight:700;}
.nh-tbl td.g{background:#f0fdf4;}
.nh-tbl td.r{background:#fff5f5;}

/* fillable lines outside tables */
.nh input.rcm-in{font-size:10.5pt;height:6mm;}
.nh input.rcm-chk{display:inline-block;vertical-align:middle;}
.nh-field{font-size:11pt;color:#1f2937;margin:1.2mm 0;}
.nh-field table{width:100%;border-collapse:collapse;}
.nh-field td{vertical-align:bottom;padding:0 1.5mm 0 0;white-space:nowrap;}
.nh-field td.fill{width:100%;white-space:normal;}
.nh-chk{font-size:11pt;line-height:1.5;margin:.6mm 0;break-inside:avoid;}
.nh-chk input.rcm-chk{margin-right:2mm;}
.nh-chklist{margin:1mm 0;padding:0;list-style:none;}
.nh-chklist li{font-size:11pt;line-height:1.4;margin:0 0 1.2mm;padding-left:7mm;text-indent:-7mm;break-inside:avoid;}
.nh-chklist li input.rcm-chk{margin-right:3mm;vertical-align:-0.5mm;}
.nh-chklist.cols-2{column-count:2;column-gap:7mm;}

/* ---------- cut-out / fold wallet cards ---------- */
.nh-cutnote{font-size:9pt;color:#4b5563;margin:1mm 0;}
.nh-cardrow{width:100%;border-collapse:separate;border-spacing:0;margin:2mm 0;}
.nh-cardrow td{vertical-align:top;padding:0;}
.nh-card{width:86mm;height:54mm;border:0.8pt dashed #6b7280;border-radius:3mm;padding:2.6mm 3mm;overflow:hidden;font-size:9pt;line-height:1.28;color:#0f1e2e;background:#fff;}
.nh-card.fold-l{border-right:0.8pt dotted #9ca3af;border-top-right-radius:0;border-bottom-right-radius:0;}
.nh-card.fold-r{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0;}
.nh-card .ct{font-size:10.5pt;font-weight:800;color:#13315a;margin-bottom:1mm;}
.nh-card .ct.red{color:#b91c1c;}
.nh-card ul{margin:0 0 0 3.6mm;padding:0;}
.nh-card li{margin:0 0 .4mm;}
.nh-card .cf{font-size:7.5pt;color:#4b5563;margin-top:.8mm;}
.nh-card input.rcm-in{font-size:8.5pt;height:4.6mm;}
.nh-card .band{background:#b91c1c;color:#fff;font-weight:800;font-size:9pt;padding:.8mm 2mm;border-radius:1.5mm;margin-bottom:1mm;}
.nh-card .band.teal{background:#1a6b72;}
.nh-card .band.navy{background:#13315a;}
.nh-card .band.amber{background:#b45309;}
.nh-gap{width:6mm;}
.nh-foldtip{font-size:8.5pt;color:#6b7280;text-align:center;margin-top:.5mm;}

/* ---------- multilingual blocks (EN / TL / CEB / KAP) ---------- */
.nh-lang{width:100%;border-collapse:separate;border-spacing:2.5mm 1.5mm;margin:0 -2.5mm;}
.nh-lang td{width:50%;vertical-align:top;border:1px solid #cbd5e1;border-radius:2mm;padding:2mm 3mm;font-size:11pt;line-height:1.35;background:#fff;}
.nh-lang .lh{display:inline-block;background:#13315a;color:#fff;font-size:8pt;font-weight:800;letter-spacing:.06em;padding:.4mm 2mm;border-radius:1mm;margin-bottom:1mm;}
.nh-lang ul{margin:.5mm 0 0 4.5mm;padding:0;}
.nh-lang li{margin:0 0 .6mm;}

/* ---------- food swap grid ---------- */
.nh-swap{width:100%;table-layout:fixed;border-collapse:collapse;margin:1.5mm 0;font-size:10.5pt;}
.nh-swap th{font-size:9.5pt;padding:1.2mm 2mm;text-align:left;color:#fff;}
.nh-swap th.hi{background:#b91c1c;}
.nh-swap th.lo{background:#166534;}
.nh-swap th.cat{background:#13315a;}
.nh-swap td{padding:1.2mm 2mm;border-bottom:0.6pt solid #e5e7eb;vertical-align:top;}
.nh-swap td.cat{font-weight:700;color:#0f1e2e;width:24%;}
.nh-swap td.hi{background:#fff5f5;width:38%;}
.nh-swap td.lo{background:#f0fdf4;width:38%;}

/* ---------- step list with numbered dots ---------- */
.nh-steps{width:100%;border-collapse:collapse;margin:1mm 0;}
.nh-steps td{vertical-align:top;padding:1mm 0;font-size:11pt;line-height:1.38;}
.nh-steps td.n{width:9mm;}
.nh-steps .dot{display:inline-block;width:6.5mm;height:6.5mm;border-radius:50%;background:#1a6b72;color:#fff;font-weight:800;font-size:10pt;text-align:center;line-height:6.5mm;}
.nh-steps .dot.red{background:#b91c1c;}
.nh-steps .dot.amber{background:#b45309;}

/* ---------- image placeholder (until the Codex art arrives) ---------- */
.nh-imgph{border:1px dashed #9ca3af;border-radius:2mm;background:#f9fafb;color:#6b7280;font-size:9pt;text-align:center;padding:3mm;margin:1.5mm 0;}

/* page-local contents strip on page 1 (3+ page handouts) */
.nh .rcm-toc-strip{font-size:9pt;margin:1.5mm 14mm 0;}
.page > .nh-box{margin:1.5mm 14mm;}

/* ── Holiday season diet handout (Dec 1 2026): two tracks, heat map, clinician box ── */
.nh-box.navy{background:#eef2f8;border-color:#13315a;border-width:1.2pt;}
.nh-box.navy .nh-bh{color:#13315a;}
.nh-box.navy .nh-bh:before{content:"For clinicians · ";font-weight:600;color:#475569;}
.nh-box.trk-ckd{border-left:4pt solid #0f766e;}
.nh-box.trk-hd{border-left:4pt solid #1e3a8a;background:#eff4fb;border-color:#93a8cc;}
.nh-box.trk-hd .nh-bh{color:#1e3a8a;}
.nh-card .band.red{background:#b91c1c;}
.nh-heat{width:100%;border-collapse:collapse;table-layout:fixed;margin:1.2mm 0 2.5mm;font-size:10pt;line-height:1.22;}
.nh-heat th{background:#13315a;color:#fff;font-size:9.5pt;font-weight:700;padding:1.2mm 1mm;text-align:center;border:0.6pt solid #13315a;}
.nh-heat th.f{text-align:left;width:40mm;}
.nh-heat th.por{width:27mm;text-align:left;}
.nh-heat th.b{width:37mm;text-align:left;}
.nh-heat td{border:0.6pt solid #c3ccd8;padding:.8mm 1mm;vertical-align:middle;}
.nh-heat td.f{font-weight:700;color:#0f1e2e;}
.nh-heat td.por{color:#374151;}
.nh-heat td.b{font-size:9pt;color:#374151;}
.nh-heat tr{break-inside:avoid;page-break-inside:avoid;}
.nh-heat td.hx{text-align:center;font-weight:700;font-size:9.5pt;}
.nh-heat td.hx .hn{font-weight:600;font-size:8.5pt;}
.nh-heat td.hx.h{background:#fecaca;color:#7f1d1d;}
.nh-heat td.hx.m{background:#fde68a;color:#78350f;}
.nh-heat td.hx.l{background:#bbf7d0;color:#14532d;}
.hk{display:inline-block;padding:0 2mm;border-radius:2mm;font-weight:700;}
.hk.h{background:#fecaca;color:#7f1d1d;}.hk.m{background:#fde68a;color:#78350f;}.hk.l{background:#bbf7d0;color:#14532d;}
.hero-tag.red{background:#b91c1c;color:#fff;}
.nh-tbl th.trkc{background:#0f766e;}.nh-tbl th.trkd{background:#1e3a8a;}
/* everyday / fast-food heat maps and clinician tiles in the new-set handouts (Dec 1 2026) */
.nh-heat tr.grp td{background:#e2e8f0;color:#0f1e2e;font-weight:800;font-size:9.5pt;text-align:left;}
.nh-heat.ff th.b{width:34mm;}
.nh-tiles{font-size:9pt;}
.nh-tiles td.h-lo{background:#bbf7d0;color:#14532d;}.nh-tiles td.h-mid{background:#fde68a;color:#78350f;}
.nh-tiles td.h-hi{background:#fecaca;color:#7f1d1d;}.nh-tiles td.h-neu{background:#e5e7eb;color:#1f2937;}
.fig-w174{display:block;width:174mm;max-width:100%;height:auto;margin:2mm auto;}

/* Dec 1 2026: every fixed page is one A4 sheet with the footer pinned to the bottom (it used to float up under short content). */
.nh .page{height:297mm;position:relative;overflow:hidden;box-sizing:border-box;padding-bottom:13mm;}
.nh .page > .doc-ftr{position:absolute;left:0;right:0;bottom:0;background:#fff;}
/* Paired full-width figures (two 174 x 116 mm landscape figures per page) */
.nh .nh-figblk{margin:0 0 1mm;}
.nh .nh-figblk .fig-head{padding:6px 14mm 0 14mm;}
.nh .nh-figblk .fig-title{font-size:12pt;}
.nh .nh-figblk .fig-w174{margin:1.5mm auto 0;}
