:root {
  --muted: #6b7280;
}

.small-muted {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Notes/Recommendations inside method cards and report sections */
.method-note {
  white-space: pre-wrap; /* preserve line breaks and indentation */
}

pre.raw-json {
  white-space: pre-wrap;
}

/* ===== Report (A4, multi-page) ===== */
.report-root { margin: 0 auto; padding-bottom: 12mm; }

/* Each logical page (cover, contents, input, report body) */
.page {
  width: 210mm;            /* A4 width */
  min-height: 297mm;       /* A4 height */
  margin: 0 auto 12mm;     /* spacing between pages on screen */
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  box-sizing: border-box;
  position: relative;
  border-radius: 10px;
}

.page-pad {
  padding: 18mm 16mm;
}

/* Cover frame (rounded border as in sample) */
.cover-frame {
  border: 3px solid #111;
  border-radius: 42px;
  height: calc(297mm - 36mm); /* page padding top+bottom (18mm*2) */
  width: calc(210mm - 32mm);  /* page padding left+right (16mm*2) */
  margin: 18mm 16mm;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.cover-inner {
  padding: 22mm 18mm;
}

.cover-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.cover-subtitle {
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 0 0;
}

.cover-meta {
  margin-top: 32px;
  font-size: 14px;
}

.cover-meta b { display: block; }

.cover-doodle {
  position: absolute;
  left: 18mm;
  right: 18mm;
  bottom: 18mm;
  height: 45mm;
  pointer-events: none;
  z-index: 1;
}

.report-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.report-sub {
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fafafa;
}

.report-section {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
}

.no-print { display: block; }

@media print {
  /* Print must strictly match A4. Use page boxes without screen spacing/shadows. */
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .no-print { display: none !important; }
  .page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    break-after: page;
    page-break-after: always;
  }
  .page:last-child { break-after: auto; page-break-after: auto; }
  .page-pad { padding: 18mm 16mm; }
  a[href]:after { content: ""; }
}


/* Method card highlighting on check page */
.card-method.method-ok {
  background-color: rgba(25, 135, 84, 0.08);
  border-color: rgba(25, 135, 84, 0.35);
}
.card-method.method-error {
  background-color: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.35);
}
