/* ═══════════════════════════════════════════════════════════
   RAPORT — TropicalMed Data Brief
   Zewnetrzny arkusz stylow dla szablonu raport.php
   Wszystkie rozmiary w px (html font-size: 14-22px w serwisie)
   ═══════════════════════════════════════════════════════════ */


/* ═══ ZMIENNE ═══ */

.rp {
  --rp-red: #ed1c24;
  --rp-red-dark: #c8161d;
  --rp-dark: #0e1c2c;
  --rp-text: #333;
  --rp-muted: #888;
  --rp-light: #f3f3f3;
  --rp-border: #e8e8e8;
}


/* ═══ NAVBAR ═══ */

.rp-navbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0;
  position: relative;
  z-index: 200;
}
.rp-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.rp-navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rp-navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.rp-navbar-logo-img {
  height: 22px;
  width: auto;
}
.rp-navbar-divider {
  width: 1px;
  height: 18px;
  background: #ddd;
}
.rp-navbar-dept {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.02em;
}
.rp-navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rp-navbar-link {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}
.rp-navbar-link:hover {
  color: #333;
}
.rp-navbar-cta {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #f15431, #ed1c24);
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.rp-navbar-cta:hover {
  opacity: 0.9;
  color: #fff;
}


/* ═══ HERO ═══ */

.rp-hero {
  background: linear-gradient(135deg, #0e1c2c 0%, #1e5153 100%);
  color: #fff;
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.rp-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(237,28,36,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.rp-hero-badge {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rp-red);
  border: 1px solid rgba(237,28,36,0.4);
  padding: 4px 12px;
  border-radius: 3px;
  display: inline-block;
  font-weight: 700;
}
.rp-hero-series {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  display: inline-block;
  margin-left: 14px;
}
.rp-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  max-width: 700px;
  margin: 18px 0 14px;
}
.rp-hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,0.6);
}
.rp-hero-subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 32px;
}
.rp-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}
.rp-meta-item label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 3px;
  font-weight: 700;
}
.rp-meta-item span {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}


/* ═══ TOC ═══ */

.rp-toc {
  background: #fff;
  border-bottom: 2px solid var(--rp-red);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.rp-toc a {
  display: block;
  padding: 12px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--rp-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.rp-toc a:hover,
.rp-toc a.active {
  color: var(--rp-red);
  border-bottom-color: var(--rp-red);
}
#rp-toc-links {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
.rp-toc .rp-toc-dl {
  margin-left: auto;
  background: linear-gradient(90deg, #f15431, #ed1c24);
  color: #fff !important;
  border-bottom-color: transparent !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 4px;
}
.rp-toc .rp-toc-dl:hover { opacity: 0.9; }


/* ═══ EXEC SUMMARY ═══ */

.rp .rp-main .rp-exec {
  background: linear-gradient(135deg, #0e1c2c, #1e5153);
  color: #fff;
  padding: 28px 32px;
  border-radius: 8px;
  margin-bottom: 36px;
  position: relative;
}
.rp .rp-main .rp-exec::before {
  content: 'PODSUMOWANIE';
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  font-weight: 700;
}
.rp .rp-main .rp-exec p {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  font-weight: 400;
  margin-bottom: 10px;
  text-align: left;
}
.rp .rp-main .rp-exec p:last-child { margin-bottom: 0; }
.rp .rp-main .rp-exec strong { color: #fff; font-weight: 700; }
.rp .rp-main .rp-exec a { color: rgba(255,255,255,0.7); text-decoration-color: rgba(255,255,255,0.35); }
.rp .rp-main .rp-exec h2,
.rp .rp-main .rp-exec h3,
.rp .rp-main .rp-exec h4,
.rp .rp-main .rp-exec h5,
.rp .rp-main .rp-exec h6 { color: #fff; border-bottom: none; padding-bottom: 0; }
.rp .rp-main .rp-exec ul,
.rp .rp-main .rp-exec ol { color: rgba(255,255,255,0.85); }
.rp .rp-main .rp-exec li { color: rgba(255,255,255,0.85); }

/* Komponenty CMS wewnatrz exec summary (ciemne tlo) */
.rp .rp-main .rp-exec .blockmarker {
  background: rgba(255,255,255,0.08);
  border-left-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}
.rp .rp-main .rp-exec .textmarker {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.rp .rp-main .rp-exec .summary,
.rp .rp-main .rp-exec .trivia,
.rp .rp-main .rp-exec .warning,
.rp .rp-main .rp-exec .find-out-more {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.rp .rp-main .rp-exec .summary::before,
.rp .rp-main .rp-exec .trivia::before,
.rp .rp-main .rp-exec .warning::before {
  background: #0e1c2c;
  color: rgba(255,255,255,0.5);
}
.rp .rp-main .rp-exec .warning-title,
.rp .rp-main .rp-exec .trivia-title,
.rp .rp-main .rp-exec .find-out-more > .find-out-more-title {
  color: rgba(255,255,255,0.7);
}
.rp .rp-main .rp-exec .warning-content,
.rp .rp-main .rp-exec .trivia-content,
.rp .rp-main .rp-exec .find-out-more > .find-out-more-content {
  color: rgba(255,255,255,0.85);
}
.rp .rp-main .rp-exec .find-out-more-title::after {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.5);
}
.rp .rp-main .rp-exec .claim-card {
  background: rgba(255,255,255,0.06);
  border-left-color: rgba(255,255,255,0.3);
}
.rp .rp-main .rp-exec .claim-label,
.rp .rp-main .rp-exec .claim-icon { color: rgba(255,255,255,0.6); }
.rp .rp-main .rp-exec .claim-text { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.1); }
.rp .rp-main .rp-exec .claim-answer { color: rgba(255,255,255,0.65); }
.rp .rp-main .rp-exec table { border: 1px solid rgba(255,255,255,0.1); }
.rp .rp-main .rp-exec thead tr { background: rgba(255,255,255,0.1); color: #fff; }
.rp .rp-main .rp-exec thead th { color: rgba(255,255,255,0.7); }
.rp .rp-main .rp-exec tbody td { color: rgba(255,255,255,0.85); }
.rp .rp-main .rp-exec tbody tr { border-bottom-color: rgba(255,255,255,0.08); }
.rp .rp-main .rp-exec tbody tr:hover { background: rgba(255,255,255,0.05); }
.rp .rp-main .rp-exec .td-number { color: rgba(255,255,255,0.85); }
.rp .rp-main .rp-exec .td-highlight { color: rgba(255,200,200,0.9); }
.rp .rp-main .rp-exec .image-box span { color: rgba(255,255,255,0.5); }
.rp .rp-main .rp-exec .lead { color: #fff; }
.rp .rp-main .rp-exec .references { color: rgba(255,255,255,0.6); }
.rp .rp-main .rp-exec .references a { color: rgba(255,255,255,0.7); }
.rp .rp-main .rp-exec .references i { color: rgba(255,255,255,0.4); }


/* ═══ KEY NUMBERS ═══ */

.rp-key-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rp-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 36px;
}
.rp-kn-cell {
  background: #fff;
  padding: 24px 18px;
  text-align: center;
}
.rp-kn-value {
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--rp-red);
  line-height: 1;
  margin-bottom: 6px;
}
.rp-kn-label {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--rp-muted);
  line-height: 1.4;
}
.rp-kn-trend {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 3px;
}
.rp-kn-trend.up { background: rgba(237,28,36,0.08); color: var(--rp-red); }
.rp-kn-trend.down { background: rgba(30,81,83,0.08); color: #1e5153; }
.rp-kn-source {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  color: #aaa;
  margin-top: 4px;
}
.rp-key-numbers:has(.rp-kn-cell:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}


/* ═══ REFERENCJE / BIBLIOGRAFIA ═══ */

.rp .references {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--rp-muted);
}
.rp .references b {
  display: none;
}
.rp .references ol {
  padding-left: 24px;
  margin: 0;
}
.rp .references li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.rp .references a {
  color: var(--rp-red);
  text-decoration: none;
  word-break: break-all;
}
.rp .references i {
  font-size: 12px;
  color: #aaa;
}


/* ═══ SEKCJE I TRESC ═══ */

.rp-section-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rp-red);
  margin-bottom: 6px;
  font-weight: 700;
}
.rp .rp-main h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--rp-dark);
  line-height: 1.25;
  margin: 32px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rp-red);
}
.rp .rp-main h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--rp-dark);
  line-height: 1.3;
  margin: 28px 0 8px;
}
.rp .rp-main h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--rp-dark);
  line-height: 1.35;
  margin: 24px 0 6px;
}
.rp .rp-main h5 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--rp-text);
  line-height: 1.4;
  margin: 20px 0 4px;
}
.rp .rp-main h6 {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--rp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 16px 0 4px;
}
.rp-section-block { margin-bottom: 36px; }

.rp .rp-main p {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rp-text);
  margin-bottom: 10px;
  text-align: left;
}

.rp .rp-main ul,
.rp .rp-main ol {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rp-text);
  margin-bottom: 10px;
}

/* ═══ KOMPONENTY CMS (blockmarker, summary, trivia, warning, claim, image-box) ═══ */

.rp .blockmarker {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  padding: 16px 20px;
  border-left: 4px solid var(--rp-red);
  background: var(--rp-light);
  margin-bottom: 16px;
  border-radius: 0 6px 6px 0;
}

.rp .textmarker {
  background: rgba(237,28,36,0.08);
  color: var(--rp-red);
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
}

.rp .summary,
.rp .trivia,
.rp .warning,
.rp .find-out-more {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  border: 2px dotted var(--rp-border);
  padding: 20px;
  margin-bottom: 20px;
  text-align: left;
  border-radius: 8px;
  position: relative;
  background: #fff;
}

.rp .summary::before,
.rp .trivia::before,
.rp .warning::before {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rp-red);
  position: absolute;
  top: -9px;
  left: 16px;
  background: #fff;
  padding: 0 6px;
}

.rp .summary { border-color: var(--rp-red); }
.rp .trivia { border-color: #1e5153; }
.rp .trivia::before { color: #1e5153; }
.rp .warning { border-color: var(--rp-red); right: 0; }

.rp .warning-title,
.rp .trivia-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--rp-red);
}
.rp .trivia-title { color: #1e5153; }

.rp .warning-content,
.rp .trivia-content {
  margin-top: 8px;
  font-size: 15px;
}

.rp .find-out-more { border-color: var(--rp-border); }
.rp .find-out-more > .find-out-more-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--rp-red);
  text-decoration: none;
  padding-right: 120px;
  text-align: left;
}
.rp .find-out-more-title::after {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  border: 1px solid var(--rp-red);
  border-radius: 4px;
  padding: 2px 8px;
}
.rp .find-out-more > .find-out-more-content {
  font-size: 15px;
  text-align: left;
}

.rp .claim-card {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  padding: 16px 16px 16px 20px;
  margin-bottom: 16px;
  border-radius: 8px;
}
.rp .claim-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.rp .claim-icon { font-size: 18px; }
.rp .claim-text { font-size: 15px; }
.rp .claim-answer { font-size: 14px; color: #666; }

.rp .image-box img {
  border-radius: 8px;
  max-width: 100%;
}
.rp .image-box span {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--rp-muted);
  display: block;
  text-align: center;
  margin-top: 6px;
}

.rp .lead {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  margin-top: 0;
  margin-bottom: 20px;
}

.rp td {
  min-width: auto;
}


.rp-content-body a {
  color: var(--rp-red);
  text-decoration: underline;
  text-decoration-color: var(--rp-red);
  text-decoration-thickness: .125em;
  text-underline-offset: 1.5px;
  text-decoration-style: dotted;
}


/* ═══ TABELE ═══ */

.rp-data-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
}
.rp-data-table-caption {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rp-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 600;
}
.rp table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.rp thead tr {
  background: var(--rp-dark);
  color: #fff;
}
.rp thead th {
  padding: 10px 14px;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.rp tbody tr {
  border-bottom: 1px solid var(--rp-border);
  transition: background 0.15s;
}
.rp tbody tr:hover { background: var(--rp-light); }
.rp tbody td {
  padding: 9px 14px;
  font-family: 'Lato', sans-serif;
  color: var(--rp-text);
}
.rp tbody td:first-child { font-weight: 600; }
.rp .td-number {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rp .td-highlight { color: var(--rp-red); font-weight: 700; }
.rp .td-source {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--rp-muted);
  margin-top: 6px;
}


/* ═══ WYKRESY ═══ */

.rp-chart-block {
  margin: 24px 0;
  background: #fff;
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  padding: 24px;
}
.rp-chart-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--rp-dark);
  margin-bottom: 3px;
}
.rp-chart-desc {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--rp-muted);
  margin-bottom: 18px;
}
.rp-chart-visual {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rp-border);
}
.rp-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}
.rp-bar {
  width: 100%;
  background: var(--rp-dark);
  border-radius: 2px 2px 0 0;
  transition: background 0.2s;
  position: relative;
}
.rp-bar:hover { background: #2a4050; }
.rp-bar.warm { background: var(--rp-red); opacity: 0.6; }
.rp-bar.warm:hover { opacity: 0.85; }
.rp-bar-year {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  color: var(--rp-muted);
  margin-top: 4px;
  font-weight: 600;
}
.rp-bar-value {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  color: var(--rp-muted);
  white-space: nowrap;
  font-weight: 600;
}
.rp-chart-note {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--rp-muted);
  margin-top: 12px;
  font-style: italic;
}


/* ═══ METHOD BOX ═══ */

.rp-method-box {
  background: var(--rp-light);
  border-left: 4px solid var(--rp-red);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.rp-method-box .rp-method-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-red);
  margin-bottom: 8px;
  font-weight: 700;
}
.rp-method-box p {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 0;
}


/* ═══ CYTAT EKSPERTA ═══ */

.rp-expert-quote {
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--rp-border);
  border-bottom: 1px solid var(--rp-border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.rp-expert-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f15431, #ed1c24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.rp-expert-text blockquote {
  font-family: 'Lato', sans-serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rp-text);
  margin-bottom: 8px;
  border: none;
  padding: 0;
}
.rp-expert-text blockquote::before {
  content: '\201C';
  color: var(--rp-red);
  font-size: 22px;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 3px;
  font-family: 'Manrope', sans-serif;
}
.rp-expert-attr {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--rp-muted);
}
.rp-expert-attr strong {
  color: var(--rp-dark);
  font-style: normal;
  font-weight: 700;
}


/* ═══ PRZYPISY ═══ */

.rp-footnote-section {
  border-top: 2px solid var(--rp-border);
  padding-top: 24px;
  margin-top: 36px;
}
.rp-footnote-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.rp-footnote-list {
  list-style: none;
  counter-reset: fn;
  padding-left: 0;
}
.rp-footnote-list li {
  counter-increment: fn;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--rp-muted);
  line-height: 1.6;
  margin-bottom: 6px;
  padding-left: 22px;
  position: relative;
}
.rp-footnote-list li::before {
  content: counter(fn);
  position: absolute;
  left: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: var(--rp-red);
  top: 1px;
  font-weight: 700;
}
.rp-footnote-list li a {
  color: var(--rp-red);
  text-decoration: none;
  word-break: break-all;
}


/* ═══ SIDEBAR ═══ */

.rp-sidebar-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rp-border);
}
.rp-sidebar-section:last-child { border-bottom: none; }
.rp-sidebar-label {
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.rp-download-card {
  background: var(--rp-dark);
  color: #fff;
  padding: 24px;
  text-align: center;
  border-radius: 8px;
}
.rp-download-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.rp-download-card p {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.rp-btn-download {
  display: block;
  background: linear-gradient(90deg, #f15431, #ed1c24);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.rp-btn-download:hover { opacity: 0.9; color: #fff; }
.rp-btn-cite {
  display: block;
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 8px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  transition: border-color 0.2s;
}
.rp-btn-cite:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.rp-cite-box {
  background: var(--rp-light);
  padding: 14px;
  border-radius: 6px;
}
.rp-cite-box pre {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--rp-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.rp-cite-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--rp-border);
}
.rp-cite-tab {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--rp-muted);
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.rp-cite-tab:hover { color: var(--rp-text); }
.rp-cite-tab.active {
  color: var(--rp-red);
  border-bottom-color: var(--rp-red);
}

.rp-btn-cite-standalone {
  display: block;
  margin-top: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--rp-red);
  text-decoration: none;
  text-align: center;
  padding: 8px 0;
  border: 1px solid var(--rp-border);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.rp-btn-cite-standalone:hover {
  background: var(--rp-light);
  border-color: #ccc;
  color: var(--rp-red);
}

.rp-author-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rp-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f15431, #ed1c24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.rp-author-info h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--rp-dark);
}
.rp-author-info p {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--rp-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.rp-source-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.rp-source-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rp-red);
  flex-shrink: 0;
  margin-top: 6px;
}
.rp-source-item p {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--rp-muted);
  line-height: 1.5;
  margin-bottom: 0;
}
.rp-source-item p a {
  color: var(--rp-red);
  text-decoration: none;
  font-size: 12px;
}

.rp-related-report {
  padding: 10px 0;
  border-bottom: 1px solid var(--rp-border);
}
.rp-related-report:last-child { border-bottom: none; }
.rp-rr-title {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--rp-dark);
  line-height: 1.4;
  margin-bottom: 0;
}
.rp-rr-title a { color: var(--rp-red); text-decoration: none; }
.rp-rr-title a:hover { text-decoration: underline; }


/* ═══ FOOTER ═══ */

.rp-footer-inst {
  background: #0e1c2c;
  color: rgba(255,255,255,0.45);
  padding: 40px 0 0;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 1.65;
}
.rp-footer-cols {
  padding-bottom: 28px;
}
.rp-footer-col {
  margin-bottom: 24px;
}
.rp-footer-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.rp-footer-inst p {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}
.rp-footer-inst a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}
.rp-footer-inst a:hover {
  color: rgba(255,255,255,0.8);
}
.rp-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.rp-footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 12px;
}
.rp-footer-bottom a:hover {
  color: rgba(255,255,255,0.6);
}
.rp-footer-sep {
  margin: 0 10px;
  color: rgba(255,255,255,0.15);
}


/* ═══ PRINT-ONLY ELEMENTS (ukryte na ekranie) ═══ */

.rp-print-cover,
.rp-print-toc {
  display: none;
}


/* ═══ RESPONSIVE ═══ */

@media (max-width: 767px) {
  .rp-hero { padding: 32px 0 28px; }
  .rp-hero h1 { font-size: 20px; }
  .rp-hero-subtitle { font-size: 14px; margin-bottom: 20px; }
  .rp-hero-badge { font-size: 9px; }
  .rp-hero-series { display: block; margin-left: 0; margin-top: 8px; }
  .rp-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .rp .rp-main .rp-exec { padding: 20px; }
  .rp-key-numbers { grid-template-columns: 1fr 1fr; }
  .rp-kn-value { font-size: 28px; }
  .rp-kn-label { font-size: 12px; }
  .rp-toc { padding: 0 12px; }
  .rp-toc a { font-size: 12px; padding: 10px 14px; }
  .rp-toc .rp-toc-dl { display: none; }
  .rp .rp-main p,
  .rp .rp-main ul,
  .rp .rp-main ol { font-size: 14px; line-height: 1.6; }
  .rp .rp-main h2 { font-size: 18px; margin-top: 24px; }
  .rp .rp-main h3 { font-size: 16px; margin-top: 20px; }
  .rp .rp-main h4 { font-size: 15px; margin-top: 16px; }
  .rp-expert-quote { flex-direction: column; }
  .rp .find-out-more > .find-out-more-title { padding-right: 30px; }
  .rp .col-md-3.offset-md-1 {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--rp-border);
  }
  .rp table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rp-footer-inst { padding: 24px 0 0; }
  .rp-footer-col { margin-bottom: 20px; }
  .rp-footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
  .rp-footer-sep { display: none; }
}

@media (max-width: 575px) {
  .rp-navbar-inner { height: 46px; }
  .rp-navbar-logo-img { height: 18px; }
  .rp-navbar-dept { font-size: 11px; }
  .rp-navbar-link { font-size: 12px; }
  .rp-navbar-cta { font-size: 11px; padding: 5px 12px; }
  .rp-navbar-right { gap: 12px; }
  .rp-cite-tab { padding: 8px 10px; }
  .rp-btn-download { font-size: 13px; padding: 12px 16px; }
}

@media (max-width: 480px) {
  .rp-meta-grid { grid-template-columns: 1fr; }
  .rp-key-numbers { grid-template-columns: 1fr; }
  .rp .rp-main .rp-exec {
    padding: 16px;
    border-radius: 6px;
  }
  .rp-cite-tab {
    padding: 10px 12px;
    font-size: 12px;
  }
  .rp-btn-cite-standalone {
    padding: 12px 0;
    font-size: 13px;
  }
  .rp-download-card { padding: 20px 16px; }
}


/* ═══ PRINT ═══ */

@media print {

  @page {
    size: A4;
    margin: 20mm 18mm 25mm;
  }

  /* --- Ukryj elementy webowe --- */
  .rp-navbar,
  .rp-toc,
  .rp-hero,
  .blog-cta,
  .rp-btn-download,
  .rp-btn-cite,
  .rp-footer-inst,
  .tm-mobile-cta-pl,
  .rp-related-report,
  .rp-sidebar-section:has(.rp-related-report),
  .rp-download-card {
    display: none !important;
  }

  /* --- Pokaz elementy print-only --- */
  .rp-print-cover,
  .rp-print-toc {
    display: block !important;
  }

  /* --- Strona tytulowa --- */
  .rp-print-cover {
    page-break-after: always;
    padding: 80px 40px 60px;
    text-align: left;
  }
  .rp-print-cover-logo {
    height: 28px;
    width: auto;
    margin-bottom: 60px;
    display: block;
  }
  .rp-print-cover-badge {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ed1c24;
    border: 1px solid rgba(237,28,36,0.35);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 6px;
  }
  .rp-print-cover-series {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 32px;
  }
  .rp-print-cover-title {
    font-family: 'Manrope', sans-serif;
    font-size: 28pt;
    font-weight: 800;
    line-height: 1.15;
    color: #0e1c2c;
    margin: 0 0 20px;
    max-width: 480px;
    border: none;
    padding: 0;
  }
  .rp-print-cover-desc {
    font-family: 'Lato', sans-serif;
    font-size: 12pt;
    color: #666;
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 48px;
  }
  .rp-print-cover-meta {
    font-family: 'Lato', sans-serif;
    font-size: 10pt;
    color: #333;
    border-collapse: collapse;
    margin-bottom: 60px;
  }
  .rp-print-cover-meta td {
    padding: 6px 0;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
    min-width: auto;
  }
  .rp-print-cover-meta td:first-child {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 8pt;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    padding-right: 28px;
    white-space: nowrap;
  }
  .rp-print-cover-publisher {
    font-family: 'Lato', sans-serif;
    font-size: 9pt;
    color: #999;
    border-top: 2px solid #0e1c2c;
    padding-top: 16px;
    position: absolute;
    bottom: 60px;
    left: 40px;
  }

  /* --- Spis tresci --- */
  .rp-print-toc {
    page-break-after: always;
    padding: 60px 0;
  }
  .rp-print-toc-heading {
    font-family: 'Manrope', sans-serif;
    font-size: 18pt;
    font-weight: 800;
    color: #0e1c2c;
    margin-bottom: 32px;
    border: none;
    padding: 0;
  }
  .rp-print-toc-list {
    list-style: none;
    counter-reset: toc-item;
    padding: 0;
    margin: 0;
  }
  .rp-print-toc-list li {
    counter-increment: toc-item;
    font-family: 'Lato', sans-serif;
    font-size: 12pt;
    color: #333;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .rp-print-toc-list li::before {
    content: counter(toc-item) ".";
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: #ed1c24;
    min-width: 24px;
  }
  .rp-print-toc-id {
    font-family: 'Manrope', sans-serif;
    font-size: 9pt;
    color: #999;
    margin-top: 40px;
    letter-spacing: 0.04em;
  }

  /* --- Layout: pelna szerokosc --- */
  .rp .row { display: block !important; }
  .rp .col-sm-12.col-md-8,
  .rp .col-md-8 {
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .rp .col-md-3.offset-md-1,
  .rp .col-md-3 {
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
  }

  /* --- Typografia drukowa --- */
  .rp .rp-main p {
    font-size: 11pt;
    line-height: 1.5;
    text-align: left;
    color: #333;
  }
  .rp .rp-main h2 {
    font-size: 16pt;
    color: #0e1c2c;
    page-break-after: avoid;
    border-bottom-color: #0e1c2c;
  }
  .rp .rp-main h3 {
    font-size: 13pt;
    page-break-after: avoid;
  }
  .rp .rp-main h4 {
    font-size: 12pt;
    page-break-after: avoid;
  }
  .rp .rp-main h5 {
    font-size: 11pt;
    page-break-after: avoid;
  }
  .rp .rp-main h6 {
    font-size: 10pt;
    page-break-after: avoid;
  }

  /* --- Exec summary: jasne tlo do druku --- */
  .rp .rp-main .rp-exec {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ddd;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rp .rp-main .rp-exec::before { color: #888 !important; }
  .rp .rp-main .rp-exec p { color: #333 !important; }
  .rp .rp-main .rp-exec strong { color: #000 !important; }
  .rp .rp-main .rp-exec a { color: #333 !important; }
  .rp .rp-main .rp-exec h2,
  .rp .rp-main .rp-exec h3,
  .rp .rp-main .rp-exec h4,
  .rp .rp-main .rp-exec h5,
  .rp .rp-main .rp-exec h6 { color: #0e1c2c !important; }
  .rp .rp-main .rp-exec ul,
  .rp .rp-main .rp-exec ol,
  .rp .rp-main .rp-exec li { color: #333 !important; }

  /* --- Key numbers: drukuj kolory --- */
  .rp-key-numbers {
    border: 1px solid #ddd;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rp-kn-value {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rp-kn-trend {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* --- Tabele --- */
  .rp table {
    page-break-inside: avoid;
    font-size: 10pt;
  }
  .rp thead { display: table-header-group; }
  .rp thead tr {
    background: #333 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* --- Method box --- */
  .rp-method-box {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* --- Cytowanie: widoczne jako blok --- */
  .rp-sidebar-section:has(.rp-cite-box) {
    page-break-before: auto;
  }
  .rp-cite-box {
    border: 1px solid #ddd;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* --- Linki: pokaz URL --- */
  .rp-content-body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #888;
    font-style: italic;
    word-break: break-all;
  }

  /* --- Obrazy --- */
  .rp img { max-width: 100% !important; }

  /* --- Zapobiegaj lamaniu --- */
  .rp-expert-quote,
  .rp-method-box,
  .rp-chart-block { page-break-inside: avoid; }
  h2, h3, h4, h5, h6 { page-break-after: avoid; }
  p { orphans: 3; widows: 3; }
}
