#loginPageReleaseNotes {
    width: 100%;
    max-width: 493px;
}

.loginNewsTitle {
    margin: 0 0 16px;
    text-align: center;
    font-size: var(--font-size-extralarge);
    font-weight: 600;
    color: var(--color-white);
}

/* An expanded note takes the whole panel. The other cards fade out first and
   then fold away, and on the way back they make room before fading in. */
.noteSlot {
    transition: opacity 200ms ease, grid-template-rows 200ms ease 200ms, visibility 0s 400ms;
}

.noteSlot.open {
    transition: grid-template-rows 200ms ease, opacity 200ms ease 200ms, visibility 0s;
}

.noteCard {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1.5px solid var(--note-accent, var(--color-medium));
    border-radius: 16px;
    background: var(--color-admin-login-panel);
    transition: translate 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.noteSlot:last-child .noteCard {
    margin-bottom: 0;
}

.noteHeader {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    color: var(--color-white);
    cursor: pointer;
}

.noteHeader:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: -4px;
    border-radius: 16px;
}

.noteText {
    flex: 1;
    min-width: 0;
}

.noteHeader .noteTitle {
    display: block;
    font-size: var(--font-size-large);
    font-weight: 700;
    color: var(--color-white);
}

.noteHeader .noteDescription {
    display: block;
    margin-top: 8px;
    font-size: var(--font-size-small);
}

/* Chevron and close icon share one spot and swap with a turn */
.noteIcons {
    display: grid;
    flex-shrink: 0;
    margin: -2px -6px 0 0;
    font-size: 32px;
}

.noteIcons > .dsIcon {
    grid-area: 1 / 1;
    transition: transform 200ms ease, opacity 200ms ease;
}

.noteIconClose {
    opacity: 0;
    transform: rotate(-90deg);
}

.noteCard.expanded .noteIconOpen {
    opacity: 0;
    transform: rotate(180deg);
}

.noteCard.expanded .noteIconClose {
    opacity: 1;
    transform: none;
}

/* The body waits until the other cards have faded and folded (400ms). Opening
   it sooner makes the panel taller than the card, which grows for a moment. */
#noteList .noteCard.expanded .noteBodyWrap.open {
    transition-delay: 400ms;
}

.noteCard.expanded .noteHeader {
    border-bottom: 1.5px solid var(--note-accent, var(--color-medium));
}

/* Light body with dark text, for readable contrast on long content */
.noteBody {
    max-height: 418px;
    overflow-y: auto;
    padding: 20px 12px 12px 24px;
    background: var(--color-admin-login-surface);
    color: var(--color-primary);
    text-align: left;
}

/* Chrome lets keyboard users focus a scrolling box. The card clips anything
   outside it, so the ring goes inside. */
.noteBody:focus-visible {
    outline: 2px solid var(--color-tertiary);
    outline-offset: -2px;
}

.noteBody::-webkit-scrollbar {
    width: 4px;
}

.noteBody::-webkit-scrollbar-track {
    border-radius: 6px;
    background: rgb(203 213 225 / 40%);
}

.noteBody::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: #64748b;
}

/* Chrome 121+ drops the ::-webkit-scrollbar styles above once these are set */
@supports not selector(::-webkit-scrollbar) {
    .noteBody {
        scrollbar-width: thin;
        scrollbar-color: #64748b rgb(203 213 225 / 40%);
    }
}

.noteBody h1,
.noteBody h2,
.noteBody h3,
.noteBody p,
.noteBody li {
    color: var(--color-primary);
}

.noteBody h1,
.noteBody h2,
.noteBody h3 {
    font-size: var(--font-size-medium);
    font-weight: 700;
}

.noteBody img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-primary);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
    .noteCard:not(.expanded):hover {
        translate: 0 -2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .noteSlot,
    .noteSlot.open,
    .noteIcons > .dsIcon {
        transition: none;
    }
}
