/* ============================================================================
   Pain Journal site: for-clinicians page extras. Loads after base.css +
   content.css. Holds the report block, "why recommend" reasons, the recommend
   steps, and the printable referral-card tool (with its @media print sheet).

   STYLE + RULES: docs/growth/WEBSITE-DESIGN-SYSTEM.md (read before editing).
   ========================================================================== */

/* ---------- Section intros ---------- */
/* Reading block (heading + a paragraph or two). This stylesheet only loads on
   for-clinicians, whose <main> is always .doc.land, so the column width comes
   from --measure (widened to --wide by the .land scope in content.css); no
   per-component width overrides needed. Headings share the scale defined in
   content.css (.subhead / .prose h2 / .clin-head h2 / .clin-intro h2). */
.clin-intro { max-width: var(--measure); margin-inline: auto; }
.clin-intro .kicker { display: block; margin-bottom: 12px; }

.clin-intro p {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-top: 14px;
  max-width: 62ch;
}

/* Heading block above a grid (label + optional lead line). */
.clin-head { max-width: var(--measure); margin-inline: auto; }
.clin-head .kicker { display: block; margin-bottom: 12px; }

.clin-head p { color: var(--ink-muted); margin-top: 14px; line-height: 1.65; }

.clin-head + .clin-report,
.clin-head + .reasons,
.clin-head + .recommend { margin-top: clamp(28px, 4vw, 48px); }

.card-tool + .legal-note { margin-top: 26px; }

/* ---------- What the patient brings you (checklist + real report screenshot) ---------- */
.clin-report {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  max-width: var(--measure);
  margin-inline: auto;
}

.checklist {
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 24px 26px;
}

.checklist > p { color: var(--ink-muted); }

.checklist ul { list-style: none; margin-top: 10px; }

.checklist li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink);
}

.checklist li:last-child { border-bottom: none; }
.checklist li b { color: var(--pine); font-weight: 600; }

.checklist .tick {
  flex-shrink: 0;
  color: var(--terracotta);
  margin-top: 2px;
}

.clin-report .phone { justify-self: center; width: clamp(210px, 26vw, 268px); }

/* ---------- Why it is safe to recommend ---------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 40px);
  max-width: var(--measure);
  margin-inline: auto;
}

/* .reason item look lives in base.css (shared with the homepage .value). */

/* ---------- How to recommend it (numbered steps) ---------- */
.recommend {
  max-width: var(--measure);
  margin-inline: auto;
}

.rec-step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.rec-step:last-child { border-bottom: none; }

/* Keep step copy at a readable measure even though the section runs full width. */
.rec-step > div { max-width: 62ch; }

.rec-step .num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--terracotta);
  min-width: 1.4em;
}

.rec-step h3 { font-size: 1.1rem; letter-spacing: -0.01em; color: var(--pine); }

.rec-step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 4px;
}

/* ---------- Printable referral-card tool ---------- */
.card-tool {
  max-width: var(--measure);
  margin-inline: auto;
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r);
  padding: 32px 28px;
  text-align: center;
}

.card-tool h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.015em;
  color: var(--pine);
}

.card-tool > p { color: var(--ink-muted); margin-top: 8px; }

.card-preview {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px auto 24px;
  text-align: left;
  max-width: 360px;
}

.card-preview .qr { width: 88px; height: 88px; flex-shrink: 0; }
.card-preview .qr img { width: 100%; height: 100%; display: block; }

.card-preview .copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pine);
  margin-bottom: 4px;
}

.card-preview .copy span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.card-preview .copy .url { margin-top: 6px; font-weight: 600; color: var(--pine); }

/* base pill button lives in base.css; these are the print-button deltas. */
.print-btn {
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
}

.print-btn:hover { transform: translateY(-1px); }
.card-tool .hint { margin-top: 14px; font-size: 0.82rem; color: var(--ink-muted); }

/* Print sheet: hidden on screen; the only thing shown on print. */
.print-sheet { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .clin-report { grid-template-columns: 1fr; gap: 32px; }
  .clin-report .phone { order: -1; }
}

@media (max-width: 600px) {
  .reasons { grid-template-columns: 1fr; }
}

/* ---------- Print: show only a full sheet of cut-out referral cards ---------- */
@media print {
  @page { margin: 12mm; }

  body { background: #fff; }

  .site-header,
  .page-hero,
  main > section,
  .site-footer { display: none !important; }

  .print-sheet {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6mm;
  }

  .rcard {
    border: 1px dashed #9a9a9a;
    border-radius: 8px;
    padding: 6mm;
    display: flex;
    gap: 5mm;
    align-items: center;
    page-break-inside: avoid;
  }

  .rcard .qr { width: 26mm; height: 26mm; flex-shrink: 0; }
  .rcard .qr img { width: 100%; height: 100%; }

  .rcard .rcopy strong {
    display: block;
    font-family: var(--font-display);
    font-size: 12pt;
    color: #0B4F4A;
    margin-bottom: 1.5mm;
  }

  .rcard .rcopy span { display: block; font-size: 8pt; color: #333; line-height: 1.4; }
  .rcard .rcopy .url { margin-top: 2mm; font-weight: 700; font-size: 8.5pt; color: #000; }
}
