/* The clinician one-pagers (realignment E3-S04, P-REQ-23): programs/<name>/clinician/.
   On screen they're ordinary skeleton pages, colored only by dw-tokens.css. In print they come out black on white on
   US Letter, at most 2 pages, without the site header, footer or screen-only notes, with every heading kept. */
.band .ct .cl-lines { display: flex; flex-direction: column; gap: 0; }
.band .ct .cl-lines span { display: block; height: 2.2em; border-bottom: 1px solid var(--line-2); }

@page { size: letter; margin: .55in .6in; }

@media print {
  html, body { background: #fff !important; overflow: visible !important; }
  *, *::before, *::after { color: #000 !important; background: transparent !important; box-shadow: none !important;
    text-shadow: none !important; transition: none !important; opacity: 1 !important; }
  body { font-size: 10pt; line-height: 1.35; }
  header[data-chrome], footer[data-chrome], .skip-link, .sk-crumb, .cl-screen, .keys-overlay { display: none !important; }

  /* One column: the rail becomes the section's heading line above its content. */
  /* Each section prints whole, never split across the page break: an inline-block is never fragmented, where Chrome
     doesn't always honor break-inside: avoid. Every section is far shorter than a page. */
  .band { display: inline-block !important; width: 100%; vertical-align: top; box-sizing: border-box;
    border-bottom: 1px solid #000; padding: 6pt 0 !important; }
  .band > .inner { display: block !important; padding: 0 !important; max-width: none !important; }
  .band .rl { display: block !important; padding: 0 0 3pt !important; }
  .band .rl .mono, .band .rl .sk-label { display: inline; font-size: 8.5pt !important; letter-spacing: .06em; }
  .band .rl .mono + .mono::before { content: " / "; }
  .band .rl .sk-label { font-weight: 700; break-after: avoid; }
  .band .ct { display: block !important; font-size: 10pt !important; line-height: 1.35 !important; }
  .band .ct > * + * { margin-top: 4pt !important; }
  .band .ct p, .band .ct li { max-width: none !important; }
  .band .ct ul { display: block !important; margin: 2pt 0 0 !important; padding-left: 1.2em; }
  .band .ct li + li { margin-top: 1pt; }
  .band .ct .sk-title { font-size: 17pt !important; line-height: 1.15 !important; }
  .band .ct .lede { font-size: 10.5pt !important; }
  .band .ct a { text-decoration: none !important; }

  /* The facts: label and value side by side, each row kept whole. */
  .band .ct .sk-kv, .band .ct .cl-lines { display: block !important; }
  .band .ct .sk-kv dl { border-top: 0; }
  .band .ct .sk-kv dl > div { display: grid !important; grid-template-columns: 1.45in minmax(0, 1fr) !important; gap: 8pt !important;
    padding: 2.5pt 0 !important; border-bottom: .5pt solid #000; break-inside: avoid; }
  .band .ct .sk-kv dl > div:last-child { border-bottom: 0; }
  .band .ct .sk-kv dt { font-size: 8pt !important; padding-top: 1pt !important; }
  .band .ct table { min-width: 0 !important; width: 100%; font-size: 9pt !important; }
  .band .ct th, .band .ct td { padding: 1.5pt 4pt 1.5pt 0 !important; border-bottom: .5pt solid #000 !important; }
  .band .ct th, .band .ct td { text-align: left !important; }
  .band .ct th { font-size: 8pt !important; white-space: normal; }
  .band .ct .table-wrap { overflow: visible !important; border: 0 !important; }
  .band .ct .cl-lines span { height: 22pt; border-bottom: .5pt solid #000; }
  h1, h2, h3, dt { break-after: avoid; }
  tr, li, dl > div { break-inside: avoid; }
}
