/* ============================================================================
   williamriveromd.com — Companion PDF House Style
   Single source of truth for every downloadable patient companion PDF.
   Canonical reference layout: wgmr-diabetic-diet-guide.html
   Render to PDF with WeasyPrint via build_companion_pdfs.py
   ----------------------------------------------------------------------------
   Page anatomy (in order):
     .top-strip   light grey eyebrow band: doc title (left) + credentials (right)
     .hero        navy masthead: red pill tag, big title w/ yellow <em>, dr badge
     .kn-band     yellow knowledge band: 3 headline stats
     .sec         numbered content sections (circular .sec-num badge + .sec-title)
     .page-hdr    navy running header for continuation pages (2..n)
     .doc-ftr     footer: disclaimer + references (left) + url + page (right)
   Do NOT hand-edit per-PDF colours; adjust here so all companions stay uniform.
   ========================================================================== */

*{margin:0;padding:0;box-sizing:border-box;}
html{font-size:9pt;}
body{font-family:'Segoe UI',Arial,sans-serif;color:#0f1e2e;background:#fff;line-height:1.35;}
@page{size:A4;margin:0;}

.page{width:210mm;background:#fff;page-break-after:always;}
.page:last-child{page-break-after:auto;}
.pad{padding:0 14mm;}

/* ---------- shared table reset ---------- */
table{border-collapse:collapse;width:100%;}
td,th{vertical-align:top;}

/* ---------- top strip ---------- */
.top-strip{background:#e8ecf2;color:#4b5563;font-size:7.5pt;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:4px 14mm;}
.top-strip table td:last-child{text-align:right;opacity:.65;font-weight:400;text-transform:none;letter-spacing:0;}

/* ---------- hero ---------- */
.hero{background:#13315a;color:#fff;padding:7px 14mm;}
.hero-tag{display:inline-block;background:#e63946;color:#fff;font-size:6.5pt;font-weight:700;letter-spacing:.1em;text-transform:uppercase;padding:2px 8px;border-radius:20px;margin-bottom:6px;}
.hero-tag.teal{background:#1a6b72;}
.hero-tag.green{background:#16a34a;}
.hero-tag.blue{background:#1a6b9e;}
.hero-tag.amber{background:#d97706;}
.hero-title{font-size:16pt;font-weight:800;line-height:1.04;letter-spacing:-.02em;margin-bottom:6px;}
.hero-title em{color:#f4c842;font-style:normal;}
.hero-sub{font-size:8pt;opacity:.9;line-height:1.35;}
.hero-sub em{color:#f4c842;font-style:normal;font-weight:700;}
.hero-right{width:120px;text-align:center;}
.dr-badge{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:8px 10px;}
.dr-circle{width:40px;height:40px;background:#f0b429;border-radius:50%;margin:0 auto 5px;font-size:18pt;line-height:40px;text-align:center;}
.dr-name{font-size:7pt;font-weight:700;color:#fff;line-height:1.3;}
.dr-cred{font-size:6.5pt;opacity:.65;color:#fff;margin-top:2px;}
.hero-url{margin-top:5px;font-size:6pt;opacity:.5;color:#fff;}

/* ---------- knowledge band ---------- */
.kn-band{background:#f4c842;padding:4px 14mm;}
.kn-band td{text-align:center;width:33.33%;padding:0 8px;}
.kn-band td+td{border-left:1px solid rgba(0,0,0,.15);}
.kn-num{font-size:13pt;font-weight:800;color:#0f1e2e;line-height:1.1;}
.kn-label{font-size:7pt;color:#3b2800;font-weight:600;margin-top:2px;}
/* 4-stat variant */
.kn-band.four td{width:25%;}

/* ---------- sections ---------- */
.sec{padding:2px 14mm 0;}
.sec-head{margin-bottom:3px;}
.sec-num{display:inline-block;width:18px;height:18px;background:#e63946;color:#fff;border-radius:50%;font-size:8pt;font-weight:800;text-align:center;line-height:18px;vertical-align:middle;margin-right:6px;}
.sec-num.blue{background:#1a6b9e;}
.sec-num.green{background:#16a34a;}
.sec-num.amber{background:#d97706;}
.sec-num.teal{background:#1a6b72;}
.sec-num.purple{background:#7c3aed;}
.sec-title{display:inline;font-size:10pt;font-weight:800;color:#0f1e2e;vertical-align:middle;}
.sec-title em{color:#e63946;font-style:normal;}
p.body{font-size:7.5pt;color:#374151;line-height:1.4;margin-top:4px;}
.divider{border-top:1px solid #e5e9ef;}

/* ---------- generic 3-up info tiles ---------- */
.tile-tbl{margin-top:3px;}
.tile-tbl td{width:33.33%;padding:3px;}
.tile{border-radius:6px;padding:6px;text-align:center;height:100%;}
.tile.green{background:#f0fdf4;border:1px solid #86efac;}
.tile.amber{background:#fffbeb;border:1px solid #fcd34d;}
.tile.red{background:#fff5f5;border:1px solid #fca5a5;}
.tile.blue{background:#eff6ff;border:1px solid #93c5fd;}
.tile.teal{background:#e1f5f0;border:1px solid #5ec4c9;}
.tile .ic{font-size:15pt;line-height:1;}
.tile .it{font-size:8pt;font-weight:800;color:#0f1e2e;margin:3px 0 2px;}
.tile .iv{font-size:7pt;color:#166534;font-weight:600;line-height:1.3;}
.tile.amber .iv{color:#92400e;}
.tile.red .iv{color:#b91c1c;}
.tile.blue .iv{color:#1e40af;}
.tile.teal .iv{color:#0f5b61;}

/* ---------- 3-up category boxes (plate / portion / class) ---------- */
.plate-tbl td{width:33.33%;padding:3px;}
.plate-box{border-radius:6px;padding:6px 7px;height:100%;}
.plate-box.veg{background:#f0fdf4;border:2px solid #16a34a;}
.plate-box.pro{background:#eff6ff;border:2px solid #3b82f6;}
.plate-box.carb{background:#fffbeb;border:2px solid #d97706;}
.plate-box.red{background:#fff5f5;border:2px solid #dc2626;}
.plate-box.teal{background:#e1f5f0;border:2px solid #1a6b72;}
.plate-frac{font-size:14pt;font-weight:800;line-height:1;}
.plate-box.veg .plate-frac{color:#166534;}
.plate-box.pro .plate-frac{color:#1e40af;}
.plate-box.carb .plate-frac{color:#92400e;}
.plate-box.red .plate-frac{color:#b91c1c;}
.plate-box.teal .plate-frac{color:#0f5b61;}
.plate-sub{font-size:7pt;font-weight:700;color:#374151;letter-spacing:.04em;margin:3px 0 4px;}
.plate-box ul{padding-left:12px;font-size:7pt;color:#374151;line-height:1.4;}

/* ---------- numbered / pill tip rows ---------- */
.tip-tbl td{padding:1px 0;font-size:7.5pt;line-height:1.3;}
.tip-tbl td.tag{width:42px;padding-right:7px;}
.tip-pill{display:inline-block;color:#fff;font-weight:800;font-size:6.5pt;padding:2px 6px;border-radius:3px;white-space:nowrap;}
.tip-pill.g{background:#16a34a;}
.tip-pill.b{background:#1a6b9e;}
.tip-pill.r{background:#dc2626;}
.tip-pill.a{background:#d97706;}
.tip-pill.t{background:#1a6b72;}

/* ---------- sequencing / flow steps ---------- */
.seq-tbl{margin-top:4px;}
.seq-tbl td{text-align:center;padding:0 3px;vertical-align:middle;}
.seq-tbl td.arrow{width:18px;font-size:15pt;color:#0f1e2e;opacity:.4;font-weight:900;padding:0;}
.seq-box{border-radius:6px;padding:6px 4px;}
.seq-box.veg{background:#dcfce7;border:1px solid #86efac;}
.seq-box.pro{background:#dbeafe;border:1px solid #93c5fd;}
.seq-box.carb{background:#fef9c3;border:1px solid #fde047;}
.seq-box .sb-icon{font-size:14pt;line-height:1;}
.seq-box .sb-label{font-size:7pt;font-weight:800;color:#0f1e2e;margin-top:2px;}
.seq-box .sb-ex{font-size:6.5pt;color:#4b5563;margin-top:1px;line-height:1.3;}
.seq-result{background:#f0fdf4;border:1px solid #86efac;border-radius:6px;padding:6px 4px;}
.seq-result .sr-num{font-size:13pt;font-weight:800;color:#166534;line-height:1;}
.seq-result .sr-label{font-size:6.5pt;color:#166534;font-weight:600;margin-top:2px;line-height:1.3;}

/* ---------- dark target / numbers box ---------- */
.targets{background:#0f1e2e;color:#fff;border-radius:8px;padding:6px 9px;margin-top:3px;}
.targets h3{font-size:8pt;font-weight:700;margin-bottom:4px;color:#f4c842;}
.tg-tbl td{width:33.33%;padding:3px;}
.tg-card{background:rgba(255,255,255,.08);border-radius:5px;padding:2px 6px;text-align:center;}
.tg-name{font-size:6.5pt;font-weight:600;opacity:.75;margin-bottom:2px;}
.tg-val{font-size:11pt;font-weight:800;color:#f4c842;line-height:1;}
.tg-unit{font-size:6pt;opacity:.6;margin-top:2px;}
.tg-note{font-size:6.5pt;opacity:.7;margin-top:5px;text-align:center;font-style:italic;}

/* ---------- remove / use-instead swaps ---------- */
.swap-tbl td{padding:1px 6px;font-size:7.5pt;vertical-align:middle;}
.swap-tbl tr+tr td{border-top:1px solid #eef1f5;}
.swap-tbl .remove{color:#374151;width:42%;}
.swap-tbl .arrow{text-align:center;color:#0f1e2e;font-size:11pt;width:16px;}
.swap-tbl .use{color:#166534;font-weight:600;width:42%;}
.swap-hdr td{font-weight:700;font-size:7pt;text-transform:uppercase;letter-spacing:.04em;border-top:none!important;}
.swap-hdr .remove{color:#b91c1c;}
.swap-hdr .use{color:#166534;}

/* ---------- legend band ---------- */
.legend-band{background:#f0f4f8;padding:4px 14mm;border-top:2px solid #dde3ea;font-size:7pt;}
.legend-band b{color:#0f1e2e;}
.leg-swatch{display:inline-block;width:22px;height:10px;border-radius:2px;vertical-align:middle;margin-right:4px;}
.leg-swatch.avoid{background:#dc2626;}
.leg-swatch.limit{background:#d97706;}
.leg-swatch.good{background:#16a34a;}
.leg-item{display:inline-block;margin-right:14px;line-height:1.6;}

/* ---------- footer ---------- */
.doc-ftr{padding:4px 14mm;border-top:1px solid #dde3ea;font-size:5.5pt;color:#6b7280;line-height:1.35;}
.doc-ftr td:last-child{text-align:right;white-space:nowrap;padding-left:14px;}
.doc-ftr .url{font-weight:700;color:#1a6b9e;font-size:6.5pt;}

/* ---------- running page header (continuation pages) ---------- */
.page-hdr{background:#0f1e2e;color:#fff;padding:7px 14mm;}
.page-hdr-title{font-size:10pt;font-weight:700;}
.page-hdr-sub{font-size:7pt;opacity:.65;margin-top:1px;}
.page-hdr td:last-child{text-align:right;font-size:7.5pt;opacity:.55;vertical-align:middle;white-space:nowrap;}

/* ---------- heat-map / data tables ---------- */
.hm-wrap{padding:4px 14mm;}
.hm-table{font-size:7pt;}
.hm-table th{background:#1e3a5f;color:#fff;padding:4px 5px;font-size:7pt;font-weight:700;text-align:center;}
.hm-table th.l{text-align:left;}
.hm-cat td{padding:3px 8px;font-size:7.5pt;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fff;}
.hm-cat-neutral td{background:#0f1e2e;}
.hm-cat-good td{background:#166534;}
.hm-cat-bad td{background:#b91c1c;}
.hm-table tbody td{padding:2px 5px;border-bottom:1px solid #eef1f5;}
.hm-table td.food{font-weight:600;font-size:7pt;}
.hm-table td.serv{font-size:7pt;color:#4b5563;}
.hm-table td.ctr{text-align:center;}
.note{font-size:6pt;color:#4b5563;font-style:italic;line-height:1.25;}
.r-avoid{background:#fff5f5;}
.r-limit{background:#fffcf0;}
.r-good{background:#f6fdf8;}
.hc{display:inline-block;font-size:6.5pt;font-weight:700;padding:1px 4px;border-radius:3px;min-width:22px;text-align:center;}
.hc-h{background:#fca5a5;color:#7f1d1d;}
.hc-m{background:#fcd34d;color:#78350f;}
.hc-l{background:#86efac;color:#14532d;}
.rb{display:inline-block;font-size:6.5pt;font-weight:700;padding:1px 6px;border-radius:3px;color:#fff;white-space:nowrap;}
.rb-avoid{background:#dc2626;}
.rb-limit{background:#d97706;}
.rb-good{background:#16a34a;}

/* ---------- block titles / structured blocks ---------- */
.blk-title{font-size:9pt;font-weight:700;color:#0f1e2e;margin-bottom:5px;padding-bottom:3px;border-bottom:2px solid #0f1e2e;}
.mp-tbl{font-size:7pt;}
.mp-tbl th{background:#1e3a5f;color:#fff;padding:4px 6px;text-align:left;font-weight:700;}
.mp-tbl td{padding:4px 6px;border-bottom:1px solid #eef1f5;line-height:1.35;}
.mp-tbl td.day{font-weight:700;width:7%;}
.mp-tbl tr:nth-child(odd) td{background:#f6fdf8;}

.two-col td{width:50%;vertical-align:top;padding:0;}
.two-col td:first-child{padding-right:7px;}
.two-col td:last-child{padding-left:7px;}

.drug-tbl{font-size:7pt;}
.drug-tbl td{padding:4px 6px;border-bottom:1px solid #eef1f5;line-height:1.4;}
.drug-tbl td.name{font-weight:700;width:32%;}
.drug-tbl tr:nth-child(odd) td{background:#f0f4f8;}
.drug-sub{font-weight:400;font-size:6pt;color:#6b7280;}

.ls-tbl td{width:50%;padding:3px;}
.ls-tile{background:#f5f7fa;border-radius:6px;padding:6px 8px;height:100%;}
.ls-tile .lh{font-size:8pt;font-weight:700;color:#0f1e2e;}
.ls-tile .lv{font-size:7pt;color:#16a34a;font-weight:700;margin:2px 0;}
.ls-tile p{font-size:6.5pt;color:#374151;line-height:1.4;}

/* ---------- callout / alert boxes ---------- */
.alert{border-radius:6px;padding:7px 9px;margin-top:7px;}
.alert.amber{background:#fffbeb;border-left:3px solid #d97706;}
.alert.red{background:#fff5f5;border-left:3px solid #dc2626;}
.alert.green{background:#f0fdf4;border-left:3px solid #16a34a;}
.alert.teal{background:#e1f5f0;border-left:3px solid #1a6b72;}
.alert.blue{background:#eff6ff;border-left:3px solid #1a6b9e;}
.alert h4{font-size:8pt;font-weight:700;color:#0f1e2e;margin-bottom:3px;}
.alert p{font-size:7pt;color:#374151;line-height:1.4;}
.alert ul{padding-left:14px;font-size:7pt;color:#374151;line-height:1.4;}

/* ============================================================
   CODE BLUE RECORDING FLOWSHEET (clinician fill-in form)
   Namespaced .fs-* classes + an A4-landscape named page.
   Used only by downloads/wgmr-code-blue-recording-flowsheet.html;
   does not affect the portrait patient companions above.
   ============================================================ */
@page fslandscape{size:A4 landscape;margin:0;}
.fs-page{width:297mm;min-height:210mm;background:#fff;page-break-after:always;page:fslandscape;}
.fs-page:last-child{page-break-after:auto;}

/* header info grid (date / room / times / patient label) */
.fs-meta{font-size:7pt;margin:6px 14mm 0;}
.fs-meta td{border:1px solid #c7cfda;padding:4px 7px;line-height:1.5;}
.fs-meta .lbl{font-weight:700;color:#13315a;text-transform:uppercase;letter-spacing:.04em;font-size:6.5pt;white-space:nowrap;}
.fs-meta .label-cell{background:#f0f4f8;font-weight:700;color:#13315a;text-transform:uppercase;letter-spacing:.06em;text-align:center;width:150px;}

/* dose legend strip */
.fs-legend{font-size:6pt;color:#4b5563;margin:5px 14mm 0;line-height:1.5;}
.fs-legend strong{color:#13315a;}
.fs-legend .pipe{color:#c7cfda;padding:0 4px;}

/* the timed recording grid */
.fs-gridwrap{margin:5px 14mm 0;}
.fs-grid{font-size:6pt;table-layout:fixed;}
.fs-grid th{background:#13315a;color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.02em;
  font-size:5.5pt;padding:4px 2px;border:1px solid #0d2746;text-align:center;line-height:1.1;}
.fs-grid th .sub{display:block;font-weight:400;opacity:.7;font-size:4.8pt;letter-spacing:0;}
.fs-grid td{border:1px solid #c7cfda;height:20px;padding:0 3px;}
.fs-grid tr:nth-child(even) td{background:#f6f8fb;}
.fs-grid .c{text-align:center;}

/* event-conclusion + personnel block */
.fs-concl{margin:7px 14mm 0;font-size:7pt;}
.fs-concl .blk{border:1px solid #c7cfda;padding:6px 9px;}
.fs-concl .blk-h{font-size:7pt;font-weight:800;color:#13315a;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px;}
.fs-chk{font-size:7pt;color:#1e2a38;line-height:1.7;}
.fs-chk .box{font-size:9pt;color:#13315a;margin-right:3px;}
.fs-line{display:inline-block;border-bottom:1px solid #6b7280;min-width:90px;height:11px;}
.fs-sign td{padding:5px 7px 2px;font-size:7pt;}
.fs-sign .nm{display:block;border-bottom:1px solid #6b7280;height:13px;margin-bottom:1px;}
.fs-sign .role{font-size:5.8pt;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;}
/* ---------- appended full-page figure / reference pages ---------- */
/* One large figure lifted from the parent web guide, centred on its own A4
   page. Orientation-robust: max-width AND max-height keep portrait, square, or
   landscape art inside the printable area. Keeps one .page-fig = one PDF page. */
.page-fig{height:297mm;display:flex;flex-direction:column;overflow:hidden;}
.fig-head{padding:13px 14mm 0 14mm;}
.fig-title{font-size:13pt;font-weight:800;color:#13315a;line-height:1.05;letter-spacing:-.01em;}
.fig-title em{color:#1a6b72;font-style:normal;}
.fig-sub{font-size:8pt;color:#6b7280;margin-top:2px;}
.fig-grow{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:10px 14mm;}
.fig-img{display:block;max-width:182mm;max-height:222mm;width:auto;height:auto;border:1px solid #dde3ea;border-radius:8px;box-shadow:0 2px 9px rgba(15,30,50,.12);}
.fig-cap{font-size:7pt;color:#9ca3af;text-align:center;margin-top:8px;line-height:1.35;max-width:182mm;}

/* ============================================================
   ACLS MANAGEMENT ALGORITHMS (flat-flowchart reference pages)
   Appended to the Code Blue Recording Flowsheet companion only.
   Namespaced .alg-* classes; landscape (reuses @page fslandscape).
   ============================================================ */
.alg-page{width:297mm;min-height:210mm;background:#fff;page-break-after:always;page:fslandscape;}
.alg-page:last-child{page-break-after:auto;}
.alg-hd{background:#13315a;color:#fff;padding:6px 14mm;}
.alg-hd-title{font-size:11pt;font-weight:800;letter-spacing:-.01em;}
.alg-hd-title em{color:#f4c842;font-style:normal;}
.alg-hd-sub{font-size:7pt;opacity:.7;margin-top:1px;}
.alg-body{padding:7px 14mm 0;}
.alg-tbl{width:100%;}
.alg-tbl>tbody>tr>td{vertical-align:top;padding:0 6px;}
.alg-lane-h{font-size:8pt;font-weight:800;text-transform:uppercase;letter-spacing:.04em;text-align:center;color:#fff;border-radius:5px;padding:3px;margin-bottom:4px;}
.alg-lane-h.shock{background:#dc2626;}
.alg-lane-h.nonshock{background:#13315a;}
.alg-lane-h.teal{background:#1a6b72;}
.alg-lane-h.amber{background:#b45309;}
.alg-box{border:1px solid #c7cfda;border-left:4px solid #1a6b72;border-radius:5px;padding:4px 7px;margin:0 0 3px;font-size:7pt;line-height:1.32;background:#fff;}
.alg-box .bt{font-weight:800;color:#0f1e2e;}
.alg-box.start{border-left-color:#13315a;background:#eef2f8;}
.alg-box.crit{border-left-color:#dc2626;background:#fff5f5;}
.alg-box.dec{border-left-color:#d97706;background:#fffbeb;}
.alg-box.drug{border-left-color:#7c3aed;background:#faf5ff;}
.alg-box.good{border-left-color:#16a34a;background:#f0fdf4;}
.alg-arrow{text-align:center;font-size:9pt;color:#13315a;line-height:1;margin:0 0 3px;font-weight:900;}
.alg-note{font-size:6.5pt;color:#4b5563;line-height:1.32;margin-top:3px;border-top:1px dashed #dde3ea;padding-top:3px;}
.alg-note .bt{color:#13315a;font-weight:800;}
.alg-tag{display:inline-block;font-size:5.5pt;font-weight:700;color:#fff;background:#1a6b72;border-radius:3px;padding:1px 4px;margin-right:3px;vertical-align:middle;}
.alg-tag.r{background:#dc2626;}
.alg-tag.a{background:#d97706;}
.alg-tag.p{background:#7c3aed;}
.alg-tag.g{background:#16a34a;}

/* ============================================================
   ACLS CARDIAC RHYTHM RECOGNITION CHEAT SHEET (standalone)
   downloads/wgmr-acls-rhythm-recognition-cheatsheet.html
   Vector ECG strips (inline SVG); landscape; namespaced .rhy-*
   ============================================================ */
.rhy-page{width:297mm;min-height:210mm;background:#fff;page-break-after:always;page:fslandscape;}
.rhy-page:last-child{page-break-after:auto;}
.rhy-hd{background:#13315a;color:#fff;padding:6px 14mm;}
.rhy-hd-title{font-size:11pt;font-weight:800;letter-spacing:-.01em;}
.rhy-hd-title em{color:#f4c842;font-style:normal;}
.rhy-hd-sub{font-size:7pt;opacity:.7;margin-top:1px;}
.rhy-body{padding:6px 14mm 0;}
.rhy-cols td{width:50%;vertical-align:top;}
.rhy-cols td:first-child{padding-right:7px;}
.rhy-cols td:last-child{padding-left:7px;}
.rhy-band{background:#1a6b72;color:#fff;font-size:7.5pt;font-weight:800;text-transform:uppercase;letter-spacing:.05em;padding:3px 8px;border-radius:4px;margin:0 0 3px;}
.rhy-band.v{background:#7c3aed;}
.rhy-tbl{width:100%;margin-bottom:6px;}
.rhy-tbl td{border-bottom:1px solid #eef1f5;padding:2px 4px;vertical-align:middle;}
.rhy-tbl tr:last-child td{border-bottom:none;}
.rhy-name{font-size:7pt;font-weight:800;color:#0f1e2e;line-height:1.15;}
.rhy-name .cue{display:block;font-weight:400;font-size:6pt;color:#6b7280;margin-top:1px;line-height:1.2;}
.rhy-strip svg{display:block;width:100%;height:10.5mm;}
.rhy-tag{width:1%;white-space:nowrap;text-align:right;}
.rhy-tag span{display:inline-block;font-size:5.3pt;font-weight:700;color:#fff;border-radius:3px;padding:1px 4px;}
.rhy-tag .shock{background:#dc2626;}
.rhy-tag .non{background:#6b7280;}
.rhy-tag .peri{background:#d97706;}
.rhy-rx{font-size:6.3pt;color:#374151;line-height:1.3;}
.rhy-rx .bt{font-weight:800;color:#13315a;}
.rhy-colhdr td{font-size:5.6pt;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9aa3af;border-bottom:1px solid #dde3ea;padding:1px 4px;}
.rhy-legend{font-size:6pt;color:#4b5563;margin:4px 14mm 0;}
.rhy-legend span{display:inline-block;color:#fff;border-radius:3px;padding:1px 5px;margin-right:4px;font-weight:700;}
.rhy-legend .shock{background:#dc2626;} .rhy-legend .non{background:#6b7280;} .rhy-legend .peri{background:#d97706;}
