:root {
    color-scheme: dark;
    --bg: #080b10;
    --panel: #111722;
    --panel-soft: #151c28;
    --line: rgba(255, 255, 255, .12);
    --text: #f3f6fb;
    --muted: #aab5c6;
    --blue: #55b8ff;
    --blue-dark: #156da6;
    --ember: #f2934a;
    --green: #6fcf97;
    --danger: #ff6675;
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 0%, rgba(85, 184, 255, .18), transparent 28rem),
        radial-gradient(circle at 90% 18%, rgba(242, 147, 74, .14), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(8, 11, 16, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    min-width: 0;
}

.brand-visual {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.brand-logo {
    display: block;
    width: auto;
    height: var(--brand-logo-size, 38px);
    max-width: min(300px, 100%);
    object-fit: contain;
}

.brand-name {
    overflow-wrap: anywhere;
}

.language-switcher {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    gap: 4px;
    padding: 5px;
    border: 1px solid #41464e;
    border-radius: 6px;
    background: #171b21;
    box-shadow: 0 4px 18px #0008;
}

.language-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 40px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
}

.language-button img {
    display: block;
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.language-button:hover,
.language-button:focus-visible {
    background: #30353d;
    outline: 2px solid var(--blue);
    outline-offset: -2px;
}

.language-button.is-active {
    border-color: var(--blue);
    background: #233544;
}

.translation-state {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: min(310px, calc(100vw - 32px));
    padding: 8px 12px;
    background: #171b21;
    border: 1px solid #41464e;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.translation-state.is-error {
    border-color: #987045;
}

body:has(.language-switcher) .site-footer {
    padding-bottom: 90px;
}

.maintenance-body:has(.language-switcher) {
    padding-bottom: 90px;
}

.translation-settings-summary {
    margin: 10px 0;
    font-size: 14px;
}

.translation-settings-summary > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.translation-settings-summary dt {
    flex: 0 0 155px;
    color: var(--muted);
}

.translation-settings-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.brand-mark {
    display: grid;
    width: var(--brand-logo-size, 38px);
    height: var(--brand-logo-size, 38px);
    place-items: center;
    border: 1px solid rgba(85, 184, 255, .55);
    border-radius: 8px;
    background: linear-gradient(135deg, #0f3456, #1c2230 55%, #6e3518);
    box-shadow: 0 0 24px rgba(85, 184, 255, .24);
}

.main-nav,
.admin-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a,
.admin-nav a {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--muted);
    text-decoration: none;
    transition: .18s ease;
}

.main-nav a:hover,
.main-nav a.is-active,
.admin-nav a:hover,
.admin-nav a.is-active {
    background: rgba(255, 255, 255, .08);
    color: var(--text);
}

.nav-toggle {
    display: none;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel);
    color: var(--text);
}

.hero {
    min-height: min(360px, calc(100vh - 74px));
    display: grid;
    align-items: end;
    padding: clamp(42px, 10vw, 92px) clamp(20px, 6vw, 76px);
    background:
        linear-gradient(90deg, rgba(8, 11, 16, .96) 0%, rgba(8, 11, 16, .62) 44%, rgba(8, 11, 16, .25) 100%),
        var(--hero-image) center / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.hero-content {
    max-width: 760px;
}

body.has-custom-background.has-page-background {
    position: relative;
    isolation: isolate;
    background: var(--custom-background-color);
}

.site-background-image {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    object-fit: cover;
    pointer-events: none;
}

.public-body .hero.has-custom-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--custom-background-color);
}

.hero-background-image {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.has-custom-hero .hero-content {
    position: relative;
    text-shadow: 0 2px 8px #000;
}

.background-preview {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-items: end;
    aspect-ratio: 16 / 10;
    width: 100%;
    min-width: 0;
    min-height: 250px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #080b10;
}

.background-preview > img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-preview-content {
    position: relative;
    padding: 24px;
    text-shadow: 0 2px 8px #000;
}

.background-preview-content strong {
    display: block;
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.single-game-hero h1 {
    margin: 10px 0 14px;
    font-size: 3.5rem;
    line-height: 1.1;
}

.single-game-hero .eyebrow {
    font-size: 14px;
    letter-spacing: 0;
}

.theme-grid,
.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.theme-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
}

.theme-card.is-active {
    border-color: var(--blue);
}

.theme-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.theme-card-body {
    padding: 18px;
}

.theme-card-body header,
.theme-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-card-body h2 {
    flex: 1;
    font-size: 19px;
    line-height: 1.3;
}

.theme-active-label {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.theme-card-body > p {
    min-height: 65px;
    color: var(--muted);
    font-size: 14px;
}

.theme-card-body .check-row {
    font-size: 13px;
    line-height: 1.5;
}

.installer-body {
    display: block;
}

.installer-main {
    width: min(880px, calc(100% - 36px));
    margin: 48px auto;
}

.installer-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.installer-main h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.installer-main .eyebrow {
    letter-spacing: 0;
}

.install-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    margin: 0 0 24px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--line);
    list-style: none;
    color: var(--muted);
    font-size: 14px;
}

.install-steps .is-active {
    color: var(--blue);
    font-weight: 700;
}

.installer-main .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.installer-main .flash {
    width: 100%;
    margin: 0 0 20px;
}

.install-requirements {
    margin-bottom: 24px;
    font-size: 14px;
}

.install-requirements summary {
    cursor: pointer;
}

.install-requirements dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
}

.install-requirements dd {
    margin: 0;
}

.install-themes {
    margin: 0;
    padding: 12px 0;
    border: 0;
}

.install-themes legend {
    padding: 0 0 6px;
    font-weight: 700;
}

.theme-choice {
    display: block;
    min-width: 0;
    cursor: pointer;
}

.theme-choice img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
}

.theme-choice:has(input:checked) img {
    border-color: var(--blue);
}

.theme-choice > span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 14px;
}

.theme-choice input {
    width: auto;
    margin: 0;
}

.install-back {
    margin-top: 20px;
}

@media (max-width: 1150px) {
    .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .theme-grid, .theme-choice-grid, .installer-main .form-grid { grid-template-columns: 1fr; }
    .single-game-hero h1 { font-size: 2.4rem; }
    .theme-card-body > p { min-height: 0; }
    .installer-main { margin: 28px auto; }
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(3.4rem, 10vw, 8rem);
    line-height: .88;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 3.25rem);
    line-height: 1.04;
}

h3 {
    margin: 12px 0 8px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: #d9e2ee;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--panel-soft);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: .18s ease;
}

.button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .24);
}

.button.primary {
    border-color: rgba(85, 184, 255, .72);
    background: linear-gradient(135deg, var(--blue-dark), #1d82bd);
}

.button.ghost {
    background: rgba(255, 255, 255, .08);
}

.button.small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: .9rem;
}

.button.danger {
    border-color: rgba(255, 102, 117, .56);
    background: rgba(255, 102, 117, .14);
    color: #ffd7dc;
}

.button.full {
    width: 100%;
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(44px, 7vw, 82px) 0;
}

.section.narrow,
.narrow {
    max-width: 760px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.server-card,
.post-card,
.comment,
.admin-panel,
.metric,
.status-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035));
    box-shadow: var(--shadow);
}

.server-card,
.post-card,
.metric {
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.server-card::after,
.post-card::after,
.metric::after {
    content: "";
    position: absolute;
    inset: auto 18px -34px;
    height: 74px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(var(--server-glow-rgb, 85, 184, 255), .42), transparent 68%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.86);
    transition: opacity .22s ease, transform .22s ease;
}

.server-card:hover,
.post-card:hover,
.metric:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--server-glow-rgb, 85, 184, 255), .42);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .42),
        0 0 34px rgba(var(--server-glow-rgb, 85, 184, 255), .14);
}

.server-card:hover::after,
.post-card:hover::after,
.metric:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.server-card.dayz::after {
    background: radial-gradient(ellipse at center, rgba(var(--server-glow-rgb, 242, 147, 74), .42), transparent 68%);
}

.server-card.dayz:hover {
    border-color: rgba(var(--server-glow-rgb, 242, 147, 74), .42);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .42),
        0 0 34px rgba(var(--server-glow-rgb, 242, 147, 74), .13);
}

.server-card {
    --server-glow-rgb: 85, 184, 255;
    --server-status-rgb: 242, 147, 74;
    --server-card-min-height: 360px;
    --server-card-span: span 1;
    grid-column: var(--server-card-span);
    min-height: var(--server-card-min-height);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    box-shadow:
        var(--shadow),
        0 0 26px rgba(var(--server-glow-rgb, 85, 184, 255), .1);
    animation: server-card-pulse 3.4s ease-in-out infinite;
}

.server-card h2 {
    font-size: 2rem;
    line-height: 1.04;
    overflow-wrap: anywhere;
}

.server-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0 !important;
    background-position: center;
    background-size: cover;
    opacity: .2;
    filter: saturate(1.12) contrast(1.05);
    pointer-events: none;
    transition: opacity .22s ease, transform .28s ease;
}

.server-card.has-tile-image:hover .server-card-bg {
    opacity: .2;
    transform: scale(1.03);
}

.server-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--server-glow-rgb, 85, 184, 255), .17), transparent 48%);
    pointer-events: none;
}

.server-card.has-tile-image::before {
    background: transparent;
}

.server-card.dayz::before {
    background: linear-gradient(135deg, rgba(var(--server-glow-rgb, 242, 147, 74), .17), transparent 48%);
}

.server-card.dayz.has-tile-image::before {
    background: transparent;
}

.server-card > *:not(.server-card-bg):not(.server-status-badge),
.post-card > *,
.metric > * {
    position: relative;
    z-index: 1;
}

.server-card p,
.post-card p,
.lead,
.empty,
.form-note {
    color: var(--muted);
}

.server-card.has-tile-image h2,
.server-card.has-tile-image p,
.server-card.has-tile-image .game-pill,
.server-card.has-tile-image .server-stats,
.server-card.has-tile-image .server-actions,
.server-card.has-tile-image .server-status-badge {
    text-shadow: 0 2px 16px rgba(0, 0, 0, .9);
}

.server-status-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    max-width: min(220px, calc(100% - 36px));
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid rgba(var(--server-status-rgb, 242, 147, 74), .62);
    border-radius: 999px;
    background: rgba(8, 11, 16, .66);
    color: var(--text);
    font-size: .82rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .05) inset,
        0 0 24px rgba(var(--server-status-rgb, 242, 147, 74), .28);
    animation: server-status-pulse 1.8s ease-in-out infinite;
}

.server-status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    background: rgb(var(--server-status-rgb, 242, 147, 74));
    box-shadow: 0 0 16px rgba(var(--server-status-rgb, 242, 147, 74), .92);
}

@keyframes server-card-pulse {
    0%,
    100% {
        box-shadow:
            var(--shadow),
            0 0 22px rgba(var(--server-glow-rgb, 85, 184, 255), .09);
    }
    50% {
        box-shadow:
            var(--shadow),
            0 0 42px rgba(var(--server-glow-rgb, 85, 184, 255), .22);
    }
}

@keyframes server-status-pulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, .05) inset,
            0 0 16px rgba(var(--server-status-rgb, 242, 147, 74), .2);
    }
    50% {
        transform: translateY(-1px);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, .08) inset,
            0 0 30px rgba(var(--server-status-rgb, 242, 147, 74), .46);
    }
}

.game-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #dce8f8;
    font-size: .82rem;
    background: rgba(255, 255, 255, .08);
}

.server-stats {
    display: grid;
    gap: 10px;
    margin: 0;
}

.server-stats div,
.status-panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

dt {
    color: var(--muted);
}

dd {
    margin: 0;
    color: var(--text);
    text-align: right;
}

.text-link {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.server-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.server-actions .button {
    min-width: 122px;
}

.status-online {
    color: var(--green);
}

.status-offline {
    color: var(--danger);
}

.live-state {
    --live-rgb: 111, 207, 151;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 5px 10px;
    border: 1px solid rgba(var(--live-rgb), .5);
    border-radius: 999px;
    background: rgba(var(--live-rgb), .09);
    color: rgb(var(--live-rgb));
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 22px rgba(var(--live-rgb), .18);
    animation: live-state-pulse 1.65s ease-in-out infinite;
}

.live-state::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgb(var(--live-rgb));
    box-shadow: 0 0 15px rgba(var(--live-rgb), .85);
}

.live-state.status-online {
    --live-rgb: 111, 207, 151;
}

.live-state.status-offline {
    --live-rgb: 255, 102, 117;
}

@keyframes live-state-pulse {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(var(--live-rgb), .18),
            0 0 18px rgba(var(--live-rgb), .14);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(var(--live-rgb), .09),
            0 0 30px rgba(var(--live-rgb), .36);
    }
}

.post-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: stretch;
    gap: 16px;
}

.post-list > .empty {
    grid-column: 1 / -1;
}

.post-card {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
}

.post-card h3 a {
    text-decoration: none;
}

.post-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: .92rem;
}

.post-card-media {
    display: block;
    margin: -22px -22px 16px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 16 / 8;
}

.post-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .28s ease;
}

.post-card:hover .post-card-media img {
    transform: scale(1.04);
}

.comment-overview {
    padding-top: 0;
}

.home-comment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.home-comment-grid > .empty {
    grid-column: 1 / -1;
}

.home-comment-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .03));
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.home-comment-card:hover {
    transform: translateY(-2px);
    border-color: rgba(85, 184, 255, .42);
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
    box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

.home-comment-card header,
.home-comment-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: .92rem;
}

.home-comment-card strong {
    color: var(--text);
}

.home-comment-card p {
    margin: 0;
    color: #dce6f5;
    line-height: 1.55;
}

.home-comment-meta {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.comment-score {
    color: var(--blue);
    font-weight: 800;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.pager-link {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    transition: .18s ease;
}

.pager-link:hover,
.pager-link.is-active {
    border-color: rgba(85, 184, 255, .62);
    background: rgba(85, 184, 255, .16);
    color: #fff;
}

.game-hero {
    width: min(1180px, calc(100% - 36px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 22px;
    align-items: stretch;
    padding: clamp(28px, 6vw, 56px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(85, 184, 255, .16), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
}

.game-hero.game-dayz {
    background:
        linear-gradient(135deg, rgba(242, 147, 74, .18), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
}

.game-hero.game-teamspeak3 {
    background:
        linear-gradient(135deg, rgba(143, 124, 255, .18), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
}

.game-hero h1,
.article h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
}

.article h1.article-title {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(2rem, 5vw, var(--article-title-size, 3.2rem));
    line-height: .98;
}

.article-title.is-underlined {
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-decoration-thickness: .08em;
    text-underline-offset: .16em;
}

.game-hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.12rem;
}

.status-panel {
    padding: 24px;
    background: rgba(8, 11, 16, .48);
}

.status-panel > span {
    color: var(--muted);
}

.status-panel > strong {
    display: block;
    margin: 8px 0 20px;
    font-size: 1.6rem;
}

.status-panel dl {
    margin: 0;
}

.article,
.comments {
    width: min(900px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(40px, 7vw, 82px) 0;
}

.article-body {
    margin-top: 26px;
    color: #d9e2ee;
    font-size: 1.08rem;
}

.article.page-width-wide { width: min(1280px, calc(100% - 36px)); }
.article.page-width-full { width: min(1600px, calc(100% - 36px)); }

.post-section-filter { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.post-section-filter label { width: min(100%, 320px); }
.post-section-row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(170px, 1fr) 84px auto; gap: 12px; align-items: end; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-section-row input, .post-section-row select { width: 100%; min-width: 0; }
.post-section-actions { display: flex; gap: 8px; align-items: center; }
.post-section-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.post-section-add { margin-top: 32px; }
.post-section-add h2 { font-size: 1.35rem; }
.post-section-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-section-title { font-size: 2rem; line-height: 1.25; }
@media (max-width: 1100px) { .post-section-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-section-row, .post-section-fields { grid-template-columns: minmax(0, 1fr); } }

.article-header-image {
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 7;
    background: var(--panel);
}

.article-header-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-body h2,
.article-body h3 {
    margin: 34px 0 14px;
    line-height: 1.12;
}

.article-body h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.article-body h3 {
    font-size: 1.45rem;
}

.article-body p {
    margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 22px;
    padding-left: 1.45rem;
}

.article-body blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--blue);
    background: rgba(85, 184, 255, .08);
    color: #e8f2ff;
}

.article-body figure {
    margin: 30px 0;
}

.article-body img {
    width: 100%;
    max-height: 620px;
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.article-body figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: .94rem;
    text-align: center;
}

.comment-form,
.stack-form {
    display: grid;
    gap: 16px;
}

.comment-form {
    margin-bottom: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

label {
    display: grid;
    gap: 7px;
    color: #dce6f5;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    background: #0d121b;
    color: var(--text);
    padding: 11px 12px;
    outline: none;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

input[type="color"] {
    width: 76px;
    min-height: 42px;
    padding: 4px;
    cursor: pointer;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(85, 184, 255, .15);
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment {
    padding: 18px;
    scroll-margin-top: var(--site-header-offset, 92px);
}

.comment.is-reply {
    background: rgba(255, 255, 255, .035);
}

.comment header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
}

.comment p {
    margin-bottom: 0;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.comment-reply-details {
    flex: 1 1 280px;
}

.comment-reply-details summary {
    width: max-content;
    color: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

.comment-reply-details[open] summary {
    margin-bottom: 12px;
}

.comment-form.is-reply-form {
    margin: 0;
    padding: 16px;
    background: rgba(13, 18, 27, .72);
}

.comment-vote-form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vote-button {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    cursor: pointer;
}

.vote-button:hover,
.vote-button.is-active {
    border-color: rgba(85, 184, 255, .5);
    background: rgba(85, 184, 255, .14);
    color: var(--text);
}

.vote-button span {
    margin-left: 4px;
    font-weight: 800;
}

.comment-replies {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-left: clamp(14px, 3vw, 28px);
    border-left: 2px solid rgba(85, 184, 255, .24);
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 4vw, 56px);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.site-footer-copy {
    display: grid;
    gap: 4px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--text);
    text-decoration: underline;
}

.template-menu-editor {
    min-height: 138px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: .92rem;
}

.form-note code {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.flash {
    width: min(1180px, calc(100% - 36px));
    margin: 18px auto 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(85, 184, 255, .12);
}

.flash-error {
    background: rgba(255, 102, 117, .15);
}

.flash-success {
    background: rgba(111, 207, 151, .15);
}

.flash-warning {
    background: rgba(242, 147, 74, .15);
}

.admin-body {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    background: #17181c;
    --panel: #202126;
    --panel-soft: #26272d;
    --line: rgba(255, 255, 255, .1);
}

.admin-body.is-guest {
    grid-template-columns: 1fr;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 14px;
    border-right: 1px solid var(--line);
    background: #111215;
}

.admin-sidebar > .brand {
    padding: 0 8px 18px;
    border-bottom: 1px solid var(--line);
}

.admin-menu-toggle {
    display: none;
}

.admin-sidebar .brand-logo {
    max-width: min(196px, 100%);
}

.admin-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
}

.admin-nav a,
.admin-nav-group summary {
    font-size: .9rem;
    border-radius: 4px;
}

.admin-nav-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    color: var(--muted);
    cursor: pointer;
    list-style: none;
}

.admin-nav-group summary::-webkit-details-marker {
    display: none;
}

.admin-nav-group summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
}

.admin-nav-group[open] summary::after {
    transform: rotate(225deg);
}

.admin-nav-group summary:hover,
.admin-nav-group summary.is-active {
    color: var(--text);
    background: rgba(85, 184, 255, .12);
}

.admin-subnav {
    display: grid;
    gap: 2px;
    padding: 7px 0 7px 12px;
    margin: 5px 0 8px 12px;
    border-left: 1px solid var(--line);
}

.admin-subnav a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: .82rem;
}

.admin-subnav a.is-active {
    color: var(--blue);
    background: rgba(85, 184, 255, .08);
}

.admin-sidebar > form {
    margin-top: auto;
}

.admin-main {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    min-width: 0;
    padding: 0 0 60px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 58px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    font-size: .84rem;
    color: var(--muted);
}

.admin-toolbar a {
    text-decoration: none;
    overflow-wrap: anywhere;
}

.admin-toolbar a:hover {
    color: var(--blue);
}

.admin-main > .flash {
    width: 100%;
    margin: 0 0 20px;
}

.admin-body.is-guest .admin-main {
    width: min(760px, calc(100% - 36px));
    padding-top: clamp(42px, 9vw, 92px);
}

.admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-title h1,
.admin-panel h1 {
    font-size: 1.8rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.admin-body .eyebrow {
    font-size: .75rem;
    letter-spacing: 0;
}

.admin-body input,
.admin-body select,
.admin-body textarea {
    background: #141519;
    border-radius: 4px;
    padding: 9px 11px;
}

.admin-body .button {
    border-radius: 4px;
    box-shadow: none;
}

.admin-panel {
    background: none;
    box-shadow: none;
    border: 0;
    padding: 0;
}

.admin-body.is-guest .admin-panel {
    padding: 30px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.settings-breadcrumb {
    color: var(--muted);
    margin: 0 0 8px;
    font-size: .84rem;
}

.settings-breadcrumb a {
    text-decoration: none;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.settings-tabs a {
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    font-size: .84rem;
    text-decoration: none;
    color: var(--muted);
}

.settings-tabs a.is-active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.settings-form {
    gap: 24px;
}

.settings-field {
    display: grid;
    grid-template-columns: 180px minmax(0, 620px);
    align-items: start;
    gap: 16px;
}

.settings-field > span {
    padding-top: 9px;
    font-size: .9rem;
}

.settings-subheading,
.brand-preview-panel h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.settings-actions {
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.branding-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr);
    align-items: start;
    gap: 40px;
}

.branding-layout .form-note {
    margin: -8px 0 0;
}

.branding-layout > div {
    min-width: 0;
}

.brand-size-control {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: -8px;
}

.admin-body input[type="range"] {
    min-width: 0;
    padding: 0;
    accent-color: var(--blue);
    cursor: pointer;
    box-shadow: none;
}

.brand-size-control output {
    flex: 0 0 62px;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    text-align: right;
}

.brand-preview-panel {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.brand-preview-stage {
    display: flex;
    align-items: center;
    min-height: 200px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #080b10;
}

.brand-preview-stage .brand-logo {
    max-width: 100%;
}

.brand-preview-error {
    color: var(--danger);
    font-size: .85rem;
    margin: 0;
}

.favicon-settings {
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.favicon-preview-stage {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #080b10;
}

.favicon-preview-stage img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.menu-editor-head,
.menu-editor-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(160px, 1.6fr) minmax(120px, 1fr) 112px;
    align-items: start;
    gap: 12px;
}

.menu-row-actions {
    display: flex;
    gap: 4px;
}

.menu-icon-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    background: rgba(255,255,255,.05);
    cursor: pointer;
}

.menu-icon-button img {
    filter: brightness(0) invert(1);
}

.menu-icon-button:hover:not(:disabled) {
    border-color: var(--blue);
    background: rgba(85,184,255,.12);
}

.menu-icon-button:disabled {
    opacity: .3;
    cursor: default;
}

.editor-mode-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.editor-mode-tabs button {
    padding: 10px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.editor-mode-tabs button[aria-selected="true"] {
    border-bottom-color: var(--blue);
    color: var(--blue);
}

.html-source-editor {
    width: 100%;
    min-height: 400px;
    resize: vertical;
    font: 14px/1.6 ui-monospace, Consolas, monospace;
    tab-size: 2;
}

.editor-conversion-notice {
    padding: 16px;
    margin-top: 14px;
    border-left: 3px solid var(--danger);
    background: rgba(255,102,117,.08);
}

.editor-conversion-notice p {
    margin-top: 0;
}

.editor-conversion-notice button {
    margin: 0 8px 8px 0;
}

.content-html-frame {
    display: block;
    width: 100%;
    height: 400px;
    border: 0;
    background: transparent;
}

[data-editor-preview-panel] .content-html-frame {
    border: 1px solid var(--line);
}

.menu-editor-head {
    padding: 0 0 10px;
    color: var(--muted);
    font-size: .82rem;
}

.menu-editor-rows {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.menu-mobile-label {
    display: none;
}

.menu-page-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-top: 20px;
}

.menu-page-picker > label {
    flex: 1 1 220px;
    min-width: 0;
}

.page-editor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 14px 0 24px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    padding: 22px;
}

.metric span {
    color: var(--muted);
}

.metric strong {
    display: block;
    margin-top: 8px;
    font-size: 2.7rem;
    line-height: 1;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .86rem;
    text-transform: uppercase;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actions form {
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.server-fieldset {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.server-fieldset legend {
    padding: 0 8px;
    color: var(--blue);
    font-weight: 800;
}

.admin-image-preview {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    aspect-ratio: 16 / 6;
    background: var(--panel);
}

.admin-image-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rich-editor-fieldset {
    gap: 10px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 11, 16, .42);
}

.editor-toolbar button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    cursor: pointer;
}

.editor-toolbar button:hover {
    border-color: rgba(85, 184, 255, .5);
    background: rgba(85, 184, 255, .12);
}

.editor-color-group {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 7px;
    background: rgba(255, 255, 255, .04);
}

.editor-color-group span {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}

.editor-toolbar .editor-color-swatch {
    width: 24px;
    min-height: 24px;
    padding: 0;
    border-color: rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: var(--swatch);
}

.editor-toolbar .editor-color-swatch:hover {
    border-color: rgba(255, 255, 255, .78);
    background: var(--swatch);
    box-shadow: 0 0 0 3px rgba(85, 184, 255, .12);
}

.editor-color-group input[type="color"] {
    width: 30px;
    height: 30px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 7px;
    background: rgba(255, 255, 255, .07);
    cursor: pointer;
}

.rich-editor {
    min-height: 420px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: #0d121b;
    color: var(--text);
    outline: none;
}

.rich-editor:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(85, 184, 255, .15);
}

.rich-editor h2,
.rich-editor h3 {
    margin: 22px 0 10px;
}

.rich-editor p {
    margin: 0 0 14px;
}

.rich-editor figure {
    margin: 20px 0;
}

.rich-editor img {
    max-width: 100%;
    max-height: 440px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #dce6f5;
}

.danger-check {
    color: #ffd7dc;
}

.maintenance-body {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(8, 11, 16, .96), rgba(8, 11, 16, .72)),
        url('../images/zerath-hero.png') center / cover no-repeat;
}

.maintenance-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.maintenance-panel {
    width: min(620px, 100%);
    display: grid;
    gap: 18px;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 18, 27, .88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.maintenance-panel h1 {
    font-size: clamp(2.4rem, 8vw, 4.6rem);
}

.maintenance-panel p {
    color: var(--muted);
}

small {
    color: var(--muted);
}

@media (max-width: 920px) {
    .server-grid,
    .post-list,
    .home-comment-grid,
    .game-hero,
    .metric-grid,
    .form-grid,
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
    }

    .admin-sidebar > .brand {
        padding: 0;
        border: 0;
    }

    .admin-menu-toggle {
        display: inline-flex;
    }

    .admin-sidebar .admin-nav,
    .admin-sidebar > form {
        display: none;
        grid-column: 1 / -1;
    }

    .admin-sidebar.is-menu-open .admin-nav {
        display: flex;
    }

    .admin-sidebar.is-menu-open > form {
        display: block;
    }

    .admin-main {
        padding-top: 24px;
    }

    .server-card {
        grid-column: span 1;
    }

    .branding-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 720px) {
    .settings-field,
    .menu-editor-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .menu-editor-row {
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
    }

    .menu-editor-head {
        display: none;
    }

    .menu-mobile-label {
        display: block;
        font-size: .84rem;
    }

    .menu-editor-row > button {
        justify-self: start;
    }

    .brand-logo {
        max-width: min(220px, 100%);
    }

    .site-header > .brand {
        max-width: calc(100% - 80px);
    }

    .site-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero {
        min-height: 560px;
        align-items: end;
    }

    .section-heading,
    .admin-title,
    .site-footer,
    .comment header,
    .post-card footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-status-badge {
        position: relative;
        top: auto;
        right: auto;
        width: max-content;
        max-width: 100%;
        margin-left: auto;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .admin-sidebar {
        padding: 18px;
    }
}
