/* print.css — guide print pass. Linked with media="print" from
   guide/index.html, so no @media wrapper needed. White paper, black ink,
   chrome hidden, full-width measure, external URLs surfaced.
   The inline beforeprint/afterprint script in guide/index.html opens every
   <details> for printing and restores closed state afterward. */

* {
  background: #fff !important;
  color: #000 !important;
}

body {
  background: #fff;
  color: #000;
}

/* ---- Hide chrome: header/nav/CTA/skip-link ---- */

.site-header,
.skip-link,
.toc,
.g-cta,
.btn-blood,
.btn-line {
  display: none !important;
}

/* ---- Full-width measure ---- */

.g-main {
  max-width: none;
  padding: 0;
}

.acc-body p,
.acc-body li,
.lede,
.g-intro,
.g-cta p {
  max-width: none;
}

/* ---- Show external link URLs ---- */

a {
  text-decoration: none;
}

a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 85%;
  word-break: break-all;
}

/* ---- Keep cards, callouts, and tables intact across page breaks ---- */

details.acc,
.callout,
.terminal,
.tbl-wrap,
table,
tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

h2,
h3 {
  break-after: avoid;
  page-break-after: avoid;
}

/* ---- Print-legible borders & furniture ---- */

details.acc,
.callout,
.terminal,
.tbl th,
.tbl td,
kbd,
.kbd {
  border-color: #000 !important;
}

.callout,
.g-cta {
  border-left-width: 2px;
}

details.acc summary::after {
  content: none; /* no +/− marker on paper */
}

.foot {
  border-top: 1px solid #000;
}
