*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f8fb;
}

.mayer-theme-main,
.mayer-theme-portal-app {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
}

.wp-site-blocks,
.entry-content,
.is-layout-flow,
.is-layout-constrained {
    margin: 0;
    padding: 0;
    gap: 0;
    max-width: none;
}

.mayer-theme-portal-app > .mayer-portal {
    min-height: 100vh;
}

.mayer-theme-portal-app {
    display: flex;
    align-items: stretch;
}

.mayer-portal-fallback-box,
.mayer-theme-portal-app .mayer-portal-access-denied {
    width: min(640px, calc(100% - 2rem));
    margin: auto;
    padding: 1rem 1.25rem;
    border: 1px solid #d9e2ec;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #243b53;
    text-align: center;
}

.mayer-theme-home-placeholder {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #00a57a;
    color: #fff;
    text-align: center;
    padding: 1.5rem;
}

.mayer-theme-home-placeholder-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
}

.mayer-theme-home-placeholder-logo img {
    display: block;
    max-width: 240px;
    width: 100%;
    height: auto;
}

.mayer-theme-home-placeholder-text {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.mayer-theme-home-placeholder-footer {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}

.mayer-theme-home-placeholder-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.mayer-theme-home-placeholder-footer a {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.mayer-theme-home-placeholder-footer a:hover,
.mayer-theme-home-placeholder-footer a:focus-visible {
    color: rgba(255, 255, 255, 0.96);
    text-decoration: underline;
}
