/* DatesOracle v1.7.0 T3.A — print stylesheet.
 * Enqueued explicitly with media="print" (screen styles stay in
 * datesoracle-core.css). Printing must show only the article plus the
 * .do-print-only header/footer that shell() renders; site chrome, the share
 * row and the Print button itself are suppressed.
 *
 * Page numbers via @page @bottom-center are intentionally NOT promised here:
 * WebKit/Blink and Firefox ignore that box while reading printable headers
 * from the UI, so a counter there would print nothing. The experimental
 * thead/tfoot repeat (+table-header-group/table-footer-group) is included
 * below so long tables repeat their header on later pages where supported;
 * engine support findings are logged in TEST-REPORT-1.7.0.md.
 */
@page { margin: 1.8cm 1.6cm; }

@media print {
  body { font-family: Georgia, "Times New Roman", serif; font-size: 12pt; line-height: 1.5; color: #000; background: #fff; }

  /* Hide screen chrome, share/print controls and any sidebar. */
  .do-site-header, .do-footer, .do14-sidebar-col, .do-share-print-wrap,
  .do14-widget, .do-deal-bar, .do-photo-needed, .do-finder-controls,
  .do-subscribe-wrap, .do14-offers, .do14-disclosure {
    display: none !important;
  }

  /* Print-only document chrome rendered by shell(). */
  .do-print-only { display: block !important; }
  .do-print-header { border-bottom: 1px solid #bbb; padding-bottom: 8px; margin-bottom: 20px;
                     display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; }
  .do-print-brand { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
  .do-print-logo { height: 38px; width: auto; }
  .do-print-meta { text-align: right; font-size: 9pt; color: #444; line-height: 1.6; }
  .do-print-url, .do-print-date { display: block; }
  .do-print-footer { border-top: 1px solid #bbb; margin-top: 26px; padding-top: 8px;
                     font-size: 8.5pt; color: #555; text-align: center; }

  /* Layout flattens to a single reading column. */
  .do14-container, .do14-main-col { display: block !important; width: 100% !important; }
  .do14-shell { padding: 0 !important; }
  article, .do14-prose { max-width: 100% !important; }

  /* Article typography stays readable in monochrome. */
  p { orphans: 3; widows: 3; }
  h1, h2, h3 { page-break-after: avoid; }
  img { max-width: 100% !important; }
  figure { page-break-inside: avoid; }

  /* Tables must not split mid-row; repeat header rows on later pages where the
     engine honours table-header-group (the experimental enhancement logged in
     the test report). */
  table { width: 100%; border-collapse: collapse; page-break-inside: auto; }
  thead { display: table-header-group; }
  tfoot { display: table-footer-group; }
  tr { page-break-inside: avoid; }
  th, td { border: 1px solid #999; padding: 5px 8px; text-align: left; }

  /* External links: print the full target URL next to their text. */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444;
                           word-break: break-all; }
  /* Variety-article source links already show their URL as the link text. */
  .do14-variety-article a[target="_blank"]::after { content: none; }
  a { color: #000; text-decoration: none; }
}