/**
 * Print layout (loaded with media="print", see php/include/header.php)
 * Only the content is printed: no sidebar, no shadows, no background colours.
 */
@page {
  margin: 15mm 15mm 18mm;
}

body {
  background: #ffffff;
  color: #000000;
  font-size: 11pt;
}

/* column instead of row: the logo (aside, order 1) stays above the content although it is below it in the markup */
#wrapper {
  flex-direction: column;
  box-shadow: none;
  max-width: none;
  margin: 0;
}

/* sidebar: only the logo stays, as letterhead */
aside {
  width: auto;
}
aside > *:not(nav),
aside nav > *:not(#logo) {
  display: none !important;
}
aside > nav {
  padding: 0;
}
aside #logo {
  display: block;
  margin: 0 0 10mm;
}
aside #logo img {
  height: 18mm;
  width: auto;
}

main {
  background: none;
  min-height: 0;
  padding: 0;
  width: auto;
}

.oversize {
  box-shadow: none;
  margin-left: 0;
  margin-right: 0;
}

/* interactive elements make no sense on paper */
.subHeader,
.social,
form,
button,
video,
iframe,
#highlights .indicators {
  display: none !important;
}

/* page breaks */
h1,
h2,
h3,
h4 {
  break-after: avoid;
  page-break-after: avoid;
}
img,
figure,
blockquote,
.event,
li,
tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

/* tables (e.g. Vereinsrekorde): no filled areas (toner, printing time), lines instead.
   Long tables run over several pages; the head is repeated on each page. */
table,
table thead,
table tfoot,
table tbody > tr,
table tbody > tr:nth-child(2n) {
  background: none;
  box-shadow: none;
}
/* (table.records: not the wider table of small screens, screen.css) */
table,
table.records {
  width: 100%;
  margin: 0.5em 0 1em;
  font-size: 9pt;
}
table thead {
  display: table-header-group;
  color: var(--color-darkblue);
}
table tfoot {
  color: inherit;
}
table thead :is(td, th) {
  border-bottom: 1px solid var(--color-darkblue);
  font-weight: bold;
}
table tbody td {
  border-bottom: 1px solid var(--color-lightgray);
}
table tfoot td {
  padding-top: 4px;
}
p {
  orphans: 3;
  widows: 3;
}
img {
  max-width: 100%;
}

/* links: black, the target of external ones is printed behind them */
a,
a:link,
a:visited {
  color: inherit;
  text-decoration: underline;
}
main a[href^="http"]:not([href*="lfv-schutterwald.de"])::after {
  content: " (" attr(href) ")";
  font-size: 0.8em;
  word-break: break-all;
}
