/* Sample inspection report */

.report-page {
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(190, 160, 120, 0.1), transparent 60%),
    var(--paper);
}

.report-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.report-header .brand-wordmark { width: 112px; }

.report-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-link {
  color: #6e6658;
  font-size: 10px;
  font-weight: 600;
}

.back-link:hover { color: var(--ink); }

.report-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 26px 80px;
}

.report-intro {
  padding: 26px 0 34px;
  max-width: 670px;
}

.report-intro h1 {
  font-family: var(--font-display);
  font-size: 45px;
  line-height: 1.03;
  letter-spacing: -1.9px;
  font-weight: 760;
  margin-top: 14px;
}

.report-intro p {
  color: #6e6658;
  font-size: 12px;
  line-height: 1.65;
  margin-top: 13px;
  max-width: 590px;
}

.report-sheet {
  background: var(--surface);
  border: 1px solid #d4ccbd;
  border-radius: 4px;
  padding: 42px 44px 25px;
  box-shadow: 0 24px 55px rgba(28, 23, 16, 0.08);
}

.sheet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e0d9cc;
  padding-bottom: 18px;
}

.sheet-brand { display: flex; align-items: center; gap: 9px; }

.sheet-brand-mark {
  width: 33px;
  height: 33px;
  border-radius: 4px;
  background: var(--ink);
  color: #d7bf96;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 750;
}

.sheet-brand div { display: grid; gap: 1px; }
.sheet-brand strong { font-size: 10.5px; font-weight: 750; }
.sheet-brand span { font-size: 7.5px; color: #8e8575; }

.sheet-ref { text-align: right; }
.sheet-ref span { display: block; font-size: 7px; text-transform: uppercase; letter-spacing: 1px; color: #958b7b; }
.sheet-ref strong { display: block; font-family: var(--mono); font-size: 10px; margin-top: 3px; color: #554f43; }

.sheet-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 27px 0 23px;
}

.sheet-kicker {
  color: var(--bronze-deep);
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.sheet-title-row h2 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.2px;
  font-weight: 740;
  margin-top: 7px;
}

.sheet-title-row h2 em { font-style: normal; color: #8c7e68; font-size: 20px; letter-spacing: -0.5px; }
.sheet-title-row p { color: #8e8575; font-size: 9px; margin-top: 5px; }

.sheet-verdict {
  border: 1px solid #dfcaa7;
  background: var(--bronze-soft);
  border-radius: 3px;
  padding: 9px 12px;
  text-align: right;
  flex: 0 0 auto;
}

.sheet-verdict span { display: block; font-size: 8px; font-weight: 750; color: #6f542c; text-transform: uppercase; letter-spacing: 0.8px; }
.sheet-verdict small { display: block; color: #907a58; font-family: var(--mono); font-size: 8px; margin-top: 2px; }

.report-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 22px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid #e6e0d4;
  border-bottom: 1px solid #e6e0d4;
}

.report-meta div { min-width: 0; }
.report-meta dt { color: #9b9181; text-transform: uppercase; font-size: 6.5px; letter-spacing: 0.75px; font-weight: 700; }
.report-meta dd { margin: 3px 0 0; color: #4e483c; font-size: 9px; line-height: 1.35; }

.report-section { padding: 30px 0 28px; border-bottom: 1px solid #e5dfd3; }

.report-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.report-section-head > strong { color: #4d473b; font-size: 11px; font-weight: 650; text-align: right; }

.report-score-row {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 22px;
  background: #f3eee4;
  border: 1px solid #e1d8c7;
  border-radius: 3px;
}

.report-score-ring {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: conic-gradient(var(--bronze) 0 79%, #e4dccd 79% 100%);
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  flex: 0 0 auto;
}

.report-score-ring::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #f3eee4;
}

.report-score-ring strong,
.report-score-ring span { position: relative; z-index: 1; }
.report-score-ring strong { font-family: var(--font-display); font-size: 30px; letter-spacing: -1.2px; line-height: 0.9; }
.report-score-ring span { font-size: 7px; color: #8c8272; margin-top: 2px; }

.report-score-row > p {
  color: #5c5548;
  font-size: 10.5px;
  line-height: 1.65;
  flex: 1;
  max-width: 440px;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c9b690;
  border-radius: 999px;
  padding: 5px 9px;
  color: #785d33;
  font-size: 7.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.result-badge span { width: 4px; height: 4px; border-radius: 50%; background: #a67c42; }

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.evidence-card {
  margin: 0;
  border: 1px solid #dfd8cb;
  background: #f2eee5;
  padding: 6px;
  border-radius: 2px;
}

.evidence-card svg { width: 100%; height: auto; display: block; }

.evidence-card figcaption { color: #817767; font-size: 7px; line-height: 1.35; padding: 6px 3px 2px; }

.findings { display: grid; gap: 0; }

.finding {
  padding: 16px 0;
  border-top: 1px solid #e5dfd3;
}

.finding:last-child { border-bottom: 1px solid #e5dfd3; }

.finding-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.severity {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 3px 5px;
  font-size: 6.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.finding-number {
  font-family: var(--mono);
  font-size: 7px;
  color: #a1937e;
  letter-spacing: 0.5px;
  min-width: 17px;
}

.severity.minor { background: #f1e4d0; color: #7a5c2b; border: 1px solid #dfcaa7; }
.severity.critical { background: #f7ded6; color: #9b2f1e; border: 1px solid #e6b7a9; }
.severity.advisory { background: #e8e9e1; color: #5e6651; border: 1px solid #d5d9cb; }

.finding-title h3 { font-family: var(--font-display); font-size: 13.5px; letter-spacing: -0.2px; font-weight: 680; }

.finding-ref { margin-left: auto; color: #9a9181; font-family: var(--mono); font-size: 7px; }

.finding p { color: #6a6355; font-size: 9.5px; line-height: 1.6; margin-top: 6px; max-width: 720px; }

.criteria-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.criteria-table th {
  text-align: left;
  color: #968c7c;
  font-size: 6.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
  border-bottom: 1px solid #d9d1c3;
  padding: 0 8px 8px;
}

.criteria-table th:nth-child(2) { width: 50px; text-align: center; }
.criteria-table td { padding: 8px; border-bottom: 1px solid #eee8dd; color: #615a4d; vertical-align: top; line-height: 1.4; }
.criteria-table td:first-child { font-weight: 600; color: #3d382e; width: 170px; }
.criteria-table td:nth-child(2) { text-align: center; font-family: var(--mono); font-size: 8px; color: #735a32; }

.conclusion-body {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 35px;
  align-items: start;
}

.conclusion-body > div:first-child > p { color: #5f584b; font-size: 10px; line-height: 1.6; }

.next-steps { display: grid; gap: 9px; margin-top: 16px; }

.next-steps li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
  color: #655e50;
  font-size: 9.5px;
  line-height: 1.5;
}

.next-steps span { font-family: var(--mono); color: #9a8058; font-size: 7px; padding-top: 2px; }

.signoff { text-align: center; border-left: 1px solid #e1dacd; padding-left: 25px; }
.signoff img { width: 84px; margin: 0 auto 11px; }
.signoff > span { display: block; color: #9a9181; font-size: 6.5px; text-transform: uppercase; letter-spacing: 0.8px; }
.signoff strong { display: block; font-family: var(--font-display); font-size: 14px; margin-top: 3px; }
.signoff small { display: block; color: #8c8374; font-size: 7px; margin-top: 2px; }

.sheet-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 19px;
  color: #9a9181;
  font-size: 6.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-disclaimer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 26px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(190, 160, 120, 0.4);
}

.report-disclaimer p { color: #776e5f; font-size: 9.5px; line-height: 1.6; max-width: 620px; }
.report-disclaimer p strong { color: #4e483c; }

@media (max-width: 800px) {
  .report-header { padding: 18px 17px; }
  .report-header .brand-wordmark { width: 102px; }
  .report-header-actions { gap: 10px; }
  .back-link { display: none; }
  .report-wrap { padding: 8px 12px 55px; }
  .report-intro { padding: 20px 5px 27px; }
  .report-intro h1 { font-size: 35px; letter-spacing: -1.4px; }
  .report-sheet { padding: 24px 18px 18px; }
  .sheet-title-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .sheet-title-row h2 { font-size: 28px; }
  .report-meta { grid-template-columns: 1fr 1fr; }
  .report-section-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .report-section-head > strong { text-align: left; }
  .report-score-row { align-items: flex-start; flex-wrap: wrap; gap: 15px; padding: 17px; }
  .report-score-row > p { flex-basis: 100%; }
  .evidence-grid { grid-template-columns: 1fr 1fr; }
  .conclusion-body { grid-template-columns: 1fr; gap: 25px; }
  .signoff { border-left: 0; border-top: 1px solid #e1dacd; padding: 20px 0 0; }
  .signoff img { width: 68px; }
  .sheet-foot { flex-direction: column; gap: 5px; }
  .report-disclaimer { flex-direction: column; gap: 17px; }
  .criteria-table td:first-child { width: 105px; }
  .criteria-table { font-size: 8px; }
  .criteria-table th:nth-child(2) { width: 35px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body.report-page { background: #fff; color: #111; }
  .no-print, .report-disclaimer { display: none !important; }
  .report-wrap { max-width: none; padding: 0; }
  .report-intro { padding: 0 0 8mm; }
  .report-intro h1 { font-size: 26px; }
  .report-intro p { font-size: 9px; }
  .report-sheet { border: 0; box-shadow: none; padding: 0; background: #fff; }
  .report-section { break-inside: avoid; }
  .evidence-card, .finding, .report-score-row { break-inside: avoid; }
  .sheet-foot { margin-top: 8mm; }
}
