.mercurius-demo {
    --demo-accent: #175c9e;
    box-sizing: border-box;
    min-height: 100vh;
    min-height: 100svh;
    background: #fff;
    color: #101c30;
    font-family: "IBM Plex Sans", sans-serif;
}
.mercurius-demo *, .mercurius-demo *::before, .mercurius-demo *::after { box-sizing: border-box; }
.demo-content { display: grid; grid-template-columns: minmax(340px, 38%) 1fr; min-height: 100svh; }
.demo-sidebar { display: flex; flex-direction: column; padding: clamp(36px, 5vw, 80px); background: #f6f8fb; }
.demo-brand { display: block; width: fit-content; margin-bottom: clamp(48px, 8vh, 90px); }
.demo-logo { display: block; width: 190px; max-width: 100%; height: auto; }
.mercurius-demo h1 { margin: 0 0 22px; color: #101c30; font: 600 clamp(36px, 3.4vw, 52px)/1.12 "IBM Plex Sans", sans-serif; letter-spacing: -.03em; }
.demo-intro { margin: 0; max-width: 29ch; color: #586981; font-size: 22px; line-height: 1.5; }
.demo-notices { display: grid; gap: 30px; margin: 44px 0 56px; padding-top: 32px; border-top: 1px solid #dde4ed; }
.demo-notice { display: flex; align-items: flex-start; gap: 20px; }
.demo-notice-icon { flex: 0 0 32px; color: #1479d8; }
.demo-notice-icon svg { width: 32px; height: 32px; }
.demo-notice p { margin: 0; color: #586981; font-size: 16px; line-height: 1.5; }
.demo-notice strong { display: block; color: #18283f; font-weight: 600; }
.demo-notice p span { display: block; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: auto; padding-top: 24px; border-top: 1px solid #dde4ed; }
.demo-contact { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #465b78; font-size: 14px; font-weight: 600; text-decoration: none; }
.demo-contact svg { width: 20px; height: 20px; flex-shrink: 0; }
.demo-contact:hover { color: var(--demo-accent); text-decoration: underline; text-underline-offset: 4px; }
.demo-footer { margin-top: 20px; color: #586981; font-size: 13px; }
.demo-footer p { margin: 0; }
.demo-footer a { color: inherit; text-decoration: none; }
.demo-footer a:hover { text-decoration: underline; }
.demo-areas { background: #e8ecf1; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 64px clamp(32px, 5vw, 80px); }
.demo-area { isolation: isolate; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 30%); align-items: center; gap: 24px; padding: 32px 40px; border: 1px solid #dfe5ee; border-radius: 12px; background: #fff; }
.demo-area-copy { min-width: 0; }
.demo-area-illustration { display: block; width: 100%; height: auto; max-height: 220px; object-fit: contain; filter: brightness(1.04) contrast(1.08); mix-blend-mode: multiply; }
.demo-area-illustration--totem { max-height: 230px; }
.mercurius-demo h2 { margin: 0 0 12px; color: #101c30; font: 600 clamp(25px, 2.2vw, 32px)/1.2 "IBM Plex Sans", sans-serif; letter-spacing: -.025em; }
.demo-area p { max-width: 56ch; margin: 0 0 26px; color: #586981; font-size: 18px; line-height: 1.5; }
.demo-login { margin: 0; }
.demo-card-submit { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.demo-area-arrow { display: inline-flex; color: var(--demo-accent); }
.demo-area:has(.demo-card-submit:hover) { border-color: var(--demo-accent); background: #f5f9fe; }
.demo-area:has(.demo-card-submit:active) { background: #e8f2fc; }
.mercurius-demo :is(a, button):focus-visible { outline: 3px solid #175c9e; outline-offset: 4px; }
.mercurius-demo ::selection { background: #dcecff; color: #101c30; }
@media (max-width: 1050px) and (min-width: 801px) {
    .demo-sidebar { padding: 40px 28px; }
    .demo-areas { padding: 40px 28px; }
    .demo-area { padding: 28px; }
}
@media (max-width: 800px) {
    .demo-content { grid-template-columns: 1fr; }
    .demo-sidebar { padding: 32px 24px; }
    .demo-brand { margin-bottom: 36px; }
    .demo-intro { max-width: 45ch; font-size: 19px; }
    .demo-notices { margin: 28px 0; padding-top: 24px; gap: 20px; }
    .demo-areas { padding: 32px 24px 48px; gap: 20px; }
    .demo-area { padding: 26px; }
    .demo-area p { font-size: 17px; }
}
@media (max-width: 380px) {
    .demo-area { padding: 22px; }
}

@media (min-width: 801px) and (max-width: 1150px) {
    .demo-area { grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; padding: 26px; }
}
@media (max-width: 520px) {
    .demo-area { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .demo-area-illustration { display: none; }
}

@media (min-width: 801px) {
    .demo-area { min-height: 340px; }
}
@media (min-width: 1151px) {
    .demo-login { width: 78%; margin-inline: auto; }
}

.demo-sidebar { background: #193f6a; }
.demo-sidebar h1, .demo-sidebar .demo-notice strong { color: #fff; }
.demo-sidebar .demo-intro, .demo-sidebar .demo-notice p, .demo-sidebar .demo-footer { color: #cbdced; }
.demo-sidebar .demo-notice-icon { color: #72c6ff; }
.demo-sidebar .demo-notices, .demo-sidebar .demo-actions { border-color: #426184; }
.demo-sidebar .demo-contact { color: #e0edfa; }
.demo-sidebar .demo-contact:hover { color: #fff; }
.demo-sidebar a:focus-visible { outline-color: #8ad1ff; }

/* Keep the navy panel readable when shared authentication typography loads. */
body .mercurius-demo .demo-sidebar h1 { color: #fff; }
body .mercurius-demo .demo-sidebar .demo-footer,
body .mercurius-demo .demo-sidebar .demo-footer p,
body .mercurius-demo .demo-sidebar .demo-footer a { color: #cbdced; }
