/* THSE Recorder — manual and legal pages (screen and A4 print). */
:root {
    --ink: #13202a;
    --muted: #4f6068;
    --line: #d5dde0;
    --accent: #a8741c;
    --paper: #ffffff;
    --page-bg: #e9eef0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--page-bg);
    font: 10.5pt/1.5 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

.doc-bar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #e6eeee;
    background: #071014;
    font: 600 11px/1 "Courier New", monospace;
    letter-spacing: 0.16em;
}

.doc-bar button {
    padding: 8px 12px;
    border: 1px solid #d9a441;
    border-radius: 4px;
    color: #071014;
    background: #d9a441;
    font: inherit;
    cursor: pointer;
}

.page {
    width: min(210mm, 100% - 24px);
    min-height: 297mm;
    margin: 16px auto;
    padding: 16mm 17mm;
    background: var(--paper);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.doc-header img { border-radius: 6px; }

h1 {
    margin: 0;
    font: 700 16pt/1.1 "Courier New", monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.doc-header p { margin: 3px 0 0; color: var(--muted); font-size: 9.5pt; }

h2 {
    margin: 14px 0 5px;
    color: var(--accent);
    font: 700 9.5pt/1.2 "Courier New", monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

p, ul, ol, dl { margin: 4px 0 6px; }
ul, ol { padding-left: 18px; }
li { margin: 2px 0; }
.lead { font-size: 11pt; }
.note { color: var(--muted); font-size: 9pt; }
.draft {
    padding: 8px 10px;
    border: 1px dashed var(--accent);
    border-radius: 4px;
    color: var(--muted);
    font-size: 9pt;
}

code {
    padding: 0 3px;
    border-radius: 3px;
    background: #eef2f3;
    font: 9.5pt "Courier New", monospace;
}

table { width: 100%; margin: 4px 0 8px; border-collapse: collapse; }
th, td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { width: 24%; font: 700 8.5pt/1.4 "Courier New", monospace; letter-spacing: 0.06em; white-space: nowrap; }
table.compact th { width: auto; }

.faq dt { margin-top: 6px; font-weight: 700; }
.faq dd { margin: 1px 0 0; color: var(--ink); }

@page { size: A4; margin: 0; }

@media print {
    body { background: #fff; font-size: 8.9pt; line-height: 1.36; }
    h1 { font-size: 13pt; }
    h2 { margin: 8px 0 3px; font-size: 8.6pt; }
    p, ul, ol, dl { margin: 2px 0 4px; }
    li { margin: 1px 0; }
    th, td { padding: 2px 5px; }
    th { font-size: 7.8pt; }
    code { font-size: 8.4pt; }
    .lead { font-size: 9.6pt; }
    .doc-header { margin-bottom: 6px; padding-bottom: 6px; }
    .doc-header img { width: 30px; height: 30px; }
    .faq dt { margin-top: 3px; }
    .doc-bar { display: none; }
    .page { width: auto; min-height: 0; margin: 0; padding: 11mm 13mm; box-shadow: none; page-break-after: always; break-after: page; }
    .page:last-child { page-break-after: auto; }
}

.copyright {
    margin-top: 28px;
    font-size: 11px;
    opacity: 0.7;
}
