 
/* =============================================================
   Diagnóstico Reforma Tributária — FIESP Design System (BS5)
   Custom styles complementares ao Bootstrap 5.
   Apenas classes necessárias para o JS e componentes visuais
   sem equivalente direto no Bootstrap.
   ============================================================= */

/* ---------- Tokens (alinhados ao portal FIESP) ---------- */
:root { 
  --fiesp-red: #754348;
  --fiesp-red-dark: #b50510;
  --fiesp-red-light: #ffe5e5;
  --fiesp-black: #212529;
  --fiesp-gray-900: #2b2b2b;
  --fiesp-gray-700: #4a4a4a;
  --fiesp-gray-500: #757575;
  --fiesp-gray-300: #d9d9d9;
  --fiesp-gray-200: #e2e2e2;
  --fiesp-gray-100: #f4f4f4;
  /* --fiesp-gray-50: #f9f9f9; */
  --fiesp-gray-50: #dad0c7;
  --fiesp-gray-50-50: rgba(117, 67, 72, 0.1); 

  --level1: #E30613;
  --level2: #e89a30;
  --level3: #1565c0;
  --level4: #2e7d32;

  --bs-body-bg: #f9f9f9;
  --bs-body-font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --bs-body-font-size: 1.05rem;
  --bs-border-color: #e2e2e2;
  --bs-border-radius: 0.5rem;
}

@font-face {
  font-family: "Glancyr Neue";
  src: url("../fonts/Glancyr-Neue-VF.eot");
  src: url("../fonts/Glancyr-Neue-VF.eot?#iefix") format("embedded-opentype"),
       url("../fonts/Glancyr-Neue-VF.woff2") format("woff2"),
       url("../fonts/Glancyr-Neue-VF.woff") format("woff"),
       url("../fonts/Glancyr-Neue-VF.ttf") format("truetype"),
       url("../fonts/Glancyr-Neue-VF.svg#Glancyr Neue") format("svg");
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: var(--fiesp-gray-50) !important;
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "Glancyr Neue", monospace;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
}

.btn {
  font-family: "Glancyr Neue", monospace;
  font-weight: 400 !important;
  letter-spacing: 0.05em;
}

/* ---------- Navegação Portais (Design System FIESP) ---------- */
#navegacao-portais {
  margin: 0;
  padding: 0;
  outline: 0;
  text-decoration: none;
  list-style: none;
  line-height: normal;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: bold;
  background-color: #2e2e2e;
  align-content: center;
  z-index: 999;
  top: 0;
}
#navegacao-portais a {
  transition: all ease 0.25s;
}
#navegacao-portais ul {
  margin: 0;
  padding: 0;
  display: inline-table;
  list-style: none;
}
#navegacao-portais ul li {
  display: inline-table;
  text-transform: uppercase;
  margin: 0;
}
#navegacao-portais ul li a {
  color: #ddd4cd;
  background: transparent;
  text-decoration: none;
  font-size: 13px;
}
#navegacao-portais li {
  padding: 6px 4px;
}
#navegacao-portais li:hover {
  background-color: #2e2e2e;
}
#navegacao-portais li:hover a {
  color: #ddd4cd;
  opacity: 0.85;
}
@media (min-width: 576px) {
  #navegacao-portais li {
    padding: 6px 10px;
  }
}

/* ---------- Hero / Chamada (Design System FIESP) ---------- */
#chamada {
  display: block;
  padding: 0;
  min-height: 220px;
  background-image: url(../images/logo-guia-mobile.svg), url(../images/bg-topo.jpg);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: contain, cover;
}
@media (min-width: 576px) {
  #chamada {
    min-height: 420px;
  }
}
@media (min-width: 768px) {
  #chamada {
    background-image: url(../images/logo-guia.svg), url(../images/bg-topo.jpg);
    min-height: 250px;
    background-position: center, center;
    background-size: cover, cover;
  }
}
@media (min-width: 992px) {
  #chamada {
    background-image: url(../images/logo-guia.svg), url(../images/bg-topo.jpg);
    min-height: 350px;
    background-position: center, center;
    background-size: cover, cover;
  }
}
@media (min-width: 1400px) {
  #chamada {
    min-height: 380px;
    background-size: cover, cover;
  }
}
@media (min-width: 1800px) {
  #chamada {
    min-height: 550px;
    background-size: cover, cover;
  }
}

/* ---------- Navegação Seções (Design System FIESP) ---------- */
#navegacao-secoes {
  background-color: #7d4047;
  padding: 0;
  z-index: 1030;
}
#navegacao-secoes .navbar-toggler {
  color: #ddd4cd;
  border: 1px solid rgba(221, 212, 205, 0.3);
  padding: 6px 12px;
  font-size: 1.2rem;
}
#navegacao-secoes .navbar-toggler:focus {
  box-shadow: none;
}
#navegacao-secoes .nav-link {
  color: #ddd4cd;
  font-family: "Glancyr Neue", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  transition: background-color 0.25s ease;
}
#navegacao-secoes .nav-link:hover,
#navegacao-secoes .nav-link.active {
  background-color: #7d4047;
  color: #fff;
}
#navegacao-secoes .dropdown-menu {
  background-color: #2e2e2e;
  border: 1px solid rgba(221, 212, 205, 0.15);
  border-radius: 0;
  padding: 0;
}
#navegacao-secoes .dropdown-menu .dropdown-item {
  color: #ddd4cd;
  font-family: "Glancyr Neue", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 16px;
}
#navegacao-secoes .dropdown-menu .dropdown-item:hover {
  background-color: #7d4047;
  color: #fff;
}
@media (min-width: 992px) {
  #navegacao-secoes .dropdown-hover:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  #navegacao-secoes #navSecoes {
    align-items: center;
  }
  #navegacao-secoes .nav-sticky-logo {
    max-width: 0;
    margin-right: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-10px);
    white-space: nowrap;
    transition: max-width 0.3s ease, margin-right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  #navegacao-secoes .nav-sticky-logo img {
    height: 50px;
        width: auto;
        display: block;
        margin-top: .5rem;
        margin-bottom: .5rem;
  }
  #navegacao-secoes.fixed-top #navSecoes {
    justify-content: center;
  }
  #navegacao-secoes.fixed-top #navSecoes .navbar-nav {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  #navegacao-secoes.fixed-top .nav-sticky-logo {
    max-width: 220px;
    margin-right: 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

/* ---------- Navbar ---------- */
#header .navbar {
  background-color: var(--fiesp-black) !important;
  border-bottom: 4px solid var(--fiesp-red);
  min-height: 75px;
}
.navbar-brand img { max-height: 44px; }

/* ---------- Titulo com underline vermelho (portal pattern) ---------- */
.titulo {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight: 800;
  color: var(--fiesp-black);
  margin-bottom: 1.25rem;
}
.titulo::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 5px;
  border-bottom: 4px solid var(--fiesp-red);
}

.text-danger i {
  color: var(--fiesp-red);
}

.alert-info{
  color: var(--fiesp-gray-900);
background-color: var(--fiesp-gray-50-50);
border: var(--fiesp-gray-900); 
}

/* ---------- Progresso (JS controla width de progress-bar-inner) ---------- */
.progress-track { margin-bottom: 1.5rem; }
.progress-bar-outer {
  height: 4px;
  background: var(--fiesp-gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--fiesp-red), var(--fiesp-red-dark));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Telas (state machine do JS) ---------- */
.screen { display: none; animation: fadeIn 0.4s ease; }
.screen.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Radio inline (campo Associado) ---------- */
.radio-inline-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-inline-group label {
  flex: 1; min-width: 140px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: #ffffff50; cursor: pointer;
  font-size: 0.88rem; transition: all .2s;
}
.radio-inline-group label:hover {
  border-color: var(--fiesp-red);
  background: rgba(227, 6, 19, 0.05);
}
.radio-inline-group input[type=radio] { accent-color: var(--fiesp-red); }
.radio-inline-group input[type=radio]:checked + span {
  color: var(--fiesp-red); font-weight: 600;
}
.radio-inline-group label:has(input:checked) {
  border-color: var(--fiesp-red);
  background: rgba(227, 6, 19, 0.05);
  color: var(--fiesp-red);
}

/* ---------- Question cards ---------- */
.question-card {
  background: var(--fiesp-gray-50-50) !important;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: border-color .2s;
}
.question-number {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--fiesp-red); margin-bottom: 0.5rem;
}
.question-text {
  font-size: 0.95rem; font-weight: 500;
  line-height: 1.55; margin-bottom: 1rem;
  color: var(--fiesp-black);
}
.question-hint {
  font-size: 0.82rem; color: var(--fiesp-gray-500);
  margin-top: -0.5rem; margin-bottom: 0.75rem;
  font-style: italic; line-height: 1.5;
}

/* Options (custom radio visual) */
.options-grid { display: flex; flex-direction: column; gap: 8px; }
.option-item { position: relative; }
.option-item input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.option-label {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px; border-radius: 6px;
  border: 1px solid var(--bs-border-color);
  background: #ffffff50; cursor: pointer;
  transition: all .2s;
  font-size: 0.88rem; color: var(--fiesp-gray-700);
  line-height: 1.45;
}
.option-label:hover {
  background: var(--fiesp-gray-50);
  border-color: #bdbdbd;
}
.option-key {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 4px; background: var(--fiesp-gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  color: var(--fiesp-gray-700); transition: all .2s;
}
.option-text { padding-top: 2px; }
.option-item input[type="radio"]:checked + .option-label {
  background: rgba(227, 6, 19, 0.05);
  border-color: var(--fiesp-red);
  color: var(--fiesp-black);
}
.option-item input[type="radio"]:checked + .option-label .option-key {
  background: var(--fiesp-red); color: #ffffff50;
}

/* Validation error state */
.question-card.error {
  border-color: var(--fiesp-red);
  background: rgba(227, 6, 19, 0.02);
}
.error-msg {
  font-size: 0.78rem; color: var(--fiesp-red);
  margin-top: 0.5rem; display: none; font-weight: 600;
}
.question-card.error .error-msg { display: block; }

/* ---------- Save feedback ---------- */
.save-confirm {
  display: none;
  background: #e8f5e9; border: 1px solid #2e7d32;
  border-radius: var(--bs-border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.88rem; color: #1b5e20;
  margin-bottom: 1.25rem;
}
.save-confirm.show { display: block; animation: fadeIn .3s ease; }
.save-error {
  display: none;
  background: #fdecea; border: 1px solid var(--fiesp-red);
  border-radius: var(--bs-border-radius);
  padding: 0.75rem 1rem;
  font-size: 0.88rem; color: var(--fiesp-red-dark);
  margin-bottom: 1.25rem;
}
.save-error.show { display: block; }

/* ---------- Resultados ---------- */
.results-header {
  padding: 0.75rem 0 1.5rem;
  margin-bottom: 1.5rem;
}

.score-hero { margin-bottom: 1.5rem; }
.score-card {
  background: #ffffff50;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px; padding: 1.5rem;
}
.score-card.main-score {
  display: flex; align-items: center; gap: 1.5rem;
  background: linear-gradient(135deg, #ffffff50, var(--fiesp-gray-50));
}
@media (max-width: 480px) {
  .score-card.main-score { flex-direction: column; text-align: center; }
}

.circular-score { position: relative; flex-shrink: 0; width: 200px; height: 200px; }
.circular-score svg { transform: rotate(-90deg); width: 200px; height: 200px; }
.circular-score .track { fill: none; stroke: var(--fiesp-gray-200); stroke-width: 8; }
.circular-score .fill {
  fill: none; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 283; stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.circular-score .val {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.circular-score .val .num {
  font-family: "Manrope", sans-serif;
  font-size: 2.5rem; font-weight: 800;
  line-height: 1; color: var(--fiesp-red);
}
.circular-score .val .pct {
  font-size: 0.8rem; color: var(--fiesp-gray-500);
  font-weight: 500; margin-top: 2px;
}

.main-score-info .label {
  font-size: 0.72rem; color: var(--fiesp-gray-500);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 6px; font-weight: 700;
}
.main-score-info .score-num {
  font-family: "Manrope", sans-serif;
  font-size: 2.6rem; font-weight: 800;
  line-height: 1; margin-bottom: 8px;
}
.main-score-info .readiness-pct {
  font-size: 0.85rem; color: var(--fiesp-gray-700);
  margin-bottom: 10px;
}

.level-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 99px;
  font-size: 0.8rem; font-weight: 700;
}
.level-badge .dot { width: 7px; height: 7px; border-radius: 50%; }

/* Dimension grid */
.dim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin-bottom: 1.5rem;
}
.dim-card {
  background: #ffffff50;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 14px;
}
.dim-card-label {
  font-size: 0.74rem; color: var(--fiesp-gray-500);
  margin-bottom: 8px; line-height: 1.4; font-weight: 600;
}
.dim-card-score {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 6px;
}
.dim-progress {
  height: 4px; background: var(--fiesp-gray-200);
  border-radius: 99px; overflow: hidden;
}
.dim-progress-fill {
  height: 100%; border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.dim-benchmark-line {
  font-size: 0.68rem; color: var(--fiesp-gray-500); margin-top: 5px;
}

/* Radar / interpretation containers */
.radar-container {
  background: #ffffff50;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px; padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.section-head {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fiesp-red); margin-bottom: 14px;
}
.chart-wrap {
  position: relative; width: 100%;
  max-width: 420px; margin: 0 auto;
}

.interpretation-card {
  background: #ffffff50;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px; padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.interpretation-level-header {
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 1rem;
}
.level-icon { font-size: 2rem; }
.level-title {
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--fiesp-black);
}
.level-desc {
  font-size: 0.82rem; color: var(--fiesp-gray-500); margin-top: 2px;
}
.interp-body {
  font-size: 0.92rem; color: var(--fiesp-gray-700); line-height: 1.75;
}
.interp-body p { margin-bottom: 10px; }
.interp-body strong { color: var(--fiesp-black); font-weight: 700; }

/* Highlights */
.highlights-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 1.5rem;
}
@media (max-width: 500px) { .highlights-grid { grid-template-columns: 1fr; } }
.highlight-card {
  background: #ffffff50;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 14px;
}
.highlight-card.positive { border-left: 3px solid var(--level4); }
.highlight-card.negative { border-left: 3px solid var(--level1); }
.highlight-title {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.highlight-title.positive { color: var(--level4); }
.highlight-title.negative { color: var(--level1); }
.highlight-item {
  font-size: 0.85rem; color: var(--fiesp-gray-700);
  margin-bottom: 6px; line-height: 1.5;
}
.highlight-item::before { content: "→ "; color: var(--fiesp-gray-500); }

/* Recommendations */
.recs-container { margin-bottom: 1rem; }
.prio-legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 0.78rem; color: var(--fiesp-gray-500);
  margin-bottom: 14px;
}
.prio-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.prio-legend .dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.prio-legend .dot.p1 { background: var(--fiesp-red); }
.prio-legend .dot.p2 { background: #e89a30; }
.prio-legend .dot.p3 { background: #1565c0; }

.rec-item {
  background: #ffffff50;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 14px 16px; margin-bottom: 8px;
  display: flex; gap: 14px; align-items: flex-start;
}
.rec-priority {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 700;
}
.rec-priority.p1 { background: rgba(227, 6, 19, 0.12); color: var(--fiesp-red); }
.rec-priority.p2 { background: rgba(232, 154, 48, 0.18); color: var(--level2); }
.rec-priority.p3 { background: rgba(21, 101, 192, 0.15); color: var(--level3); }
.rec-content { flex: 1; }
.rec-title {
  font-size: 0.92rem; font-weight: 700;
  color: var(--fiesp-black); margin-bottom: 3px;
}
.rec-desc {
  font-size: 0.82rem; color: var(--fiesp-gray-700); line-height: 1.55;
}
.rec-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}
.rec-tag {
  display: inline-block;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  background: var(--fiesp-gray-100); color: var(--fiesp-gray-500);
}
.rec-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--fiesp-red);
  border-radius: 4px;
  background: #fff;
  color: var(--fiesp-red);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
  white-space: nowrap;
}
.rec-download-btn:hover {
  background: var(--fiesp-red-light);
  color: var(--fiesp-red-dark);
}

/* Action bar */
.action-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; padding: 1.5rem 0 0;
  border-top: 1px solid var(--bs-border-color);
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
footer.footer {
  padding: 0;
}

footer.footer .nivel-2 {
  padding: 40px 0;
}

footer.footer .nivel-2 img {
  height: 40px;
}

footer.footer .nivel-2 h6 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  margin-bottom: 0.15rem;
  opacity: 0.4;
}

footer.footer .nivel-2 address {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0;
  opacity: 0.8;
}

footer.footer .nivel-3 {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0;
}

/* ---------- Cards hover ---------- */
.card { transition: border-color .2s, transform .2s; background: #ffffff50;}
.card:hover { border-color: var(--fiesp-red); transform: translateY(-2px); }

/* Disabled button state */
.btn:disabled, .btn.disabled {
  opacity: 0.5; cursor: not-allowed; transform: none !important;
}

/* Focus ring matching portal */
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--fiesp-red);
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.15);
}
.form-check-input:checked {
  background-color: var(--fiesp-red);
  border-color: var(--fiesp-red);
}

/* =============================================================
   PRINT — imprimir apenas a tela de resultados
   ============================================================= */
@media print {
  .footer, footer,
  .progress-track,
  .action-bar,
  .save-confirm, .save-error,
  #screen-intro, #screen-0,
  #screen-1, #screen-2, #screen-3,
  #screen-4, #screen-5, #screen-6,
  #breadcrumb {
    display: none !important;
  }

  #header, header {
    position: static !important;
    background: none !important;
    border: none !important;
    margin-bottom: 1rem !important;
  }

  #header .navbar, header .navbar {
    background: none !important;
    background-color: transparent !important;
    border-bottom: none !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  .navbar-brand img {
    display: block !important;
    max-height: 50px !important;
  }

  .screen { display: none !important; }

  #screen-results,
  .screen#screen-results,
  #screen-results.screen {
    display: block !important;
  }

  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body { margin-top: 0 !important; }

  main { padding-top: 0 !important; }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .score-card, .radar-container,
  .interpretation-card, .highlight-card,
  .dim-card, .rec-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .results-header {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }

  @page { margin: 12mm 14mm; }
}
