/* ===================================================
   ROCHESTON ZELFIRE — 2026 GLOBAL THREAT REPORT
   Report Stylesheet v1.0
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&display=swap');

/* ===================================================
   CSS Custom Properties
   =================================================== */
:root {
  --solar-orange: #E86D3A;
  --amethyst:     #8E5DC1;
  --sage-green:   #6BB074;
  --electric-blue:#3B82F6;
  --crimson:      #E93D6D;
  --kinetic-yellow:#FDD835;
  --obsidian:     #282828;
  --alabaster:    #FBF1C7;
  --white:        #FFFFFF;

  --page-width:   210mm;
  --page-height:  297mm;
  --px:           18mm;
  --pt:           14mm;
  --pb:           12mm;
  --header-h:     11mm;
  --footer-h:     11mm;

  --r-sm:  6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-full: 9999px;
}

/* ===================================================
   Print Rules
   =================================================== */
@page { size: A4; margin: 0; }

@media print {
  html, body { background: none !important; padding: 0 !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { box-shadow: none !important; margin: 0 !important; border-radius: 0 !important; }
  .page { page-break-after: always; break-after: page; }
  .page:last-child { page-break-after: avoid; break-after: avoid; }
}

/* ===================================================
   Base Reset
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

body {
  font-family: 'Fira Sans', Inter, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.62;
  background: #111;
  margin: 0;
  padding: 24px 0;
}

/* ===================================================
   Page System
   =================================================== */
.page {
  width: var(--page-width);
  height: var(--page-height);
  min-height: var(--page-height);
  max-height: var(--page-height);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0 auto 28px;
  page-break-after: always;
  break-after: page;
}

@media screen {
  .page {
    box-shadow: 0 8px 48px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    border-radius: 3px;
  }
}

/* ===================================================
   Header
   =================================================== */
.page-header {
  flex-shrink: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid currentColor;
  opacity: 0.6;
}
.page-header .header-sub {
  font-size: 8px;
  opacity: 0.7;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-style: italic;
}

/* ===================================================
   Page Content
   =================================================== */
.page-content {
  flex: 1;
  min-height: 0;
  padding: var(--pt) var(--px) var(--pb);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===================================================
   Footer
   =================================================== */
.page-footer {
  flex-shrink: 0;
  height: var(--footer-h);
  padding: 0 var(--px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-divider {
  height: 1px;
  background: currentColor;
  opacity: 0.2;
  margin-bottom: 4px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

/* ===================================================
   Theme System
   =================================================== */

/* — Obsidian (dark) — */
.theme-obsidian {
  --bg: #282828; --fg: #FBF1C7; --muted: rgba(251,241,199,.55);
  --card-bg: rgba(255,255,255,.07); --card-border: rgba(255,255,255,.13);
  --accent: #E86D3A; --accent2: #3B82F6; --bar: #E86D3A;
  background-color: #282828; color: #FBF1C7;
}

/* — Alabaster (light) — */
.theme-alabaster {
  --bg: #FBF1C7; --fg: #282828; --muted: rgba(40,40,40,.55);
  --card-bg: rgba(255,255,255,.65); --card-border: rgba(40,40,40,.12);
  --accent: #E86D3A; --accent2: #3B82F6; --bar: #E86D3A;
  background-color: #FBF1C7; color: #282828;
}

/* — Electric Blue — */
.theme-blue {
  --bg: #3B82F6; --fg: #fff; --muted: rgba(255,255,255,.65);
  --card-bg: rgba(255,255,255,.13); --card-border: rgba(255,255,255,.22);
  --accent: #FDD835; --accent2: #FBF1C7; --bar: #FDD835;
  background-color: #3B82F6; color: #fff;
}

/* — Solar Orange — */
.theme-orange {
  --bg: #E86D3A; --fg: #fff; --muted: rgba(255,255,255,.65);
  --card-bg: rgba(255,255,255,.13); --card-border: rgba(255,255,255,.22);
  --accent: #FDD835; --accent2: #282828; --bar: #FDD835;
  background-color: #E86D3A; color: #fff;
}

/* — Amethyst — */
.theme-amethyst {
  --bg: #8E5DC1; --fg: #fff; --muted: rgba(255,255,255,.65);
  --card-bg: rgba(255,255,255,.11); --card-border: rgba(255,255,255,.20);
  --accent: #FDD835; --accent2: #FBF1C7; --bar: #FDD835;
  background-color: #8E5DC1; color: #fff;
}

/* — Sage Green — */
.theme-green {
  --bg: #6BB074; --fg: #282828; --muted: rgba(40,40,40,.55);
  --card-bg: rgba(255,255,255,.28); --card-border: rgba(40,40,40,.15);
  --accent: #282828; --accent2: #E86D3A; --bar: #282828;
  background-color: #6BB074; color: #282828;
}

/* — Crimson — */
.theme-crimson {
  --bg: #E93D6D; --fg: #fff; --muted: rgba(255,255,255,.65);
  --card-bg: rgba(255,255,255,.12); --card-border: rgba(255,255,255,.22);
  --accent: #FDD835; --accent2: #FBF1C7; --bar: #FDD835;
  background-color: #E93D6D; color: #fff;
}

/* — Kinetic Yellow — */
.theme-yellow {
  --bg: #FDD835; --fg: #282828; --muted: rgba(40,40,40,.55);
  --card-bg: rgba(255,255,255,.4); --card-border: rgba(40,40,40,.12);
  --accent: #282828; --accent2: #E86D3A; --bar: #282828;
  background-color: #FDD835; color: #282828;
}

/* ===================================================
   Typography
   =================================================== */
h1 { font-size: 32px; font-weight: 900; line-height: 1.1;  letter-spacing: -.01em; }
h2 { font-size: 24px; font-weight: 800; line-height: 1.2;  margin-bottom: 20px; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
h4 { font-size: 14.5px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
h5 { font-size: 12.5px; font-weight: 700; line-height: 1.35; margin-bottom: 3px; }

p  { font-size: 13px; line-height: 1.65; margin-bottom: 8px; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 18px; margin-bottom: 8px; }
li     { font-size: 13px; line-height: 1.55; margin-bottom: 3px; }
strong { font-weight: 700; }
em     { font-style: italic; }

.label-tag {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; opacity: .6; margin-bottom: 4px; display: block;
}

/* ===================================================
   Section Bar
   =================================================== */
.section-bar {
  width: 100%; height: 5px;
  background: var(--bar); border-radius: 3px;
  margin-bottom: 14px; flex-shrink: 0;
}
.bar-short {
  width: 44px; height: 4px;
  background: var(--accent); border-radius: 2px;
  margin-bottom: 10px;
}

/* ===================================================
   Card
   =================================================== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 13px 15px;
  margin-bottom: 9px;
}
.card-accent { border-left: 4px solid var(--accent); padding-left: 12px; }
.card-sm     { padding: 9px 12px; border-radius: var(--r-md); }

.card-label {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; opacity: .65; margin-bottom: 5px;
}
.card-title  { font-size: 13px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.card-body   { font-size: 12px; line-height: 1.58; opacity: .85; }
.card-value  { font-size: 28px; font-weight: 900; line-height: 1; }
.card-sub    { font-size: 10px; opacity: .6; margin-top: 3px; }

/* ===================================================
   Findings List
   =================================================== */
.findings-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}
.findings-card-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 9px; padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
}
.findings-list { list-style: none; padding: 0; }
.findings-list li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12px; line-height: 1.5; margin-bottom: 5px;
  padding-bottom: 5px; border-bottom: 1px solid var(--card-border);
}
.findings-list li:last-child { border-bottom: none; margin-bottom: 0; }
.findings-list li::before {
  content: ''; display: block;
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}

/* ===================================================
   Callout / Quote
   =================================================== */
.callout {
  background: var(--card-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 11px 14px; margin: 8px 0;
}
.callout-quote { font-size: 13.5px; font-weight: 600; font-style: italic; line-height: 1.55; }
.callout-attr  { font-size: 10px; opacity: .6; margin-top: 5px; }
.big-quote {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 6px solid var(--accent);
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
  padding: 18px 20px;
  font-size: 16px; font-weight: 700; font-style: italic; line-height: 1.55;
}

/* ===================================================
   Layout
   =================================================== */
.two-col  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-col-w { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.four-col  { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }

.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.gap-6     { gap: 6px; }
.gap-8     { gap: 8px; }
.gap-10    { gap: 10px; }
.gap-12    { gap: 12px; }
.mb-4      { margin-bottom: 4px; }
.mb-6      { margin-bottom: 6px; }
.mb-8      { margin-bottom: 8px; }
.mb-10     { margin-bottom: 10px; }
.mb-12     { margin-bottom: 12px; }
.mb-14     { margin-bottom: 14px; }
.mt-6      { margin-top: 6px; }
.mt-8      { margin-top: 8px; }
.mt-auto   { margin-top: auto; }
.flex-1    { flex: 1; }

/* ===================================================
   Chart Container
   =================================================== */
.chart-wrap {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.chart-title { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.chart-sub   { font-size: 9.5px; opacity: .6; margin-bottom: 7px; }
.chart-foot  { font-size: 8.5px; opacity: .48; font-style: italic; margin-top: 4px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.legend-item  { display: flex; align-items: center; gap: 4px; font-size: 9px; opacity: .8; }
.l-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.l-rect { width: 11px; height: 7px; border-radius: 2px; flex-shrink: 0; }

/* ===================================================
   Specific Cover Components
   =================================================== */
.cover-hero {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 10mm var(--px) 10mm;
}
.cover-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; opacity: .55; margin-bottom: 12px;
}
.cover-title {
  font-size: 52px; font-weight: 900; line-height: 1.22;
  letter-spacing: -.02em; margin-bottom: 10px;
}
.cover-subtitle {
  font-size: 24px; font-weight: 300; letter-spacing: .05em;
  opacity: .72; margin-bottom: 48px;
}
.cover-blurb {
  font-size: 13.5px; font-weight: 400; line-height: 1.68;
  max-width: 145mm; opacity: .82; margin-bottom: 22px;
}
.cover-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.badge {
  padding: 3px 12px;
  border: 1px solid currentColor;
  border-radius: var(--r-full);
  font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; opacity: .65;
}
.cover-callout {
  background: rgba(255,255,255,.09);
  border-left: 4px solid #E86D3A;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 13px 16px;
  font-size: 14px; font-weight: 600; font-style: italic; line-height: 1.55;
  max-width: 150mm;
}
.palette-strip {
  display: flex; height: 7px;
  border-radius: var(--r-full); overflow: hidden;
  width: 72mm; margin-bottom: 18px;
}
.palette-strip > div { flex: 1; }

/* ===================================================
   Steps / Ladder
   =================================================== */
.steps { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.step-item {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-md); padding: 8px 11px;
}
.step-num {
  width: 20px; height: 20px; background: var(--accent);
  color: #282828; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; flex-shrink: 0;
}
.step-text { flex: 1; font-size: 12px; line-height: 1.48; }

/* ===================================================
   Numbered Findings
   =================================================== */
.num-list { list-style: none; padding: 0; }
.num-list li {
  display: flex; gap: 9px; align-items: flex-start;
  margin-bottom: 5px; font-size: 12.5px; line-height: 1.5;
}
.n-badge {
  width: 19px; height: 19px; background: var(--accent);
  color: #282828; border-radius: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 900; margin-top: 1px;
}

/* ===================================================
   Checklist
   =================================================== */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.5; margin-bottom: 5px;
  padding-bottom: 5px; border-bottom: 1px solid var(--card-border);
}
.checklist li:last-child { border-bottom: none; margin-bottom: 0; }
.chk { width: 14px; height: 14px; border: 2px solid var(--accent); border-radius: 3px; flex-shrink: 0; margin-top: 2px; }
.chk-section {
  font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin: 10px 0 4px;
  padding-top: 8px; border-top: 1px solid var(--card-border);
}
.chk-section:first-child { border-top: none; margin-top: 0; }

/* ===================================================
   Table
   =================================================== */
.rtable { width: 100%; border-collapse: collapse; font-size: 11px; }
.rtable th {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; padding: 6px 9px; text-align: left;
  background: var(--card-bg); border-bottom: 2px solid var(--accent);
  color: inherit;
}
.rtable td {
  padding: 5px 9px; border-bottom: 1px solid var(--card-border);
  line-height: 1.45; vertical-align: top;
}
.rtable tr:last-child td { border-bottom: none; }
.rtable tr:nth-child(even) td { background: var(--card-bg); }

/* ===================================================
   Timeline
   =================================================== */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--card-border);
}
.tl-item { position: relative; margin-bottom: 9px; }
.tl-item::before {
  content: ''; position: absolute; left: -18px; top: 5px;
  width: 9px; height: 9px; background: var(--accent); border-radius: 50%;
}
.tl-title { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.tl-text  { font-size: 11.5px; line-height: 1.5; opacity: .82; }

/* ===================================================
   Metric Tiles
   =================================================== */
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 10px; }
.metric-tile {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-md); padding: 10px 11px; text-align: center;
}
.metric-num   { font-size: 26px; font-weight: 900; line-height: 1; display: block; }
.metric-label { font-size: 9px; opacity: .65; margin-top: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; display: block; }

/* ===================================================
   TOC
   =================================================== */
.toc-list { list-style: none; padding: 0; }
.toc-item {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 0; border-bottom: 1px dotted var(--card-border);
  font-size: 12px; line-height: 1.4;
}
.toc-item:last-child { border-bottom: none; }
.toc-title  { font-weight: 500; flex: 1; }
.toc-pnum   { font-weight: 700; opacity: .65; font-size: 10.5px; min-width: 28px; text-align: right; margin-left: 8px; }
.toc-sec-hd {
  font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em;
  opacity: .5; margin: 9px 0 3px; padding-top: 5px; border-top: 2px solid var(--accent);
}

/* ===================================================
   About / Info Cards
   =================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; }
.about-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-lg); padding: 16px;
  display: flex; flex-direction: column;
}
.about-card-name {
  font-size: 11px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 8px;
}
.about-card p { font-size: 11.5px; line-height: 1.62; }

/* ===================================================
   Sector Grid
   =================================================== */
.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sector-item {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-md); padding: 9px 11px;
}
.sector-name { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.sector-desc { font-size: 10.5px; line-height: 1.5; opacity: .78; }

/* ===================================================
   Risk Bars
   =================================================== */
.risk-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.risk-label { font-size: 10.5px; font-weight: 600; min-width: 100px; }
.risk-bar-wrap { flex: 1; height: 7px; background: var(--card-border); border-radius: var(--r-full); overflow: hidden; }
.risk-bar-fill { height: 100%; border-radius: var(--r-full); background: var(--accent); }
.risk-pct { font-size: 10px; font-weight: 700; min-width: 30px; text-align: right; opacity: .7; }

/* ===================================================
   Maturity Model
   =================================================== */
.maturity { display: flex; gap: 5px; align-items: flex-end; margin-top: 8px; }
.maturity-level {
  flex: 1; text-align: center;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-sm) var(--r-sm) 0 0; padding: 7px 3px;
  font-size: 9.5px; font-weight: 600; line-height: 1.3;
}
.maturity-level.active { background: var(--accent); color: #282828; border-color: var(--accent); }

/* ===================================================
   Campaign Cards
   =================================================== */
.campaign-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.campaign-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--r-md); padding: 10px 12px;
  border-top: 3px solid var(--accent);
}
.campaign-title { font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.campaign-body  { font-size: 10.5px; line-height: 1.5; opacity: .82; }

/* ===================================================
   Misc Utilities
   =================================================== */
.text-accent  { color: var(--accent); }
.text-muted   { opacity: .65; }
.text-center  { text-align: center; }
.text-sm      { font-size: 11.5px; }
.text-xs      { font-size: 10px; }
.italic       { font-style: italic; }
.bold         { font-weight: 700; }
.divider      { height: 1px; background: currentColor; opacity: .14; margin: 8px 0; }
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: var(--r-full);
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em;
}
.footnote { font-size: 8.5px; opacity: .48; font-style: italic; margin-top: 3px; }
/* Checklist ticks on Page 112 (theme-blue) */
.theme-blue .checklist .check-item {
  position: relative;
  padding-left: 22px;
}
.theme-blue .checklist .check-item::before {
  content: "\2713"; /* checkmark */
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  border-radius: 3px;
  background: #3B82F6; /* blue chip */
  color: #fff; /* white tick */
  font-size: 10px;
  font-weight: 700;
}
/* Keep TOC links visually identical (no color/underline changes) */
.toc-link,
.toc-link:visited,
.toc-link:hover,
.toc-link:active,
.toc-link:focus {
  color: inherit;
  text-decoration: none;
}
/* Ensure children of TOC links don't adopt UA link/hover colors */
.toc-item a,
.toc-item a:visited,
.toc-item a:hover,
.toc-item a:active,
.toc-item a:focus {
  color: inherit !important;
  text-decoration: none !important;
}
.toc-item a * { color: inherit !important; text-decoration: none !important; }
.toc-link { display: contents; }

/* Go To Top button */
.goto-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  background: #E86D3A; /* orange */
  color: #FBF1C7; /* light text */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900; /* bold icon */
  font-size: 18px;
  text-decoration: none;
  border: none;
  box-shadow: none; /* no shadows */
  text-shadow: none; /* no text shadow */
  z-index: 9999;
}
.goto-top:focus { outline: 2px solid #FBF1C7; outline-offset: 2px; }

/* Smooth scroll for anchor jumps */
html { scroll-behavior: smooth; }
