/* =====================================================
   CAREAPP — PRINT.CSS
   Beautiful print layout for the 5-week program
   ===================================================== */

@media print {

  /* ── HIDE NON-PRINT ELEMENTS ── */
  #screen-landing,
  #screen-intro,
  #screen-assessment,
  #screen-processing,
  #screen-output,
  #site-footer,
  .program-actions,
  .btn-primary,
  .btn-secondary,
  .btn-sand,
  .progress-bar-wrap,
  .crisis-link-small,
  .crisis-notice,
  .print-nudge {
    display: none !important;
  }

  /* ── SHOW PROGRAM ── */
  #screen-program {
    display: block !important;
    opacity: 1 !important;
  }

  /* ── BASE PRINT ── */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #ffffff !important;
    color: #2C2C2C !important;
    font-family: 'Jost', 'Gill Sans', sans-serif !important;
    font-size: 11pt !important;
    line-height: 1.65 !important;
  }

  .screen-content {
    padding: 0 !important;
    max-width: 100% !important;
  }

  /* ── PROGRAM HEADER ── */
  .program-ready-header {
    text-align: center;
    padding: 24pt 0 20pt !important;
    border-bottom: 1.5pt solid #E8E0D5 !important;
    margin-bottom: 24pt !important;
    page-break-after: avoid;
  }

  .program-ready-header h2 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 22pt !important;
  }

  .program-ready-header p {
    font-size: 10pt !important;
    color: #9A9188 !important;
  }

  .program-actions { display: none !important; }

  /* ── WEEK BLOCKS ── */
  .week-block {
    page-break-before: always;
    break-before: always;
    margin-bottom: 0 !important;
  }

  .week-block:first-of-type {
    page-break-before: avoid;
    break-before: avoid;
  }

  .week-header {
    background: #F7F4EF !important;
    border-radius: 8pt !important;
    padding: 16pt 20pt !important;
    margin-bottom: 20pt !important;
    page-break-after: avoid;
    break-after: avoid;
  }

  .week-number-label {
    font-size: 7pt !important;
    letter-spacing: 0.15em !important;
    color: #7C9E8F !important;
    text-transform: uppercase !important;
    margin-bottom: 4pt !important;
  }

  .week-header h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 18pt !important;
    margin-bottom: 8pt !important;
  }

  .week-intention {
    font-family: 'Lora', Georgia, serif !important;
    font-style: italic !important;
    font-size: 11pt !important;
    color: #9A9188 !important;
  }

  /* ── DAY BLOCKS ── */
  .day-block {
    margin-bottom: 20pt !important;
    padding-bottom: 20pt !important;
    border-bottom: 0.5pt solid #E8E0D5 !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .day-label {
    font-size: 7pt !important;
    letter-spacing: 0.12em !important;
    color: #C4A882 !important;
    text-transform: uppercase !important;
    margin-bottom: 4pt !important;
  }

  .day-block h4 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 14pt !important;
    margin-bottom: 12pt !important;
  }

  .practice-part {
    margin-bottom: 12pt !important;
  }

  .practice-part-label {
    font-size: 7pt !important;
    letter-spacing: 0.12em !important;
    color: #7C9E8F !important;
    text-transform: uppercase !important;
    margin-bottom: 4pt !important;
  }

  .practice-part p {
    font-size: 10pt !important;
    line-height: 1.7 !important;
  }

  /* ── SIT-WITH QUESTION ── */
  .sit-with-question {
    background: #F7F4EF !important;
    border-radius: 6pt !important;
    padding: 10pt 14pt !important;
    margin-top: 10pt !important;
    font-family: 'Lora', Georgia, serif !important;
    font-style: italic !important;
    font-size: 11pt !important;
  }

  /* ── INSIGHT CARD ── */
  .insight-card {
    background: #E8E0D5 !important;
    border-radius: 8pt !important;
    padding: 16pt 20pt !important;
    margin-top: 20pt !important;
    text-align: center !important;
    border: 0.5pt solid rgba(196,168,130,0.5) !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .insight-label {
    font-size: 7pt !important;
    color: #C4A882 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    margin-bottom: 8pt !important;
  }

  .insight-text {
    font-family: 'Lora', Georgia, serif !important;
    font-style: italic !important;
    font-size: 13pt !important;
    line-height: 1.6 !important;
  }

  /* ── LETTER BLOCK ── */
  .letter-block {
    border: 1pt solid #C4A882 !important;
    border-radius: 6pt !important;
    padding: 16pt !important;
    page-break-inside: avoid;
    margin: 12pt 0 !important;
  }

  .letter-opening {
    font-size: 9pt !important;
    color: #9A9188 !important;
    margin-bottom: 10pt !important;
  }

  .letter-lines li {
    border-bottom: 0.5pt solid #E8E0D5 !important;
    height: 22pt !important;
    margin-bottom: 2pt !important;
  }

  .letter-closing {
    font-family: 'Lora', Georgia, serif !important;
    font-style: italic !important;
    text-align: right !important;
    color: #9A9188 !important;
    font-size: 10pt !important;
  }

  /* ── FINAL CLOSING ── */
  .final-closing {
    text-align: center !important;
    padding: 24pt 0 !important;
    border-top: 1pt solid #E8E0D5 !important;
    margin-top: 24pt !important;
    page-break-before: always;
    break-before: always;
  }

  .final-closing p {
    font-family: 'Lora', Georgia, serif !important;
    font-style: italic !important;
    font-size: 12pt !important;
    line-height: 2 !important;
    color: #2C2C2C !important;
    margin-bottom: 8pt !important;
    max-width: 400pt !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .final-signature {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 14pt !important;
    color: #7C9E8F !important;
    margin-top: 16pt !important;
  }

  /* ── CAREAPP WATERMARK ON EACH PAGE ── */
  @page {
    margin: 18mm 20mm 20mm 20mm;

    @bottom-center {
      content: "careapp.in — come back when you're ready";
      font-family: 'Jost', sans-serif;
      font-size: 7pt;
      color: #C0BAB2;
      letter-spacing: 0.1em;
    }

    @bottom-right {
      content: counter(page);
      font-family: 'Jost', sans-serif;
      font-size: 7pt;
      color: #C0BAB2;
    }
  }

  @page :first {
    @bottom-center { content: ""; }
    @bottom-right { content: ""; }
  }

}
