/* Carlito (SIL Open Font License, fonts/LICENSE-Carlito.txt): metrically the same as Calibri,
   so a page breaks the same on every computer, with or without Calibri installed. */
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-cyrillic-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-greek-ext-400-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-greek-400-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-vietnamese-400-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-cyrillic-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-cyrillic-700-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-greek-ext-700-normal.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-greek-700-normal.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-vietnamese-700-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-cyrillic-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-cyrillic-400-italic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-greek-ext-400-italic.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-greek-400-italic.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-vietnamese-400-italic.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-latin-ext-400-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 400;
  src: url(fonts/carlito-latin-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-cyrillic-ext-700-italic.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-cyrillic-700-italic.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-greek-ext-700-italic.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-greek-700-italic.woff2) format('woff2');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-vietnamese-700-italic.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-latin-ext-700-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-display: block;
  font-weight: 700;
  src: url(fonts/carlito-latin-700-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
	--accent: #304f6e;
	--ink: #1d1d1b;
	--muted: #666;
	--rule: #d9d9d9;
	--paper: #fff;
	--desk: #e9ecef;
	--note: #304f6e;
	--font: "Carlito", "Calibri", "Segoe UI", "Noto Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { font-family: var(--font); font-size: 12pt; line-height: 1.45; color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); }
body.reader { padding: 3.2rem 0.5rem 2rem; }
a { color: var(--accent); }

.bar {
	position: fixed; inset: 0 0 auto 0; z-index: 2;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 0.5rem 1rem; background: var(--paper); border-bottom: 1px solid var(--rule);
	font-size: 0.9rem;
}
.bar .langs a, .bar .langs strong { margin-inline-end: 0.8rem; }
.bar .langs select { font: inherit; padding: 0.3rem 0.4rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--ink); max-width: 100%; }
.bar button { font: inherit; padding: 0.35rem 0.8rem; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #fff; cursor: pointer; }
body.preview .bar { display: none; }
body.preview { padding-top: 1rem; }

.document {
	background: var(--paper);
	width: 210mm; max-width: 100%;
	margin: 0 auto;
	padding: 18mm 18mm 20mm;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.cover { min-height: 240mm; display: flex; flex-direction: column; break-after: page; }
.cover h1 { font-size: 30pt; color: var(--accent); margin: 10mm 0 2mm; line-height: 1.1; letter-spacing: 0.01em; }
.cover .subtitle { font-size: 13pt; margin: 0 0 8mm; text-transform: uppercase; }
.cover .hero { display: block; width: 100%; max-height: 150mm; object-fit: contain; margin: 4mm 0; }
.cover .label { margin-top: auto; font-size: 13pt; text-transform: uppercase; }
.cover .label small { font-size: 9pt; text-transform: none; color: var(--muted); }

.toc { break-after: page; }
.toc h2 { font-size: 13pt; color: var(--accent); text-transform: uppercase; margin: 0 0 4mm; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: flex; gap: 0.5rem; align-items: baseline; color: inherit; text-decoration: none; padding: 0.15rem 0; }
.toc li a .num { flex: 0 0 auto; min-width: 2.2rem; }
.toc li a .text { flex: 1 1 auto; border-bottom: 1px dotted var(--rule); }
.toc li.level-1 { font-weight: 700; color: var(--accent); margin-top: 0.4rem; }
.toc li.level-2 { padding-inline-start: 1.6rem; }
.toc li.level-3 { padding-inline-start: 3.4rem; font-size: 0.92em; }

main h2, main h3, main h4 { line-height: 1.15; break-after: avoid; text-transform: uppercase; }
main h2 { font-size: 19pt; color: var(--accent); margin: 10mm 0 4mm; padding-top: 4mm; border-top: 1px solid var(--rule); }
main h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
main h3 { font-size: 14pt; color: var(--accent); margin: 7mm 0 3mm; }
main h4 { font-size: 11pt; margin: 5mm 0 2mm; }
main .num { margin-inline-end: 0.2em; }
main p { margin: 0 0 3mm; }
main ul, main ol { margin: 0 0 3mm; padding-inline-start: 1.3rem; }
main li { margin-bottom: 1.2mm; }
main ul li::marker { color: var(--ink); }

.note {
	display: flex; gap: 0.9rem; align-items: flex-start;
	border: 1px solid var(--note); border-radius: 2px;
	padding: 0.7rem 0.9rem; margin: 4mm 0;
	break-inside: avoid;
}
.note .icon {
	flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%;
	background: var(--note); color: #fff; font-weight: 700; font-family: Georgia, serif; font-style: italic;
	display: grid; place-items: center;
}
.note .label { display: block; color: var(--note); text-transform: uppercase; font-size: 0.9em; }
.note p { margin: 0; }
.note p + p { margin-top: 0.5rem; }

figure { margin: 4mm 0; break-inside: avoid; }
figure img, figure .placeholder { display: block; max-width: 100%; height: auto; }
figure .placeholder { height: 50mm; background: repeating-linear-gradient(45deg, #f2f2f2 0 8px, #fafafa 8px 16px); border: 1px dashed var(--rule); }
figure.full img { margin: 0 auto; max-height: 120mm; }
figure.half { float: inline-end; width: 46%; margin-block: 0 3mm; margin-inline: 6mm 0; }
/* Boxes, tables and headings never run into a picture floated beside text. */
h1, h2, h3, h4, .safety, .note, table, .gallery, .beside, figure.full { clear: both; }
/* Pictures as tiles (Bildergruppe): 1 to 4 columns, a caption under each */
.gallery { display: grid; gap: 4mm; margin: 0 0 4mm; break-inside: avoid; }
.gallery.cols-1 { grid-template-columns: 1fr; }
.gallery.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery figure { margin: 0; break-inside: avoid; }
.gallery .tile img { display: block; width: 100%; height: auto; }
.gallery.same .tile { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.gallery.same .tile img { width: 100%; height: 100%; object-fit: contain; }
.gallery figcaption { margin-top: 1.5mm; font-size: 0.82em; text-align: center; line-height: 1.3; }
/* A picture beside the next block: two columns side by side, kept on one page. */
.beside { display: grid; grid-template-columns: var(--picture, 40%) minmax(0, 1fr); gap: 6mm; align-items: start; margin: 0 0 4mm; break-inside: avoid; clear: both; }
.beside.picture-right { grid-template-columns: minmax(0, 1fr) var(--picture, 40%); }
.beside.picture-right > figure { order: 2; }
.beside > figure { margin: 0; width: auto; float: none; }
.beside > figure img, .beside > figure .frame { width: 100%; max-height: none; }
.beside > :not(figure) { margin-top: 0; margin-bottom: 0; }
figcaption { font-size: 0.88em; margin-top: 1.5mm; }
main h2, main h3, main h4, .pagebreak { clear: both; }

table { width: 100%; border-collapse: collapse; margin: 3mm 0 4mm; font-size: 0.95em; break-inside: avoid; }
th, td { text-align: start; padding: 0.35em 0.5em; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: #e6e6e6; font-weight: 700; white-space: nowrap; }
td + td { text-align: center; vertical-align: middle; }

.pagebreak { break-after: page; height: 0; }
[data-layout~="new-page"], [data-layout~="page-start"] { break-before: page; }
[data-layout~="keep"] { break-after: avoid; }
/* A block kept with the next (and a heading with what follows) cannot be cut apart. */
.keep-together { break-inside: avoid; }
.keep-together > [data-layout~="new-page"], .keep-together > [data-layout~="page-start"] { break-before: auto; }

/* Space inside the cells: compact and tight */
table[data-density="compact"] th, table[data-density="compact"] td { padding: 0.15em 0.4em; line-height: 1.3; }
table[data-density="tight"] th, table[data-density="tight"] td { padding: 0.05em 0.3em; line-height: 1.15; }
/* Tables with lines drawn by hand: no default row lines */
table[data-lines="own"] th, table[data-lines="own"] td { border: 0; }
/* Alignment of single table cells (wins over the table's default alignment). */
table th[data-align="left"], table td[data-align="left"] { text-align: start; }
table th[data-align="center"], table td[data-align="center"] { text-align: center; }
table th[data-align="right"], table td[data-align="right"] { text-align: end; }
table th[data-align="justify"], table td[data-align="justify"] { text-align: justify; }
/* Background of single table cells (Füllung) */
table [data-fill="white"] { background: #ffffff; }
table [data-fill="black"] { background: #000000; }
table [data-fill="gray1"] { background: #d9d9d9; }
table [data-fill="gray2"] { background: #bfbfbf; }
table [data-fill="gray3"] { background: #a6a6a6; }
table [data-fill="gray4"] { background: #808080; }
table [data-fill="gray5"] { background: #595959; }
table [data-fill="red"] { background: #c00000; }
table [data-fill="yellow"] { background: #ffc000; }
table [data-fill="green"] { background: #2e7d32; }
table [data-fill="orange"] { background: #f28c00; }
table [data-fill="blue"] { background: #304f6e; }
/* Alignment of a block (left and right follow the reading direction). */
[data-align="center"], [data-align="center"] :is(th, td, li, p, figcaption) { text-align: center; }
[data-align="right"], [data-align="right"] :is(th, td, li, p, figcaption) { text-align: end; }
[data-align="justify"], [data-align="justify"] :is(li, p, figcaption) { text-align: justify; hyphens: auto; }
figure[data-align="center"] img, figure[data-align="center"] .frame, .cover[data-align="center"] .hero { margin-inline: auto; }
figure[data-align="right"] .frame, .cover[data-align="right"] .hero { margin-inline-start: auto; }
figure .frame { max-width: 100%; }
figure .frame > img { width: 100%; }
figure .frame.cropped { position: relative; overflow: hidden; }
figure .frame.cropped > img { position: absolute; max-width: none; height: auto; }
figure[data-align="right"] img { margin-inline-start: auto; }
ul[data-align="center"], ol[data-align="center"], ul[data-align="right"], ol[data-align="right"] { list-style-position: inside; padding-inline-start: 0; }

/* Safety messages (ISO 3864-2 / ANSI Z535): the signal word in its colour,
   with the safety alert symbol except for NOTICE. */
.safety { margin: 0 0 4mm; border: 2px solid var(--safety); break-inside: avoid; }
.safety .signal { display: flex; align-items: center; justify-content: center; gap: 0.5em; padding: 1mm 3mm; background: var(--safety); color: var(--safety-ink); font-weight: 700; letter-spacing: 0.06em; font-size: 1.05em; }
.safety .signal .alert { width: 1.3em; height: 1.2em; flex: 0 0 auto; }
.safety p { margin: 0; padding: 2mm 3mm; }
.safety.danger { --safety: #c00000; --safety-ink: #fff; }
.safety.warning { --safety: #f28c00; --safety-ink: #000; }
.safety.caution { --safety: #ffc000; --safety-ink: #000; }
.safety.notice { --safety: #304f6e; --safety-ink: #fff; }
/* The foot of the title page: document type on the left, QR code to the digital manual on the right. */
.cover-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8mm; }
.cover-foot .label { margin: 0; }
.cover .qr { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; flex: 0 0 auto; width: 30mm; color: inherit; text-decoration: none; text-align: center; }
.cover .qr span { font-size: 8.5pt; font-weight: 700; line-height: 1.2; }
.cover .qr svg { display: block; width: 26mm; height: 26mm; }
/* Second-level points: indented, with an open circle */
ul.sub { list-style: circle; margin: 0.15rem 0 0.1rem; padding-inline-start: 1.3em; }
ul.sub li { margin: 0.1rem 0; }
/* A paragraph with bullet points */
div.paragraph > p { margin: 0 0 0.3rem; }
div.paragraph > ul { margin: 0.2rem 0 0.6rem; padding-inline-start: 1.2em; }
/* Bullet lists inside notes and warnings */
.note ul, .safety ul { margin: 0.2rem 0 0; padding-inline-start: 1.2em; }
.note ul li, .safety ul li { margin: 0.15rem 0; }
.note p + ul, .safety p + ul { margin-top: 0.3rem; }
.safety .safety-text { padding: 2mm 3mm; }
.safety .safety-text p { margin: 0; padding: 0; }
.safety.with-signs .safety-text { padding: 0; }
/* Signs of the library in a note (instead of the "i") and in the signal word bar (instead of the triangle) */
.note .icon-sign { width: 2.2em; height: 2.2em; object-fit: contain; flex: 0 0 auto; }
.safety .signal .signal-sign { width: 1.5em; height: 1.5em; object-fit: contain; vertical-align: middle; }
/* A safety message with signs of the library (ISO 3864-2): signs beside the text */
.safety.with-signs .safety-body { display: flex; align-items: center; gap: 4mm; padding: 2mm 3mm; }
.safety.with-signs .signs { display: flex; gap: 2mm; flex: 0 0 auto; }
.safety.with-signs .signs img { width: 16mm; height: 16mm; object-fit: contain; }
.safety.with-signs .safety-body p { padding: 0; }
/* A legend of signs: sign, norm number, meaning */
table.symbols td { vertical-align: middle; }
table.symbols td.sign { width: 14mm; text-align: center; }
table.symbols td.sign img { width: 11mm; height: 11mm; object-fit: contain; display: block; margin: 0 auto; }
table.symbols td.norm { width: 30mm; white-space: nowrap; color: var(--muted); font-size: 0.85em; }
table.symbols td + td { text-align: start; }
.cover .draft { color: #c00000; font-weight: 700; text-transform: uppercase; }


/* Text colours ({c:…}…{/c}); SANO blue is the house colour. */
.c-white { color: #ffffff; }
.c-black { color: #000000; }
.c-gray1 { color: #d9d9d9; }
.c-gray2 { color: #bfbfbf; }
.c-gray3 { color: #a6a6a6; }
.c-gray4 { color: #808080; }
.c-gray5 { color: #595959; }
.c-red { color: #c00000; }
.c-yellow { color: #ffc000; }
.c-green { color: #2e7d32; }
.c-orange { color: #f28c00; }
.c-blue { color: #304f6e; }
sup, sub { font-size: 0.75em; line-height: 0; }
.toc li a::after { content: target-counter(attr(href), page); flex: 0 0 auto; }

/* Page preview in the editor (Paged.js): the A4 pages one below the other on a
   grey desk, with a gap between them as in Word's page view. Only the editor's
   preview (body.preview); Paged.js applies print rules on screen too, and the
   PDF is printed without the desk. */
body.paged { padding: 0; }
body.paged .document { width: auto; max-width: none; margin: 0; padding: 0; box-shadow: none; background: none; }
body.paged .untranslated { outline: none; background: none; }
body.preview.paged { background: #e9ebee; }
body.preview.paged .pagedjs_pages { display: flex; flex-direction: column; align-items: center; gap: 10mm; padding: 10mm 0; background: #e9ebee; }
body.preview.paged .pagedjs_page { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28); position: relative; margin: 0; }

.untranslated { outline: 2px dashed #e0a800; outline-offset: 2px; background: #fff8e1; }
main .untranslated { display: block; }
figcaption.untranslated { display: inline-block; }

body.index main h1 { color: var(--accent); font-size: 22pt; text-transform: uppercase; }
.lost { display: none; padding: 0.7rem 0.9rem; border-left: 4px solid var(--accent); background: rgba(0, 0, 0, 0.04); }
.lost:target { display: block; }
.lost span { display: block; color: var(--muted); }
.manuals strong a { color: inherit; text-decoration: none; }
.manuals strong a:hover { text-decoration: underline; }
.manuals { list-style: none; padding: 0; margin: 0; }
.manuals li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: 0.2rem; }
.manuals .subtitle { color: var(--muted); }
.manuals .langs a { margin-inline-end: 0.7rem; }

@page { size: A4; margin: 18mm 18mm 20mm; font-family: var(--font); font-size: 8.5pt; color: #595959; }
.page-logo { position: running(pageLogo); height: 9mm; width: auto; }
/* The logo stands where {Logo} is: centred in a middle field, to the right in a right one. */
.pagedjs_margin-top-center .page-logo, .pagedjs_margin-bottom-center .page-logo { margin-left: auto !important; margin-right: auto !important; }
.pagedjs_margin-top-right .page-logo, .pagedjs_margin-bottom-right .page-logo { margin-left: auto !important; margin-right: 0 !important; }
body:not(.paged) .page-logo { display: none; }
/* A gap the editor's norm check shows in the preview */
[data-block^="gap-"] { border: 2px dashed #c00000 !important; background: #fdf0ef !important; }
[data-block^="gap-"] .label { color: #b3261e; }
/* List of changes at the end of the manual */
.changelog { break-before: page; }
.changelog h2 { margin-top: 0; }
.changelog td:first-child, .changelog th:first-child { width: 4.5em; text-align: center; }
.changelog td:nth-child(2), .changelog th:nth-child(2) { width: 7.5em; }
/* Cross references: {ref:…} is the heading's number, {page:…} its page in print. */
a.xref { color: inherit; text-decoration: none; }
a.pageref { color: inherit; text-decoration: none; }
a.pageref::after { content: target-counter(attr(href), page); }
body:not(.paged) a.pageref::after { content: attr(data-ref); }
.xref.broken { color: #c00000; font-weight: 700; }

@media print {
	body { background: none; padding: 0; }
	.bar { display: none; }
	.document { width: auto; max-width: none; margin: 0; padding: 0; box-shadow: none; }
	.cover { min-height: 0; height: 240mm; }
	.untranslated { outline: none; background: none; }
	a { color: inherit; text-decoration: none; }
}

@media (max-width: 760px) {
	body.reader { padding-top: 5rem; }
	.bar { flex-wrap: wrap; row-gap: 0.4rem; }
	.bar .langs { flex: 1 1 100%; }
	.document { padding: 8mm 6mm; }
	table { display: block; overflow-x: auto; }
	.cover { min-height: 0; }
	.cover h1 { font-size: 22pt; }
	figure.half { float: none; width: 100%; margin: 4mm 0; }
	.beside, .beside.picture-right { grid-template-columns: 1fr; }
	.gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.beside.picture-right > figure { order: 0; }
}

/* Download page (where the QR code on the title page leads) */
body.downloads { background: #eef1f3; margin: 0; }
body.downloads main { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
body.downloads header { background: var(--paper, #fff); padding: 1.2rem 1.4rem; border-top: 4px solid var(--accent); }
body.downloads header .hero { display: block; max-width: 100%; max-height: 14rem; margin: 0 auto 1rem; }
body.downloads h1 { margin: 0; color: var(--accent); font-size: 1.7rem; }
body.downloads .subtitle { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.95rem; }
body.downloads .version { margin: 0.4rem 0 0; font-size: 0.85rem; color: var(--muted); }
body.downloads .choose { list-style: none; margin: 1rem 0 0; padding: 0; background: #fff; }
body.downloads .choose li { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1.4rem; border-bottom: 1px solid var(--rule); }
body.downloads .choose li:first-child { background: #f7f9fb; }
body.downloads .choose .name { flex: 0 0 11rem; font-weight: 700; }
body.downloads .choose .doc { flex: 1 1 auto; color: var(--muted); }
body.downloads .choose .actions { display: flex; gap: 0.5rem; flex: 0 0 auto; }
body.downloads .choose a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; border-radius: 3px; font-weight: 600; font-size: 0.9rem; }
body.downloads .choose a.pdf { background: var(--accent); color: #fff; }
@media (max-width: 560px) {
	body.downloads .choose li { flex-wrap: wrap; }
	body.downloads .choose .name { flex-basis: 100%; }
}
body.downloads header { position: relative; }
body.downloads header .all { margin-top: 0.8rem; padding: 0.55rem 1rem; border: 0; border-radius: 3px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
body.downloads header .all:disabled { opacity: 0.7; cursor: wait; }
@media (min-width: 720px) { body.downloads header .all { position: absolute; right: 1.4rem; bottom: 1.2rem; margin: 0; } }
