@page {
  size: A4;
  margin: 18mm 16mm 20mm 16mm;
  @bottom-center {
    content: counter(page);
    font-family: "Inter", "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: 9pt;
    color: #64748b;
  }
  @bottom-right {
    content: "Hockey News Fantasy";
    font-family: "Inter", "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: 8pt;
    color: #94a3b8;
  }
}

@page :first {
  margin: 0;
  @bottom-center { content: none; }
  @bottom-right { content: none; }
}

:root {
  --ice-blue: #0b4d78;
  --goal-red: #dc2626;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --wash: #f1f5f9;
}

html {
  font-size: 10.5pt;
}

body {
  font-family: "Inter", "SF Pro Text", "Helvetica Neue", sans-serif;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

.cover {
  position: relative;
  min-height: 297mm;
  background: linear-gradient(165deg, #0b4d78 0%, #0a3a5c 55%, #071e30 100%);
  color: #fff;
  padding: 28mm 18mm 20mm;
  box-sizing: border-box;
  page-break-after: always;
}

.cover img.logo {
  height: 56px;
  width: auto;
}

.cover .season {
  margin-top: 8mm;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10pt;
  opacity: 0.8;
}

.cover h1 {
  font-size: 32pt;
  line-height: 1.1;
  margin: 14mm 0 4mm;
  color: #fff;
  border: 0;
}

.cover .subtitle {
  font-size: 14pt;
  opacity: 0.9;
  max-width: 140mm;
}

.cover .meta {
  position: absolute;
  bottom: 22mm;
  left: 18mm;
  font-size: 10pt;
  opacity: 0.75;
}

h1 {
  font-size: 18pt;
  color: var(--ice-blue);
  border-bottom: 2px solid var(--ice-blue);
  padding-bottom: 3mm;
  margin: 8mm 0 4mm;
  page-break-after: avoid;
}

h2 {
  font-size: 13.5pt;
  color: var(--ice-blue);
  margin: 7mm 0 2.5mm;
  page-break-after: avoid;
}

h3 {
  font-size: 11.5pt;
  color: #1e3a5f;
  margin: 5mm 0 2mm;
  page-break-after: avoid;
}

p, li {
  orphans: 3;
  widows: 3;
}

a {
  color: var(--ice-blue);
}

.muted, .note {
  color: var(--muted);
}

.note, .callout {
  background: var(--wash);
  border-left: 3px solid var(--ice-blue);
  padding: 3mm 4mm;
  margin: 4mm 0;
}

.callout.warn {
  border-left-color: var(--goal-red);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 3mm 0 5mm;
  font-size: 9.5pt;
  page-break-inside: avoid;
}

th, td {
  border: 1px solid var(--line);
  padding: 1.6mm 2.2mm;
  text-align: left;
}

th {
  background: var(--ice-blue);
  color: #fff;
  font-weight: 600;
}

tr:nth-child(even) td {
  background: #f8fafc;
}

figure.shot {
  margin: 4mm 0 6mm;
  page-break-inside: avoid;
  text-align: center;
}

figure.shot img {
  max-width: 72mm;
  max-height: 120mm;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

figcaption {
  font-size: 9pt;
  color: var(--muted);
  margin-top: 2mm;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40mm;
  background: var(--wash);
  border: 1px dashed #94a3b8;
  color: var(--muted);
  font-size: 9pt;
  border-radius: 6px;
}

ul, ol {
  margin: 2mm 0 4mm;
  padding-left: 6mm;
}

li {
  margin-bottom: 1.2mm;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6mm 0;
}

code {
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 0.92em;
}

.part-banner {
  background: var(--ice-blue);
  color: #fff;
  padding: 8mm 6mm;
  margin: 0 -2mm 6mm;
  page-break-before: always;
}

.part-banner h1 {
  color: #fff;
  border: 0;
  margin: 0;
}

.part-banner p {
  margin: 2mm 0 0;
  opacity: 0.9;
}

header#title-block-header {
  display: none;
}

/* Inhaltsverzeichnis: Teile > Kapitel (Nummern-Kachel) > Abschnitte in einer
   Zeile. Basis fuer Druck (eine A4-Seite); web.css macht daraus Kacheln. */
nav#TOC {
  page-break-after: always;
  padding: 3mm 4mm 6mm;
}

nav#TOC .toc-title {
  font-size: 18pt;
  color: var(--ice-blue);
  font-weight: 700;
  margin: 0 0 2.5mm;
}

nav#TOC .toc-part {
  margin-top: 4mm;
}

nav#TOC .toc-part-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3mm;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5mm;
  margin-bottom: 2.5mm;
}

nav#TOC .toc-part-title {
  margin: 0;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-blue);
}

nav#TOC .toc-part-sub {
  margin: 0;
  font-size: 9pt;
  color: var(--muted);
}

nav#TOC ol,
nav#TOC ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav#TOC .toc-chapter {
  margin: 0 0 1.6mm;
  page-break-inside: avoid;
}

nav#TOC .toc-chapter-link {
  display: flex;
  align-items: center;
  gap: 3mm;
  color: var(--ink);
  font-size: 11pt;
  font-weight: 600;
  text-decoration: none;
}

nav#TOC .toc-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 6.4mm;
  height: 6.4mm;
  padding: 0 1.5mm;
  border-radius: 2mm;
  background: var(--ice-blue);
  color: #fff;
  font-size: 9pt;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

nav#TOC .toc-part-appendix .toc-num {
  background: var(--wash);
  color: var(--ice-blue);
  border: 1px solid var(--ice-blue);
}

nav#TOC .toc-sections {
  margin: 0.4mm 0 0 9.4mm;
  font-size: 9pt;
  line-height: 1.35;
  color: var(--muted);
}

nav#TOC .toc-sections li {
  display: inline;
  margin: 0;
}

nav#TOC .toc-sections li:not(:last-child)::after {
  content: "\00a0·";
  margin: 0 0.8mm;
  color: #94a3b8;
}

nav#TOC .toc-sections a {
  color: inherit;
  text-decoration: none;
}

.placeholder {
  min-height: 42mm;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wash);
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  color: var(--muted);
  font-size: 9pt;
  padding: 4mm;
  text-align: center;
}

