/* print.css — le testament imprimé : noir sur blanc, l'étymologie entièrement ouverte,
   les motifs réduits à leur trait, aucune masse pleine. Chargé avec media="print". */

@page {
  margin: 18mm 16mm 20mm;
}

:root,
:root[data-theme] {
  --c-paper: #FFFFFF;
  --c-paper-2: #FFFFFF;
  --c-ink: #000000;
  --c-ink-2: #222222;
  --c-ink-3: #444444;
  --c-sun: #000000;
  --c-sun-text: #000000;
  --c-terra: #000000;
  --c-terra-text: #000000;
  --c-line: #999999;
  --c-door: #000000;
  --c-door-text: #FFFFFF;
  --c-link-underline: #000000;
  --hero-arch-w: 9cm;
  color-scheme: light;
}

html,
body {
  background: #FFFFFF;
  color: #000000;
  font-size: 10.5pt;
}

/* la navigation, la bascule, le cadran et les seuils décoratifs ne s'impriment pas */
.skip,
.site-nav,
.theme-toggle,
.dial,
.site-head .lang,
.seuil__enter,
.band,
.jamb__dial,
.veillee__gate,
.site-foot .lang,
.intro,
.intro__status,
.sheet,
.veillee__action,
.btn,
.hp {
  display: none !important;
}

/* aucun mouvement sur le papier : tout est à son état final, rien n'est masqué */
*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
  clip-path: none !important;
}

.wall__title,
.wall__lede,
.root,
.plot,
.oath,
.reach__head,
.etym__more,
.band__door,
.plot__entry,
.seuil__echo,
.seuil__words > * {
  opacity: 1 !important;
  translate: none !important;
}

.site-head {
  position: static;
  border: 0;
}

/* le seuil sur une colonne, centré, puis saut de page */
.seuil {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-block-size: 0;
  padding-block: 0 8mm;
  text-align: center;
  break-after: page;
}

.seuil__sky,
.seuil__title,
.seuil__echo {
  grid-column: 1;
}

.seuil__words {
  grid-row: 4;
  grid-column: 1;
  justify-items: center;
  padding-block-end: 0;
  text-align: center;
}

.seuil__sun,
.seuil__course,
.seuil__sky,
.seuil__arch {
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  transform: none !important;
}

.wall {
  padding-block: 6mm;
}

/* le jambage devient un linteau : pas de colonne collante sur le papier */
.wall__jamb {
  position: static;
  grid-column: 1 / -1;
  border: 0;
  border-block-end: 0.5pt solid #000000;
}

.wall__body {
  grid-column: 1 / -1;
}

h2,
h3,
h4,
summary,
.oath,
.root,
.plot {
  break-inside: avoid;
}

h2,
h3,
h4,
summary {
  break-after: avoid;
}

/* l'étymologie entière (racines, glyphes, glose, parents, mot assemblé) et la couche secondaire, même repliée à l'écran */
details > *:not(summary),
details::details-content {
  display: block !important;
  content-visibility: visible !important;
}

.etym {
  grid-template-columns: minmax(0, 1fr);
}

.etym__op {
  background: none;
  margin-block: 0;
}

.root--sum {
  grid-template-columns: minmax(0, 1fr);
}

/* la rue des ouvrages se déroule sur la page, plus de rail */
.street {
  overflow: visible;
  scroll-snap-type: none;
}

.street__track,
.reach__list {
  display: grid;
  inline-size: auto;
}

.plot {
  inline-size: auto;
  grid-template-columns: minmax(0, 6cm) minmax(0, 1fr);
}

.plot__elev {
  max-block-size: 5cm;
}

/* les masses pleines deviennent des traits : encre économisée, lecture intacte */
.el__gate path,
path.el__gate,
.el__door,
.el__leaf,
.el__lit {
  fill: #000000;
}

.el__lit {
  fill: #FFFFFF;
}

.field,
.veillee,
.site-foot {
  --c-ink: #000000;
  --c-ink-2: #222222;
  --c-ink-3: #444444;
  --c-field-ink: #000000;
  --c-field-ink-2: #222222;
  --c-field-num: #000000;
  --c-field-line: #999999;
  --c-veillee-ink: #000000;
  --c-veillee-ink-2: #222222;
  --c-veillee-line: #999999;
  background: #FFFFFF !important;
  color: #000000 !important;
}

.veillee {
  padding-block: 8mm;
  border-block-start: 0.5pt solid #000000;
}

.veillee__inner {
  padding-block-start: 0;
}

/* les adresses sont écrites en clair après les liens externes */
.plot__link a::after {
  content: " (" attr(href) ")";
  font-weight: 400;
}

a {
  color: #000000;
  text-decoration-color: #000000;
}
