.portal-minimal .auth-story .login-announcements { min-width:0; width:100%; display:grid; gap:1.5rem; }
.login-announcement-heading { display:flex; justify-content:space-between; gap:1rem; font-size:.8125rem; font-weight:500; }
.portal-minimal .auth-story .login-announcement-slide h2 {
    margin:0 0 1rem; font-size:clamp(1.75rem,3vw,2.75rem); line-height:1.15;
    letter-spacing:-.035em; overflow-wrap:anywhere; text-wrap:balance; max-width:none;
}
.portal-minimal .auth-story .login-announcement-slide p { font-size:1rem; line-height:1.65; white-space:pre-line; overflow-wrap:anywhere; }
.login-announcement-meta { display:flex; flex-wrap:wrap; gap:.5rem 1rem; margin-top:1.25rem; font-size:.75rem; opacity:.8; }
.login-announcement-controls { display:flex; gap:.5rem; }
.login-announcement-controls button {
    display:inline-flex; align-items:center; justify-content:center; width:2.75rem; height:2.75rem;
    border:0; border-radius:.5rem; background:transparent; color:inherit;
    cursor:pointer; transition:background-color 160ms ease;
}
.login-announcement-controls button:hover { background:color-mix(in srgb,currentColor 10%,transparent); }
.login-announcement-controls button:focus-visible,.login-announcement-expand:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.login-announcement-controls iconify-icon { font-size:1.125rem; }
/* Invisible full-content slides share the grid cell to reserve the largest height
   at the current width, including the expanded reading state. */
.login-announcement-stage { display:grid; grid-template-areas:"slide"; min-width:0; }
.login-announcement-stage > .login-announcement-slide { grid-area:slide; min-width:0; align-self:start; }
.login-announcement-measure { visibility:hidden; pointer-events:none; user-select:none; }
.portal-minimal .auth-story .login-announcement-body {
    max-height:min(16rem,40svh); overflow:auto; scrollbar-gutter:stable;
    margin:0; padding-inline-end:.5rem;
}
.portal-minimal .auth-story .login-announcement-expand {
    display:block; width:fit-content; height:auto!important; min-height:32px!important;
    margin-top:.5rem; padding:4px 0!important; border:0; border-radius:0; background:transparent;
    color:inherit; font-size:.875rem; line-height:1.5; font-weight:600; cursor:pointer;
    text-decoration:underline; text-underline-offset:.2em; box-shadow:none;
}
.announcement-slide-enter-active,.announcement-slide-leave-active {
    transition:opacity 240ms ease,transform 240ms ease;
}
.announcement-slide-enter-from { opacity:0; transform:translateY(10px); }
.announcement-slide-leave-to { opacity:0; transform:translateY(-8px); }
.announcement-slide-leave-active { pointer-events:none; }
.has-custom-login-background .portal-minimal .auth-story .login-announcements { color:#fff; }
@media(max-width:800px) {
    .portal-minimal .auth-story:has(.login-announcements) { display:flex; flex-direction:column; gap:1.25rem; width:100%; }
    .portal-minimal .auth-story:has(.login-announcements) .auth-story-footer { display:none; }
    .portal-minimal .auth-story .login-announcements { gap:1rem; }
    .portal-minimal .auth-story .login-announcement-slide h2 { font-size:1.625rem; }
}
@media(prefers-reduced-motion:reduce) {
    .login-announcement-controls button,.announcement-slide-enter-active,.announcement-slide-leave-active { transition:none; transform:none; }
}

/* Keep the login panel in view while the announcement column scrolls. The
   document is the scroll container; short screens can scroll inside the form. */
.portal-minimal .auth-layout {
    overflow:visible;
    --portal-login-offset:clamp(24px,calc(50dvh - 240px),160px);
}
.has-custom-login-background .portal-minimal .auth-layout {
    background-attachment:fixed!important;
}
.portal-minimal .auth-layout > .login-card {
    position:sticky;
    top:var(--portal-login-offset);
    align-self:start;
    margin-block:0;
    max-height:calc(100dvh - var(--portal-login-offset) - 24px);
    overflow-y:auto;
    overscroll-behavior-y:contain;
    scrollbar-gutter:stable;
}
@media(max-width:800px) {
    .portal-minimal .auth-layout { --portal-login-offset:16px; }
    .portal-minimal .auth-layout > .login-card {
        max-height:calc(100dvh - 32px);
        margin-inline:auto;
    }
}
