*{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.4em;
}

a{
    color: #0070af;
}

body {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    font-size: 10pt;
    padding: 0 2rem;
}

.header {
    padding: 20px ;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.back-button-container a{
    padding: 10px;
    background-color: #0070af;
    border: 2px #0070af solid;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0px 0px 6px #aaa;
    transition-duration: .2s;
}

.back-button-container a:hover{
    background-color: white;
    color: #0070af;
    transition-duration: .2s;
}

.svp-summary-container{
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 10pt;
}

.svp-summary-container li a{
    color: #0070af;
    font-weight: 700;
    text-decoration: none;
}

.svp-summary-container li::marker{
    color: #0070af;
}

.svp-summary-container ol, .svp-summary-container ul{
    padding-left: 30px;
}

.svp-container{
    padding-right: 40px;
    counter-reset: paragraf;
}

h1 {
   display: none;
}

h2 {
    font-variant: small-caps;
    text-align: center;
    margin-bottom: .1rem;
    font-size: 2rem;
    border-bottom: 2px #0070af dotted;
}

h3 {
    font-size: 15pt;
    text-align: left;
    padding-bottom: 6px;
    margin: 0;
}

h4 {
    font-size: 13pt;
    padding-bottom: 4px;
    margin: 0;
}

h5 {
    font-size: 12pt;
    padding-bottom: 4px;
    font-variant: small-caps;
    margin: 0;
    text-align: center;
}

h6 {
    font-size: 10pt;
    padding-bottom: 2px;
    margin: 0;
}

p {
    margin-top: 0;
    margin-bottom: 6px;
}

ul li {
    list-style-type: "- ";
}

ol, ul {
    margin: 0 0 4px 0;
    padding: 0;
}

.svp-container ol, .svp-container ul{
    padding-left: 27px;
}

.svp-container ol li {
    font-variant: normal;
    text-align: left;
    list-style-position: outside;
}

table.tabulka-pojmu{
    border-collapse: collapse;
    border: 1px black dotted;
    width: 100%;
    margin-bottom: 10px;
}

table.tabulka-pojmu tr td{
    border: 1px black dotted;
    padding: 4px;
}

table.tabulka-pojmu tr td:first-child{
    font-weight: 700;
    width: 150px;
}

sup {
    text-decoration: underline;
}

table tr td {
    vertical-align: top;
}

.svp {
    counter-reset: cast 0 dil;
}

.svp .paragraf {
    counter-increment: paragraf;
    text-align: center;
}

.svp p.paragraf::before {
    content: "§ " counter(paragraf);
    font-weight: 700;
    font-size: 12pt;
}

.svp h3 {
    text-align: center;
    font-variant: small-caps;
}

.svp .cast {
    counter-increment: cast;
    counter-reset: dil;
    margin-bottom: 1rem;
}

.svp .cast h3::before {
    content: "Část " counter(cast, upper-roman) " - ";
}

/* Změněno z .oddil na .dil dle textu nové směrnice */
.svp .cast .dil {
    counter-increment: dil;
    margin-top: 1rem;
}

.svp h4::before {
    content: "Díl " counter(dil) " - ";
}

.svp ol>li::marker {
    content: "(" counter(list-item) ") ";
}

.svp ol[type="pismena"]>li::marker {
    content: counter(list-item, lower-alpha) ") ";
}

.svp ol[type="cisla"]>li::marker {
    content: counter(list-item) ") ";
}

/* --- ANIMACE PRO ZVÝRAZNĚNÍ ODKAZOVANÉHO ELEMENTU (KOTVY) --- */
:target {
    animation: highlight-target 2s ease-out;
}

@keyframes highlight-target {
    0% { background-color: rgba(255, 216, 79, 0.6); } /* Pionýrská žlutá */
    100% { background-color: transparent; }
}



/* --- LIŠTA DOKUMENTU (Pod hlavní hlavičkou) --- */
.document-toolbar {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.document-toolbar .back-button-container a {
    padding: 10px 15px;
    background-color: #0070af;
    border: 2px #0070af solid;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0px 0px 6px #aaa;
    transition-duration: .2s;
    display: inline-block;
}

.document-toolbar .back-button-container a:hover {
    background-color: white;
    color: #0070af;
}

.document-toolbar .platnost-info-container p {
    margin: 0;
    font-weight: 700;
}

/* --- STYLY PRO PŘÍLOHY (Přepis standardních směrnicových counterů) --- */
.priloha-container {
    padding-right: 40px;
}

.priloha-container h2 {
    font-variant: small-caps;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 2px #0070af dotted;
}

.priloha-container .cast-prilohy {
    margin-bottom: 2rem;
}

.priloha-container .cast-prilohy h3 {
    font-size: 15pt;
    text-align: left;
    padding-bottom: 6px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc; /* Lehké oddělení částí v příloze */
}

/* Číslování pro Přílohy formátu (1), (2) a a), b) */
.priloha-container ol {
    list-style-type: none; 
    padding-left: 27px;
    margin-bottom: 10px;
}

.priloha-container > .cast-prilohy > ol > li {
    margin-bottom: 8px;
}

.priloha-container > .cast-prilohy > ol > li::marker {
    content: "(" counter(list-item) ") ";
    font-weight: 700;
}

/* Druhá úroveň a), b), c) */
.priloha-container > .cast-prilohy > ol > li > ol {
    margin-top: 8px;
}

.priloha-container > .cast-prilohy > ol > li > ol > li::marker {
    content: counter(list-item, lower-alpha) ") ";
    font-weight: normal;
}