/*
    Self-contained styling for the v4 compatibility demos.

    Deliberately NOT the site's Tailwind build: these pages exist to prove that
    unmodified v4 markup runs on v5, so they must not acquire a dependency on
    anything a customer copying the page would not have. It also keeps them out
    of the checked-in-Tailwind trap, where a class that was never compiled into
    the shipped stylesheet silently renders unstyled.
*/
body {
    margin: 0;
    padding: 0;
    background: #f8fafc;
    color: #0f172a;
    font: 15px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
}

.content {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

h1, h2 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}

h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

p {
    color: #475569;
}

code {
    background: #e2e8f0;
    border-radius: 4px;
    padding: 1px 5px;
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 13px;
}

.panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    margin: 20px 0;
}

.note {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
    color: #155e75;
}

.backlink {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 14px;
    color: #0891b2;
    text-decoration: none;
}

.backlink:hover {
    text-decoration: underline;
}

select {
    width: 100%;
    min-height: 120px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px;
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 13px;
}

.demo-index {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-index li {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.demo-index li:last-child {
    border-bottom: 0;
}

.demo-index a {
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
}

.demo-index a:hover {
    color: #0891b2;
}

.demo-index span {
    display: block;
    color: #64748b;
    font-size: 13px;
}
