/*
 * Impression d'une fiche (module eleves) : la fiche seule, en noir sur blanc.
 * Chargée sur les fiches avec media="print" (Vetting\ExitPage::enqueue_print()).
 * Ni en-tête ni pied de page, ni formulaires, ni boutons, ni ressources liées.
 */

@page { margin: 18mm 16mm; }

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

.wp-site-blocks > header,
.wp-site-blocks > footer,
.bn-header,
.bn-footer,
.wp-block-navigation,
.bn-breadcrumbs,
.bn-related,
.bn-sheet.is-locked,
.bn-newsletter,
.bn-inside,
main form,
main button,
.bn-access .bn-button,
.bn-evaluate__hint a,
.bn-provenance__method,
.bn-evaluate__more,
.bn-facts__notice a { display: none !important; }

main, .bn-resource, .wp-block-group, .wp-block-columns, .wp-block-column { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; background: none !important; }
.wp-block-group.has-background { padding-top: 6mm !important; padding-bottom: 0 !important; }
.is-layout-constrained > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-columns { display: block !important; }
.wp-block-column { flex-basis: auto !important; }

h1, h2, h3 { color: #000 !important; break-after: avoid; page-break-after: avoid; }
h1 { font-size: 22pt; }
h2 { font-size: 15pt; }

.bn-notice, .bn-facts, .bn-evaluate, .bn-sheet, .bn-facts__row, .bn-evaluate__row { break-inside: avoid; page-break-inside: avoid; }
.bn-notice, .bn-evaluate__text { background: #fff !important; border-color: #000 !important; box-shadow: none !important; }
.bn-notice__rows, .bn-notice dl { background-image: none !important; }
.bn-facts__rows, .bn-evaluate__rows { display: block !important; }
.bn-facts__label, .bn-evaluate__label, .bn-facts__how, .bn-facts__note, .bn-evaluate__how, .bn-evaluate__hint, .bn-access__status { color: #000 !important; }

/* Adresses des liens du texte de la fiche, pour qu'elles restent lisibles sur papier. */
.bn-resource__body a[href^="http"]::after,
.bn-facts__how a[href^="http"]::after,
.bn-evaluate__how a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; overflow-wrap: anywhere; }
a { color: #000 !important; text-decoration: underline; }
