:root {
    color-scheme: light;
}

body.theme-dark {
    color-scheme: dark;
    background: #0b1221;
    color: #e3e9f7;
}

body.theme-dark .site-header,
body.theme-dark .site-header__bar,
body.theme-dark .site-header__drawer,
body.theme-dark .site-header__drawer-inner {
    background: rgba(5, 10, 20, 0.94);
    color: inherit;
}

body.theme-dark .site-main,
body.theme-dark .site-main--default {
    background: #0b1221;
}

body.theme-dark .site-main--search {
    background: #050a15;
}

body.theme-dark .search-hero {
    background: linear-gradient(135deg, rgba(21, 34, 64, 0.95) 0%, rgba(31, 55, 94, 0.95) 100%);
    color: #f4f6ff;
    box-shadow: 0 32px 60px rgba(4, 9, 18, 0.65);
}

body.theme-dark .search-hero__description,
body.theme-dark .search-hero__eyebrow {
    color: rgba(227, 233, 247, 0.76);
}

body.theme-dark .search-hero__form {
    background: linear-gradient(135deg, #1c2950 0%, #284784 100%);
}

body.theme-dark .site-search__input {
    background: rgba(4, 9, 18, 0.85);
    color: #f4f6ff;
    box-shadow: inset 0 0 0 1px rgba(81, 111, 180, 0.45);
}

body.theme-dark .site-search__input::placeholder {
    color: rgba(227, 233, 247, 0.45);
}

body.theme-dark .site-search__submit {
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
    color: #10121a;
}

body.theme-dark .search-card {
    background: rgba(16, 26, 49, 0.92);
    box-shadow: 0 18px 48px rgba(5, 10, 20, 0.6);
}

body.theme-dark .search-card__title {
    color: #f8faff;
}

body.theme-dark .search-card__excerpt {
    color: rgba(215, 224, 255, 0.74);
}

body.theme-dark .search-card__link-title:hover,
body.theme-dark .search-card__link-title:focus {
    color: #8ab4ff;
}

body.theme-dark .search-card__button {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #051026;
    box-shadow: 0 20px 42px rgba(8, 126, 164, 0.45);
}

body.theme-dark .search-results__pagination .nav-links {
    background: rgba(16, 26, 49, 0.92);
    box-shadow: 0 18px 36px rgba(5, 10, 20, 0.6);
}

body.theme-dark .search-results__pagination .nav-links a,
body.theme-dark .search-results__pagination .nav-links span {
    color: rgba(238, 244, 255, 0.86);
}

body.theme-dark .search-results__pagination .nav-links a:hover,
body.theme-dark .search-results__pagination .nav-links a:focus,
body.theme-dark .search-results__pagination .nav-links .current {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    color: #041023;
}

body.theme-dark .search-results__empty {
    background: rgba(16, 26, 49, 0.92);
    color: #f2f6ff;
}

body.theme-dark .site-header__control--theme {
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
}

body.theme-dark .site-header__theme-track {
    background: rgba(0, 0, 0, 0.25);
}

body.theme-dark .site-header__theme-icon--sun {
    opacity: 0.6;
}

body.theme-dark .site-header__theme-icon--moon {
    opacity: 1;
}

body.theme-dark .site-header__drawer-theme-toggle::after {
    transform: translate(14px, -50%);
    background: #facc15;
}

body.theme-dark .site-header__drawer-theme-icon--sun {
    opacity: 0.55;
}

body.theme-dark .site-header__drawer-theme-icon--moon {
    opacity: 1;
}

body.theme-dark .site-header__drawer-theme-toggle {
    background: rgba(250, 204, 21, 0.35);
}

body.theme-dark .site-header__control-label,
body.theme-dark .site-header__drawer-theme-label {
    color: rgba(238, 244, 255, 0.82);
}

body.theme-dark .site-header__control,
body.theme-dark .site-header__drawer-button {
    color: rgba(238, 244, 255, 0.82);
}

body.theme-dark .site-header__control--accessibility::after,
body.theme-dark .site-header__drawer-button.js-accessibility-toggle::after {
    background: #facc15;
}

body.theme-dark a {
    color: #8ab4ff;
}

body.theme-dark a:hover,
body.theme-dark a:focus {
    color: #c1d5ff;
}

body.theme-dark .site-footer {
    background: rgba(5, 10, 20, 0.94);
    color: rgba(238, 244, 255, 0.82);
}

body.theme-dark .site-header__theme-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

body.theme-dark .site-header__control--theme .site-header__theme-track::after {
    transform: translate(34px, -50%);
    background: #0b1221;
}

body.theme-dark .info-block__inner {
    background: linear-gradient(135deg, rgba(13, 22, 41, 0.96) 0%, rgba(23, 40, 74, 0.96) 100%);
    box-shadow: 0 28px 72px rgba(3, 6, 15, 0.7);
}

body.theme-dark .info-block__content {
    background: linear-gradient(135deg, rgba(8, 14, 28, 0.9) 0%, rgba(11, 22, 45, 0.94) 100%);
    color: #f2f6ff;
    backdrop-filter: blur(14px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body.theme-dark .info-block__title {
    color: #ffffff;
}

body.theme-dark .info-block__text,
body.theme-dark .info-block__text p {
    color: rgba(235, 240, 255, 0.92);
}

body.theme-dark .info-block__text strong,
body.theme-dark .info-block__text b {
    color: #fff;
}

body.theme-dark .info-block__button {
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
    color: #051026;
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.35);
}

body.theme-dark .info-block__button:hover,
body.theme-dark .info-block__button:focus {
    color: #030712;
    box-shadow: 0 22px 48px rgba(250, 204, 21, 0.4);
}

body:not(.theme-dark) .site-header__control--theme .site-header__theme-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f8fafc;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
    box-shadow: 0 6px 14px rgba(15, 29, 61, 0.22);
}

body.theme-dark .search-hero__query {
    color: #facc15;
}

body.theme-dark .site-main--search .site-main__breadcrumbs a {
    color: #8ab4ff;
}

body.theme-dark .site-main--search .site-main__breadcrumbs,
body.theme-dark .site-main--search .site-main__breadcrumbs a {
    color: rgba(204, 218, 255, 0.8);
}

body.theme-dark .site-search__submit:hover,
body.theme-dark .site-search__submit:focus {
    background: linear-gradient(135deg, #fde047 0%, #fb923c 100%);
    color: #05070d;
}

body.theme-dark .site-header__drawer-theme {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 6px 10px;
}

body.theme-dark .site-header__drawer-theme-toggle::after {
    width: 12px;
    height: 12px;
}

body.theme-dark .site-header__control:not(.site-header__control--theme),
body.theme-dark .site-header__drawer-button {
    background: rgba(18, 28, 52, 0.85);
    border-color: rgba(129, 155, 206, 0.35);
    color: rgba(227, 233, 247, 0.85);
}

body.theme-dark .site-header__control--search {
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    color: #041022;
    box-shadow: 0 14px 28px rgba(34, 211, 238, 0.4);
}

body.theme-dark .site-header__control--search:hover,
body.theme-dark .site-header__control--search:focus {
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.45);
}

body.theme-dark .site-header__search-panel {
    background: rgba(2, 6, 14, 0.85);
}

body.theme-dark .site-header__search-inner {
    background: #0f1a33;
    color: rgba(227, 233, 247, 0.86);
    box-shadow: 0 36px 60px rgba(5, 10, 20, 0.7);
}

body.theme-dark .site-header__search-close {
    color: #facc15;
}

body.theme-dark .site-header__drawer {
    background: rgba(2, 6, 14, 0.75);
}

body.theme-dark .site-header__drawer-inner {
    background: #0f1a33;
    color: rgba(227, 233, 247, 0.82);
}

body.theme-dark .site-header__drawer-menu a {
    color: rgba(227, 233, 247, 0.82);
}

body.theme-dark .site-header__drawer-menu a:hover,
body.theme-dark .site-header__drawer-menu a:focus {
    color: #22d3ee;
}

body.theme-dark .archive-card,
body.theme-dark .widget,
body.theme-dark .single-article,
body.theme-dark .search-results__empty,
body.theme-dark .accessibility-panel__container {
    border-color: transparent;
}

body.theme-dark .archive-card {
    background: rgba(16, 26, 49, 0.92);
    box-shadow: 0 22px 44px rgba(5, 10, 20, 0.65);
}

body.theme-dark .single-article {
    background: linear-gradient(145deg, rgba(10, 18, 36, 0.95) 0%, rgba(19, 34, 63, 0.97) 100%);
    box-shadow: 0 36px 76px rgba(3, 6, 18, 0.68);
    color: rgba(235, 240, 255, 0.9);
}

body.theme-dark .single-article--photo {
    background: linear-gradient(145deg, rgba(20, 29, 52, 0.95) 0%, rgba(31, 50, 85, 0.97) 100%);
}

body.theme-dark .single-article__meta {
    color: rgba(180, 198, 245, 0.75);
}

body.theme-dark .single-article__category {
    background: rgba(56, 138, 255, 0.22);
    color: rgba(226, 237, 255, 0.88);
    box-shadow: 0 8px 16px rgba(15, 45, 92, 0.45);
}

body.theme-dark .single-article__title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(5, 12, 28, 0.4);
}

body.theme-dark .single-article__lead,
body.theme-dark .single-article__content,
body.theme-dark .single-article__content p {
    color: rgba(226, 234, 255, 0.9);
}

body.theme-dark .single-article__bullets {
    color: rgba(226, 234, 255, 0.9);
}

body.theme-dark .single-article__bullets-item::marker {
    color: #93c5fd;
}

body.theme-dark .single-article__cover {
    box-shadow: 0 28px 64px rgba(3, 6, 18, 0.7);
}

body.theme-dark .archive-card__title,
body.theme-dark .single-article__title {
    color: #f8faff;
}

body.theme-dark .archive-card__excerpt,
body.theme-dark .single-article__lead,
body.theme-dark .single-article__content,
body.theme-dark .widget,
body.theme-dark .widget p,
body.theme-dark .widget li {
    color: rgba(215, 224, 255, 0.78);
}

body.theme-dark .archive-card__category,
body.theme-dark .archive-card__meta,
body.theme-dark .single-article__meta,
body.theme-dark .breadcrumbs,
body.theme-dark .breadcrumbs a {
    color: rgba(192, 210, 255, 0.75);
}

body.theme-dark .archive-card__link:hover .archive-card__title,
body.theme-dark .archive-card__link:focus .archive-card__title {
    color: #22d3ee;
}

body.theme-dark .single-article__content a {
    color: #22d3ee;
}

body.theme-dark .single-article__content a:hover,
body.theme-dark .single-article__content a:focus {
    color: #67e8f9;
}

body.theme-dark .accessibility-panel__container {
    background: #0f1a33;
    color: rgba(227, 233, 247, 0.9);
    box-shadow: 0 32px 64px rgba(3, 7, 18, 0.72);
}

body.theme-dark .accessibility-panel__section {
    background: rgba(21, 34, 64, 0.85);
}

body.theme-dark .accessibility-control,
body.theme-dark .accessibility-toggle {
    color: rgba(227, 233, 247, 0.85);
    background: rgba(11, 20, 40, 0.65);
    box-shadow: 0 16px 32px rgba(8, 17, 35, 0.4);
}

body.theme-dark .accessibility-control.is-active {
    background: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    color: #041022;
}

body.theme-dark .accessibility-toggle.is-active {
    background: linear-gradient(135deg, #0b1221 0%, #1d3a72 100%);
    color: #f8faff;
    box-shadow: 0 22px 44px rgba(3, 7, 18, 0.7);
}

body.theme-dark .accessibility-panel__close,
body.theme-dark .accessibility-reset {
    background: rgba(20, 33, 60, 0.75);
    color: #facc15;
}

body.theme-dark .site-header__search-inner .site-search__input {
    background: rgba(3, 9, 22, 0.85);
    color: rgba(227, 233, 247, 0.88);
    box-shadow: inset 0 0 0 1px rgba(61, 123, 255, 0.35);
}

body.theme-dark .site-header__search-inner .site-search__input::placeholder {
    color: rgba(164, 184, 232, 0.6);
}
