:root {
    --shell-side-width: 15vw;
    --shell-paper: #fffdf8;
    --shell-ink: #26352b;
    --shell-line: #d8d0c0;
}

html { background: #f7f3e9; }

body.site-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding-right: var(--shell-side-width);
    padding-left: var(--shell-side-width);
    overflow-x: hidden;
    background: #f7f3e9;
}

.site-shell > header {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 12px 3%;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    color: var(--shell-ink);
    background: var(--shell-paper);
    border-bottom: 1px solid var(--shell-line);
    box-sizing: border-box;
}

.site-shell > header .logo {
    flex: 0 0 auto;
    margin: 0;
    color: var(--shell-ink);
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-shell > header nav {
    display: flex;
    min-width: 0;
    flex: 1 1 520px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
}

.site-shell > header nav a,
.site-shell > header nav button,
.site-shell > header nav summary {
    margin: 0;
    white-space: nowrap;
}

.site-shell > header nav .cart {
    padding: 7px 11px;
    color: #fffdf8;
    background: var(--shell-ink);
    border-radius: 4px;
}

.site-language-switch {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 8px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid var(--shell-line);
}

.site-language-button {
    display: inline-flex;
    width: 38px;
    height: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.site-language-button:hover,
.site-language-button[aria-pressed="true"] {
    border-color: var(--shell-ink);
    background: #f2ecdf;
}

.site-language-button svg {
    display: block;
    width: 30px;
    height: 18px;
    box-shadow: 0 0 0 1px rgba(38,53,43,.22);
}

.site-shell > main,
.site-shell > .page-content,
.site-shell > .banner-preview-layout {
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.site-shell > footer {
    position: relative;
    z-index: 30;
    display: grid;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 8px 3%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 20px;
    color: white;
    background: var(--shell-ink);
    text-align: left;
    box-sizing: border-box;
}

.site-shell > footer p { margin: 3px 0; line-height: 1.15; }

.site-shell > footer .visitor-counter {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    margin: 0;
    padding: 5px 9px;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,.4);
    transform: none;
}

.site-shell > footer .visitor-counter strong {
    color: #f3d99b;
    font-family: monospace;
    font-size: 20px;
    letter-spacing: 4px;
}

.site-banner-column {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    width: var(--shell-side-width);
    height: 100dvh;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.site-banner-column--left { left: 0; }
.site-banner-column--right { right: 0; }

.site-banner-slot {
    display: flex;
    min-width: 0;
    min-height: 0;
    padding: 14px 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(38,53,43,.25);
    color: rgba(38,53,43,.75);
    font-size: clamp(11px, 1vw, 16px);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.25;
    text-align: center;
    transition: background-color .6s ease;
    writing-mode: horizontal-tb;
}

.site-banner-line { display: block; }

.site-banner-number {
    display: block;
    margin-top: .35em;
    font-size: 1.7em;
    line-height: 1;
}

.site-banner-left-one { background: #f3c7c2; }
.site-banner-left-two { background: #c9dcbf; }
.site-banner-right-one { background: #bfd8e8; }
.site-banner-right-two { background: #ead7a7; }

@media (max-width: 1250px) and (min-width: 901px) {
    .site-shell > header { grid-template-columns: 1fr; justify-content: center; }
    .site-shell > header .logo,
    .site-shell > header nav,
    .site-language-switch { grid-column: 1; }
    .site-shell > header .logo { width: 100%; text-align: center; }
    .site-shell > header nav { justify-content: center; }
    .site-shell > footer {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 6px;
        text-align: center;
    }
    .site-shell > footer .visitor-counter { grid-column: 1; grid-row: auto; }
}

@media (max-width: 900px) {
    body.site-shell { padding: 0; overflow-x: hidden; }
    .site-banner-column {
        position: relative;
        inset: auto;
        z-index: 1;
        width: 100%;
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
    .site-banner-slot {
        min-height: 86px;
        writing-mode: horizontal-tb;
    }
    .site-shell > header { grid-template-columns: 1fr; justify-content: center; text-align: center; }
    .site-shell > header .logo { width: 100%; }
    .site-shell > header nav { flex-basis: 100%; justify-content: center; }
    .site-shell > footer {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 6px;
        text-align: center;
    }
    .site-shell > footer .visitor-counter { grid-column: 1; grid-row: auto; }
}
