/* Dark theme and security rows on top of /info/style.css (same look as the release radar). */
:root[data-theme=dark]{color-scheme:dark;--paper:#111613;--ink:#e6eee6;--muted:#9ca99e;--line:#313c34;--panel:#191f1b;--green:#a8e063;--green-soft:#283a2b;--coral:#f0786d;--coral-soft:#392522;--yellow:#edbb63}
:root[data-theme=dark] body{background-image:radial-gradient(ellipse at 10% 0%,#223126 0,transparent 38rem)}
:root[data-theme=dark] .topbar{background:rgba(17,22,19,.88)}
:root[data-theme=dark] .brand-mark{width:29px;height:29px;border-radius:6px;color:#172014;background:var(--green);font-size:14px;font-weight:600}
:root[data-theme=dark] .sync-box{background:rgba(25,31,27,.78)}
:root[data-theme=dark] .version-row+.version-row{border-top-color:var(--line)}
:root[data-theme=dark] .loading-state{border-color:var(--line)}

.theme-toggle{display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--panel);font-size:17px;cursor:pointer}
.theme-toggle:hover{border-color:var(--green);color:var(--green)}
.theme-toggle:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.security-dot,.version-row.security .version-label i{background:var(--yellow)}
.version-row.security .version-value{font-size:15px}
.advisory-title{margin:5px 0 0;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.release-card[data-project=postgresql] .project-symbol{color:#2d5f9c;background:#e1ecf8}
.release-card[data-project=node] .project-symbol{color:#3f7a2c;background:#e6f2df}
.release-card[data-project=nginx] .project-symbol{color:#1c7a4a;background:#dff2e7}
.release-card[data-project=php] .project-symbol{color:#5c45a0;background:#ebe5f7}
:root[data-theme=dark] .release-card[data-project=postgresql] .project-symbol{color:#abc9ef;background:#253344}
:root[data-theme=dark] .release-card[data-project=node] .project-symbol{color:#b6e39b;background:#27381f}
:root[data-theme=dark] .release-card[data-project=nginx] .project-symbol{color:#9be3bb;background:#1f3828}
:root[data-theme=dark] .release-card[data-project=php] .project-symbol{color:#c8b8ee;background:#302a3c}
.stale-note{color:var(--coral)!important}
.cve-list{margin-top:8px;font-size:11px}
.cve-list summary{cursor:pointer;color:var(--green);font-weight:600}
.cve-item{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-top:6px;line-height:1.45;overflow-wrap:anywhere}
.cve-item strong{font-family:var(--mono);font-weight:600}
.release-card[data-project=docker] .project-symbol{color:#1c6aa8;background:#dfeefa}
.release-card[data-project=python] .project-symbol{color:#8a6a00;background:#faf0cd}
.release-card[data-project=alpine] .project-symbol{color:#1e5a8a;background:#e0ecf6}
.release-card[data-project=openssl] .project-symbol{color:#9a2f1c;background:#fbe9e4}
.release-card[data-project=openssh] .project-symbol{color:#3d5a3a;background:#e5efe3}
.release-card[data-project=certbot] .project-symbol{color:#8a4a00;background:#fbeed9}
:root[data-theme=dark] .release-card[data-project=docker] .project-symbol{color:#9fcdf2;background:#1f3347}
:root[data-theme=dark] .release-card[data-project=python] .project-symbol{color:#f2d98a;background:#3a3220}
:root[data-theme=dark] .release-card[data-project=alpine] .project-symbol{color:#a9cbe8;background:#22344a}
:root[data-theme=dark] .release-card[data-project=openssl] .project-symbol{color:#f0a89b;background:#3d2522}
:root[data-theme=dark] .release-card[data-project=openssh] .project-symbol{color:#b8dcb3;background:#26382a}
:root[data-theme=dark] .release-card[data-project=certbot] .project-symbol{color:#f2c590;background:#3a2c1b}
@media(min-width:861px){.release-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.topbar{padding:0 18px}}


/* Windows radar: button switch between the versions of one card */
.variant-switch{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:12px 18px;border-bottom:1px solid var(--line)}
.variant-switch button{padding:5px 12px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.variant-switch button:hover{border-color:var(--green);color:var(--green)}
.variant-switch button[aria-pressed="true"]{border-color:var(--green);background:var(--green);color:#fff}
.variant-switch button:focus-visible{outline:3px solid #ffd166;outline-offset:2px}
