.test-page-nav {
    display: flex;
    gap: 8px;
}

.test-page-nav .nav-btn {
    min-height: 40px;
    text-decoration: none;
}

.test-shell {
    width: min(100%, 760px);
    margin: 0 auto;
}

.test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
}

.test-brand {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    text-transform: uppercase;
}

.test-kicker,
.test-label {
    color: var(--indicator-active);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.test-intro {
    padding: 42px 0 24px;
}

.test-intro h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1;
}

.test-intro p,
.test-card p {
    color: var(--text-muted);
}

.test-stack {
    display: grid;
    gap: 16px;
}

.test-card {
    margin: 0;
}

.test-card h2 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.test-control {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--border-lowkey);
    border-radius: 6px;
    background: var(--bg-canvas);
    color: var(--text-primary);
    font: inherit;
}

.test-control:focus {
    outline: 2px solid var(--indicator-active);
    outline-offset: 2px;
}

.test-action {
    min-height: 48px;
    margin-top: 14px;
}

.test-range {
    margin-top: 18px;
}

.test-checks {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.test-checks label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--text-muted);
}

.test-checks input {
    width: 20px;
    height: 20px;
    accent-color: var(--indicator-active);
}

.test-details {
    margin-top: 0;
    opacity: 1;
}

.test-details summary {
    min-height: 48px;
}

.test-details p {
    padding: 0 15px 15px;
    color: var(--text-muted);
}

.test-scroll-copy {
    display: grid;
    gap: 16px;
}

.test-scroll-copy p {
    color: var(--text-muted);
}

.test-footer {
    margin-top: 40px;
}

@media (max-width: 620px) {
    body {
        padding: 14px;
    }

    .test-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .test-page-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .test-page-nav .nav-btn {
        padding-inline: 8px;
    }

    .test-intro {
        padding-top: 24px;
    }

    #mainNavigation .test-page-nav {
        padding: 0 12px;
    }
}
