/*
===============================================================================================================================
Put your custom CSS in this file.
===============================================================================================================================
*/

.theme-basic body {
    --background-color: #FFFFFF;
    --background-secondary-color: #F4F5F7;

    --primary-color: #7099C1;
    --secondary-color: #165DBB;

    --font-family: "Roboto", "Montserrat", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
    --font-color: #111111;
    --font-secondary-color: #374151;
    --font-muted-color: #9CA3AF;
    --font-light-color: #888888;
    --font-placeholder-color: #CCCCCC;

    --border-color: #E5E7EB;
    --border-light-color: #EAEAEA;

    --hover-color: #F4F5F7;
    --active-color: #EAF3FB;

    --icon-color: #454F6F;

    --nav-background-color: #EEEEEE;
}


body {
    line-height: 140%;
    letter-spacing: normal;
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", "Montserrat", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
    font-weight: 200;
    letter-spacing: normal;
}

a {
    color: var(--primary-color);
}

#header-wrapper {
    width: 100%;
    height: 52px;
    position: fixed;
    z-index: 1;
}
#header {
    background-color: var(--background-color);
    width: 100%;
    height: 52px;
}
#logo {
    float: left;
}

#header {
    position: absolute;
}

#header h5 {
    color: var(--font-color) !important;
    font-size: 1em;
    margin: 1.2rem 0 0 0;
}

@media screen and (max-width: 768px) {
    #header h5 {
        display: none;
    }

    /* centrum logo — kompenzace theme-switcher tlačítka vpravo */
    #logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        float: none;
    }
    #logo svg {
        margin-top: .5rem;
    }

    #sidebar-toggle {
        top: 0.8em;
        left: 1.2em;
        z-index: 10;
        position: fixed;
    }

    #sidebar-toggle .fa-2x {
        font-size: 1.5em;
    }

    #logo {
        float: none;
    }

    .searchbox {
        display: none !important;
    }
}

#header-wrapper .searchbox {
    float: right;
    font-size: 1em;
    margin-top: 0.8rem;
    background-color: transparent;
    border: none;
}

#header-wrapper .searchbox * {
    color: var(--font-muted-color);
}

#header-wrapper .searchbox input {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    color: var(--font-secondary-color);
}

#header-wrapper .searchbox input::placeholder {
    color: var(--font-muted-color);
}


#body {
    padding-top: 52px;
    max-width: 75em;
}

#sidebar {
    margin-top: 52px;
}

#sidebar .scroll-wrapper {
    max-height: 100%!important;
}

#sidebar li.has-submenu > a > i.fa-chevron-right {
    display: inline-block;
    float: right;
    margin-top: 5px!important;
    padding: 5px;
    -moz-transition: transform .3s ease-in-out;
    -webkit-transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
}

/* SUB chevron icon */
#sidebar li.has-submenu ul > li.has-submenu > a > i.fa-chevron-right {
    margin-top: 0!important;
    margin-left: 0!important;
}

#sidebar li.has-submenu > ul {
    display: none!important;
}

#sidebar li.has-submenu.open > ul {
    display: block!important;
}

#sidebar li.has-submenu.open > a > i.fa-chevron-right {
    -moz-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}


#sidebar li > ul {
    display: none!important;
}

#sidebar li.open > ul,  #sidebar li.active > ul {
    display: block!important;
}

#logo svg {
    height: 28px;
}

#logo h5 {
    margin: 0;
    font-size: 1.2em;
}


#sidebar ul.topics li a b, #sidebar ul.topics li i.fa-check, [data-clear-history-toggle], #footer {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 1.5rem 0 0.4rem 0;
    line-height: 110%;
    letter-spacing: 5px;
    font-weight: 500;
    font-family: Montserrat;
    color: var(--primary-color);
}

h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + * {
    margin-top: 0;
}

h1 + table, h2 + table, h3 + table, h4 + table, h5 + table, h6 + table {
    margin-top: 0.7em;
}



h1 {font-size: 2.55rem;text-align: left;} /*32px*/
h2 {font-size: 2.15rem;} /*28px */
h3 {font-size: 1.9rem;} /* 25px */
h4 {font-size: 1.55rem;}   /* 22px */
h5 {font-size: 1.3rem;} /* 22px */
h6 {font-size: 1.2rem;} /* 18px */


#body .video-container {
    margin: 0.5rem auto 3rem;
}

table {
    border: none;
}

table th {
    font-weight: 400;
}

table td {
    border: none;
    border-bottom: 1px solid var(--border-light-color);
}

#body-inner p + ul {
    margin-top: -1.7rem;
}

#body-inner a:hover {
    text-decoration-style: solid;
}

#top-github-link {
    display: none;
}

#body-inner pre code {
    display: inline-block;
}

/*  MATERIAL BOX STYLES */

#body-inner img {
    cursor: hand;
    cursor: pointer;
}


:target::before {
    content: "";
    display: block;
    height: 60px; /* fixed header height*/
    margin: -60px 0 0; /* negative fixed header height */
}

code {
    vertical-align: middle;
}

code + .copy-to-clipboard {
    display: none;
}

pre code + .copy-to-clipboard {
    display: block;
}

.notices p {
    margin: 1rem 0;
}

.magnific-popup {
    padding: 30px;
    margin: 0.5rem auto 2rem;
    display: inline-block;
    -webkit-box-shadow: 0 2px 38px 0 rgba( 0, 42, 76, 0.08);
    box-shadow: 0 2px 38px 0 rgba( 0, 42, 76, 0.08);
}

#body-inner .magnific-popup img {
    margin: 0;
    max-width: 100%;
}

.magnific-popup-wrapper {
    margin: 0;
    text-align: center;
}

.mfp-zoom-out-cur {
    cursor: inherit;
}

.mfp-zoom-out-cur .mfp-image-holder .mfp-close, .mfp-zoom-out-cur  .mfp-content {
    cursor: pointer;
}
.mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
    color: var(--font-color) !important;
    right: 6px;
}

.mfp-figure {
    background: white;
    padding: 30px;
}

.mfp-figure img {
    padding: 0;
}

.mfp-img {
    max-height: initial!important;
}

#body .nav {
    font-size: 26px;
    height: 12rem;
    width: 12rem;
    top: calc(35% - 2rem);
    background: var(--nav-background-color);
    transition: transform .25s ease-in-out;
    opacity: 1;
    color: white;
}

#body .nav.nav-next {
    transform: translateX(89%);
    border-radius: 7rem 0 0 7rem;
}

#body .nav.nav-prev {
    transform: translateX(-89%);
    border-radius: 0 7rem 7rem 0;
}
#body .nav.nav-prev i {
    text-align: right;
    padding-right: 0.9em;
}

#body .nav.nav-next i {
    text-align: left;
    padding-left: 0.9em;
}


#body .nav:hover {
    transform: translateX(0);
    background: var(--nav-background-color);
    color: white;
}

#body .nav.nav-prev:hover {
    transform: translateX(-72%);
}

#body .nav.nav-next:hover {
    transform: translateX(72%);
}

#sidebar {
    z-index: 1;
}

.search-submit {
    height: 2.18em;
    padding: 2px 10px;
}

.search-submit img {
    margin: 0!important;
}

.hidden, li.dd-item .hidden {
    display: none!important;
}

.theme-basic i.material-symbols-outlined:not(#header-wrapper .material-symbols-outlined) {
    display: none!important;
}

.theme-basic .cc-notice-title, .theme-basic .cc-page-nav {
    display: none!important;
}

.cc-theme-switcher {
    float: right;
    margin-top: 0.55rem;
    margin-left: 0.75rem;
    position: relative;
}
.cc-theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border: none;
}
.cc-theme-toggle .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--icon-color);
    line-height: 1;
}
.cc-theme-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0.4rem;
    min-width: 160px;
    z-index: 200;
}
.cc-theme-switcher.open .cc-theme-menu {
    display: block;
}
.cc-theme-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--font-secondary-color);
    text-align: left;
}
.cc-theme-option:hover {
    background: var(--hover-color);
}
.cc-theme-option.active {
    background: var(--active-color);
    color: var(--secondary-color);
}
.cc-theme-option .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--font-muted-color);
    line-height: 1;
}
.cc-theme-option.active .material-symbols-outlined {
    color: var(--secondary-color);
}

#header-wrapper .searchbox {
    float: right;
    margin-top: 0.55rem;
    display: flex;
    align-items: center;
    background: var(--background-color) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 0 0.75rem !important;
    gap: 0.4rem;
    height: 34px;
    position: static !important;
}
#header-wrapper .searchbox label {
    display: flex !important;
    align-items: center;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    position: static !important;
    color: var(--font-muted-color) !important;
}
#header-wrapper .searchbox form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}
#header-wrapper .searchbox .cc-search-icon {
    font-size: 1.1rem;
    color: var(--font-muted-color);
    line-height: 1;
    margin-top: 1px;
}
#header-wrapper .searchbox input {
    border: none !important;
    background: transparent !important;
    outline: none;
    font-size: 0.875rem;
    color: var(--font-secondary-color) !important;
    width: 160px;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex: 1;
}
#header-wrapper .searchbox input::placeholder {
    color: var(--font-muted-color) !important;
}
#header-wrapper .searchbox span[data-search-clear] {
    position: static !important;
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
}
#header-wrapper .searchbox .cc-search-clear {
    font-size: 1rem;
    color: var(--font-muted-color) !important;
    line-height: 1;
    cursor: pointer;
}


/* =====================================================================
   THEME-LIGHT VARIABLES
   Aktivují se pouze když je na <html> třída theme-light.
   Přepisují/doplňují proměnné definované pro theme-basic v custom.css.
   ===================================================================== */
.theme-light body {
    --background-color: #FFFFFF;
    --background-secondary-color: #F4F5F7;

    --primary-color: #165DBB;
    --secondary-color: #165DBB;

    --heading-color: #0B1837;

    --font-color: #556079;
    --font-secondary-color: #374151;
    --font-muted-color: #9CA3AF;
    --font-light-color: #888888;
    --font-placeholder-color: #CCCCCC;

    --border-color: #e0e6ec;
    --border-light-color: #EAEAEA;
    --border-accent-color: #165DBB;

    --hover-color: #F4F5F7;
    --active-color: #eaf3fb;

    --icon-color: #454F6F;
    --icon-size: 1.1em;
    --icon-radius: 4px;

    --nav-background-color: #EEEEEE;

    --sidebar-background-color: #f7f9fb;

    --purple-color: #8e6bb5;
    --purple-soft-color: #f0eafb;
    --magenta-color: #c14a8e;
    --magenta-soft-color: #fbeaf3;

    --card-background-color: #FFFFFF;
    --card-shadow: 0 1px 22px rgba(0, 0, 0, 0.1), 0 1px 6px rgba(0, 0, 0, 0.04);
    --card-radius: 1.2rem;
    --card-padding: 2rem;
    --card-border: 1px solid #F1F3F8;

    --notice-yellow-color: #df8a13;
    --notice-red-color: #b52b27;
    --notice-blue-color: #28a1c5;
    --notice-green-color: #3d8b3d;

    --num-circle-text-color: #000000;

    --anchor-copied-color: #3d8b3d;
}


/* =====================================================================
   TYPOGRAPHY — liší se od basic (Inter místo Roboto/Montserrat)
   ===================================================================== */
.theme-light body,
.theme-dark body {
    color: var(--font-color);
}

.theme-light body,
.theme-light h1, .theme-light h2, .theme-light h3,
.theme-light h4, .theme-light h5, .theme-light h6,
.theme-dark body,
.theme-dark h1, .theme-dark h2, .theme-dark h3,
.theme-dark h4, .theme-dark h5, .theme-dark h6 {
    font-family: 'Inter', 'Helvetica', 'Tahoma', 'Geneva', 'Arial', sans-serif;
    font-weight: 300;
}

.theme-light a {
    color: var(--primary-color);
}

.theme-dark a {
    color: var(--link-color);
}

/* odkazy uvnitř nadpisů dědí barvu nadpisu */
.theme-light h1 a, .theme-light h2 a, .theme-light h3 a,
.theme-light h4 a, .theme-light h5 a, .theme-light h6 a,
.theme-dark h1 a, .theme-dark h2 a, .theme-dark h3 a,
.theme-dark h4 a, .theme-dark h5 a, .theme-dark h6 a {
    color: inherit;
}

.theme-light h1, .theme-light h2, .theme-light h3,
.theme-light h4, .theme-light h5, .theme-light h6 {
    font-family: 'Inter', sans-serif;
    color: var(--heading-color) !important;
}

.theme-dark h1, .theme-dark h2, .theme-dark h3,
.theme-dark h4, .theme-dark h5, .theme-dark h6 {
    font-family: 'Inter', sans-serif;
    color: var(--heading-color) !important;
}


/* =====================================================================
   HEADER — přidává spodní oddělovač
   ===================================================================== */
.theme-light #header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--active-color);
}

.theme-dark #header {
    background: var(--glass-background) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--card-border);
}

.theme-dark #header h5,
.theme-dark #header a {
    color: var(--font-color) !important;
}


/* =====================================================================
   SIDEBAR — plovoucí Material card + nový layout
   ===================================================================== */
.theme-light #body,
.theme-dark #body {
    margin-left: 330px !important;
}

.theme-light #sidebar {
    width: 330px;
    background-color: var(--background-color) !important;
    border-right: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(11, 24, 55, 0.08);
    margin: 72px 0 1rem 1rem;
    padding: 1rem 0.8rem;
    overflow: hidden;
}

.theme-dark #sidebar {
    width: 330px;
    background: var(--glass-background) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--card-border) !important;
    box-shadow: var(--card-shadow);
    border-right: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 72px 0 1rem 1rem;
    padding: 1rem 0.8rem;
    overflow: hidden;
}

.theme-light #sidebar .highlightable,
.theme-dark #sidebar .highlightable {
    padding: 0 !important;
}

.theme-light #body .highlightable,
.theme-dark #body .highlightable {
    padding-top: 0 !important;
}

.theme-light #top-bar,
.theme-dark #top-bar {
    background: var(--background-secondary-color);
}

/* chevron — inline-flex s auto margin (jiné než basic) */
.theme-light #sidebar li.has-submenu > a > i.fa-chevron-right,
.theme-dark #sidebar li.has-submenu > a > i.fa-chevron-right {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    order: 99;
    margin-left: auto;
    margin-top: 0;
    padding: 3px;
    flex-shrink: 0;
    line-height: 1;
    width: 24px;
    height: 24px;
    font-size: 12px;
    -moz-transition: transform .3s ease-in-out;
    -webkit-transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
}

.theme-light #sidebar ul > li.has-submenu > a > i.fa-chevron-right,
.theme-dark #sidebar ul > li.has-submenu > a > i.fa-chevron-right,
.theme-light #sidebar li.has-submenu ul > li.has-submenu > a > i.fa-chevron-right,
.theme-dark #sidebar li.has-submenu ul > li.has-submenu > a > i.fa-chevron-right {
    margin-top: 2px!important;
    margin-left: 2px!important;
}

/* mobil: sidebar jako karta se přizpůsobí learn2 toggle chování */
@media only all and (max-width: 47.938em) {
    .theme-light #sidebar {
        width: 330px !important;
        left: -330px !important;
        margin: 52px 0 0 0 !important;
        padding: 1rem 0.8rem;
        border-radius: 0;
        box-shadow: 0 2px 12px 0 rgba(11, 24, 55, 0.08);
    }
    .theme-dark #sidebar {
        width: 330px !important;
        left: -330px !important;
        margin: 52px 0 0 0 !important;
        padding: 1rem 0.8rem;
        border-radius: 0;
    }
    .theme-light .sidebar-hidden #sidebar,
    .theme-dark .sidebar-hidden #sidebar {
        left: 0 !important;
    }
    .theme-light #body,
    .theme-dark #body {
        margin-left: 0 !important;
    }
    .theme-light .sidebar-hidden #body,
    .theme-dark .sidebar-hidden #body {
        margin-left: 330px !important;
    }
}

/* neaktivní text a ikony v sidebaru */
.theme-light #sidebar a,
.theme-light #sidebar i,
.theme-dark #sidebar a,
.theme-dark #sidebar i {
    color: var(--icon-color);
}

/* dark: text na font-color (full opacity), ikona na icon-color (54%) */
.theme-dark #sidebar a {
    color: var(--font-color);
}
.theme-dark #sidebar .cc-menu-icon {
    color: var(--icon-color);
}

/* skrytí <hr> v sidebaru */
.theme-light #sidebar hr,
.theme-dark #sidebar hr {
    display: none !important;
}

/* odstranění tmavého pozadí z learn2 pro parent/active */
.theme-light #sidebar ul.topics > li.parent,
.theme-light #sidebar ul.topics > li.active,
.theme-dark #sidebar ul.topics > li.parent,
.theme-dark #sidebar ul.topics > li.active {
    background: transparent !important;
}

/* flex layout odkazu */
.theme-light #sidebar ul.topics li a,
.theme-dark #sidebar ul.topics li a {
    display: flex !important;
    align-items: flex-start;
    gap: 0.4em;
    font-size: 15px !important;
    text-overflow: clip !important;
    overflow: visible !important;
    white-space: normal !important;
}

.theme-light #sidebar ul.topics > li > a,
.theme-dark #sidebar ul.topics > li > a {
    line-height: inherit !important;
    font-size: 15px !important;
}

.theme-light #sidebar ul li > a,
.theme-dark #sidebar ul li > a {
    padding: 0.5rem 0;
}

/* ikona v menu */
.theme-light #sidebar .cc-menu-icon,
.theme-dark #sidebar .cc-menu-icon {
    font-size: var(--icon-size);
    color: var(--icon-color);
    border-radius: 50%;
    padding: 3px;
    width: 1.5em;
    height: 1.5em;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    line-height: 1;
}

/* text vedle ikony */
.theme-light #sidebar ul.topics li a span,
.theme-dark #sidebar ul.topics li a span {
    flex: 1 1 auto;
    display: block !important;
    text-overflow: clip !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* hover */
.theme-light #sidebar ul.topics li a:hover,
.theme-dark #sidebar ul.topics li a:hover {
    background: var(--active-color) !important;
    color: var(--primary-color) !important;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px;
}
.theme-light #sidebar ul.topics li a:hover b,
.theme-light #sidebar ul.topics li a:hover span,
.theme-dark #sidebar ul.topics li a:hover b,
.theme-dark #sidebar ul.topics li a:hover span {
    color: var(--primary-color) !important;
}
.theme-light #sidebar ul.topics li a:hover .cc-menu-icon,
.theme-dark #sidebar ul.topics li a:hover .cc-menu-icon {
    background: var(--active-color);
    color: var(--primary-color);
}

/* aktivní ikona */
.theme-light #sidebar ul.topics > li.active > a .cc-menu-icon,
.theme-light #sidebar ul.topics > li.parent > a .cc-menu-icon,
.theme-dark #sidebar ul.topics > li.active > a .cc-menu-icon,
.theme-dark #sidebar ul.topics > li.parent > a .cc-menu-icon {
    background: var(--active-color);
    color: var(--primary-color);
}

/* aktivní položka */
.theme-light #sidebar ul.topics li.active > a,
.theme-dark #sidebar ul.topics li.active > a {
    background: var(--active-color) !important;
    color: var(--primary-color) !important;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px;
}
.theme-light #sidebar ul.topics li.active > a b,
.theme-light #sidebar ul.topics li.active > a span,
.theme-dark #sidebar ul.topics li.active > a b,
.theme-dark #sidebar ul.topics li.active > a span {
    color: var(--primary-color) !important;
}

/* rodičovská (activeChild) položka */
.theme-light #sidebar ul.topics li.parent > a,
.theme-dark #sidebar ul.topics li.parent > a {
    background: transparent !important;
    color: var(--heading-color) !important;
}
.theme-light #sidebar ul.topics li.parent > a b,
.theme-light #sidebar ul.topics li.parent > a span,
.theme-dark #sidebar ul.topics li.parent > a b,
.theme-dark #sidebar ul.topics li.parent > a span {
    color: var(--heading-color) !important;
}
.theme-light #sidebar ul.topics li.parent > a:hover,
.theme-dark #sidebar ul.topics li.parent > a:hover {
    background: var(--active-color) !important;
    color: var(--primary-color) !important;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 6px;
}
.theme-light #sidebar ul.topics li.parent > a:hover b,
.theme-light #sidebar ul.topics li.parent > a:hover span,
.theme-dark #sidebar ul.topics li.parent > a:hover b,
.theme-dark #sidebar ul.topics li.parent > a:hover span {
    color: var(--primary-color) !important;
}

/* nadpisy verzí v sidebaru (h5) */
.theme-light #sidebar h5,
.theme-light #sidebar h5 a,
.theme-dark #sidebar h5,
.theme-dark #sidebar h5 a {
    color: var(--icon-color) !important;
}
.theme-light #sidebar h5.parent,
.theme-light #sidebar h5.parent a,
.theme-dark #sidebar h5.parent,
.theme-dark #sidebar h5.parent a {
    color: var(--heading-color) !important;
}
.theme-light #sidebar h5.active,
.theme-light #sidebar h5.active a,
.theme-dark #sidebar h5.active,
.theme-dark #sidebar h5.active a {
    background: var(--active-color) !important;
    color: var(--primary-color) !important;
}

/* 2. úroveň menu */
.theme-light #sidebar ul.topics > li > ul > li,
.theme-dark #sidebar ul.topics > li > ul > li {
    padding-left: 2rem;
}
.theme-light #sidebar ul li li,
.theme-dark #sidebar ul li li {
    text-indent: 0 !important;
}

/* navigace v theme-basic */
.theme-light #body #navigation,
.theme-dark #body #navigation {
    display: none!important;
}

/* =====================================================================
   THEME-DARK SIDEBAR — gradient text na active/hover + glassmorphism bg
   ===================================================================== */

/* aktivní a hover položka — glassmorphism background */
.theme-dark #sidebar ul.topics li.active > a,
.theme-dark #sidebar ul.topics li a:hover,
.theme-dark #sidebar ul.topics li.parent > a:hover {
    background: var(--glass-background) !important;
}

/* gradient text na span a b uvnitř active/hover */
.theme-dark #sidebar ul.topics li.active > a span,
.theme-dark #sidebar ul.topics li.active > a b,
.theme-dark #sidebar ul.topics li a:hover span,
.theme-dark #sidebar ul.topics li a:hover b,
.theme-dark #sidebar ul.topics li.parent > a:hover span,
.theme-dark #sidebar ul.topics li.parent > a:hover b {
    background-image: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: rgba(244, 244, 244, 0.25) !important;
}

/* aktivní/hover ikona v dark — font-color (plná opacity) */
.theme-dark #sidebar ul.topics > li.active > a .cc-menu-icon,
.theme-dark #sidebar ul.topics > li.parent > a .cc-menu-icon,
.theme-dark #sidebar ul.topics li a:hover .cc-menu-icon {
    color: var(--link-color) !important;
}


/* =====================================================================
   IKONA U H1 — wrapper pro ikonu + text (avatar zůstává mimo)
   ===================================================================== */
#body-inner h1 .cc-h1-inner {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}
#body-inner h1 .cc-h1-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-color);
    background: var(--active-color);
    border-radius: 50%;
    padding: 0.9rem;
    width: 1em;
    height: 1em;
    box-sizing: content-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* dark override: ikona u h1 barvou nadpisu, bez pozadí */
.theme-dark #body-inner h1 .cc-h1-icon {
    color: var(--heading-color);
    background: transparent;
}


/* =====================================================================
   MATERIAL SYMBOLS OUTLINED — základní třída
   ===================================================================== */
.material-symbols-outlined,
.ms {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: var(--icon-size, 1.1em);
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}


/* =====================================================================
   SECTION BOX — světle modré pozadí sekce
   ===================================================================== */
.section-box {
    background: var(--active-color);
    padding: 1rem 1.2rem;
    border-radius: 6px;
    margin: 1.2rem 0;
}
.section-box > :first-child { margin-top: 0; }
.section-box > :last-child  { margin-bottom: 0; }

.section-box.section-box-accent {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

#body-inner h1.section-box,
#body-inner h2.section-box,
#body-inner h3.section-box,
#body-inner h4.section-box,
#body-inner h5.section-box,
#body-inner h6.section-box {
    background: var(--active-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    display: inline-block;
}


/* =====================================================================
   TABULKA S IKONAMI
   ===================================================================== */
.theme-light table, .theme-dark table {
    border: 1px solid var(--border-color);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 6px;
    overflow: hidden;
}
.theme-light table th, .theme-dark table th {
    background: var(--active-color);
    border-bottom: 1px solid var(--border-color);
}
.theme-light table td, .theme-dark table td,
.theme-light table th, .theme-dark table th {
    border: none;
    border-bottom: 1px solid var(--border-color);
}
.theme-light table tr:last-child td, .theme-dark table tr:last-child td { border-bottom: none; }

.theme-light table td:first-child .material-symbols-outlined, .theme-dark table td:first-child .material-symbols-outlined,
.theme-light table td:first-child .ms, .theme-dark table td:first-child .ms,
.theme-light table td:first-child .material-icons, .theme-dark table td:first-child .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    margin-right: 0.5em;
    vertical-align: middle;
    color: var(--primary-color);
    background: var(--active-color);
    font-size: 1.1em;
}

.theme-dark table td:first-child .material-symbols-outlined,
.theme-dark table td:first-child .ms,
.theme-dark table td:first-child .material-icons {
    color: var(--heading-color);
}

.theme-light .table-icon td:first-child:not(:has(.material-symbols-outlined)), .theme-dark .table-icon td:first-child:not(:has(.material-symbols-outlined)), .theme-light .table-icon th:first-child:not(:has(.material-symbols-outlined)), .theme-dark .table-icon th:first-child:not(:has(.material-symbols-outlined)) {
    padding-left: 3.5em;
}
@supports not (background: color-mix(in srgb, #000 50%, transparent)) {
    .theme-light table td:first-child .material-symbols-outlined, .theme-dark table td:first-child .material-symbols-outlined,
    .theme-light table td:first-child .ms, .theme-dark table td:first-child .ms,
    .theme-light table td:first-child .material-icons, .theme-dark table td:first-child .material-icons {
        background: rgba(112, 153, 193, 0.5);
    }
}


/* =====================================================================
   TABLE CARD — velká ikona u nadpisu + 3 odstíny
   ===================================================================== */
.table-card {
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    padding: 0.2rem;
    overflow: hidden;
    margin: 1rem 0;
}
.table-card th {
    border: none;
    font-weight: 500;
}
.table-card td {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.table-card tr:first-child td { border-top: none; }

.table-card-blue    { background: var(--active-color); }
.table-card-purple  { background: var(--purple-soft-color); }
.table-card-magenta { background: var(--magenta-soft-color); }

.table-card-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.5rem 0 0.5rem;
}
.table-card-heading .material-symbols-outlined,
.table-card-heading .ms,
.table-card-heading .material-icons {
    font-size: 2rem;
    line-height: 1;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 10px;
    padding: 0.35rem;
}
.table-card-heading.icon-purple .material-symbols-outlined,
.table-card-heading.icon-purple .ms,
.table-card-heading.icon-purple .material-icons {
    color: var(--purple-color);
    background: color-mix(in srgb, var(--purple-color) 25%, transparent);
}
.table-card-heading.icon-magenta .material-symbols-outlined,
.table-card-heading.icon-magenta .ms,
.table-card-heading.icon-magenta .material-icons {
    color: var(--magenta-color);
    background: color-mix(in srgb, var(--magenta-color) 25%, transparent);
}
.table-card-heading h2,
.table-card-heading h3,
.table-card-heading h4 {
    margin: 0;
}


/* =====================================================================
   ČÍSLOVÁNÍ S KULATÝM RÁMEČKEM
   ===================================================================== */
.num-circle {
    list-style: none;
    counter-reset: cc-num;
    padding-left: 2.6em;
    margin: 1rem 0;
}
.num-circle > li {
    counter-increment: cc-num;
    position: relative;
    margin: 0.7rem 0;
    padding-left: 0.2rem;
}
.num-circle > li::before {
    content: counter(cc-num);
    position: absolute;
    left: -2.6em;
    top: 0;
    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 30%, transparent);
    color: var(--num-circle-text-color);
    font-weight: 600;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.num-circle ol { counter-reset: none; }
.num-circle ul { list-style: disc; }


/* =====================================================================
   SHORTCODE [highlight]
   ===================================================================== */
.cc-highlight {
    background: var(--active-color);
    border: 1px solid var(--border-accent-color);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin: 1.2rem 0;
}
.cc-highlight > :first-child { margin-top: 0; }
.cc-highlight > :last-child  { margin-bottom: 0; }

.cc-highlight-accent {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}


/* =====================================================================
   INFO-CARD — barevné karty (třída na nadpisu, buildCards ji zkopíruje na .cc-card)
   ===================================================================== */
.cc-info-card-blue    { background: var(--active-color); }
.cc-info-card-purple  { background: var(--purple-soft-color); }
.cc-info-card-magenta { background: var(--magenta-soft-color); }

/* ikona v info-card kartě (cc-heading-icon přidaný buildCards) */
.cc-info-card-blue    .cc-heading-icon { color: var(--primary-color);  background: color-mix(in srgb, var(--primary-color) 20%, transparent); }
.cc-info-card-purple  .cc-heading-icon { color: var(--purple-color);   background: color-mix(in srgb, var(--purple-color) 20%, transparent); }
.cc-info-card-magenta .cc-heading-icon { color: var(--magenta-color);  background: color-mix(in srgb, var(--magenta-color) 20%, transparent); }


/* =====================================================================
   STEPS — číslované kroky s kruhovými čísly
   Použití: {.cc-steps} nebo {.cc-steps .cc-steps-blue} na ol/ul v markdownu
   ===================================================================== */
/* cc-steps jako wrapper (starý shortcode styl) */
.cc-steps ol,
.cc-steps ul {
    list-style: none;
    counter-reset: cc-step;
    padding-left: 2.8em;
    margin: 0;
}
/* cc-steps přímo na ol/ul (nový styl via markdown {.cc-steps}) */
ol.cc-steps, ol:not(#sidebar ol),
ul.cc-steps, ul:not(#sidebar ul) {
    list-style: none;
    counter-reset: cc-step;
    padding-left: 2.8em;
    margin: 1.2rem 0;
}
ol:not(#sidebar ol) > li,
ul:not(#sidebar ul) > li,
ol.cc-steps > li,
ul.cc-steps > li {
    counter-increment: cc-step;
    position: relative;
    margin: 0.8rem 0;
    padding-left: 0.2rem;
}
ol:not(#sidebar ol) > li::before,
ul:not(#sidebar ul)  > li::before,
ol.cc-steps > li::before,
ul.cc-steps > li::before {
    content: counter(cc-step);
    position: absolute;
    left: -2.8em;
    top: -0.1em;
    width: 1.9em;
    height: 1.9em;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: var(--active-color);
    color: var(--primary-color);
}
.cc-steps-purple > ol > li::before,
.cc-steps-purple > ul > li::before,
ol.cc-steps-purple > li::before,
ul.cc-steps-purple > li::before {
    background: var(--purple-soft-color);
    color: var(--purple-color);
}
.cc-steps-magenta > ol > li::before,
.cc-steps-magenta > ul > li::before,
ol.cc-steps-magenta > li::before,
ul.cc-steps-magenta > li::before {
    background: var(--magenta-soft-color);
    color: var(--magenta-color);
}


/* =====================================================================
   AUTO-WRAP KARTY (.cc-card) — generováno JS (pouze theme-light/dark)
   ===================================================================== */
.cc-card {
    background: var(--card-background-color);
    border: var(--card-border);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    margin: 1.2rem 0;
    box-shadow: var(--card-shadow);
    position: relative;
}
.cc-card > :first-child { margin-top: 0; }
.cc-card > :last-child  { margin-bottom: 0; }

.cc-card:has(.cc-heading-icon) {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: flex-start;
}
.cc-card .cc-heading-icon {
    font-size: 3rem;
    line-height: 1;
    color: var(--primary-color);
    background: var(--active-color);
    border-radius: 50%;
    padding: 0.9rem;
    flex-shrink: 0;
}
.cc-card-content > h2:first-child,
.cc-card-content > h3:first-child,
.cc-card-content > h4:first-child,
.cc-card-content > h5:first-child,
.cc-card-content > h6:first-child {
    margin-top: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    min-height: calc(3.5rem + 0.8rem);
}
.cc-card-content {
    flex: 1 1 auto;
    min-width: 0;
}
.cc-card-content > :first-child { margin-top: 0; }
.cc-card-content > :last-child  { margin-bottom: 0; }

.cc-card img {
    max-width: 100%;
    height: auto;
}

.cc-card-half {
    max-width: calc(50% - 0.75rem);
    min-width: 250px;
}

.cc-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.2rem 0;
}
.cc-card-container > .cc-card {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 250px;
    max-width: calc(50% - 0.75rem);
    margin: 0;
}

.cc-card > h2, .cc-card > h3, .cc-card > h4, .cc-card > h5, .cc-card > h6,
.cc-card-content > h2, .cc-card-content > h3, .cc-card-content > h4,
.cc-card-content > h5, .cc-card-content > h6 {
    margin-bottom: 1.2rem;
}

.cc-card-split > h2,
.cc-card-split > h3,
.cc-card-split > h4,
.cc-card-split > h5,
.cc-card-split > h6 {
    width: 100%;
}

.cc-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.cc-card-row p { margin: 0; }
.cc-card-row-text {
    flex: 1 1 45%;
    min-width: 200px;
}
.cc-card-row-img {
    flex: 1 1 45%;
    min-width: 200px;
}
.cc-card-row-img .magnific-popup-wrapper { text-align: left; }
.cc-card-row-img img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.cc-card-row-text > :first-child { margin-top: 0; }
.cc-card-row-text > :last-child  { margin-bottom: 0; }
.cc-card-row-img > :first-child  { margin-top: 0; }
.cc-card-row-img > :last-child   { margin-bottom: 0; }
.cc-card-row-img .magnific-popup { margin: 0; }
.cc-card-row:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .cc-card-row {
        flex-direction: column;
    }
    .cc-card-row-text,
    .cc-card-row-img {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .cc-card-container {
        flex-direction: column;
    }
    .cc-card-container > .cc-card {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }
}


/* =====================================================================
   NOTICES — přepracovaný vzhled (ikona + nadpis + text)
   ===================================================================== */
.theme-light #body-inner .notices,
.theme-dark #body-inner .notices {
    border-left: none !important;
    border-radius: 8px;
    padding: 1rem 1.2rem !important;
    margin: 1.2rem 0;
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
}
.theme-light #body-inner .notices .cc-notice-icon,
.theme-dark #body-inner .notices .cc-notice-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 0;
}
.theme-light #body-inner .notices .cc-notice-content,
.theme-dark #body-inner .notices .cc-notice-content {
    flex: 1 1 auto;
    min-width: 0;
}
#body-inner .notices .cc-notice-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.4rem 0;
}
.theme-light #body-inner .notices .cc-notice-content > :last-child,
.theme-dark #body-inner .notices .cc-notice-content > :last-child {
    margin-bottom: 0;
}
.theme-light #body-inner .notices p,
.theme-dark #body-inner .notices p {
    margin: 0;
}

/* barvy ikony a nadpisu podle typu notice */
.theme-light #body-inner .notices.yellow .cc-notice-icon,
.theme-dark #body-inner .notices.yellow .cc-notice-icon  { color: var(--notice-yellow-color); }
.theme-light #body-inner .notices.yellow .cc-notice-title,
.theme-dark #body-inner .notices.yellow .cc-notice-title { color: var(--notice-yellow-color); }

.theme-light #body-inner .notices.red .cc-notice-icon,
.theme-dark #body-inner .notices.red .cc-notice-icon     { color: var(--notice-red-color); }
.theme-light #body-inner .notices.red .cc-notice-title,
.theme-dark #body-inner .notices.red .cc-notice-title    { color: var(--notice-red-color); }

.theme-light #body-inner .notices.blue .cc-notice-icon,
.theme-dark #body-inner .notices.blue .cc-notice-icon    { color: var(--notice-blue-color); }
.theme-light #body-inner .notices.blue .cc-notice-title,
.theme-dark #body-inner .notices.blue .cc-notice-title   { color: var(--notice-blue-color); }

.theme-light #body-inner .notices.green .cc-notice-icon,
.theme-dark #body-inner .notices.green .cc-notice-icon   { color: var(--notice-green-color); }
.theme-light #body-inner .notices.green .cc-notice-title,
.theme-dark #body-inner .notices.green .cc-notice-title  { color: var(--notice-green-color); }

/* pozadí notice pro dark (semi-transparentní) */
.theme-dark #body-inner .notices.yellow { background: rgba(245, 179, 91,   0.2); }
.theme-dark #body-inner .notices.red    { background: rgba(242, 109, 101,  0.2); }
.theme-dark #body-inner .notices.blue   { background: rgba(112, 153, 193,  0.2); }
.theme-dark #body-inner .notices.green  { background: rgba(86,  194, 185,  0.2); }

/* text v notice odpovídá barvě daného typu */
.theme-dark #body-inner .notices.yellow .cc-notice-content,
.theme-dark #body-inner .notices.yellow p { color: var(--notice-yellow-color); }
.theme-dark #body-inner .notices.red    .cc-notice-content,
.theme-dark #body-inner .notices.red    p { color: var(--notice-red-color); }
.theme-dark #body-inner .notices.blue   .cc-notice-content,
.theme-dark #body-inner .notices.blue   p { color: var(--notice-blue-color); }
.theme-dark #body-inner .notices.green  .cc-notice-content,
.theme-dark #body-inner .notices.green  p { color: var(--notice-green-color); }
/* a v notice zůstává link barvou */
.theme-dark #body-inner .notices a { color: var(--link-color) !important; }


/* =====================================================================
   ANCHOR LINKS — přepíše výchozí ikonu na content_copy
   ===================================================================== */
.theme-light .anchorjs-link,
.theme-dark .anchorjs-link {
    text-decoration: none !important;
}
.theme-light #body-inner h1 a, #body-inner h2 a, #body-inner h3 a,
.theme-light #body-inner h4 a, #body-inner h5 a, #body-inner h6 a,
.theme-dark #body-inner h1 a, .theme-dark #body-inner h2 a, .theme-dark #body-inner h3 a,
.theme-dark #body-inner h4 a, .theme-dark #body-inner h5 a, .theme-dark #body-inner h6 a {
    text-decoration: underline;
}
.theme-light #body-inner h1 a:hover, #body-inner h2 a:hover, #body-inner h3 a:hover,
.theme-light #body-inner h4 a:hover, #body-inner h5 a:hover, #body-inner h6 a:hover,
.theme-dark #body-inner h1 a:hover, .theme-dark #body-inner h2 a:hover, .theme-dark #body-inner h3 a:hover,
.theme-dark #body-inner h4 a:hover, .theme-dark #body-inner h5 a:hover, .theme-dark #body-inner h6 a:hover {
    text-decoration: underline;
}
.theme-light .anchorjs-link svg,
.theme-dark .anchorjs-link svg {
    display: none;
}
.theme-light .anchorjs-link::after,
.theme-dark .anchorjs-link::after {
    font-family: 'Material Symbols Outlined';
    font-size: 1.5rem;
    content: '\e14d'; /* content_copy */
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: center;
    color: var(--heading-color);
}
.theme-light h1 .anchorjs-link::after,
.theme-dark h1 .anchorjs-link::after {
    font-size: 2rem;
}
.theme-light .anchorjs-link.cc-anchor-copied::after,
.theme-dark .anchorjs-link.cc-anchor-copied::after {
    content: '\e876'; /* check */
    color: var(--anchor-copied-color);
}


/* =====================================================================
   PAGE NAVIGATION — Předchozí / Další (skryta v theme-basic přes custom.css)
   ===================================================================== */
.cc-page-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2rem 0 1rem 0;
}
.cc-page-nav.cc-page-nav-floating {
    position: fixed;
    bottom: 1.5rem;
    z-index: 100;
    margin: 0;
    pointer-events: none;
    padding: 0 6rem;
}
.cc-page-nav.cc-page-nav-floating .cc-page-nav-item {
    pointer-events: all;
    opacity: 0.4;
    transition: opacity .25s ease, box-shadow .2s ease;
}
.cc-page-nav.cc-page-nav-floating .cc-page-nav-item:hover {
    opacity: 1;
}
.cc-page-nav-item {
    max-width: 45%;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    border: var(--card-border);
    border-radius: var(--card-radius);
    padding: 1rem 1.5rem;
    background: var(--card-background-color);
    box-shadow: var(--card-shadow);
    transition: opacity .25s ease, box-shadow .2s ease;
}
.cc-page-nav-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}
.cc-page-nav-prev {
    text-align: left;
}
.cc-page-nav-next {
    text-align: right;
    margin-left: auto;
}
.cc-page-nav-next .cc-page-nav-text {
    align-items: flex-end;
}
.cc-page-nav-placeholder {
    visibility: hidden;
}
.cc-page-nav-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}
.cc-page-nav-text {
    display: flex;
    flex-direction: column;
}
.cc-page-nav-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.2rem;
}
.cc-page-nav-title {
    font-size: 1rem;
    color: var(--font-color);
    font-weight: 400;
}
@media (max-width: 769px) {
    .cc-page-nav {
        flex-direction: column;
        align-items: center;
    }
    .cc-page-nav-item {
        max-width: 100%;
    }
    .cc-page-nav-next {
        margin-left: 0;
    }
    .cc-page-nav.cc-page-nav-floating {
        flex-direction: row !important;
        padding: 0 1rem !important;
    }
    .cc-page-nav.cc-page-nav-floating .cc-page-nav-text,
    .cc-page-nav.cc-page-nav-floating .cc-page-nav-label {
        display: none;
    }
    .cc-page-nav.cc-page-nav-floating .cc-page-nav-item {
        padding: 0.75rem;
        opacity: 1 !important;
    }
}


/* =====================================================================
   THEME-DARK — glassmorphism dark theme
   ===================================================================== */

/* --- Proměnné --- */
.theme-dark body {
    --background-color: #070616;
    --background-rgb-color: 7, 6, 22;
    --background-secondary-color: #1a1a36;
    --background-secondary-rgb-color: 26, 26, 54;

    --primary-color: #7099c1;
    --secondary-color: #751F82;

    --heading-color: #ffffff;
    --link-color: #c9a7f0;

    --font-color: #e8e8f0;
    --font-secondary-color: rgba(255, 255, 255, 0.85);
    --font-muted-color: rgba(255, 255, 255, 0.5);
    --font-light-color: rgba(255, 255, 255, 0.7);
    --font-placeholder-color: rgba(255, 255, 255, 0.3);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-light-color: rgba(255, 255, 255, 0.07);
    --border-accent-color: #7099c1;

    --hover-color: rgba(255, 255, 255, 0.07);
    --active-color: rgba(112, 153, 193, 0.18);

    --icon-color: color-mix(in srgb, var(--font-color) 54%, transparent);
    --icon-size: 1.1em;
    --icon-radius: 4px;

    --nav-background-color: rgba(255, 255, 255, 0.1);
    --sidebar-background-color: rgba(26, 26, 54, 0.75);

    --purple-color: #c9a7f0;
    --purple-soft-color: rgba(117, 31, 130, 0.28);
    --magenta-color: #f0a0d0;
    --magenta-soft-color: rgba(192, 74, 142, 0.28);

    --glass-background: #e3d0ec0d;
    --glass-blur: blur(8px);
    --gradient-text: linear-gradient(to right, rgba(159, 96, 222, 1) 0.42%, rgb(117, 154, 203));

    --card-background-color: #e3d0ec0d;
    --card-shadow:
        0 4px 32px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    --card-radius: 1.2rem;
    --card-padding: 2rem;
    --card-border: 1px solid rgba(227, 208, 236, 0.18);

    --notice-yellow-color: #f5b35b;
    --notice-red-color: #f26d65;
    --notice-blue-color: #7099c1;
    --notice-green-color: #56c2b9;

    --num-circle-text-color: #ffffff;
    --anchor-copied-color: #56c2b9;
}

/* --- Gradient pozadí body --- */
.theme-dark body {
    color: var(--font-color);
    background-color: var(--background-color);
    background-image:
        radial-gradient(ellipse 800px 1000px at -7%   50vh,  var(--secondary-color), transparent 50%),
        radial-gradient(ellipse 800px 1000px at 100%  180vh, var(--secondary-color), transparent 50%),
        radial-gradient(ellipse 800px 1000px at 0%    310vh, var(--secondary-color), transparent 50%),
        radial-gradient(ellipse 800px 1000px at 100%  440vh, var(--secondary-color), transparent 50%),
        radial-gradient(ellipse 800px 1000px at 0%    570vh, var(--secondary-color), transparent 50%),
        radial-gradient(ellipse 800px 1000px at 100%  700vh, var(--secondary-color), rgba(var(--background-rgb-color), 1) 50%);
}

/* --- Glassmorphismus na karty a page-nav --- */
.theme-dark .cc-card {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.theme-dark .cc-card .cc-heading-icon {
    color: var(--heading-color);
}

.theme-dark .cc-page-nav-item {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* --- Searchbox --- */
.theme-dark #header-wrapper .searchbox {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.theme-dark #header-wrapper .searchbox .cc-search-icon,
.theme-dark #header-wrapper .searchbox label {
    color: var(--font-muted-color) !important;
}
.theme-dark #header-wrapper .searchbox input {
    color: var(--font-color) !important;
}
.theme-dark #header-wrapper .searchbox input::placeholder {
    color: var(--font-placeholder-color) !important;
}
.theme-dark #header-wrapper .searchbox .cc-search-clear {
    color: var(--font-muted-color) !important;
}

/* --- Theme switcher menu — neprůhledné (menu je uvnitř glassmorphic headeru) --- */
.theme-dark .cc-theme-menu {
    background: #1a1a36;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: var(--card-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.theme-dark .cc-theme-option {
    color: var(--font-secondary-color);
}
.theme-dark .cc-theme-option:hover {
    background: var(--hover-color);
}
.theme-dark .cc-theme-option.active {
    background: var(--active-color);
    color: var(--primary-color);
}
.theme-dark .cc-theme-option .material-symbols-outlined {
    color: var(--font-muted-color);
}
.theme-dark .cc-theme-option.active .material-symbols-outlined {
    color: var(--primary-color);
}

/* --- Tabulky --- */
.theme-dark table td {
    border-bottom: 1px solid var(--border-light-color);
}
.theme-dark table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--font-secondary-color);
}

/* --- Kód --- */
.theme-dark code {
    background: rgba(255, 255, 255, 0.08);
    color: var(--purple-color);
}
.theme-dark pre {
    background: rgba(26, 26, 54, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

/* --- body-inner text --- */
.theme-dark #body-inner {
    color: var(--font-color);
}
.theme-dark #body-inner p,
.theme-dark #body-inner li,
.theme-dark #body-inner td {
    color: var(--font-secondary-color);
}
