/* Placeholder and page-notice states. */

html, .placeholder-page {
    height: 100%;
}

/* Placeholder page */
.placeholder-page {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.placeholder-page > header, .placeholder-page > footer {
    flex: 0 0 auto;
}

.page-placeholder {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: var(--outer-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-placeholder-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min( 100%, var(--page-container) );
    max-height: 100%;
    object-fit: contain;
}

/* Page notice */
.page-notice {
    position: fixed;
    inset: 20lvh 0 auto;
    width: min(600px, calc(100% - (var(--outer-padding) * 2)));
    max-width: none;
    margin: 0 auto;
    background: transparent;
}

.page-notice .button:focus-visible {
    outline: none;
    box-shadow: none;
}

.page-notice::backdrop {
    height: 100lvh;
    background: rgba(66, 0, 99, var(--a-2xl));
    backdrop-filter: blur(2px);
}

.page-notice-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-l);
    text-align: center;
}

.page-notice-text {
    max-width: 40ch;
    text-align: left;
}

.page-notice:focus {
    outline: none;
}
