/* ═══════════════════════════════════════════════════════════
   PDF export · only loaded by pdf.html
   Paper-style chrome + monitoring-report citation pattern
   (numbered footnotes inline + bibliography at end).
   ═══════════════════════════════════════════════════════════ */

.pdf-frame {
  max-width: 880px; margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(17,30,69,0.04), 0 12px 28px rgba(17,30,69,0.10), 0 2px 6px rgba(17,30,69,0.04);
  overflow: hidden;
  font-family: 'Onest', sans-serif;
  color: var(--ink);
}
.pdf-options {
  max-width: 880px; margin: 0 auto 14px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.pdf-options-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.pdf-options-tag {
  padding: 3px 9px; border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-size: 10.5px; font-weight: 600;
  background: rgba(28,122,254,0.08); color: var(--signal);
}
.pdf-options-tag.off {
  background: rgba(17,30,69,0.04); color: var(--ink-3);
  text-decoration: line-through;
}
.pdf-options-cta {
  padding: 8px 14px; border-radius: 8px;
  background: var(--mainframe); color: white;
  border: none; cursor: pointer;
  font-family: 'Onest', sans-serif; font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}

.pdf-page {
  padding: 56px 64px;
  border-bottom: 1px dashed var(--line);
  position: relative;
  min-height: 800px;
}
.pdf-page:last-child { border-bottom: none; }
.pdf-page-marker {
  position: absolute;
  top: 24px; right: 28px;
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.10em;
  color: var(--ink-3);
}
.pdf-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; padding-bottom: 18px;
  border-bottom: 2px solid var(--ink-1);
  margin-bottom: 32px;
}
.pdf-header-brand { display: flex; align-items: center; gap: 12px; }
.pdf-header-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1C7AFE, #0F4FB8);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.pdf-header-name {
  font-family: 'Onest', sans-serif; font-weight: 700; font-size: 18px;
  color: var(--ink-1);
}
.pdf-header-name small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.pdf-header-meta {
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.04em;
  color: var(--ink-3); text-align: right;
  line-height: 1.6;
}
.pdf-header-meta b { color: var(--ink); font-weight: 600; }

.pdf-cover-kicker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.pdf-cover-kicker {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 0;
}
.pdf-cover-title {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 38px;
  letter-spacing: -0.022em; line-height: 1.1;
  color: var(--ink-1);
  margin: 0 0 14px;
}
.pdf-cover-title em { color: var(--signal); font-weight: 300; }
.pdf-cover-sub {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-2); margin: 0 0 28px;
}
.pdf-cover-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.pdf-cover-stat-label {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px;
}
.pdf-cover-stat-value {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 30px;
  letter-spacing: -0.022em;
  color: var(--ink-1); line-height: 1;
}
.pdf-cover-stat-value.matrix { color: var(--matrix); }
.pdf-cover-stat-value.med { color: #946011; }
.pdf-cover-stat-sub { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

.pdf-section { margin-bottom: 28px; }
.pdf-section-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.pdf-section-title {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--ink-1);
}
.pdf-section-meta {
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.pdf-scorecard-col-head {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Onest', sans-serif;
  font-size: 13.5px; font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 9px;
}
.pdf-scorecard-col-head svg {
  width: 16px; height: 16px;
  stroke-width: 2.25;
  flex: none;
}
.pdf-scorecard-col-head.is-support { color: var(--matrix-deep); }
.pdf-scorecard-col-head.is-strengthen { color: var(--caution-deep); }
.pdf-prose { font-size: 13px; line-height: 1.65; color: var(--ink); }
.pdf-prose p { margin: 0 0 10px; }
.pdf-prose strong { font-weight: 600; }
.pdf-prose em { color: var(--signal); font-weight: 300; }

/* Checklist · used in Verify before bind */
.pdf-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdf-checklist-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  padding: 8px 10px;
  background: rgba(17,30,69,0.03);
  border-radius: 6px;
  break-inside: avoid;
}
.pdf-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ink-3);
  border-radius: 4px;
  background: white;
  margin-top: 2px;
  position: relative;
}
.pdf-checklist-item.done .pdf-check {
  background: var(--matrix);
  border-color: var(--matrix);
}
.pdf-checklist-item.done .pdf-check::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
}
.pdf-checklist-body strong { font-weight: 600; }
.pdf-checklist-meta {
  display: block;
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

/* Numbered citations */
.cite {
  display: inline-block;
  vertical-align: super;
  font-family: 'SUSE Mono', monospace;
  font-size: 9px; font-weight: 700;
  color: var(--signal);
  background: rgba(28,122,254,0.10);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 1px;
  text-decoration: none;
}
.cite:hover { background: rgba(28,122,254,0.22); }

.pdf-firmo {
  display: grid; grid-template-columns: 110px 1fr 110px 1fr;
  gap: 10px 18px;
  padding: 16px 0;
}
.pdf-firmo-label {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3);
  align-self: center;
}
.pdf-firmo-val {
  font-family: 'Onest', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--ink-1);
}
.pdf-firmo-val .sub {
  display: block; font-size: 11px; font-weight: 400;
  color: var(--ink-3); margin-top: 1px;
}

.pdf-signals { display: flex; flex-direction: column; gap: 12px; }
.pdf-signal {
  display: grid; grid-template-columns: 36px 1fr;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 4px solid;
}
.pdf-signal.adverse { background: rgba(220,62,62,0.04); border-left-color: var(--adverse); }
.pdf-signal.caution { background: rgba(229,163,58,0.06); border-left-color: var(--caution); }
.pdf-signal.matrix { background: rgba(31,184,121,0.05); border-left-color: var(--matrix); }
.pdf-signal-num {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink-3); line-height: 1;
  align-self: start;
}
.pdf-signal.adverse .pdf-signal-num { color: var(--adverse); }
.pdf-signal.caution .pdf-signal-num { color: var(--caution); }
.pdf-signal.matrix .pdf-signal-num { color: var(--matrix); }
.pdf-signal-body { font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.pdf-signal-body strong { font-weight: 600; }
.pdf-signal-body .meta {
  display: block; font-size: 11px; color: var(--ink-3);
  margin-top: 5px; line-height: 1.5;
}

.pdf-notes {
  padding: 14px 18px;
  background: rgba(17,30,69,0.025);
  border-radius: 10px;
  margin-bottom: 12px;
}
.pdf-notes-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 8px;
  margin-bottom: 8px; border-bottom: 1px solid rgba(17,30,69,0.06);
}
.pdf-notes-author {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 12.5px; color: var(--ink-1);
}
.pdf-notes-author small { font-weight: 400; font-size: 11px; color: var(--ink-3); }
.pdf-notes-time {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; color: var(--ink-3);
}
.pdf-notes-body { font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.pdf-notes-body em { color: var(--signal); font-weight: 300; }

.pdf-bib {
  background: transparent;
  padding: 0;
  margin-top: 24px;
}
.pdf-bib-head {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink-1);
  margin: 0 0 4px;
}
.pdf-bib-intro {
  font-size: 13px; color: var(--ink-3);
  line-height: 1.55; margin: 0 0 16px;
}
.pdf-bib-list-grouped {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.pdf-bib-vendor-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}
.pdf-bib-vendor-group:last-child {
  border-bottom: none;
}
.pdf-bib-vendor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(17,30,69,0.02);
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.pdf-bib-vendor-meta {
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 600;
  text-transform: uppercase;
}
.pdf-bib-vendor-group .pdf-bib-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17,30,69,0.04);
  align-items: start;
}
.pdf-bib-vendor-group .pdf-bib-item:last-of-type {
  border-bottom: none;
  padding-bottom: 14px;
}
.pdf-bib-vendor-group .pdf-bib-item:first-of-type {
  padding-top: 14px;
}
.pdf-bib-num {
  font-family: 'SUSE Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-3);
  padding-top: 1px;
}
.pdf-bib-body {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pdf-bib-body strong {
  color: var(--ink-1);
  font-weight: 600;
}
.pdf-bib-body a {
  display: block;
  font-family: 'SUSE Mono', monospace;
  font-size: 11px;
  color: var(--signal);
  text-decoration: none;
  margin-top: 4px;
  word-break: break-all;
}
.pdf-bib-body a:hover {
  text-decoration: underline;
}
.pdf-bib-body .meta {
  display: block;
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 6px;
  text-transform: uppercase;
}
.pdf-bib-vendor { align-self: start; padding-top: 2px; }

.pdf-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; margin-top: 22px;
  border-top: 1px solid var(--line);
  font-family: 'SUSE Mono', monospace;
  font-size: 9px; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.pdf-foot b { color: var(--ink); font-weight: 600; }

/* Core+ Premium elements */
.pdf-signal-resolved {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(31, 184, 121, 0.07);
  border: 1px solid rgba(31, 184, 121, 0.18);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #126641;
  line-height: 1.45;
}
.pdf-signal-resolved .resolved-check {
  color: var(--matrix);
  font-weight: 700;
  font-size: 13px;
}
.pdf-coreplus-star {
  color: #0A8C82;
  font-weight: 700;
  margin-left: 4px;
  font-size: 11px;
  display: inline-block;
  vertical-align: baseline;
}

.pdf-coreplus-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #07685F;
  background: rgba(10, 140, 130, 0.08);
  border: 1px dashed rgba(10, 140, 130, 0.30);
  padding: 4px 10px;
  border-radius: 6px;
}
.pdf-coreplus-key .key-star {
  color: #0A8C82;
  font-size: 13px;
  font-weight: 700;
}

/* Core+ depth packs grid */
.pdf-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.pdf-pack {
  display: flex;
  gap: 10px;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid #0A8C82;
  border-radius: 8px;
}
.pdf-pack-star {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(10, 140, 130, 0.10);
  color: #0A8C82;
  font-size: 12px; font-weight: 700;
}
.pdf-pack-body { min-width: 0; }
.pdf-pack-head {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; margin-bottom: 5px;
}
.pdf-pack-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pdf-pack-desc { font-size: 11px; line-height: 1.5; color: var(--ink); }
.pdf-pack-desc strong { font-weight: 600; }
.pdf-pack-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: 'SUSE Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px; border-radius: 100px;
  background: rgba(229, 163, 58, 0.14); color: var(--caution-deep);
}
.pdf-pack-tag--ok { background: rgba(31, 184, 121, 0.12); color: #126641; }
.pdf-pack-soon {
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 11px; color: var(--ink-3); line-height: 1.5;
}
.pdf-pack-soon-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-3);
  margin-right: 8px;
}

/* ─── Lucide icons inside the PDF document ───────────────────
   Icons inherit the font-size of their wrapper (each badge, star,
   check or signal slot already sets one), so 1em scales them to
   match and currentColor picks up the wrapper's color. Matches the
   live workbench: star = Core+, triangle-alert = caution. */
.pdf-frame .lucide {
  width: 0.85em; height: 0.85em;        /* < 1em — Lucide reads big at full cap-height */
  vertical-align: -0.10em;
  stroke-width: 1.6;                    /* default 2 is too chunky, esp. small */
  flex: none;
}
.pdf-signal-num .lucide { width: 0.78em; height: 0.78em; stroke-width: 1.4; vertical-align: -0.02em; }
.pdf-pack-star .lucide { width: 12px; height: 12px; }
/* keep the defensibility scorecard heads at a refined size */
.pdf-scorecard-col-head .lucide { width: 15px; height: 15px; stroke-width: 1.75; }



