/* Goyave Consulting — print. Loaded with media="print" only. */

@page { margin: 18mm 16mm; }

/* chrome the paper does not need */
nav.nav,
.subnav,
#site-menu,
#search-panel,
#read-progress,
figure:has(video),
.pb-img,
.pb-scrim,
section[style*="background: var(--color-accent-900)"] > div[style*="position: absolute"] {
  display: none !important;
}

/* the sticky wrapper collapses to nothing */
div[style*="position: sticky"] {
  position: static !important;
  border: 0 !important;
}

/* no motion offsets on paper */
[data-parallax] { transform: none !important; }

/* steel bands invert: white paper, dark type */
section[style*="background: var(--color-accent-900)"] {
  background: #fff !important;
  color: var(--color-text) !important;
  border-top: 1px solid var(--color-text) !important;
}
section[style*="background: var(--color-accent-900)"] [style*="color-accent-300"],
section[style*="background: var(--color-accent-900)"] [style*="color-accent-200"] {
  color: var(--color-text) !important;
}

/* the portfolio strip inverts too: its rules are drawn in the page ground colour */
section[style*="background: var(--color-accent-900)"] a[style*="border-top"] {
  border-top-color: var(--color-text) !important;
}

/* tinted blocks read as a rule instead of a wash */
.tint::before { display: none !important; }
.tint {
  border-top: 1px solid var(--color-text);
  padding-top: 18px !important;
}

/* photography drops out; diagrams stay */
img[src*="-band"],
img[src*="-landscape"],
img[src*="-interstitial"],
img[src*="quote-bg"],
img[src*="contact-bg"] {
  display: none !important;
}
.blueprint, figure, table, tr, .g-cell { break-inside: avoid; }
h1, h2, h3 { break-after: avoid; }
section { break-inside: auto; }

/* the source, once per document */
.print-source { display: block !important; }

/* full width, no viewport-relative gaps */
:root { --edge: 0px !important; }
body { background: #fff !important; }
a { color: var(--color-text) !important; text-decoration: none !important; }
