/* Three-column responsive layout: side panels (#DBCBBC) and central documentation panel. */

:root {
    --sidebar-color: #dbcbbc;
    --content-border-width: 3px;
    --content-border-color: #000;
    --content-radius: 12px;
    --page-max-width: 1400px;
    --sidebar-min-width: 4rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f5f0eb;
}

.site-layout {
    display: grid;
    grid-template-columns: minmax(var(--sidebar-min-width), 1fr) minmax(0, 52rem) minmax(var(--sidebar-min-width), 1fr);
    min-height: 100vh;
    max-width: var(--page-max-width);
    margin: 0 auto;
    width: 100%;
}

.site-sidebar {
    background-color: var(--sidebar-color);
    min-height: 100vh;
}

.site-center {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 0.75rem 1.5rem;
}

.site-content {
    flex: 1 1 auto;
    background-color: #fff;
    border: var(--content-border-width) solid var(--content-border-color);
    border-radius: var(--content-radius);
    padding: 1.5rem 1.75rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.site-footer {
    margin-top: 1.25rem;
    padding: 0 0.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: #444;
}

.site-footer__copyright {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.site-footer__contact {
    margin: 0;
    line-height: 1.5;
}

.site-footer a {
    color: #1a5fb4;
    text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #0d3d7a;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    background: #b32121;
    color: #fff;
    z-index: 1000;
}

/* Narrow viewports: stack sidebars above/below or hide decorative columns */
@media (max-width: 900px) {
    .site-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .site-sidebar--left {
        min-height: 2.5rem;
    }

    .site-sidebar--right {
        min-height: 2.5rem;
    }

    .site-center {
        order: 0;
        grid-row: 2;
    }

    .site-sidebar--left {
        order: -1;
    }
}

@media (max-width: 600px) {
    .site-content {
        padding: 1rem 1rem 1.5rem;
        border-radius: 8px;
    }

    .site-center {
        padding: 0.5rem 0.5rem 1rem;
    }
}
