*{
    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;
}

.shc-summary-container{
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 10pt;
}

.shc-summary-container li a{
    color: #0070af;
    font-weight: 700;
    text-decoration: none;
}

.shc-summary-container li::marker{
    color: #0070af;
}

.shc-summary-container ol, .shc-summary-container ul{
    padding-left: 30px;
}

.shc-container{
    padding-right: 40px;
    counter-reset: paragraf;
}

#summary-preambule {
    list-style-type: none;
}

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;
}

.shc-container ol, .shc-container ul{
    padding-left: 27px;
}

.shc-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;
}

.shc {
    /* Reset počítadla správně od nuly */
    counter-reset: cast 0 oddil;
}

.shc .paragraf {
    counter-increment: paragraf;
    text-align: center;
}

.shc p.paragraf::before {
    content: "§ " counter(paragraf);
    font-weight: 700;
    font-size: 12pt;
}

.shc h3 {
    text-align: center;
    font-variant: small-caps;
}

/* Samostatná třída pro preambuli, aby nezvyšovala počítadlo Částí */
.shc .cast-preambule {
    margin-bottom: 1rem;
}

.shc .cast {
    counter-increment: cast;
    counter-reset: oddil;
    margin-bottom: 1rem;
}

.shc .cast h3::before {
    content: "Část " counter(cast, upper-roman) " - ";
}

.shc .cast .oddil {
    counter-increment: oddil;
    margin-top: 1rem;
}

.shc h4::before {
    content: "Oddíl " counter(oddil) " - ";
}

.shc ol>li::marker {
    content: "(" counter(list-item) ") ";
}

.shc ol[type="pismena"]>li::marker {
    content: counter(list-item, lower-alpha) ") ";
}

.shc 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; }
}