/* Print: the tree on one landscape page, framed like the original chart. */

@page { size: A4 landscape; margin: 10mm; }

:root { --step-4: 26pt; --step-3: 20pt; --step-2: 15pt; --step-1: 12pt; --step-0: 10.5pt; --step--1: 8.5pt; }

html, body { background: white !important; }
body { display: block; min-height: 0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }

.skip-link, .site-nav, .site-header__bar, .tree-toolbar, .tree-hint, .person-panel, .fleuron, .card--placeholder, .breadcrumb, .page-summary { display: none !important; }
.wrap { width: 100%; }

.site-header { padding: 0; }
.site-header .tile-band { --band: 0.9rem; }

.hero, .page-head { padding-block: 3mm 2mm; }
.page-head h1 { font-size: 22pt; }

/* Always print the diagram, even if the outline view was on screen. */
.tree-stage, .tree-stage[hidden] {
  display: block !important;
  height: auto;
  border: 1px solid var(--ink-soft);
  outline: 1px solid var(--rule);
  outline-offset: -5px;
  padding: 3mm;
  background: white;
  break-inside: avoid;
}
.tree-svg { height: auto; max-height: 160mm; cursor: default; }
.tree-outline { display: none !important; }
.tree-svg .person .hit { fill: none !important; stroke: none !important; }
.tree-svg .person.is-selected text { fill: var(--ink); }

.tree-notes { margin-top: 2mm; }
.site-footer { margin-top: 2mm; padding: 0; }
.site-footer .tile-band { display: none; }

a { color: inherit; text-decoration: none; }
.card { break-inside: avoid; }
