/* Společný vzhled právních dokumentů Prevet — obrazovka i tisk/PDF (A4). */
@font-face { font-family: 'Public Sans'; font-weight: 100 900; font-display: swap; src: url(../fonts/publicsans-latin.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: 'Public Sans'; font-weight: 100 900; font-display: swap; src: url(../fonts/publicsans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sora'; font-weight: 100 900; font-display: swap; src: url(../fonts/sora-latin.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: 'Sora'; font-weight: 100 900; font-display: swap; src: url(../fonts/sora-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

* { box-sizing: border-box; }
body { margin: 0; background: #eef3ef; color: #16241a; font-family: 'Public Sans', system-ui, sans-serif; font-size: 10.5pt; line-height: 1.55; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dok { max-width: 210mm; margin: 24px auto; padding: 20mm 20mm 22mm; background: #fff; box-shadow: 0 10px 40px rgba(22,36,26,0.10); }
.dok-znacka { margin: 0 0 6mm; font-size: 8.5pt; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #1e7e34; }
h1 { font-family: 'Sora', sans-serif; font-size: 19pt; line-height: 1.2; margin: 0 0 3mm; }
.dok-uvod { margin: 0 0 8mm; color: #5b6b60; }
h2 { font-family: 'Sora', sans-serif; font-size: 11.5pt; margin: 7mm 0 2.5mm; break-after: avoid; page-break-after: avoid; }
ol { margin: 0; padding-left: 7mm; }
ol li { margin: 0 0 1.8mm; }
ol ol { margin-top: 1.5mm; padding-left: 6mm; }
ol ol li { margin-bottom: 1mm; }
li, p { orphans: 3; widows: 3; }
.nowrap { white-space: nowrap; }

/* Zástupné údaje k doplnění — záměrně výrazné, ať se nepřehlédnou. */
.doplnit { background: #fde68a; color: #713f12; padding: 0 3px; border-radius: 3px; font-weight: 600; }

/* Smluvní strany */
table.strany { width: 100%; border-collapse: collapse; margin: 3mm 0 1mm; break-inside: avoid; }
table.strany th { text-align: left; font-size: 9pt; text-transform: uppercase; letter-spacing: 0.05em; color: #1e7e34; padding: 0 0 2mm; }
table.strany td { padding: 1.6mm 0; border-bottom: 1px solid #dfe7e1; vertical-align: bottom; }
table.strany td:first-child { width: 42%; color: #5b6b60; }
table.strany td.pole { border-bottom: 1px dotted #9fb0a4; }
.strany-pozn { margin: 1mm 0 0; color: #5b6b60; }
.strany-a { margin: 4mm 0; font-weight: 700; }

/* Podpisy */
.podpisy { display: flex; gap: 12mm; margin-top: 14mm; break-inside: avoid; }
.podpisy > div { flex: 1; }
.podpis-cara { margin-top: 18mm; padding-top: 2mm; border-top: 1px solid #16241a; text-align: center; color: #5b6b60; }

/* Přílohy */
.priloha { break-before: page; page-break-before: always; }
table.tabulka { width: 100%; border-collapse: collapse; margin: 2mm 0 3mm; font-size: 9.5pt; }
table.tabulka th, table.tabulka td { border: 1px solid #cfdad2; padding: 2mm 2.5mm; text-align: left; vertical-align: top; }
table.tabulka th { background: #f1f6f2; }
.pozn { font-size: 9pt; color: #5b6b60; }

@page { size: A4; margin: 18mm 20mm 20mm; }
@media print {
  body { background: #fff; }
  .dok { margin: 0; padding: 0; box-shadow: none; max-width: none; }
}
@media (max-width: 700px) {
  .dok { margin: 0; padding: 22px 18px; }
  .podpisy { flex-direction: column; gap: 4mm; }
}

/* Odkazy v dokumentech */
.dok a { color: #1e7e34; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
