/* ============================================================
   LION SECURITY — ANNUAL REPORT 2025/26
   White paper translation of the CPTM presentation design system
   ============================================================ */

:root {
  --red:#DC0000; --red-deep:#A60000; --red-tint:#FF3B3B;
  --ink:#0C0D10; --charcoal:#16181D; --ink-soft:#1B1E24;
  --paper:#F4F5F7; --paper-2:#EBEDF0; --white:#fff;
  --text:#15171C; --muted:#6A7077; --muted-dk:#9AA0A8;
  --line:#E1E3E7; --line-2:#D4D7DC; --line-dk:rgba(255,255,255,0.12);
  --grey-bar:#C9CCD2;

  --arc:'Archivo', sans-serif;
  --body:'Barlow', sans-serif;
  --mono:'JetBrains Mono', monospace;

  /* US Letter @ 96dpi */
  --pw: 816px;
  --ph: 1056px;
  --pad: 68px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #25272c;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.arc { font-family: var(--arc); }
.mono { font-family: var(--mono); }
.r { color: var(--red); }

/* ---------- PAGE SHELL ---------- */
.doc { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 40px 0 80px; }

.page {
  width: var(--pw);
  height: var(--ph);
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.page.dark { background: var(--ink); color: #fff; }
.page.white { background: var(--white); }

.pad {
  position: absolute; inset: 0;
  padding: 52px var(--pad) 56px;
  display: flex; flex-direction: column;
}

/* ---------- LOGO ---------- */
.logo { display: block; height: 26px; color: var(--red); }
.logo svg, .logo-lg svg { display: block; height: 100%; width: auto; }
.logo-lg { display: block; height: 58px; color: var(--red); }

/* ---------- RUNNING HEADER / FOOTER ---------- */
.rhead {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 16px;
}
.page.dark .rhead { border-color: var(--line-dk); }
.rhead .kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--red); font-weight: 700; text-transform: uppercase;
}
.rhead .doc-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--muted); text-transform: uppercase;
}

.rfoot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
}
.page.dark .rfoot { border-color: var(--line-dk); color: var(--muted-dk); }
.rfoot .pg { color: var(--red); font-weight: 700; }

/* ---------- HEADINGS ---------- */
.kicker-lg {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em;
  color: var(--red); font-weight: 700; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.kicker-lg::before { content:""; width: 34px; height: 2px; background: var(--red); }

h1.title {
  font-family: var(--arc); font-weight: 800; font-size: 38px;
  line-height: 1.04; letter-spacing: -0.02em; margin: 18px 0 0; text-wrap: balance;
}
h2.sec-title {
  font-family: var(--arc); font-weight: 800; font-size: 32px;
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0; text-wrap: balance;
}
h3.sub-h {
  font-family: var(--arc); font-weight: 700; font-size: 19px;
  letter-spacing: -0.01em; margin: 26px 0 12px;
}
.lede {
  font-size: 15.5px; line-height: 1.5; color: var(--text); margin: 14px 0 0;
  max-width: 62ch;
}
.page.dark .lede { color: #D9DCE0; }
p.body {
  font-size: 13.5px; line-height: 1.58; color: #2C2F35; margin: 11px 0 0;
}
.page.dark p.body { color: #C4C8CD; }
.muted { color: var(--muted); }

/* ---------- SECTION DIVIDER (full-page) ---------- */
.divider .pad { justify-content: center; }
.divider .bignum {
  font-family: var(--arc); font-weight: 900; font-size: 240px; line-height: 0.8;
  letter-spacing: -0.06em; color: var(--red);
}
.divider .dtitle {
  font-family: var(--arc); font-weight: 800; font-size: 46px; line-height: 1.02;
  letter-spacing: -0.025em; margin: 22px 0 0; max-width: 16ch; text-wrap: balance;
}
.divider .dsub { font-size: 16px; line-height: 1.5; color: var(--muted-dk); margin: 18px 0 0; max-width: 56ch; }
.divider.dark .dsub { color: var(--muted-dk); }

/* dot-matrix texture */
.dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(220,0,0,0.20) 2px, transparent 2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 72% 50%, #000 22%, transparent 74%);
  mask-image: radial-gradient(ellipse 80% 75% at 72% 50%, #000 22%, transparent 74%);
}

/* ---------- COVER STARFIELD + LEO CONSTELLATION ---------- */
.starfield { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.starfield .sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* faint red nebula wash behind the stars */
.starfield::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 38% at 62% 28%, rgba(220,0,0,0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 78% 16%, rgba(166,0,0,0.10), transparent 72%);
}
/* scrim so the title stays legible over the stars */
.starfield::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(12,13,16,0.55) 70%, rgba(12,13,16,0.92) 100%);
}
.cover .pad { z-index: 1; }

/* constellation line + star styling (classes used on SVG elements) */
.leo-line { stroke: rgba(255,120,110,0.55); stroke-width: 1; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.leo-halo { fill: var(--red); opacity: 0.28; }
.leo-glow { fill: #FF6B6B; opacity: 0.5; }
.leo-core { fill: #fff; }
.leo-core.bright { fill: #fff; }
.leo-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; fill: rgba(255,180,175,0.7); text-transform: uppercase; }

@media (prefers-reduced-motion: no-preference) {
  .twinkle { animation: twk 3.4s ease-in-out infinite; }
  @keyframes twk { 0%,100% { opacity: var(--o,0.7); } 50% { opacity: calc(var(--o,0.7) * 0.32); } }
}
.topbar { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--red); z-index: 2; }

/* ---------- SECTION OPENER (band at top of a section) ---------- */
.sec-open { display: flex; align-items: flex-start; gap: 26px; margin: 26px 0 4px; }
.sec-open .bignum-sm {
  font-family: var(--arc); font-weight: 900; font-size: 92px; line-height: 0.78;
  letter-spacing: -0.05em; color: var(--red); flex: none;
}
.sec-open .sec-meta { padding-top: 6px; }
.sec-open .kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--red); font-weight: 700; text-transform: uppercase;
}
.sec-open h2.sec-title { margin-top: 10px; }
.sec-rule { height: 2px; background: var(--text); margin: 20px 0 0; }

/* ---------- STAT BLOCKS ---------- */
.statrow { display: flex; gap: 0; }
.statrow .stat { flex: 1; border-top: 3px solid var(--red); padding: 16px 22px 0 0; }
.statrow .stat + .stat { padding-left: 26px; }
.statrow .stat .n { font-family: var(--arc); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.statrow .stat .n .pct { font-size: 26px; }
.statrow .stat .l { font-size: 12.5px; color: var(--muted); margin-top: 9px; line-height: 1.34; }
.page.dark .statrow .stat .l { color: var(--muted-dk); }

/* big hero stat */
.bigstat { display: flex; align-items: flex-end; gap: 26px; }
.bigstat .num { font-family: var(--arc); font-weight: 900; font-size: 150px; line-height: 0.78; color: var(--red); letter-spacing: -0.05em; }
.bigstat .num .pct { font-size: 78px; }
.bigstat .cap { padding-bottom: 20px; max-width: 280px; }
.bigstat .cap .big { font-family: var(--arc); font-size: 22px; font-weight: 700; line-height: 1.08; }
.bigstat .cap .small { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.35; }

/* ---------- CALLOUT (Lion Security Perspective) ---------- */
.callout {
  background: rgba(220,0,0,0.05); border: 1px solid rgba(220,0,0,0.22);
  border-left: 4px solid var(--red); border-radius: 0 5px 5px 0;
  padding: 20px 24px; margin: 22px 0 0;
}
.page.dark .callout { background: rgba(220,0,0,0.10); border-color: rgba(220,0,0,0.35); border-left-color: var(--red); }
.callout .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); font-weight: 700; display: flex; align-items: center; gap: 9px;
}
.callout .lbl svg { width: 15px; height: 15px; }
.callout p { font-size: 13px; line-height: 1.5; color: #2C2F35; margin: 11px 0 0; }
.page.dark .callout p { color: #D2D5DA; }

/* ---------- NUMBERED FINDINGS ---------- */
.finding { display: flex; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.page.dark .finding { border-color: var(--line-dk); }
.finding:first-of-type { border-top: none; }
.finding .fn { font-family: var(--arc); font-weight: 900; font-size: 34px; color: var(--red); line-height: 0.9; flex: none; width: 58px; letter-spacing: -0.03em; }
.finding .fbody h4 { font-family: var(--arc); font-weight: 700; font-size: 16.5px; margin: 2px 0 0; letter-spacing: -0.01em; }
.finding .fbody p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 7px 0 0; }
.page.dark .finding .fbody p { color: var(--muted-dk); }

/* ---------- TABLES ---------- */
.tbl { width: 100%; border-collapse: collapse; margin-top: 18px; }
.tbl thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; text-align: left; padding: 0 12px 12px 0;
  border-bottom: 2px solid var(--text); vertical-align: bottom;
}
.tbl thead th.accent { color: var(--red); }
.tbl tbody td { font-size: 12.5px; line-height: 1.4; color: var(--text); padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td.dim { font-family: var(--arc); font-weight: 700; font-size: 13px; }
.tbl td.num-c { font-family: var(--mono); font-size: 12px; }
.tbl td.accent {
  background: rgba(220,0,0,0.05); font-weight: 600; position: relative;
  padding-left: 16px; box-shadow: inset 3px 0 0 var(--red);
}
/* status badge inside tables */
.sbadge {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #fff; background: var(--red);
  padding: 4px 9px; border-radius: 3px; white-space: nowrap; display: inline-block;
}
.sbadge.amber { background: #B8860B; }
.sbadge.slate { background: #5A6068; }
.sev { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; display: inline-block; }
.sev.crit { background: rgba(220,0,0,0.12); color: var(--red-deep); }
.sev.high { background: rgba(184,134,11,0.16); color: #8A6206; }
.sev.med  { background: rgba(90,96,104,0.14); color: #4A5057; }

/* ---------- CARDS ---------- */
.cards { display: flex; gap: 18px; margin-top: 22px; }
.card {
  flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 24px 22px; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.card::before { content:""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--red); }
.card .cidx { font-family: var(--mono); font-size: 12px; color: var(--red); font-weight: 700; }
.card .cicon { width: 40px; height: 40px; color: var(--red); margin-bottom: 14px; }
.card .cicon svg { width: 100%; height: 100%; }
.card h4 { font-family: var(--arc); font-size: 19px; font-weight: 800; margin: 10px 0 0; letter-spacing: -0.01em; }
.card p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 10px 0 0; }

/* discipline cards (with status) */
.disc { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.disc-item { border-top: 1px solid var(--line); padding: 16px 0; }
.disc-item:first-child { border-top: 2px solid var(--text); }
.disc-head { display: flex; align-items: center; gap: 14px; }
.disc-head h4 { font-family: var(--arc); font-weight: 700; font-size: 16px; margin: 0; letter-spacing: -0.01em; flex: 1; }
.disc-item p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 9px 0 0; }

/* ---------- CHARTS ---------- */
.chart-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 24px 26px 20px; margin-top: 20px;
}
.page.dark .chart-card { background: var(--ink-soft); border-color: var(--line-dk); }
.chart-title { font-family: var(--arc); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.chart-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }

.barchart { display: flex; align-items: flex-end; gap: 12px; height: 200px; margin-top: 22px; padding-bottom: 2px; }
.barchart .col { flex: 1; position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.barchart .bar { width: 100%; background: var(--grey-bar); border-radius: 3px 3px 0 0; position: relative; }
.barchart .col.proj .bar { background: repeating-linear-gradient(135deg, var(--grey-bar) 0 6px, #d9dbdf 6px 12px); }
.barchart .col.last .bar { background: var(--red); }
.barchart .v { position: absolute; top: -22px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.barchart .col.last .v { color: var(--red); font-weight: 700; }
.barchart .yr { font-family: var(--mono); font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.chart-legend { display: flex; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.chart-legend .lg { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }
.chart-legend .sw { width: 14px; height: 10px; border-radius: 2px; }

/* dot-matrix viz (annual vs continuous) */
.matrix { display: flex; gap: 40px; margin-top: 20px; }
.mpanel { flex: 1; }
.mpanel .ph { font-family: var(--arc); font-weight: 700; font-size: 15px; padding-bottom: 11px; border-bottom: 1px solid var(--line); position: relative; }
.mpanel .ph::after { content:""; position: absolute; left: 0; bottom: -1px; width: 52px; height: 2px; background: var(--red); }
.page.dark .mpanel .ph { border-color: var(--line-dk); }
.dotgrid { display: grid; grid-template-columns: repeat(18, 1fr); gap: 5px; margin-top: 16px; }
.dot { aspect-ratio: 1; border-radius: 50%; }
.dot.idle { background: rgba(20,23,28,0.07); }
.page.dark .dot.idle { background: rgba(255,255,255,0.06); }
.dot.recon { background: transparent; border: 1.5px solid #3E7AD1; }
.dot.manual { background: #B0479A; }
.dot.report { background: #27A85A; }
.dot.remed { background: #E0752C; }
.dot.expo { background: #F2B01E; }
.dot.adv { background: var(--red); }
.mlegend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 16px; }
.mlegend .li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text); }
.page.dark .mlegend .li { color: #E9EBEE; }
.mlegend .sw { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.mlegend .sw.recon { background: transparent; border: 1.5px solid #3E7AD1; }
.mlegend .sw.manual { background: #B0479A; }
.mlegend .sw.report { background: #27A85A; }
.mlegend .sw.remed { background: #E0752C; }
.mlegend .sw.expo { background: #F2B01E; }
.mlegend .sw.adv { background: var(--red); }

/* donut / regional bars */
.hbars { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.hbar-row { display: grid; grid-template-columns: 140px 1fr 56px; align-items: center; gap: 14px; }
.hbar-row .hl { font-size: 12.5px; font-weight: 600; }
.hbar-track { height: 16px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.page.dark .hbar-track { background: rgba(255,255,255,0.08); }
.hbar-fill { height: 100%; background: var(--grey-bar); border-radius: 3px; }
.hbar-fill.lead { background: var(--red); }
.hbar-row .hv { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }

/* footnote / source line */
.srcline { font-family: var(--mono); font-size: 10px; line-height: 1.5; color: var(--muted-dk); margin-top: 14px; letter-spacing: 0.02em; }
.page.dark .srcline { color: var(--muted-dk); }

/* tier pills */
.tiers { display: flex; gap: 14px; margin-top: 20px; }
.tier { flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; background: var(--white); }
.tier .tname { font-family: var(--arc); font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.tier .tname .dot-t { width: 11px; height: 11px; border-radius: 50%; }
.tier.gold .dot-t { background: #C8A14B; }
.tier.verified .dot-t { background: var(--red); }
.tier.listed .dot-t { background: #5A6068; }
.tier p { font-size: 11.5px; line-height: 1.45; color: var(--muted); margin: 9px 0 0; }

/* two-column flow */
.cols2 { columns: 2; column-gap: 34px; margin-top: 14px; }
.cols2 p.body { margin-top: 0; margin-bottom: 11px; break-inside: avoid; }

/* shield watermark */
.shield-wm { position: absolute; right: -40px; bottom: -40px; opacity: 0.05; color: #fff; pointer-events: none; }

/* themes list */
.theme { padding: 15px 0; border-top: 1px solid var(--line); display: flex; gap: 18px; }
.theme:first-child { border-top: 2px solid var(--text); }
.theme .ti { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--red); flex: none; width: 30px; padding-top: 2px; }
.theme h4 { font-family: var(--arc); font-weight: 700; font-size: 15px; margin: 0; letter-spacing: -0.01em; }
.theme p { font-size: 12px; line-height: 1.48; color: var(--muted); margin: 7px 0 0; }

/* ---------- COVER ---------- */
.cover .pad { padding: 60px 72px 56px; }
.cover .row1 { display: flex; justify-content: space-between; align-items: flex-start; }
.cover .stamp { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted-dk); text-align: right; line-height: 1.7; text-transform: uppercase; }
.cover h1 {
  font-family: var(--arc); font-weight: 800; font-size: 64px; line-height: 0.97;
  letter-spacing: -0.03em; margin: 0; max-width: 12ch;
}
.cover .years { font-family: var(--mono); font-size: 20px; letter-spacing: 0.28em; color: var(--red); font-weight: 700; margin-top: 22px; }
.cover .mid { margin-top: auto; }
.cover .desc { font-size: 14.5px; line-height: 1.55; color: #C4C8CD; max-width: 52ch; margin-top: 18px; }
.cover .hero-stats { display: flex; gap: 0; margin-top: 32px; }
.cover .hero-stats .hs { flex: 1; border-top: 3px solid var(--red); padding: 14px 20px 0 0; }
.cover .hero-stats .hs + .hs { padding-left: 24px; }
.cover .hero-stats .hn { font-family: var(--arc); font-weight: 900; font-size: 38px; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.cover .hero-stats .hl { font-size: 11.5px; color: var(--muted-dk); margin-top: 9px; line-height: 1.35; }
.cover .cfooter { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line-dk); padding-top: 22px; margin-top: 34px; }
.cover .cfooter .who { font-size: 14px; color: #fff; font-weight: 600; }
.cover .cfooter .who span { color: var(--muted-dk); font-weight: 400; }
.cover .cfooter .when { font-family: var(--mono); font-size: 12px; color: var(--muted-dk); letter-spacing: 0.08em; }

/* ---------- PRINT ---------- */
@page { size: Letter; margin: 0; }
@media print {
  html, body { background: #fff; }
  .doc { gap: 0; padding: 0; }
  .page { box-shadow: none; break-after: page; page-break-after: always; }
  .page:last-child { break-after: auto; page-break-after: auto; }
  .screen-only { display: none !important; }
}

/* screen-only nav hint */
.print-hint {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; padding: 10px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); text-transform: uppercase;
}
.print-hint b { color: var(--red); }
