/* docs/SUBSCRIPTION-SPEC.md 10.5: styles for the delivery track's pages and partials (templates/subs/)
   and the brief page's print rules (SPEC 7.3). Owner: delivery track. Loaded after app.css on
   every page; use the tokens app.css defines. */

/* The Outbox */
.outbox-card { max-width: 860px; }
.outbox-list { margin: 0 0 12px; padding: 0; list-style: none; }
.outbox-row { padding: 12px 0; border-top: 1px solid var(--line); }
.outbox-row:first-child { border-top: 0; padding-top: 0; }
.outbox-row p { margin: 2px 0 0; }
.outbox-subject { font-weight: 600; }
.outbox-missing { color: var(--watch-ink); }
.outbox-text { margin: 0 0 12px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-card); color: var(--ink); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* The brief: the sections a delivered brief adds */
.brief-section { margin: 20px 0 8px; font-size: 18px; line-height: 24px; }
.brief-plan { margin: 0 0 12px; padding-left: 24px; }
.brief-plan li + li { margin-top: 12px; }
.brief-follow-up { margin: 12px 0; font-weight: 600; }
.brief-print-hint { margin: 4px 0 0; }

/* Setup: delivery */
.delivery-form .delivery-when { margin-top: 12px; max-width: 320px; }
.delivery-run { margin-top: 8px; }

/* Print: the brief page alone (the page carries .brief-page). Everything that is not the brief
   is hidden, the brief prints black on white, and an item never breaks across two pages. The
   fiction notice inside the brief stays. */
@media print {
  body:has(.brief-page) { background: #fff; color: #000; }
  body:has(.brief-page) .skip-link,
  body:has(.brief-page) .banner,
  body:has(.brief-page) .preview-bar,
  body:has(.brief-page) .site-header,
  body:has(.brief-page) .site-footer,
  body:has(.brief-page) .flash,
  body:has(.brief-page) .icon-sprite,
  .brief-page .no-print,
  .brief-page .brief-downloads,
  .brief-page .btn { display: none !important; }
  .brief-page, .brief-page .card, .brief-page .brief-card { max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; color: #000; }
  .brief-page .page-head { display: block; margin: 0 0 8px; }
  .brief-page h1, .brief-page h2, .brief-page p, .brief-page li, .brief-page .muted, .brief-page .brief-item-money { color: #000; }
  .brief-page a, .brief-page a:visited { color: #000; text-decoration: underline; }
  .brief-page li, .brief-page .brief-subject, .brief-page .brief-follow-up { break-inside: avoid; page-break-inside: avoid; }
  .brief-page h2 { break-after: avoid; page-break-after: avoid; }
}
