/* =========================================================================
   Barázda — print
   Linked with media="print" on every page.

   The product's whole PDF story is "print to PDF from your browser", so this
   stylesheet is a feature, not an afterthought: an audit pack printed from
   the app has to be complete and legible in black and white.
   ========================================================================= */

@page {
  margin: 18mm 14mm;
}

/* Force the light palette. A dark-mode print is a page of toner. */
:root,
:root[data-theme="dark"] {
  color-scheme: light;
}

body {
  background: #fff !important;
  color: #000;
  font-size: 11pt;
}

/* Every texture comes off. On paper the contour lines and the cadastral grid
   render as grey mud behind body copy, and the gradient mesh as a smear. */
body::before,
.contour,
.contour-wrap,
.hero__texture,
.hero__contour,
.texture-furrow,
.texture-grid,
.login-aside__contour {
  display: none !important;
  background-image: none !important;
}

/* Chrome and controls are noise in a printout. */
.site-header,
.site-footer,
.skip-link,
.nav-toggle,
.module-filter,
.module-grid__toolbar,
.btn,
.chip,
.app-nav,
.login-demo,
.login-foot,
dialog {
  display: none !important;
}

/* Shadows flatten to a hairline rule so cards stay distinguishable. */
.card,
.module-card,
.price-card,
.quote,
.well,
.login-card {
  box-shadow: none !important;
  border: 1px solid #999 !important;
  background: #fff !important;
  break-inside: avoid;
}

.stat,
.step,
figure,
li {
  break-inside: avoid;
}

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

/* Every answer prints, whether or not it was expanded on screen. ui.js also
   opens them in a beforeprint handler; this is the belt to that braces. */
details {
  display: block !important;
}

details > summary {
  list-style: none;
}

.disclosure__body {
  display: block !important;
}

/* A printed link that says "here" is useless. Spell the destination out,
   but skip in-page anchors and the JavaScript stubs, which would just add
   noise. */
a[href^="http"]::after,
a[href$=".html"]::after {
  content: " (" attr(href) ")";
  font-size: 9pt;
  color: #444;
}

a[data-stub]::after,
a[href^="#"]::after {
  content: "";
}
