html {
    --pst-header-height: 3.429rem;
    --pst-header-article-height: calc(var(--pst-header-height) * 2 / 3);
    --pst-sidebar-secondary: 17rem;
    
    --pst-font-size-base: 0.875rem;

    --pst-font-size-h1: 2rem;
    --pst-font-size-h2: 1.5rem;
    --pst-font-size-h3: 1.17rem;
    --pst-font-size-h4: 1rem;
    --pst-font-size-h5: 0.83rem;
    --pst-font-size-h6: 0.67rem;

    --pst-font-family-base-system: Rosatom, sans-serif;
    --pst-font-family-monospace-system: Rosatom, monospace;

    scrollbar-width: thin;
}

html[data-theme="light"] {
    --pst-color-primary: #025EA1;
    --pst-color-link-hover: #003274;
    --pst-color-secondary: #003274;
    
    --rpt-header-color-on-background: #003274;
    --rpt-header-color-text-muted: #e5e5e5;
    --rpt-header-color-link-hover: #ffffff;
    
    --pst-color-accent: #6CACE4;
    --pst-color-shadow: rgb(0, 50, 116, .1);
}

html[data-theme="dark"] {
    --pst-color-primary: #6CACE4;
    --pst-color-link: #6CACE4;
    --pst-color-link-hover: #9ec5e7;
    --pst-color-secondary: #025EA1;

    --rpt-header-color-on-background: #222832;
    --rpt-header-color-text-muted: #e5e5e5;
    --rpt-header-color-link-hover: #ffffff;

    --pst-color-accent: #6CACE4;
    --pst-color-shadow: rgb(0, 50, 116, .1);
}

.bd-header {
    background: var(--rpt-header-color-on-background) !important;
    box-shadow: none;
}
.bd-header .navbar-nav li a.nav-link {
    color: var(--rpt-header-color-text-muted);
}
.bd-header .navbar-nav li a.nav-link:hover {
    color: var(--rpt-header-color-link-hover);
}
.bd-header .navbar-nav>.current>.nav-link {
    color: var(--rpt-header-color-link-hover);
    font-weight: 400;
    text-decoration: underline;
}
.bd-header label.sidebar-toggle {
    color: var(--rpt-header-color-text-muted);
}
.bd-header label:hover {
    color: var(--rpt-header-color-link-hover);
    box-shadow: none;
}

button.btn.version-switcher__button {
    color: var(--rpt-header-color-text-muted);
    border: 0;
}
button.btn.version-switcher__button:hover {
    color: var(--rpt-header-color-link-hover);
    text-decoration: none;
}
button.btn.version-switcher__button:focus-visible {
    outline: 1px solid var(--pst-color-accent);
}
.version-switcher__menu a.list-group-item:hover {
    text-decoration: none;
}

.search-button {
    color: var(--rpt-header-color-text-muted);
}
.search-button:hover {
    color: var(--rpt-header-color-link-hover);
}

.theme-switch-button {
    color: var(--rpt-header-color-text-muted);
}
.theme-switch-button:hover {
    color: var(--rpt-header-color-link-hover);
}
.theme-switch-button span:hover {
    color: var(--rpt-header-color-link-hover);
}

.language-switch {
    text-transform: uppercase;
    padding-top: 0.125rem;
}
.language-switch a,
.language-switch a:link,
.language-switch a:visited {
    color: var(--rpt-header-color-text-muted);
    text-decoration: none;
}
.language-switch a:hover {
    color: var(--rpt-header-color-link-hover);
    text-decoration: none;
}

.nav-go-to-app {
    padding: 0 var(--bs-navbar-nav-link-padding-x) !important;
}
.nav-go-to-app img {
    width: 1.25rem;
}

.bd-sidebar-primary .nav-link:hover {
    text-decoration: none;
}
.bd-sidebar-primary .search-button {
    color: var(--pst-color-primary);
}
.bd-sidebar-primary .search-button:hover {
    color: var(--pst-color-link-hover);
}
.bd-sidebar-primary .theme-switch-button {
    color: var(--pst-color-primary);
}
.bd-sidebar-primary .theme-switch-button:hover {
    color: var(--pst-color-link-hover);
}
.bd-sidebar-primary .theme-switch-button span:hover {
    color: var(--pst-color-link-hover-hover);
}

.bd-sidebar-primary .language-switch a {
    color: var(--pst-color-primary);
}
.bd-sidebar-primary .language-switch a:hover {
    color: var(--pst-color-link-hover);
}
.bd-sidebar-primary .nav-go-to-app img {
    width: 1.45rem;
}

ul.bd-breadcrumbs li.breadcrumb-item a:hover {
    text-decoration: none;
}

.bd-article a:hover {
    text-decoration: underline;
}
.bd-header .navbar-nav>.current>.nav-link {
    border-bottom: none;
}
.bd-header .navbar-nav li a.nav-link:hover, 
nav.bd-links li>a:hover,
.toc-entry a.nav-link:hover,
.prev-next-area a p.prev-next-title,
.prev-next-area a:hover p.prev-next-title:hover,
.bd-header .navbar-nav .dropdown button:hover {
    text-decoration: none;
}

.bd-sidebar-primary {
    overflow: hidden;
    scrollbar-width: thin;
    scrollbar-color: unset;
}
.bd-sidebar-primary:hover {
    overflow-y: auto;
}

.onthispage {
    margin-bottom: 0.5rem;
}

.search-button:hover,
.theme-switch-button span:hover,
.navbar-icon-links li.nav-item a.nav-link:hover {
    box-shadow: none;
}

#pst-back-to-top {
    width: 60px;
    height: 30px;
}

.navbar-brand img {
    height: 42px;
    max-width: 100%;
    width: auto;
}
