/* Showcase framing stays separate from the original visual identity. */
.demo-banner {
    background: #1b2a39;
    border-bottom: 1px solid var(--line);
    color: #e6dfd2;
    font-size: .78rem;
    line-height: 1.6;
}

.demo-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding-block: 9px;
}

.demo-banner strong {
    color: #f2c07c;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.demo-banner a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.demo-information {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: #bfc8d2;
    background: #101a27;
}

.demo-information h2 {
    margin: 0 0 9px;
    font-size: 1.1rem;
    color: var(--cream);
}

.demo-information p {
    max-width: 850px;
    margin: 0;
    line-height: 1.7;
    font-size: .875rem;
}

.demo-dialog {
    max-width: min(560px, calc(100% - 32px));
    padding: clamp(22px, 5vw, 36px);
    color: var(--cream);
    background: var(--bg-soft);
    border: 1px solid #627080;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.demo-dialog::backdrop {
    background: rgba(5, 10, 18, .75);
}

.demo-dialog h2 {
    margin: 16px 0;
    font-size: 1.9rem;
}

.demo-dialog p {
    margin: 0 0 26px;
    color: #d0d6dd;
    line-height: 1.75;
}

:focus-visible {
    outline: 3px solid #f2c07c;
    outline-offset: 5px;
}

.paper-section :focus-visible {
    outline-color: #94501c;
}

[id] {
    scroll-margin-top: 94px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    left: 16px;
    top: 12px;
    padding: 12px 18px;
    background: var(--paper);
    color: var(--ink);
    border-radius: 8px;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.nav-links [aria-current="page"] {
    color: #f2c07c;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Long French headings must scale with the available phone width, not a 2rem floor. */
@media (max-width: 640px) {
    .archive-hero h1 {
        font-size: clamp(1.4rem, 7vw, 3rem);
        letter-spacing: 0;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .nav { gap: 12px; }
}
