/* ═══════════════════════════════════════════════════════════════
   /human-disposal/ — The closing-argument page.
   Page-scoped styles + np-* lightbox/gallery subset.
   Palette: cool — blue + cyan dominant, gold reserved for FINDING callouts,
   red used only for specific emphatic punch moments.
   Reference: /discovery-fraud/ + /2nd-and-3rd-rule20-reports/
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:            #0c0c12;
  --surface:       #111119;
  --card:          #161622;
  --elevated:      #1c1c2a;
  --panel:         #12121c;
  --border:        #2a2a3c;
  --border-dim:    #1e1e2e;
  --border-bright: #3a3a50;
  --text:          #e1d9eb;
  --text-bright:   #f0f0f0;
  --text-white:    #ffffff;
  --text-dim:      #b0b0b0;
  --text-muted:    #707070;
  --text-subtle:   #a0a0a0;
  --gold:          #ffb732;
  --red:           #ff5545;
  --blue:          #3a86ba;
  --cyan:          #4eecc8;
  --purple:        #b990e6;
  --green:         #2de0b6;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at center top, rgba(78,236,200,0.13), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100vh;
  background-position: top center;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE WRAPPER ── */
.hd { max-width: 1100px; margin: 0 auto; padding: 0 22px 80px; }
.hd a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(78,236,200,0.4); }
.hd a:hover { color: var(--text-white); border-bottom-color: var(--text-white); }

/* ── HERO (no horizontal dividers — meta + coda removed in Rev1) ── */
.hd-hero { position: relative; padding: 72px 24px 56px; text-align: center; margin-bottom: 0; }
.hd-badge { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 4px; text-transform: uppercase; border: 1px solid rgba(58,134,186,0.45); background: var(--bg); padding: 8px 22px; border-radius: 4px; margin-bottom: 26px; }
.hd-title { font-family: var(--sans); font-size: clamp(36px, 5.5vw, 54px); line-height: 1.12; font-weight: 700; margin: 0 auto 22px; letter-spacing: -0.6px; color: var(--text-white); max-width: 960px; }
.hd-title em { font-style: normal; color: var(--blue); }
.hd-lede { font-size: 18px; color: var(--text-dim); margin: 0 auto 24px; line-height: 1.78; max-width: 880px; }
.hd-lede strong { color: var(--text-white); font-weight: 600; }
.hd-lede em { color: var(--cyan); font-style: italic; font-weight: 500; }

.hd-hero-stats { display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; margin: 36px auto 0; max-width: 980px; }
.hd-hero-stat { text-align: center; min-width: 140px; }
.hd-hero-stat .num { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--blue); line-height: 1; letter-spacing: -0.5px; display: block; }
.hd-hero-stat .num.white { color: var(--text-white); }
.hd-hero-stat .num.cyan { color: var(--cyan); }
.hd-hero-stat .num.gold { color: var(--gold); }
.hd-hero-stat .label { font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-top: 12px; display: block; }

/* ── SECTION NAV (sticky) ── */
.hd-section-nav { position: sticky; top: 0; z-index: 50; background: rgba(12,12,18,0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--border-dim); margin: 0 -22px 24px; }
.hd-section-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; list-style: none; padding: 0 12px; }
.hd-section-nav li { margin: 0; }
.hd-section-nav a { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text-dim); letter-spacing: 1.6px; text-transform: uppercase; padding: 14px 16px; display: block; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.hd-section-nav a:hover { color: var(--text-white); border-bottom-color: var(--blue); }

/* ── SECTIONS ── */
.hd-section { padding: 56px 0; border-bottom: 1px solid var(--border-dim); scroll-margin-top: 56px; }
.hd-section:last-of-type { border-bottom: none; }
.hd-section-label { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.hd-section-title { font-family: var(--sans); font-size: clamp(26px, 3.4vw, 32px); line-height: 1.22; font-weight: 700; margin: 0 0 24px; color: var(--text-white); letter-spacing: -0.4px; }
.hd-section-title em { font-style: normal; color: var(--cyan); }
.hd-subsection-title { font-family: var(--sans); font-size: 22px; line-height: 1.3; font-weight: 600; margin: 36px 0 14px; color: var(--text-bright); letter-spacing: -0.1px; }
.hd-section p { font-size: 16px; line-height: 1.78; color: var(--text); margin-bottom: 16px; }
.hd-section p strong { color: var(--text-white); }
.hd-section p em { color: var(--cyan); font-style: italic; font-weight: 500; }
.hd-section p:last-child { margin-bottom: 0; }
.hd-section code { font-family: var(--mono); font-size: 13.5px; color: var(--cyan); background: var(--card); padding: 1px 6px; border-radius: 3px; border: 1px solid rgba(78,236,200,0.22); }

/* ── "WHAT THIS ESTABLISHES" bold close ── */
.hd-establishes { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--cyan); border-radius: 4px; padding: 18px 24px; margin: 32px 0 0; font-size: 17px; color: var(--text-bright); }
.hd-establishes strong { color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; }

/* ── PULL QUOTE ── */
.hd-quote { background: var(--surface); border: 1px solid var(--border-bright); border-left: 3px solid var(--blue); border-radius: 4px; padding: 26px 32px; margin: 34px 0; color: var(--text-bright); font-size: 17.5px; font-style: italic; line-height: 1.74; }
.hd-quote .attrib { display: block; margin-top: 18px; font-family: var(--mono); font-size: 14px; font-style: normal; color: #c8c8c8; letter-spacing: 0.8px; }
.hd-quote strong { color: var(--text-white); font-style: normal; font-weight: 600; }
.hd-quote em { color: var(--cyan); font-style: italic; }
.hd-quote.emphatic { border-left-color: var(--cyan); border-left-width: 4px; }

/* ── CALLOUT (default: blue) ── */
.hd-callout { background: var(--card); border: 1px solid rgba(58,134,186,0.38); border-left: 4px solid var(--blue); border-radius: 4px; padding: 22px 28px; margin: 32px 0; }
.hd-callout p { font-size: 16px; line-height: 1.74; color: var(--text); margin-bottom: 12px; }
.hd-callout p:last-child { margin-bottom: 0; }
.hd-callout strong { color: var(--text-white); }
.hd-callout em { color: var(--cyan); font-style: italic; }
.hd-callout.gold { border-color: rgba(255,183,50,0.25); border-left-color: var(--gold); }
.hd-callout.gold em { color: var(--gold); }
.hd-callout.cyan { border-color: rgba(78,236,200,0.25); border-left-color: var(--cyan); }

/* ── INLINE TABLES ── */
.hd-table-wrap { overflow-x: auto; margin: 18px 0 24px; }
.hd-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13.5px; }
.hd-table th { background: var(--surface); color: var(--text-white); font-weight: 700; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); letter-spacing: 0.6px; font-size: 12px; text-transform: uppercase; }
.hd-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-dim); color: var(--text); vertical-align: top; }
.hd-table td.num { text-align: center; color: var(--cyan); font-weight: 700; }
.hd-table tr:hover td { background: rgba(58,134,186,0.06); }

/* ── CSV TABLES (Tabulator wrapper) ── */
.hd-csv-table { background: var(--card); border: 1px solid var(--border); border-radius: 4px; margin: 22px 0; min-height: 400px; max-height: 600px; overflow: hidden; }

/* ── SIDE-BY-SIDE HASH-MATCH PAIRS ── */
.hd-pair { background: var(--card); border: 1px solid var(--border-bright); border-left: 3px solid var(--blue); border-radius: 4px; padding: 22px 22px 24px; margin: 34px 0; }
.hd-pair-header { font-family: var(--mono); font-size: 15px; font-weight: 600; color: #8a8a8a; letter-spacing: 0.9px; margin-bottom: 16px; text-transform: uppercase; line-height: 1.35; }
.hd-pair-header strong { color: #c8c8c8; font-weight: 700; }
.hd-pair-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hd-pair-images.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hd-pair-images.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hd-pair-image { background: #fff; border: 1px solid var(--border); border-radius: 3px; padding: 5px; cursor: zoom-in; transition: border-color 0.15s, box-shadow 0.15s; }
.hd-pair-image:hover { border-color: var(--cyan); box-shadow: 0 4px 14px rgba(78,236,200,0.18); }
.hd-pair-image img { display: block; width: 100%; height: auto; filter: brightness(0.82); transition: filter 0.18s; }
.hd-pair-image:hover img { filter: brightness(1.0); }
.hd-pair-image-label { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--text-dim); text-align: center; margin-top: 8px; letter-spacing: 0.4px; }
.hd-pair-hash { display: block; font-family: var(--mono); font-size: 13.5px; color: var(--cyan); word-break: break-all; background: var(--surface); padding: 10px 14px; border-radius: 3px; border: 1px solid rgba(78,236,200,0.30); margin: 16px 0 6px; letter-spacing: 0.4px; }
.hd-pair-caption { font-size: 16px; color: var(--text); margin-top: 12px; line-height: 1.72; }
.hd-pair-caption strong { color: var(--text-white); }
.hd-pair-caption em { color: var(--cyan); font-style: italic; }
@media (max-width: 720px) {
  .hd-pair-images, .hd-pair-images.cols-3, .hd-pair-images.cols-4 { grid-template-columns: 1fr; }
}

/* ── EXAMINER 2-COLUMN (legacy — not used in current build but kept for parity) ── */
.hd-examiner-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
@media (max-width: 720px) { .hd-examiner-pair { grid-template-columns: 1fr; } }
.hd-examiner-card { background: var(--card); border: 1px solid var(--border-bright); border-top: 3px solid var(--blue); border-radius: 4px; padding: 22px 26px; }
.hd-examiner-card h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; color: var(--text-white); margin-bottom: 6px; letter-spacing: -0.2px; }
.hd-examiner-card .hd-examiner-tag { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; display: block; }
.hd-examiner-card p { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 12px; }
.hd-examiner-card p:last-child { margin-bottom: 0; }

/* ── HERO EXHIBIT ── */
.hd-hero-exhibit { margin: 32px 0 24px; }
.hd-hero-exhibit img { display: block; width: 100%; height: auto; border: 1px solid var(--cyan); border-radius: 4px; background: #fff; cursor: zoom-in; box-shadow: 0 8px 24px rgba(78,236,200,0.10); filter: brightness(0.82); transition: filter 0.18s, box-shadow 0.15s; }
.hd-hero-exhibit img:hover { filter: brightness(1.0); }
.hd-hero-exhibit figcaption { font-family: var(--mono); font-size: 13px; color: var(--text-dim); text-align: center; margin-top: 10px; letter-spacing: 0.4px; }

/* ── CHAIN LIST (legacy) ── */
.hd-chain-list { list-style: none; padding: 0; margin: 18px 0 22px; counter-reset: step; }
.hd-chain-list li { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: 4px; padding: 16px 22px 16px 60px; margin-bottom: 10px; position: relative; font-size: 15.5px; line-height: 1.65; color: var(--text); counter-increment: step; }
.hd-chain-list li::before { content: counter(step); position: absolute; left: 18px; top: 16px; font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--blue); letter-spacing: -0.5px; }
.hd-chain-list li strong { color: var(--text-white); }
.hd-chain-list li .src { display: block; font-family: var(--mono); font-size: 12px; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.4px; }

/* ── §6 "THE CLOCK" SECTION ── */
.hd-appointment-section { background: linear-gradient(180deg, rgba(58,134,186,0.07), transparent 90%); margin: 24px -22px 0; padding: 56px 22px 64px; border-top: 1px solid rgba(58,134,186,0.30); border-bottom: 1px solid rgba(58,134,186,0.30); }
.hd-appointment-callout { background: #0c1620; border: 2px solid var(--blue); border-radius: 6px; padding: 36px 42px; margin: 24px 0 0; box-shadow: 0 0 60px rgba(58,134,186,0.18); }
.hd-appointment-callout h2 { font-family: var(--sans); font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; color: var(--text-white); margin-bottom: 22px; line-height: 1.3; letter-spacing: -0.3px; }
.hd-appointment-callout h2 em { font-style: normal; color: var(--cyan); }
.hd-appointment-callout p { font-size: 16.5px; line-height: 1.78; color: var(--text-bright); margin-bottom: 16px; }
.hd-appointment-callout p strong { color: var(--text-white); }
.hd-appointment-callout p em { color: var(--cyan); font-style: italic; font-weight: 500; }
.hd-appointment-callout p:last-child { margin-bottom: 0; }

/* ── METHOD + FILES-HASHES BLOCKS ── */
.hd-method-block, .hd-files-hashes { background: var(--surface); border: 1px solid var(--border-bright); border-radius: 4px; padding: 24px 28px; margin: 30px 0; }
.hd-method-block h3, .hd-files-hashes h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; color: var(--text-white); margin-bottom: 14px; letter-spacing: -0.1px; }
.hd-method-block p { font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 12px; }

/* (.hd-coda removed in Rev1) */

/* ═══════════════════════════════════════════════════════════════
   §2 — 6-MODALITY GRID
   ═══════════════════════════════════════════════════════════════ */
.hd-modality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 28px;
}
.hd-modality-tile {
  background: var(--card);
  border: 1px solid var(--border-bright);
  border-top: 3px solid var(--blue);
  border-radius: 4px;
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hd-modality-tile .num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.5px;
}
.hd-modality-tile .name {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  letter-spacing: -0.2px;
}
.hd-modality-tile .desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
@media (max-width: 900px) { .hd-modality-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .hd-modality-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   §3 — MODALITY × EVIDENCE BLOCKS
   ═══════════════════════════════════════════════════════════════ */
.hd-modality {
  background: var(--card);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  padding: 26px 30px;
  margin: 34px 0;
}
.hd-modality-header {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hd-modality-header .num {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cyan);
  background: rgba(78,236,200,0.10);
  border: 1px solid rgba(78,236,200,0.32);
  border-radius: 3px;
  padding: 2px 9px;
  letter-spacing: 0.5px;
}
.hd-modality-header .op {
  color: var(--cyan);
  font-style: normal;
  font-weight: 700;
}
.hd-modality-quote {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-left: 2px solid var(--gold);
  border-radius: 3px;
  padding: 16px 22px;
  margin: 0 0 18px;
  font-size: 16.5px;
  font-style: italic;
  line-height: 1.72;
  color: var(--text-bright);
}
.hd-modality-quote em { color: #c8c8c8; font-style: normal; font-size: 14.5px; }
.hd-modality-evidence {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.hd-modality-evidence li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
}
.hd-modality-evidence li:last-child { border-bottom: none; }
.hd-modality-evidence li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--cyan);
  font-size: 14px;
}
.hd-modality-evidence li strong { color: var(--text-white); }
.hd-modality-evidence li code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cyan);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid rgba(78,236,200,0.20);
  word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════════
   CROSS-LINK BUTTONS (cool cyan)
   ═══════════════════════════════════════════════════════════════ */
.hd-xref-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}
.hd-xref {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(78,236,200,0.06);
  border: 1px solid rgba(78,236,200,0.40);
  border-radius: 4px;
  padding: 8px 14px;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: all 0.15s;
}
.hd-xref:hover {
  color: var(--text-white);
  background: rgba(78,236,200,0.18);
  border-color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════════
   §5 — RECEIPTS STAT TILES + AGENCY LIST
   ═══════════════════════════════════════════════════════════════ */
.hd-receipts-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.hd-rstat {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-bottom: 3px solid var(--cyan);
  border-radius: 4px;
  padding: 20px 22px;
  text-align: center;
}
.hd-rstat .n {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  line-height: 1.1;
  letter-spacing: -0.4px;
}
.hd-rstat .l {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 10px;
  display: block;
}

.hd-agency-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hd-agency-list li {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--blue);
  border-radius: 3px;
  padding: 14px 18px;
  letter-spacing: 0.3px;
}
@media (max-width: 720px) { .hd-agency-list { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   §6 — FINAL CODA (cool blue glow)
   ═══════════════════════════════════════════════════════════════ */
.hd-final-coda {
  background: linear-gradient(180deg, rgba(78,236,200,0.10), rgba(58,134,186,0.04));
  border: 2px solid var(--cyan);
  border-radius: 6px;
  padding: 36px 44px;
  margin: 40px 0 0;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-white);
  text-align: center;
  letter-spacing: -0.1px;
  box-shadow: 0 0 60px rgba(78,236,200,0.18);
}
@media (max-width: 720px) { .hd-final-coda { font-size: 17px; padding: 28px 24px; } }

/* ═══════════════════════════════════════════════════════════════
   §2 — np-tabs host (margin reset)
   ═══════════════════════════════════════════════════════════════ */
.hd-np-host { margin: 22px 0 28px; }

/* ═══════════════════════════════════════════════════════════════
   §2 — Rendered Markdown (SlideMD output for the curated excerpts MD)
   ═══════════════════════════════════════════════════════════════ */
.hd-md-rendered {
  padding: 32px 40px 36px;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text);
  overflow-y: auto;
  height: 100%;
  background: var(--card);
}
.hd-md-rendered h1, .hd-md-rendered h2, .hd-md-rendered h3, .hd-md-rendered h4 {
  font-family: var(--sans);
  color: var(--text-white);
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.hd-md-rendered h1 { font-size: 30px; margin: 6px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); color: var(--text-white); }
.hd-md-rendered h2 { font-size: 24px; margin: 38px 0 14px; color: var(--cyan); }
.hd-md-rendered h3 { font-size: 19px; margin: 30px 0 12px; color: var(--text-bright); }
.hd-md-rendered h4 { font-size: 16.5px; margin: 22px 0 10px; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.hd-md-rendered p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.78; color: var(--text); }
.hd-md-rendered p strong { color: var(--text-white); font-weight: 600; }
.hd-md-rendered p em { color: var(--cyan); font-style: italic; }
.hd-md-rendered a { color: var(--cyan); text-decoration: none; border-bottom: 1px dotted rgba(78,236,200,0.45); }
.hd-md-rendered a:hover { color: var(--text-white); border-bottom-color: var(--text-white); }
.hd-md-rendered ul, .hd-md-rendered ol { margin: 14px 0 18px 26px; padding-left: 4px; }
.hd-md-rendered ul li, .hd-md-rendered ol li { margin-bottom: 8px; font-size: 16px; line-height: 1.72; color: var(--text); }
.hd-md-rendered ul li strong, .hd-md-rendered ol li strong { color: var(--text-white); }
.hd-md-rendered blockquote { border-left: 3px solid var(--blue); background: var(--surface); margin: 18px 0; padding: 16px 22px; font-style: italic; color: var(--text-bright); font-size: 16.5px; line-height: 1.72; border-radius: 0 4px 4px 0; }
.hd-md-rendered blockquote strong { color: var(--text-white); font-style: normal; }
.hd-md-rendered blockquote em { color: var(--cyan); }
.hd-md-rendered code { font-family: var(--mono); font-size: 14px; color: var(--cyan); background: var(--bg); padding: 1px 6px; border-radius: 3px; border: 1px solid rgba(78,236,200,0.20); }
.hd-md-rendered pre { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 14px 18px; overflow-x: auto; margin: 16px 0; }
.hd-md-rendered pre code { background: none; border: none; padding: 0; font-size: 13.5px; color: var(--text); }
.hd-md-rendered hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.hd-md-rendered table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; font-family: var(--mono); }
.hd-md-rendered th { background: var(--surface); color: var(--text-white); font-weight: 700; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.hd-md-rendered td { padding: 10px 14px; border-bottom: 1px solid var(--border-dim); color: var(--text); vertical-align: top; }
@media (max-width: 720px) {
  .hd-md-rendered { padding: 22px 18px; font-size: 15.5px; }
  .hd-md-rendered h1 { font-size: 24px; }
  .hd-md-rendered h2 { font-size: 20px; }
  .hd-md-rendered h3 { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════════════════
   METHOD BLOCK numbered list
   ═══════════════════════════════════════════════════════════════ */
.hd-method-block ol {
  margin: 12px 0 14px 20px;
  padding-left: 8px;
}
.hd-method-block ol li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
  padding-left: 6px;
}
.hd-method-block ol li code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cyan);
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid rgba(78,236,200,0.20);
}

/* ═══════════════════════════════════════════════════════════════
   NP-* lightbox + gallery system (Phase-6 subset, cool palette)
   ═══════════════════════════════════════════════════════════════ */
.np-block { margin: 26px 0; }
.np-tabs { display: grid; grid-template-columns: 1fr; gap: 6px; }
.np-tabs.cols-2 { grid-template-columns: repeat(2, 1fr); }
.np-tabs.cols-3 { grid-template-columns: repeat(3, 1fr); }
.np-tabs.cols-4 { grid-template-columns: repeat(4, 1fr); }
.np-tabs.cols-5 { grid-template-columns: repeat(5, 1fr); }
.np-tab { font-family: var(--mono); font-size: 12px; font-weight: 700; color: #cccccc; background: var(--card); border: 1px solid #cccccc; border-radius: 4px; padding: 12px 16px; letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer; transition: all 0.2s; line-height: 1.25; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.np-tab:hover { color: var(--text-white); background: rgba(204,204,204,0.10); border-color: #cccccc; }
.np-tab.active { color: #000; background: #cccccc; border-color: #cccccc; }
.np-viewer { display: none; width: 100%; margin-top: 6px; background: var(--card); border: 1px solid #cccccc; border-radius: 4px; overflow: hidden; position: relative; min-height: 720px; }
.np-viewer.open { display: block; }
.np-csv-content { position: relative; width: 100%; height: 100%; min-height: 720px; overflow: hidden; }
.np-csv-content.np-single { min-height: 0; }
.np-pdf-frame { width: 100%; height: 100%; min-height: 720px; border: 0; background: #1a1a2a; display: block; }
.np-single-img { display: block; max-width: 100%; height: auto; cursor: zoom-in; margin: 0 auto; }
.np-card-list { position: absolute; inset: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.np-card { font-family: var(--mono); font-size: 13px; font-weight: 600; color: #cccccc; background: var(--card); border: 1px solid #cccccc; border-left: 3px solid #cccccc; border-radius: 4px; padding: 10px 14px; min-height: 40px; cursor: pointer; transition: all 0.12s; text-align: left; }
.np-card:hover { background: var(--elevated); border-color: #cccccc; color: var(--text-white); }
.np-card.active { background: var(--bg); color: #cccccc; }
.np-card.np-card-active { background: #cccccc; color: #000; flex-shrink: 0; }
.np-card-overlay { position: absolute; inset: 0; display: none; flex-direction: column; z-index: 1; background: var(--card); }
.np-card-overlay.open { display: flex; }
.np-card-overlay .np-pdf-frame { flex: 1 1 auto; }
.np-loading { padding: 24px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); text-align: center; }
.np-embed-wrap { width: 100%; height: 100%; min-height: 720px; }
.np-single-video { width: 100%; height: 100%; min-height: 720px; display: block; }

@media (max-width: 820px) {
  .np-tabs.cols-3, .np-tabs.cols-4, .np-tabs.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .np-viewer, .np-pdf-frame, .np-csv-content { min-height: 560px; }
}
@media (max-width: 520px) {
  .np-tabs.cols-2, .np-tabs.cols-3, .np-tabs.cols-4, .np-tabs.cols-5 { grid-template-columns: 1fr; }
}

/* ── Always-visible 2×2 image grid (initGallery host) ── */
.hd-gallery-block { max-height: 540px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 8px; margin: 18px 0; }
.hd-gallery-block.tall { max-height: 760px; }
.np-img-grid { display: grid; gap: 6px; }
.np-img-grid.cols-1 { grid-template-columns: 1fr; }
.np-img-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.np-img-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.np-img-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
div.np-img-thumb {
  aspect-ratio: 4 / 3;
  background-color: #1a1a2a;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: zoom-in;
  filter: brightness(0.82);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, filter 0.18s;
}
.np-img-thumb:hover { border-color: var(--cyan); box-shadow: 0 6px 18px rgba(78,236,200,0.22); }
div.np-img-thumb:hover { transform: scale(1.02); z-index: 2; position: relative; filter: brightness(1.0); }
img.np-img-thumb { display: block; width: 100%; height: auto; cursor: zoom-in; border: 1px solid var(--border); border-radius: 4px; background: #fff; filter: brightness(0.82); transition: filter 0.18s, border-color 0.15s, box-shadow 0.15s; }
img.np-img-thumb:hover { filter: brightness(1.0); }

@media (max-width: 480px) { .np-img-grid.cols-2 { grid-template-columns: 1fr; } }

.np-img-clickable { cursor: zoom-in; transition: border-color 0.2s, box-shadow 0.2s; }
.np-img-clickable:hover { border-color: var(--cyan) !important; box-shadow: 0 6px 18px rgba(78,236,200,0.18); }

/* ── Lightbox ── */
.np-lightbox { position: fixed; inset: 0; display: none; z-index: 9999; background: rgba(0,0,0,0.94); align-items: center; justify-content: center; }
.np-lightbox.open { display: flex; }
.np-lightbox .lb-img { max-width: 92vw; max-height: 88vh; display: block; background: #fff; border-radius: 4px; }
.np-lightbox .lb-prev, .np-lightbox .lb-next, .np-lightbox .lb-close { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-family: var(--mono); font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, border-color 0.15s; }
.np-lightbox .lb-prev:hover, .np-lightbox .lb-next:hover, .np-lightbox .lb-close:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.np-lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.np-lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.np-lightbox .lb-close { top: 18px; right: 18px; font-size: 24px; }
.np-lightbox .lb-counter { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.65); letter-spacing: 2px; }
@media (max-width: 520px) { .np-lightbox .lb-prev { left: 8px; width: 40px; height: 40px; font-size: 22px; } .np-lightbox .lb-next { right: 8px; width: 40px; height: 40px; font-size: 22px; } }

/* ── Mobile catch-all ── */
@media (max-width: 720px) {
  .hd { padding: 0 16px 60px; }
  .hd-hero { padding: 44px 8px 40px; margin-bottom: 16px; }
  .hd-section { padding: 40px 0; }
  .hd-section-title { font-size: 24px; }
  .hd-subsection-title { font-size: 19px; }
  .hd-appointment-section { margin: 24px -16px 0; padding: 40px 16px 48px; }
  .hd-appointment-callout { padding: 26px 22px; }
  .hd-hero-stat .num { font-size: 28px; }
  .hd-hero-stats { gap: 24px; }
  .hd-hero-stat { min-width: 110px; }
  .hd-chain-list li { padding: 14px 18px 14px 50px; font-size: 14.5px; }
  .hd-chain-list li::before { left: 14px; top: 14px; font-size: 16px; }
  .hd-section-nav { margin: 0 -16px 18px; }
  .hd-section-nav a { padding: 12px 12px; font-size: 11px; letter-spacing: 1.2px; }
}
