@page {
  margin: 1.8cm;
}

* {
  box-shadow: none !important;
  text-shadow: none !important;
}

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

body::before,
.skip-link,
.site-header,
.site-footer,
.actions,
.hero-emblem,
.tree-controls,
.search-dialog {
  display: none !important;
}

.shell {
  max-width: none;
  padding: 0;
}

.site-main {
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.breadcrumbs {
  margin-block: 0 1cm;
}

.hero {
  background: #fff !important;
  clip-path: none;
  color: #000 !important;
  display: block;
  min-height: 0;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-content {
  padding: 0;
}

.hero h1,
.hero .lede,
h1,
h2,
h3,
a {
  color: #000 !important;
}

a[href]::after {
  content: " (" attr(href) ")";
  font-family: monospace;
  font-size: 0.8em;
  font-weight: 400;
  overflow-wrap: anywhere;
}

a[href^="#"]::after,
a[href^="/"]::after {
  content: "";
}

.manuscript-panel,
.callout,
.legend,
.card,
.tree-figure {
  background: #fff !important;
  border: 1px solid #555;
  break-inside: avoid;
  color: #000 !important;
}

.link-grid {
  display: block;
}

.card {
  margin-block-end: 0.5cm;
  min-height: 0;
}

.prototype-lineage {
  break-inside: avoid;
}

.tree-scroll {
  overflow: visible;
}

.family-tree-svg {
  height: auto;
  max-width: 100%;
}

.tree-figure figcaption {
  color: #000 !important;
}

.tree-figure-mini {
  max-height: none;
}

.tree-figure-mini .tree-scroll {
  max-height: none;
}

.tree-figure {
  padding-block-start: 0;
}

.branch-folio {
  break-before: page;
}

.branch-record-list li {
  break-inside: avoid;
}

.tree-edge path {
  stroke: #333 !important;
}

.tree-node rect {
  fill: #fff !important;
  stroke: #000 !important;
}

.tree-node-name,
.tree-node-context,
.tree-node-lineage-mark,
.tree-edge-mark {
  fill: #000 !important;
}

details.branch-folio-disclosure:not([open]) > *,
.branch-folio-disclosure[open] > * {
  display: block;
}
