*{
    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;
}

ol, ul {
    font-size: 10pt;
}

.stanovy-container ol, .stanovy-container ul{
    padding-left: 27px;
}

.header{
    padding: 20px ;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.stanovy-summary-container{
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-size: 11pt;
}

.stanovy-summary-container li a{
    color: #0070af;
    font-weight: 700;
    text-decoration: none;
}

.stanovy-summary-container li::marker{
    color: #0070af;
}

.stanovy-container{
    padding-right: 40px;
}

.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;
}

h2{
    font-variant: small-caps;
    text-align: center;
    margin-bottom: .1rem;
    font-size: 2rem;
    border-bottom: 2px #0070af dotted
}

p{
    margin-top: 0;
    text-align: center;
    font-weight: 700;
}

ul li{
    list-style-type: "– ";
}

/* --- Stylování hlavní úrovně (Římské číslice: I., II.) --- */
.stanovy-summary-container ol[type="I"] > li::marker {
    content: counter(list-item, upper-roman)". ";
}

.stanovy-container ol[type="I"]:not(.zavorka-roman) > li {
    font-size: 1.15rem;
    text-align: center;
    list-style-position: inside;
    margin-top: 1rem;
}

.stanovy-container ol[type="I"]:not(.zavorka-roman) > li::marker {
    font-weight: 700;
    content: normal; /* Zajistí, že se nepoužije styl pro závorky */
}

/* Vytvoření mezery 1rem mezi nadpisem sekce a následujícím obsahem (články) */
.stanovy-container ol[type="I"] > li > ol {
    margin-top: .5rem;
}

/* Reset pro vnořené seznamy (běžný text, články) */
.stanovy-container ol li {
    font-variant: normal;
    text-align: left;
    list-style-position: outside;
}

/* --- Stylování článků (1), (2)... --- */
/* Aplikuje se na seznamy, které mají atribut 'start' (což jsou všechny seznamy článků) */
.stanovy-container ol[start] {
    list-style-type: none; /* Skryjeme výchozí číslování */
}

.stanovy-container ol > li {
    margin-left: .8rem;
}

.stanovy-container ol[start] > li::marker {
    /* Vytvoří formát (X) */
    content: "(" counter(list-item) ") "; 
    font-weight: 700;
}

/* --- Stylování podbodů a), b), c) --- */
ol[type="a)"] > li::marker {
    content: counter(list-item, lower-alpha)") ";
}

/* --- Stylování podbodů i), ii), iii) --- */
ol[type="i"] > li::marker {
    content: counter(list-item, lower-roman)") ";
}

/* --- Stylování sekcí A, B, C (Pobočné spolky) --- */
.stanovy-container ol[type="A"] > li {
    font-size: 1rem;
    font-variant: small-caps;
    margin: .5rem 0;
}

.stanovy-container ol[type="A"] > li::marker {
    font-weight: 700;
    content: normal; /* Reset markeru na default písmena A, B... */
}

/* Barevné pruhy pro zanoření */
.stanovy-container > ol {
    border-left: 2px rgba(0, 0, 0, .3) solid;
}
.stanovy-container > ol > li > ol {
    border-left: 2px rgba(0, 112, 175, .3) solid;
}
.stanovy-container > ol > li > ol > li > ol {
    border-left: 2px rgba(238, 52, 36, .3) solid;
}
.stanovy-container > ol > li > ol > li > ol > li > ol {
    border-left: 2px rgba(87, 170, 39, .3) solid;
}
.stanovy-container > ol > li > ol > li > ol > li > ol > li > ol {
    border-left: 2px rgba(255, 216, 79, .3) solid;
}
.stanovy-container > ol > li > ol > li > ol > li > ol > li > ol > li > ol {
    border-left: 2px rgba(128, 128, 128, .3) solid;
}

:target {
    animation: highlight 3s ease;
}

@keyframes highlight {
    0% { background-color: #ffffcc; }
    100% { background-color: transparent; }
}


/* --- IKONY PRO KOPÍROVÁNÍ ODKAZŮ (KOTEV) --- */

/* Vytvoření kontextu pro absolutní pozicování ikonky */
.stanovy-container li[id] {
    position: relative;
}

/* Základní styl ikony */
.copy-anchor-btn {
    position: absolute;
    left: -24px; /* Posun vlevo před text, do prostoru s pruhy */
    top: 1px; /* Vycentrování na první řádek textu */
    opacity: 0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #0070af; /* Pionýrská modrá */
    transition: opacity 0.2s, transform 0.1s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    pointer-events: none; /* Skryté tlačítko neblokuje klikání */
}

/* Zobrazení ikony (třídu přidává JavaScript při najetí myší na nejbližší li) */
.copy-anchor-btn.visible {
    opacity: 0.5; /* Mírně průhledné, dokud se na ikonu nenajede */
    pointer-events: auto;
}

/* Plné zobrazení při najetí přímo na ikonu */
.copy-anchor-btn:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Styl po úspěšném zkopírování (zelená barva) */
.copy-anchor-btn.copied {
    color: #57aa27; /* Zelená barva (použitá v pruzích pro level 4) */
    opacity: 1 !important;
}

.copy-anchor-btn svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}
