:root {
    --cmbs-primary: #155a92;
    --cmbs-primary-dark: #0d3f69;
    --cmbs-accent: #cf2e2e;
    --cmbs-surface: #ffffff;
    --cmbs-page: #f2f5f8;
    --cmbs-border: #dce3ea;
    --cmbs-text: #23313d;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--cmbs-text);
    background: var(--cmbs-page);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
    color: var(--cmbs-primary);
}

a:hover {
    color: var(--cmbs-primary-dark);
}

.skip-link {
    position: fixed;
    z-index: 1100;
    top: .5rem;
    left: .5rem;
    padding: .75rem 1rem;
    color: #fff;
    background: #111;
    border-radius: .5rem;
}

.site-header {
    background: var(--cmbs-surface);
    box-shadow: 0 1px 0 rgba(20, 45, 68, .08);
}

.brand {
    color: var(--cmbs-primary-dark);
}

.brand:hover {
    color: var(--cmbs-primary);
}

.brand img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.brand strong {
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.15;
}

.brand small {
    margin-top: .35rem;
    color: #667686;
    font-size: .8rem;
}

.site-navbar {
    background: linear-gradient(110deg, var(--cmbs-primary-dark), var(--cmbs-primary));
}

.site-navbar .navbar-nav {
    row-gap: .25rem;
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, .88);
    border-radius: .35rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.site-navbar .dropdown-menu {
    --bs-dropdown-link-active-bg: var(--cmbs-primary);
    border: 0;
    box-shadow: 0 .75rem 2rem rgba(10, 35, 56, .18);
}

.site-navbar .dropend > .dropdown-menu {
    top: -.5rem;
    left: 100%;
}

@media (min-width: 992px) {
    .site-navbar .dropend:hover > .dropdown-menu,
    .site-navbar .dropend:focus-within > .dropdown-menu {
        display: block;
    }
}

.subnavigation {
    background: #fff;
}

.subnavigation .nav {
    gap: .35rem;
    scrollbar-width: thin;
}

.subnavigation .nav-link {
    flex: 0 0 auto;
    padding: .45rem .8rem;
    color: #4d5f6e;
    white-space: nowrap;
}

.subnavigation .nav-link:hover,
.subnavigation .nav-link.active {
    color: #fff;
    background: var(--cmbs-primary);
}

.page-card,
.sidebar-card {
    background: var(--cmbs-surface);
    border: 1px solid var(--cmbs-border);
    border-radius: .85rem;
    box-shadow: 0 .35rem 1.2rem rgba(25, 48, 69, .055);
}

.page-card {
    min-height: 28rem;
    padding: clamp(1rem, 2.5vw, 2rem);
    overflow: hidden;
}

.sidebar-card {
    padding: 1.25rem;
}

.discipline-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.discipline-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .9rem;
    font-weight: 650;
}

.site-footer {
    color: #dce7f0;
    background: #142d40;
}

.site-footer a {
    color: #fff;
}

.cookie-settings-link {
    padding: 0;
    color: #fff;
    text-decoration: underline;
    background: transparent;
    border: 0;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
    color: #fff;
    text-decoration-thickness: 2px;
}

body.cookie-banner-visible {
    padding-bottom: var(--cookie-banner-height, 15rem);
}

.cookie-banner {
    position: fixed;
    z-index: 1080;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem;
    gap: 1rem 1.5rem;
    align-items: center;
    color: var(--cmbs-text);
    background: #fff;
    border: 1px solid #b9c8d5;
    border-radius: .8rem;
    box-shadow: 0 1rem 3rem rgba(10, 35, 56, .25);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-copy {
    flex: 1 1 32rem;
}

.cookie-banner-actions {
    flex: 0 1 29rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
}

.cookie-banner-actions .btn {
    min-height: 2.75rem;
}

.cookie-banner-actions [data-cookie-settings-open] {
    grid-column: 1 / -1;
}

.cookie-dialog {
    width: min(700px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    color: var(--cmbs-text);
    background: #fff;
    border: 1px solid #b9c8d5;
    border-radius: .8rem;
    box-shadow: 0 1rem 4rem rgba(10, 35, 56, .3);
}

.cookie-dialog::backdrop {
    background: rgba(12, 31, 46, .55);
}

.cookie-dialog-header {
    display: flex;
    padding: 1.25rem;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--cmbs-border);
}

.cookie-preference-list {
    padding: 0 1.25rem;
}

.cookie-preference-row {
    display: flex;
    padding: 1rem 0;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--cmbs-border);
}

.cookie-preference-row .form-switch {
    flex: 0 0 auto;
    margin: 0;
    padding-left: 2.8rem;
}

.cookie-dialog > p {
    margin: 1rem 1.25rem;
}

.cookie-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 1.25rem 1.25rem;
    gap: .65rem;
}

.cookie-embed {
    width: 100%;
    min-height: 260px;
    margin: 1rem 0;
    aspect-ratio: 16 / 9;
    background: #e8eef3;
    border: 1px solid #cbd7e0;
    border-radius: .7rem;
    overflow: hidden;
}

.cookie-embed-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 260px;
    padding: clamp(1rem, 4vw, 2rem);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cookie-embed-placeholder p {
    max-width: 42rem;
    margin: .5rem auto 1rem;
}

.cookie-embed > iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.cookie-external-image {
    display: block;
    min-height: 180px;
    aspect-ratio: auto;
}

.cookie-external-image .cookie-embed-placeholder {
    min-height: 180px;
}

.cookie-external-image.cookie-embed-loaded {
    padding: 0;
    background: transparent;
    border: 0;
}

.cookie-external-image > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.cookie-policy-table th:first-child {
    min-width: 11rem;
}

.sponsor-item {
    padding: .75rem;
    border: 1px solid #e6ebef;
    border-radius: .65rem;
}

.sponsor-item img {
    max-height: 120px;
    object-fit: contain;
}

.frontend-hero .carousel-item {
    min-height: clamp(260px, 42vw, 480px);
    background: #102c42;
}

.frontend-hero .carousel-item img {
    width: 100%;
    height: clamp(260px, 42vw, 480px);
    object-fit: cover;
    opacity: .78;
}

.frontend-hero .carousel-caption {
    right: 6%;
    bottom: 1.5rem;
    left: 6%;
    padding: 1rem;
    text-align: left;
    background: linear-gradient(90deg, rgba(7, 25, 39, .88), rgba(7, 25, 39, .15));
    border-radius: .7rem;
}

.news-summary {
    height: 100%;
    padding: 1rem;
    background: #f7f9fb;
    border: 1px solid var(--cmbs-border);
    border-radius: .7rem;
}

.news-summary img,
.article_thumbnail {
    max-width: min(100%, 360px);
    height: auto;
    border-radius: .55rem;
}

.news_t,
#text_cont1,
.text {
    display: flow-root;
}

.news_t {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cmbs-border);
}

.news_t h3,
.text h3 {
    margin-top: .5rem;
    font-size: 1.35rem;
}

.article_thumbnail {
    float: left;
    margin: 0 1.25rem .75rem 0;
}

.gallery {
    display: inline-block;
    width: min(160px, 46%);
    margin: .35rem;
    vertical-align: top;
}

.gallery img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: .45rem;
}

.malep,
.malep1,
.malep2 {
    margin: .45rem 0;
    padding: .6rem .75rem;
    background: #f6f8fa;
    border-radius: .45rem;
}

.malep1 {
    margin-left: 1rem;
}

.malep2 {
    margin-left: 2rem;
}

.ikona {
    width: auto;
    margin-right: .35rem;
}

.page-card table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.page-card th,
.page-card td {
    padding: .65rem;
    border: 1px solid var(--cmbs-border);
    vertical-align: top;
}

.page-card th {
    background: #edf3f7;
}

.seznamjm,
.pismena {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.pismena td a {
    display: block;
    min-width: 2rem;
    padding: .35rem;
    text-align: center;
}

.registry-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.registry-actions a {
    display: flex;
    align-items: center;
    min-height: 3.6rem;
    padding: .8rem .9rem;
    color: var(--cmbs-text);
    font-weight: 650;
    text-decoration: none;
    background: #f7f9fb;
    border: 1px solid var(--cmbs-border);
    border-radius: .65rem;
}

.registry-actions a:hover,
.registry-actions a.active {
    color: #fff;
    background: var(--cmbs-primary);
    border-color: var(--cmbs-primary);
}

.registry-form {
    scroll-margin-top: 1rem;
}

.registry-information {
    padding-top: 1.5rem;
    border-top: 1px solid var(--cmbs-border);
}

.survey-meta .badge {
    padding: .45rem .65rem;
    font-weight: 550;
}

.survey-choice-disabled {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    padding: .7rem .85rem;
    color: #667686;
    background: #f5f7f9;
    border: 1px solid var(--cmbs-border);
    border-radius: .5rem;
}

.survey-choice-disabled.selected {
    color: var(--cmbs-text);
    background: #edf5fb;
    border-color: #b9d3e7;
}

.survey-result {
    padding: .85rem;
    background: #f8fafb;
    border: 1px solid var(--cmbs-border);
    border-radius: .55rem;
}

.survey-result-count {
    flex: 0 0 auto;
    color: #516575;
}

.survey-result .progress {
    height: .75rem;
    background: #e2e8ed;
}

.survey-result .progress-bar {
    background: var(--cmbs-primary);
}

.survey-table th:first-child,
.survey-table td:first-child,
.survey-table th:nth-child(3),
.survey-table td:nth-child(3) {
    width: 1%;
}

.document-browser {
    padding-top: 1.25rem;
    border-top: 1px solid var(--cmbs-border);
}

.document-folder {
    margin-bottom: .45rem;
}

.document-folder-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1rem 1.4rem minmax(0, 1fr) auto;
    gap: .6rem;
    align-items: center;
    padding: .7rem .8rem;
    color: var(--cmbs-text);
    text-align: left;
    background: #f7f9fb;
    border: 1px solid var(--cmbs-border);
    border-radius: .55rem;
}

.document-folder-toggle:hover,
.document-folder-toggle:focus-visible,
.document-folder-toggle[aria-expanded="true"] {
    color: var(--cmbs-primary-dark);
    background: #edf5fb;
    border-color: #b9d3e7;
}

.document-chevron {
    width: .55rem;
    height: .55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}

.document-folder-toggle[aria-expanded="true"] .document-chevron {
    transform: rotate(45deg) translate(-2px, -2px);
}

.document-folder-icon {
    position: relative;
    width: 1.25rem;
    height: .9rem;
    background: #e5ad2f;
    border-radius: .15rem;
}

.document-folder-icon::before {
    position: absolute;
    top: -.28rem;
    left: .08rem;
    width: .58rem;
    height: .35rem;
    content: "";
    background: #e5ad2f;
    border-radius: .15rem .15rem 0 0;
}

.document-folder-name {
    min-width: 0;
    font-weight: 650;
}

.document-folder-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .3rem;
    color: #647585;
    font-size: .8rem;
    font-weight: 400;
}

.document-folder-meta span {
    padding: .15rem .4rem;
    background: #fff;
    border: 1px solid var(--cmbs-border);
    border-radius: 999px;
}

.document-folder-content {
    margin: .4rem 0 .65rem .9rem;
    padding-left: .9rem;
    border-left: 2px solid #dbe7f0;
}

.document-file-list li + li {
    margin-top: .3rem;
}

.document-file {
    display: flex;
    gap: .65rem;
    align-items: center;
    min-width: 0;
    padding: .58rem .7rem;
    color: var(--cmbs-text);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--cmbs-border);
    border-radius: .45rem;
}

.document-file:hover,
.document-file:focus-visible {
    color: var(--cmbs-primary-dark);
    background: #f7fbfe;
    border-color: #b9d3e7;
}

.document-file-type {
    flex: 0 0 auto;
    min-width: 3.1rem;
    padding: .15rem .35rem;
    color: #fff;
    text-align: center;
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .03em;
    background: #607687;
    border-radius: .3rem;
}

.document-download {
    color: var(--cmbs-primary);
    font-size: .8rem;
}

.document-root-files {
    margin-top: .65rem;
}

.public-account-card {
    width: min(100%, 900px);
}

.public-account-card > .panel {
    background: #fff;
    box-shadow: 0 .5rem 1.5rem rgba(25, 48, 69, .08);
}

.responsive-embed {
    width: 100%;
    margin: 1rem 0;
    aspect-ratio: 16 / 9;
}

.responsive-embed > iframe,
.responsive-embed > video,
.responsive-embed > embed,
.responsive-embed > object {
    width: 100% !important;
    height: 100% !important;
}

.filtr,
.filtr_neaktivni {
    display: inline-block;
    margin: .25rem .35rem .25rem 0;
}

.filtr form {
    margin: 0;
}

.filtr_neaktivni {
    padding: .45rem .75rem;
    color: #6c757d;
    background: #f1f3f5;
    border: 1px solid var(--cmbs-border);
    border-radius: .375rem;
}

.panel {
    margin-bottom: 1.25rem;
    border: 1px solid var(--cmbs-border);
    border-radius: .7rem;
    overflow: hidden;
}

.panel-heading {
    padding: .85rem 1rem;
    background: #edf3f7;
    border-bottom: 1px solid var(--cmbs-border);
}

.panel-body {
    padding: 1rem;
}

.form-horizontal .form-group {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: .75rem;
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-.5 * var(--bs-gutter-x)) 1rem;
}

.form-horizontal .form-group > * {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

.control-label {
    padding-top: .45rem;
    font-weight: 600;
}

.help-block {
    display: block;
    margin-top: .3rem;
    color: #687785;
    font-size: .875rem;
}

.btn-default {
    --bs-btn-color: #334;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #b9c4cd;
    --bs-btn-hover-bg: #edf1f4;
}

.admin2-suggest {
    box-shadow: 0 .5rem 1.25rem rgba(20, 45, 68, .14);
}

.space {
    clear: both;
}

.linka_big,
.linka_small,
.linka_the_big {
    clear: both;
    height: 1px;
    margin: 1rem 0;
    background: var(--cmbs-border);
}

.red {
    color: #b42318 !important;
}

@media (min-width: 576px) {
    .form-horizontal .col-sm-offset-3 {
        margin-left: 25%;
    }

    .form-horizontal .col-sm-offset-4 {
        margin-left: 33.33333333%;
    }
}

@media (max-width: 991.98px) {
    .site-navbar .dropdown-menu {
        margin-left: .75rem;
        background: rgba(255, 255, 255, .96);
        box-shadow: none;
    }

    .site-navbar .dropend > .dropdown-menu {
        position: static;
        margin-left: 1rem;
    }

    .navbar-account {
        border-top: 1px solid rgba(255, 255, 255, .18);
    }
}

@media (max-width: 575.98px) {
    .brand img {
        width: 60px;
        height: 60px;
    }

    .page-card {
        padding: 1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .article_thumbnail {
        float: none;
        width: 100%;
        max-width: none;
        margin-right: 0;
    }

    .malep1 {
        margin-left: .5rem;
    }

    .malep2 {
        margin-left: 1rem;
    }

    .discipline-buttons {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .document-folder-toggle {
        grid-template-columns: 1rem 1.25rem minmax(0, 1fr);
    }

    .document-folder-meta {
        grid-column: 3;
        justify-content: flex-start;
    }

    .document-folder-content {
        margin-left: .35rem;
        padding-left: .55rem;
    }

    .document-download {
        display: none;
    }

    .cookie-banner {
        right: .5rem;
        bottom: .5rem;
        left: .5rem;
        width: calc(100% - 1rem);
        padding: .85rem;
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner-actions,
    .cookie-dialog-actions {
        grid-template-columns: 1fr;
    }

    .cookie-banner-actions [data-cookie-settings-open] {
        grid-column: auto;
    }

    .cookie-dialog-actions {
        padding: 0 1rem 1rem;
    }
}
