/* Four-block diagnostic report view — sample + live */

.drv-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 28px 20px 72px;
  box-sizing: border-box;
}

/* Logged-in app shell: left-align with other product pages (no centered gutter) */
.sample-report-shell .dh-main {
  padding: 28px clamp(16px, 3vw, 36px) 48px;
}

.sample-report-shell .drv-page,
.drv-page--in-app {
  margin: 0;
  max-width: min(44rem, 100%);
  padding: 0 0 32px;
  width: 100%;
}

.drv-page-back {
  margin: 0 0 18px;
  font-size: 0.9375rem;
}

.drv-page-back a {
  color: #0f3685;
  font-weight: 600;
  text-decoration: none;
}

.drv-page-back a:hover {
  text-decoration: underline;
}

.drv-page-note {
  margin: 0 0 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.drv {
  color: #0f172a;
  font-family: var(--font-sans, 'Inter', system-ui, -apple-system, sans-serif);
}

.drv-headline {
  margin: 0 0 36px;
}

.drv-eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.drv-score {
  margin: 0 0 14px;
  font-family: var(--font-serif, 'DM Serif Display', Georgia, serif);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f3685;
}

.drv-score-sep {
  margin: 0 0.2em;
  color: #94a3b8;
  font-weight: 400;
}

.drv-recoverable {
  color: #0f3685;
  font-weight: 400;
}

.drv-verdict {
  margin: 0;
  max-width: 36em;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #334155;
}

.drv-block {
  margin: 0 0 36px;
}

.drv-block-title {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.drv-finding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.drv-finding {
  margin: 0;
  padding: 14px 16px 14px 18px;
  border-left: 4px solid #0f3685;
  background: #f8fafc;
  border-radius: 0 10px 10px 0;
}

.drv-finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin: 0 0 8px;
}

.drv-finding-topic {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f3685;
  line-height: 1.3;
}

.drv-finding-marks {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
  white-space: nowrap;
}

.drv-finding-plus strong {
  font-weight: 800;
  color: #0f3685;
}

.drv-finding-pattern {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #1e293b;
}

.drv-empty-signal {
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #334155;
}

.drv-week-line {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1e293b;
}

.drv-week-line strong {
  font-weight: 800;
  color: #0f3685;
}

.drv-week-sep {
  color: #94a3b8;
  padding: 0 0.15em;
}

.drv-week-total {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.drv-cta {
  margin: 8px 0 0;
  padding-top: 8px;
}

.drv-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #0f3685;
  color: #fff !important;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.3;
}

.drv-cta-btn:hover {
  background: #0a2a6b;
}

.drv-cta-note {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .drv-page {
    padding: 20px 16px 56px;
  }

  .drv-finding-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .drv-finding-marks {
    white-space: normal;
  }

  .drv-cta-btn {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Print — four blocks on one A4 */
@media print {
  body.sample-report-page .modern-header,
  body.sample-report-page footer,
  body.sample-report-page .drv-page-back,
  body.sample-report-page .drv-page-note,
  body.sample-report-page .drv-cta,
  .sample-report-shell .dh-sidebar {
    display: none !important;
  }

  .sample-report-shell .dh-shell {
    display: block;
  }

  .drv-page,
  .drv-page--in-app {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .drv-headline {
    margin-bottom: 20px;
  }

  .drv-block {
    margin-bottom: 18px;
    break-inside: avoid;
  }

  .drv-finding {
    background: #fff;
    border-left-color: #000;
  }

  .drv-score,
  .drv-finding-topic,
  .drv-week-line strong {
    color: #000;
  }

  .drv-verdict,
  .drv-finding-pattern,
  .drv-week-line {
    color: #111;
  }

  @page {
    size: A4;
    margin: 14mm;
  }
}
