/* Load after minimal-refresh.css in the Relaxera template. */
html[data-relaxera-theme] body.rw-shell #ArtworkHelper.relaxera-artwork {
    padding-inline: clamp(10px, 2vw, 20px);
}

html[data-relaxera-theme] body.rw-shell #Bodycontainer {
    width: 100%;
    max-width: 900px;
}

html[data-relaxera-theme] body.rw-shell #ContentRow {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 10px;
    padding: 0;
}

body.rw-shell .rw-classic-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    gap: 10px 12px;
    height: auto;
    min-height: 0;
    padding: 0 0 10px;
    justify-content: stretch;
}

body.rw-shell .rw-classic-topline {
    position: static;
    grid-column: 1 / -1;
    min-height: 29px;
    height: auto;
}

body.rw-shell .rw-classic-brand {
    gap: 9px;
    justify-self: start;
}

body.rw-shell .rw-classic-brand img {
    width: 38px;
    height: 38px;
}

body.rw-shell .rw-classic-brand strong {
    font-size: clamp(24px, 4vw, 30px);
}

body.rw-shell .rw-classic-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.rw-shell .rw-classic-online {
    position: static;
    width: auto;
    max-width: none;
    padding: 5px 9px;
}

body.rw-shell .rw-classic-online > span,
body.rw-shell .rw-classic-online small {
    margin: 0;
}

body.rw-shell .rw-classic-online a {
    font-size: 12px;
}

body.rw-shell .rw-classic-nav section {
    padding: 3px 5px 4px;
}

body.rw-shell .rw-classic-nav h2 {
    padding: 3px 6px;
}

body.rw-shell .rw-classic-nav a {
    margin-block: 0;
    padding: 4px 6px;
    line-height: 1.35;
}

body.rw-shell .rw-sidebar-login {
    padding-inline: 4px;
}

html[data-relaxera-theme] body.rw-shell .rw-sidebar-login input:not([type="hidden"]) {
    height: 27px;
    margin-bottom: 4px;
}

body.rw-shell .rw-classic-nav :is(.rw-nav-register, .rw-nav-login) {
    margin: 4px;
    padding: 5px;
}

html[data-relaxera-theme] body.rw-shell .Content .BoxContent {
    min-height: 0;
    padding: 12px 14px 16px;
}

html[data-relaxera-theme] body.rw-shell .Content .BoxContent .rw-document-title {
    margin-bottom: 10px;
    padding-bottom: 6px;
    font-size: 24px;
}

body.rw-shell.page-home .rw-classic-welcome {
    padding: 10px 12px;
    margin-bottom: 10px;
}

html[data-relaxera-theme] body.rw-shell.page-home .Content .BoxContent .rw-classic-welcome .rw-document-title {
    margin: 0 0 4px;
    padding: 0;
    border: 0;
    font-size: 22px;
}

body.rw-shell.page-home .rw-classic-welcome p {
    margin: 0 0 7px;
    line-height: 1.4;
}

body.rw-shell.page-home .rw-classic-welcome > div,
body.rw-shell .rw-daily-strip,
body.rw-shell .rw-news-actions {
    flex-wrap: wrap;
    gap: 4px 9px;
}

body.rw-shell.page-home .rw-classic-welcome .rw-classic-create {
    padding: 5px 8px;
}

body.rw-shell.page-home .rw-daily-strip {
    margin-bottom: 0;
}

body.rw-shell.page-home .rw-home-actions {
    margin-top: 10px;
}

body.rw-shell.page-home .rw-home-signature {
    font-style: italic;
    white-space: nowrap;
}

html[data-relaxera-theme] body.rw-shell.page-home .Content .BoxContent .rw-home-discord {
    background: #b79b60;
    color: #19271d !important;
}

body.rw-shell.page-home .rw-home-adventures {
    margin-bottom: 10px;
}

body.rw-shell.page-home .rw-home-adventures h2 {
    margin: 0 0 6px;
}

body.rw-shell.page-home .rw-home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.rw-home-feature-grid a {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #c1b9a2;
    background: #ebe8db;
}

.rw-home-feature-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #263f2d;
}

.rw-home-feature-grid strong {
    padding: 6px 8px 1px;
    font: bold 15px/1.3 Georgia, serif;
}

.rw-home-feature-grid span {
    padding: 0 8px 7px;
    color: #3d4537;
    font: 12px/1.35 Arial, sans-serif;
}

@media (max-width: 740px) {
    body.rw-shell.page-home .rw-home-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html[data-relaxera-theme] body.rw-shell .Content .BoxContent .rw-news-summary {
    margin-bottom: 9px;
    padding-bottom: 8px;
}

html[data-relaxera-theme] body.rw-shell .Content .BoxContent .rw-news-summary h2 {
    margin-block: 3px 4px;
}

body.rw-shell #Footer.rw-site-footer {
    margin-top: 8px;
}

@media (max-width: 800px) {
    html[data-relaxera-theme] body.rw-shell #ContentRow {
        grid-template-columns: minmax(0, 1fr);
    }

    body.rw-shell .rw-classic-topline {
        flex-wrap: wrap;
        gap: 4px 10px;
        padding-block: 4px;
    }

    body.rw-shell .rw-classic-topline nav {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    body.rw-shell .rw-classic-nav {
        display: block;
        columns: 2;
        column-gap: 5px;
    }

    body.rw-shell .rw-classic-nav section {
        break-inside: avoid;
        margin-bottom: 5px;
    }

    body.rw-shell .rw-classic-nav :is(.rw-nav-account, .rw-nav-note) {
        column-span: all;
    }

    body.rw-shell .rw-classic-nav a {
        padding-block: 6px;
    }

    body.rw-shell .rw-sidebar-login {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 6px;
    }

    body.rw-shell .rw-sidebar-login label {
        grid-row: 1;
    }

    html[data-relaxera-theme] body.rw-shell .rw-sidebar-login input:not([type="hidden"]) {
        grid-row: 2;
        height: 36px;
        font-size: 16px;
    }

    body.rw-shell .rw-sidebar-login button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    body.rw-shell .rw-classic-brand img {
        width: 32px;
        height: 32px;
    }

    body.rw-shell .rw-daily-strip small {
        margin-left: 0;
    }

    body.rw-shell .rw-classic-header {
        grid-template-rows: auto auto auto;
        row-gap: 6px;
    }

    body.rw-shell .rw-classic-header-actions {
        display: contents;
    }

    body.rw-shell .rw-classic-online {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
    }

    body.rw-shell .rw-classic-socials {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

@media (max-width: 360px) {
    body.rw-shell .rw-classic-header {
        column-gap: 6px;
    }

    body.rw-shell .rw-classic-brand {
        gap: 6px;
    }

    body.rw-shell .rw-classic-brand strong {
        font-size: 21px;
    }

    body.rw-shell .rw-classic-online {
        padding-inline: 5px;
    }

    body.rw-shell .rw-classic-online a {
        font-size: 11px;
    }
}
