﻿  <style>
    /* Offline (investigated) report — mirrors the delivered PDF layout */

    .report-shell {
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius-lg);
      padding: 2.5rem 3rem;
      margin-bottom: 2rem;
      position: relative;
      overflow: hidden;
    }

    /* Sample watermarks */
    .report-shell::before,
    .report-shell::after {
      content: "SAMPLE";
      position: absolute;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-28deg);
      font-size: 10rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      color: rgba(11, 31, 58, 0.04);
      pointer-events: none;
      white-space: nowrap;
      z-index: 0;
    }
    .report-shell::before { top: 28%; }
    .report-shell::after  { top: 72%; }
    .report-shell > * { position: relative; z-index: 1; }

    /* PDF-style layout primitives */
    .pdfr { font-size: 0.875rem; color: var(--near-black); }
    .pdfr-title {
      text-align: center;
      font-size: 1.375rem;
      font-weight: 800;
      letter-spacing: 0.01em;
      color: var(--navy);
      margin-bottom: 1.25rem;
    }
    .pdfr-section {
      border-top: 1px solid var(--gray-400);
      padding-top: 1rem;
      margin-top: 1.5rem;
    }
    .pdfr-section:first-of-type { margin-top: 0; }
    .pdfr-section__title {
      text-align: center;
      font-weight: 700;
      font-size: 0.9375rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--navy);
      margin-bottom: 0.875rem;
    }
    .pdfr-subhead {
      font-weight: 700;
      font-size: 0.8125rem;
      color: var(--gray-500);
      margin: 0.625rem 0 0.25rem;
    }
    .pdfr-row {
      display: grid;
      grid-template-columns: 175px minmax(0, 1fr);
      gap: 0 1rem;
      padding: 0.1875rem 0;
    }
    .pdfr-label { text-align: right; color: var(--gray-500); font-size: 0.8125rem; }
    .pdfr-value { color: var(--near-black); overflow-wrap: anywhere; }
    .pdfr-cols2 {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 0 2rem;
      align-items: start;
    }

    /* Credit risk rating scale */
    .riskscale { display: flex; flex-direction: column; gap: 3px; margin: 0.25rem 0 0.5rem; }
    .riskscale__row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--gray-400); }
    .riskscale__chip { width: 28px; height: 13px; border-radius: 2px; flex-shrink: 0; }
    .riskscale__row.is-selected { color: var(--navy); font-weight: 700; }
    .riskscale__row.is-selected .riskscale__name { text-decoration: underline; }
    .riskscale__pointer { width: 0.875rem; display: inline-block; color: var(--navy); font-weight: 700; }

    .pdfr-bullets { margin: 0; padding: 0; }
    .pdfr-bullets li { display: flex; gap: 0.5rem; padding: 0.125rem 0; font-size: 0.875rem; }
    .pdfr-bullets li::before { content: "•"; color: var(--navy); }

    /* CPI mini table */
    .cpi-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-top: 0.25rem; }
    .cpi-table th, .cpi-table td { padding: 0.1875rem 0.5rem; text-align: right; }
    .cpi-table th:first-child, .cpi-table td:first-child { text-align: right; color: var(--gray-500); font-weight: 400; font-size: 0.8125rem; width: 175px; }
    .cpi-table th { font-weight: 700; color: var(--navy); }
    .cpi-up { color: var(--green); }
    .cpi-down { color: var(--red); }
    .cpi-flat { color: var(--gray-400); }

    /* Sample banner and country switcher */
    .sample-banner {
      background: var(--blue-light);
      border: 1px solid rgba(45, 165, 216, 0.3);
      border-radius: var(--radius-lg);
      padding: 1rem 1.25rem;
      font-size: 0.875rem;
      color: #1A5276;
      margin-bottom: 1.5rem;
    }
    .sample-switch {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
      font-size: 0.8125rem;
      color: var(--gray-600);
      margin-bottom: 1.5rem;
    }
    .sample-switch__group { font-weight: 600; color: var(--gray-500); margin-left: 0.375rem; }
    .sample-switch__group:first-of-type { margin-left: 0; }
    .sample-switch a {
      display: inline-block;
      padding: 0.3125rem 0.875rem;
      border: 1px solid var(--gray-200);
      border-radius: 999px;
      background: var(--white);
      color: var(--navy);
      font-weight: 500;
      transition: border-color var(--transition), background var(--transition);
    }
    .sample-switch a:hover { border-color: var(--blue); background: var(--blue-light); }
    .sample-switch a.is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }

    .report-footer {
      margin-top: 2rem;
      padding-top: 1.25rem;
      border-top: 1px solid var(--gray-200);
      font-size: 0.75rem;
      color: var(--gray-500);
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    @media (max-width: 768px) {
      .report-shell { padding: 1.25rem; }
      .report-shell::before, .report-shell::after { font-size: 5rem; }
      .pdfr-cols2 { grid-template-columns: 1fr; }
      .pdfr-row { grid-template-columns: 130px minmax(0, 1fr); }
      .pdfr-label { text-align: left; }
      .cpi-table th:first-child, .cpi-table td:first-child { width: auto; text-align: left; }
    }

    @media print {
      .nav, .breadcrumb, .footer, .sample-switch { display: none !important; }
      .report-shell { border: none; padding: 0; }
    }
  </style>
