/* ── OpNote Print Stylesheet ─────────────────────────────────────────────── */
/* Renders the operative note template cleanly for printing.
   Hides all chrome: nav, ads, copy buttons, supplemental sections, footer.
   Adds "Source: opnote.net" at the bottom for physical distribution.        */

@media print {

  /* Hide everything except the note */
  .site-header,
  .site-nav,
  .breadcrumb,
  .quick-ref-box,
  .copy-bar,
  .supplemental-body,
  .affiliate-cta,
  .ad-slot,
  .last-reviewed,
  .site-footer {
    display: none !important;
  }

  /* Page setup */
  @page {
    margin: 1in;
    size: letter;
  }

  body {
    background: #fff;
    color: #000;
    font-family: "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Title */
  .page-title {
    font-size: 14pt;
    font-weight: bold;
    color: #000;
    margin-bottom: 12pt;
    text-align: center;
    border-bottom: 1pt solid #000;
    padding-bottom: 6pt;
  }

  /* Note card — remove web styling */
  .note-body {
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* Sections */
  .note-section {
    border-bottom: none;
    page-break-inside: avoid;
  }
  .note-section--compact {
    display: grid;
    grid-template-columns: 2in 1fr;
    gap: 6pt;
    padding: 4pt 0;
    border-bottom: 0.5pt solid #ccc;
  }
  .note-section--full {
    padding: 6pt 0;
    border-bottom: 0.5pt solid #ccc;
  }
  .note-section:last-child {
    border-bottom: none;
  }

  /* Labels */
  .section-label span {
    font-size: 9pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
  }

  /* Content */
  .section-content {
    font-size: 11pt;
    color: #000;
    line-height: 1.5;
  }
  .section-content p { margin-bottom: 4pt; }

  /* Placeholders — show in print as underlines not highlight */
  .placeholder {
    background: none;
    color: #000;
    font-style: italic;
    border-bottom: 1pt solid #000;
    padding: 0;
  }

  /* Source line at bottom */
  .page-content::after {
    content: "Source: opnote.net — Educational reference only. Verify content with your attending.";
    display: block;
    margin-top: 24pt;
    font-size: 8pt;
    color: #666;
    text-align: center;
    border-top: 0.5pt solid #ccc;
    padding-top: 6pt;
  }

  /* Prevent orphaned headers */
  h1, h2, h3 { page-break-after: avoid; }
  p { orphans: 3; widows: 3; }
}
