
/*
 * Rules that exist because the page sends style-src 'self'. The theme's markup carried these
 * as style attributes, which the browser refuses, so they live here where they are allowed —
 * and where they can be found again.
 */

/* The notification dropdown scrolls rather than growing without limit. */
.notification-scroll {
    max-height: 300px;
}

/* Decoration behind the customizer's heading. */
.customizer-user-bg {
    background-image: url("/images/user-bg-pattern.svg");
}

/* Scope badges on a grant row wrap rather than widening the table until the
   revoke button sits behind a horizontal scroll. */
.grant-scopes {
    max-width: 28rem;
    white-space: normal;
}

.grant-scopes .badge {
    margin: 0.0625rem 0.125rem 0.0625rem 0;
}

/* The pre-session screens (access denied, an incomplete sign-in, the error page)
   render without the admin shell, so they get their own centred card treatment
   rather than a full-bleed band of card across the viewport. */
.page-plain {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background-color: var(--bs-tertiary-bg);
}

.page-plain-inner {
    width: 100%;
    max-width: 34rem;
}

.page-plain-brand {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* The public landing page. Its own shell rather than the admin one: a sidebar and a
   user menu describe a session the visitor does not have yet. */
.page-public {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bs-body-bg);
}

.page-public-header {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.page-public-main {
    flex: 1 0 auto;
}

.page-public-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
}

.page-public-hero {
    padding: 4.5rem 0 3.5rem;
}

.page-public-title {
    margin-bottom: 1rem;
    font-size: calc(1.5rem + 1.2vw);
    font-weight: 700;
}

.page-public-lede {
    margin-bottom: 2rem;
    color: var(--bs-secondary-color);
    font-size: 1.0625rem;
}

.page-public-note {
    margin-top: 1.5rem;
    color: var(--bs-secondary-color);
    font-size: 0.8125rem;
}

.page-public-cards {
    margin-top: 3.5rem;
}

/*
    The theme gives the heading bar a 70px min-height and no vertical padding at all, so the
    space above its contents is whatever the min-height happens to leave over once they are
    centred. That works only while a heading stays short. Add a back link and a description and
    the contents pass 70px, the slack runs out, and the first line ends up against the topbar —
    the fuller the heading, the less room it gets, which is backwards.

    Real padding instead, so the space is the same whatever the heading holds.
*/
.page-title-head {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
