.w2-protected-page {
    --w2-frame-width: 100%;
    --w2-frame-inset-left: calc(var(--w2-frame-width) * 0.0604);
    --w2-frame-inset-right: calc(var(--w2-frame-width) * 0.0526);
}

.w2-protected-shell {
    display: grid;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
}

.w2-protected-frame {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    /* Keep short pages together; let longer content grow in normal flow. */
    min-height: 100vh;
    min-height: 100svh;
}

/* Background variants are independent of dense/legal layout tuning.
   focus: compact content mainly on the quiet left side.
   content: broader application surfaces, including distributed cards. */
.w2-background--full {
    --review-stage-background-opacity: 1;
}

.w2-background--focus {
    --review-stage-background-opacity: 0.8;
}

.w2-background--content {
    --review-stage-background-opacity: 0.5;
}

.w2-background--dense {
    --review-stage-background-opacity: 0.25;
}

.w2-protected-shell--dense {
    /* Manual Dense/Legal tuning controls: edit here or on this shell in DevTools.
       Width is capped by available space; content-top adds normal-flow spacing. */
    --w2-legal-content-width: 60ch;
    --w2-legal-content-top: 0px;
    --w2-legal-font-size: 18px;
    --w2-legal-font-weight: 400;
}

.w2-protected-shell .lobby__background img {
    object-fit: cover;
    object-position: center;
}

.w2-protected-shell .lobby__header,
.w2-protected-shell .lobby__main,
.w2-protected-page .w2-footer__inner {
    width: var(--w2-frame-width);
    max-width: 100%;
    margin-inline: auto;
    padding-inline: var(--w2-frame-inset-left) var(--w2-frame-inset-right);
}

.w2-protected-shell .lobby__navigation {
    transform: none;
}

.w2-protected-shell .lobby__main {
    overflow-wrap: anywhere;
}

.w2-footer {
    flex-shrink: 0;
    color: #1F3524;
    font-family: "Nunito", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.w2-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 16px;
    box-sizing: border-box;
    min-height: 4.5rem;
    padding: 12px 5.26% 12px 6.64%;
}

.w2-footer__item {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.w2-footer__separator {
    flex-shrink: 0;
}

.w2-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}

.w2-footer a:hover,
.w2-footer a:focus-visible {
    text-decoration: underline;
}

.w2-footer a:focus-visible {
    outline: 2px solid #2C3D29;
    outline-offset: 5px;
}

@media (max-width: 40rem) {
    .w2-protected-page {
        --w2-frame-inset-left: 24px;
        --w2-frame-inset-right: 24px;
    }

    .w2-background--focus,
    .w2-background--content,
    .w2-background--dense {
        --review-stage-background-opacity: 0.25;
    }

    .w2-footer__inner {
        justify-content: flex-start;
        padding-right: 24px;
        padding-left: 24px;
    }
}

.lobby .w2-header-actions {
    align-items: flex-end;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

.lobby .w2-primary-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: inherit;
    min-width: 0;
}

.lobby .w2-header-language {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: inherit;
    min-height: 44px;
    white-space: nowrap;
}

.lobby .w2-primary-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-underline-offset: 4px;
}

.lobby .w2-primary-navigation a:hover {
    text-decoration: underline;
}

.lobby .w2-primary-navigation a[aria-current="page"] {
    color: #B3761E;
    font-weight: 600;
    text-decoration: none;
}

.w2-logout {
    margin: 2rem 0 0;
}

.w2-logout__button {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    text-underline-offset: 4px;
}

.w2-logout__button:hover {
    text-decoration: underline;
}

.w2-logout__button:focus-visible {
    outline: 2px solid #2C3D29;
    outline-offset: 5px;
}

.w2-protected-shell .w2-page-content {
    width: 100%;
    min-width: 0;
    color: #1F3524;
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

.w2-protected-shell .w2-page-content h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.25;
}

.w2-protected-shell .w2-page-content h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
}

.w2-protected-shell .w2-page-content__section {
    margin-block-start: 2rem;
}

.w2-skip-link:focus-visible,
.lobby .w2-page-content:focus-visible,
.lobby__main[tabindex="-1"]:focus-visible {
    outline: 2px solid #2C3D29;
    outline-offset: 5px;
}

.w2-skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    box-sizing: border-box;
    padding: 12px 16px;
    background: #FBFAF6;
    color: #1F3524;
    transform: translateY(-200%);
    overflow-wrap: anywhere;
}

.w2-skip-link:focus {
    transform: none;
}

@media (max-width: 40rem) {
    .lobby .w2-header-actions {
        margin-left: 0;
    }
}
