.header__social {
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.header__social .theme-switcher {
    padding: 0;
    margin: 0;
}

.theme-switcher label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-switcher select {
    width: auto;
    height: 3.6rem;
    margin: 0;
    padding: 0 2.4rem 0 1rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 1.8rem;
    background-color: #242424;
    color: #fff;
    font: 1.2rem "IBM Plex Sans", sans-serif;
    cursor: pointer;
}

.theme-switcher select:focus {
    color: #fff;
    border-color: #fff;
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.theme-switcher select:disabled {
    opacity: .6;
    cursor: not-allowed;
}

html[data-theme="classic"] #preloader {
    background: #e9ecee;
}

html[data-theme="classic"] #loader > div {
    background: #52616a;
}

html[data-theme="glass"] #preloader {
    background: #dce8f4;
}

html[data-theme="glass"] #loader > div {
    background: #426d86;
}

html[data-theme="terminal"] #preloader {
    background: #09110e;
}

html[data-theme="terminal"] #loader > div {
    background: #70e69a;
}

body > .container > .search-results-header,
body > .container > .search-no-results {
    box-sizing: border-box;
    width: calc(100% - 100px);
    max-width: 2140px;
    padding: 6.4rem 0 2.4rem 330px;
}

body > .container > .search-results-header h1 {
    font-size: clamp(2.4rem, 3vw, 3.8rem);
    overflow-wrap: anywhere;
}

body > .container > .search-results-header .search-count {
    color: #536271;
    font-size: 1.5rem;
}

body:has(> .container > .search-results-header) .s-wrap > .s-content {
    padding-top: 2.4rem;
}

body > .container > .search-no-results {
    padding-top: 2.4rem;
}

body > .container > .search-no-results p,
body > .container > .search-no-results .search-suggestions ul {
    color: #536271;
}

html[data-theme="terminal"] body > .container > .search-results-header {
    border-bottom-color: #28543a;
}

html[data-theme="terminal"] body > .container > .search-results-header .search-query {
    color: #70e69a;
}

html[data-theme="terminal"] body > .container > .search-results-header .search-count,
html[data-theme="terminal"] body > .container > .search-no-results p,
html[data-theme="terminal"] body > .container > .search-no-results .search-suggestions ul {
    color: #a9c5b0;
}

html[data-theme="terminal"] body > .container > .search-no-results input[type="search"] {
    background: #101f17;
    border-color: #356147;
    color: #d7f8df;
}

@media screen and (max-width: 1600px) {
    body > .container > .search-results-header,
    body > .container > .search-no-results {
        padding-left: 320px;
    }
}

@media screen and (max-width: 1200px) {
    body > .container > .search-results-header,
    body > .container > .search-no-results {
        width: calc(100% - 80px);
        padding-left: 290px;
    }
}

@media screen and (max-width: 1100px) {
    body > .container > .search-results-header,
    body > .container > .search-no-results {
        width: 89%;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
    }

    body > .container > .search-results-header {
        padding-top: 10.2rem;
    }
}

@media screen and (max-width: 600px) {
    body > .container > .search-results-header,
    body > .container > .search-no-results {
        width: calc(100% - 50px);
        max-width: 500px;
    }
}

/* Glass */
html[data-theme="glass"] body {
    background: #e7eef9;
    background-image: radial-gradient(ellipse at 75% 5%, #d2e7fb 0, transparent 45%),
        radial-gradient(ellipse at 25% 80%, #e8dafa 0, transparent 45%);
    background-attachment: fixed;
    color: #33445b;
}

html[data-theme="glass"] .s-header,
html[data-theme="glass"] .header__nav-wrap {
    background: #273951;
}

html[data-theme="glass"] .s-header {
    box-shadow: 8px 0 40px rgba(37, 59, 88, .18);
}

html[data-theme="glass"] .masonry .entry__text,
html[data-theme="glass"] .format-quote .entry__thumb,
html[data-theme="glass"] .format-link .entry__thumb,
html[data-theme="glass"] .content__page > .entry {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 14px 40px rgba(60, 86, 124, .12);
    backdrop-filter: blur(16px);
}

html[data-theme="glass"] .masonry .entry__text,
html[data-theme="glass"] .format-quote .entry__thumb,
html[data-theme="glass"] .format-link .entry__thumb,
html[data-theme="glass"] .content__page > .entry {
    border-radius: 16px;
}

html[data-theme="glass"] .masonry .format-standard .entry__thumb {
    border-radius: 16px 16px 0 0;
}

html[data-theme="glass"] .masonry .entry__thumb + .entry__text {
    border-radius: 0 0 16px 16px;
}

html[data-theme="glass"] .masonry .entry__text.mcfeatured {
    background: rgba(225, 246, 239, .85);
}

html[data-theme="glass"] .masonry .entry {
    color: #44566c;
}

html[data-theme="glass"] a {
    color: #286a83;
}

html[data-theme="glass"] a:hover,
html[data-theme="glass"] a:focus {
    color: #854e9c;
}

html[data-theme="glass"] .header__nav-wrap a {
    color: rgba(255, 255, 255, .8);
}

/* Terminal */
html[data-theme="terminal"] body {
    background: #09110e;
    background-image: linear-gradient(rgba(54, 220, 135, .025) 1px, transparent 1px);
    background-size: 100% 4px;
    color: #c4d9c9;
    font-family: Consolas, "Courier New", monospace;
}

html[data-theme="terminal"] .s-header,
html[data-theme="terminal"] .header__nav-wrap {
    background: #07100b;
}

html[data-theme="terminal"] .s-header {
    border-right: 1px solid #28543a;
}

html[data-theme="terminal"] .header__nav,
html[data-theme="terminal"] h1,
html[data-theme="terminal"] h2,
html[data-theme="terminal"] h3,
html[data-theme="terminal"] h4,
html[data-theme="terminal"] h5,
html[data-theme="terminal"] h6,
html[data-theme="terminal"] .h1,
html[data-theme="terminal"] .h2,
html[data-theme="terminal"] .h3,
html[data-theme="terminal"] .h4,
html[data-theme="terminal"] .h5,
html[data-theme="terminal"] .h6,
html[data-theme="terminal"] blockquote p {
    font-family: Consolas, "Courier New", monospace;
    color: #e0f7e5;
}

html[data-theme="terminal"] a,
html[data-theme="terminal"] .entry__header-meta a,
html[data-theme="terminal"] .s-footer a {
    color: #70e69a;
}

html[data-theme="terminal"] a:hover,
html[data-theme="terminal"] a:focus,
html[data-theme="terminal"] .header__nav li:hover > a,
html[data-theme="terminal"] .header__nav li.current > a {
    color: #d7ffe2;
}

html[data-theme="terminal"] .header__nav-wrap a {
    color: #a5d6b3;
}

html[data-theme="terminal"] .masonry .entry__text,
html[data-theme="terminal"] .format-quote .entry__thumb,
html[data-theme="terminal"] .format-link .entry__thumb {
    background: #101f17;
    border: 1px solid #28543a;
}

html[data-theme="terminal"] .masonry .entry__text.mcfeatured {
    background: #173123;
    border-color: #55b978;
}

html[data-theme="terminal"] .masonry .entry,
html[data-theme="terminal"] .entry__header-meta,
html[data-theme="terminal"] .s-footer,
html[data-theme="terminal"] .format-quote cite {
    color: #a9c5b0;
}

html[data-theme="terminal"] .entry__content p.lead,
html[data-theme="terminal"] .entry__content th,
html[data-theme="terminal"] .entry__content label,
html[data-theme="terminal"] .entry__content legend,
html[data-theme="terminal"] .entry__content input,
html[data-theme="terminal"] .entry__content textarea,
html[data-theme="terminal"] .entry__content select {
    color: #d7f8df;
}

html[data-theme="terminal"] .entry__content th,
html[data-theme="terminal"] .entry__content td,
html[data-theme="terminal"] .entry__content hr {
    border-color: #356147;
}

html[data-theme="terminal"] .masonry .entry__title a,
html[data-theme="terminal"] .masonry .entry__meta a,
html[data-theme="terminal"] .format-quote blockquote p {
    color: #d7f8df;
}

html[data-theme="terminal"] .masonry .entry__title a:hover,
html[data-theme="terminal"] .masonry .entry__meta a:hover {
    color: #70e69a;
}

html[data-theme="terminal"] blockquote {
    border-color: #55b978;
}

html[data-theme="terminal"] pre,
html[data-theme="terminal"] code {
    background: #14251b;
    border-color: #356147;
    color: #d7f8df;
}

html[data-theme="terminal"] .pgn__num {
    color: #b7e9c4;
}

html[data-theme="terminal"] .pgn .current,
html[data-theme="terminal"] .pgn__num:hover {
    background: #356147;
    color: #fff;
}

html[data-theme="terminal"] .pgn__prev,
html[data-theme="terminal"] .pgn__next {
    filter: invert(1);
}

html[data-theme="terminal"] .theme-switcher select {
    background-color: #10251a;
    border-color: #55b978;
    color: #d7f8df;
}

@media screen and (max-width: 1100px) {
    html[data-theme="glass"] .s-header,
    html[data-theme="terminal"] .s-header {
        background: transparent;
        box-shadow: none;
        border: 0;
    }

    html[data-theme="glass"] .header__top {
        background: #273951;
    }

    html[data-theme="terminal"] .header__top {
        background: #07100b;
        border-bottom: 1px solid #28543a;
    }

    .theme-switcher select {
        height: 4.4rem;
        border-radius: 2.2rem;
    }
}
