/*!
 * Základní typografie řízeného dokumentu vloženého shortcodem [consenta_document].
 * Vlastní styl dokumentu z Consenty se vkládá až za tímto souborem (a je omezený na obal
 * dokumentu), takže si ho dokument může přebít.
 */
.consenta-document {
    line-height: 1.6;
    overflow-wrap: break-word;
}

.consenta-document h1,
.consenta-document h2,
.consenta-document h3,
.consenta-document h4 {
    line-height: 1.3;
    margin: 1.6em 0 .5em;
}

.consenta-document h1:first-child,
.consenta-document h2:first-child {
    margin-top: 0;
}

.consenta-document p,
.consenta-document ul,
.consenta-document ol {
    margin: 0 0 1em;
}

.consenta-document ul,
.consenta-document ol {
    padding-left: 1.5em;
}

.consenta-document li + li {
    margin-top: .3em;
}

.consenta-document table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 0 1em;
}

.consenta-document th,
.consenta-document td {
    border: 1px solid #d7dae0;
    padding: .45em .6em;
    text-align: left;
    vertical-align: top;
}

.consenta-document th {
    background: #f6f7f9;
}

.consenta-document img {
    max-width: 100%;
    height: auto;
}

.consenta-document-pdf {
    margin: 1.25em 0 0;
}

.consenta-document-pdf a {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .5em .9em;
    border: 1px solid #4F46E5;
    border-radius: 6px;
    color: #4F46E5;
    font-size: .95em;
    text-decoration: none;
}

.consenta-document-pdf a::before {
    content: "\2193";
    font-weight: 700;
}

.consenta-document-pdf a:hover,
.consenta-document-pdf a:focus-visible {
    background: #4F46E5;
    color: #fff;
}

/* Tisk stránky s dokumentem — PDF z Consenty je jinde, tohle je jen slušný fallback. */
@media print {
    .consenta-document {
        font-size: 11pt;
    }

    .consenta-document h1,
    .consenta-document h2,
    .consenta-document h3 {
        page-break-after: avoid;
    }

    .consenta-document table,
    .consenta-document li {
        page-break-inside: avoid;
    }

    .consenta-document-pdf {
        display: none;
    }
}
