/* SAHVERA page — builds on styles.css */
.nav-links a.active { color: var(--primary); }

/* Hero with globe */
.sv-hero {
    background: radial-gradient(1200px 600px at 75% 40%, #0a3a7a 0%, #04132b 60%, #020a1a 100%);
    color: #fff;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}
.sv-hero-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: center;
}
.sv-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: .75rem;
}
.sv-eyebrow-dark { color: var(--primary); }
.sv-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}
.sv-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    opacity: .92;
    margin-bottom: 2rem;
    max-width: 34rem;
}
.sv-counters {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.sv-counters div { display: flex; flex-direction: column; }
.sv-counters span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}
.sv-counters small {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .75;
    margin-top: .35rem;
}

.sv-globe-wrap { position: relative; text-align: center; }
#globe {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1 / 1;
    cursor: grab;
    touch-action: pan-y;
    filter: drop-shadow(0 0 40px rgba(0, 180, 216, .25));
}
#globe:active { cursor: grabbing; }
.sv-globe-label {
    position: absolute;
    left: 50%;
    bottom: 2.4rem;
    transform: translateX(-50%);
    background: rgba(2, 10, 26, .85);
    border: 1px solid rgba(0, 180, 216, .5);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.sv-globe-label.show { opacity: 1; }
.sv-globe-hint {
    font-size: .8rem;
    opacity: .6;
    margin-top: .25rem;
}

/* Site filter chips */
.sv-site-tabs {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin: -2rem 0 2.5rem;
}
.sv-chip {
    font: inherit;
    font-weight: 500;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
}
.sv-chip:hover { border-color: var(--primary); color: var(--primary); }
.sv-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Site cards */
.sv-site-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}
.sv-site {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border-top: 4px solid var(--border);
    transition: transform .3s, box-shadow .3s;
}
.sv-site:hover { transform: translateY(-4px); box-shadow: 0 8px 16px var(--shadow-lg); }
.sv-site.is-hidden { display: none; }
.sv-site.is-focus { border-top-color: var(--secondary); box-shadow: 0 8px 20px rgba(0, 180, 216, .3); }
.sv-site-head { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; }
.sv-site h3 { color: var(--primary); font-size: 1.25rem; line-height: 1.3; }
.sv-place { color: var(--text-light); font-size: .9rem; }
.sv-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--secondary);
    margin-top: .45rem;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, .2);
}
.sv-dot-hub { background: var(--primary); box-shadow: 0 0 0 4px rgba(0, 81, 165, .2); }
.sv-dot-new { background: #F5A524; box-shadow: 0 0 0 4px rgba(245, 165, 36, .25); }
.sv-tag {
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    padding: .25rem .6rem; border-radius: 999px;
    background: rgba(0, 180, 216, .12); color: #007a94; white-space: nowrap;
}
.sv-tag-hub { background: rgba(0, 81, 165, .12); color: var(--primary); }
.sv-tag-new { background: rgba(245, 165, 36, .18); color: #9a5b00; }

.sv-people { display: flex; flex-direction: column; gap: 1rem; }
.sv-person { display: flex; gap: 1rem; align-items: center; }
.sv-person strong { display: block; color: var(--text); }
.sv-person small { color: var(--text-light); line-height: 1.4; display: block; }
.sv-avatar {
    position: relative;
    flex: 0 0 72px;
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 1.25rem;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0, 180, 216, .35);
}
.sv-avatar img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 20%;
}
.sv-note { color: var(--text-light); }
.sv-fly {
    margin-top: auto;
    align-self: flex-start;
    font: inherit; font-weight: 600; font-size: .875rem;
    background: transparent; color: var(--primary);
    border: 1px solid rgba(0, 81, 165, .35);
    border-radius: 8px; padding: .5rem 1rem; cursor: pointer;
    transition: all .2s;
}
.sv-fly:hover { background: var(--primary); color: #fff; }
.sv-footnote { text-align: center; color: var(--text-light); font-size: .9rem; margin-top: 2rem; font-style: italic; }

/* CODE ICH */
.sv-code {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 3rem;
    align-items: center;
}
.sv-code h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.sv-code p { font-size: 1.1rem; margin-bottom: 1.25rem; }
.sv-code-list { list-style: none; margin-bottom: 1.75rem; }
.sv-code-list li { position: relative; padding: .4rem 0 .4rem 1.75rem; }
.sv-code-list li::before { content: "✓"; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }
.sv-code-diagram svg { width: 100%; height: auto; }
.sv-code-diagram text { font-family: 'Inter', sans-serif; }

@media (max-width: 900px) {
    .sv-hero-grid, .sv-code { grid-template-columns: 1fr; }
    .sv-hero h1 { font-size: 3rem; }
    .sv-site-grid { grid-template-columns: 1fr; }
    .sv-counters { gap: 1.75rem; }
}

/* Mobile nav (menu button already in styles.css; links shown when active) */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg);
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 6px var(--shadow);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-site, .sv-chip, .sv-fly { transition: none; }
}

.sv-also { font-size: .85rem; color: var(--text-light); line-height: 1.5; border-top: 1px solid var(--border); padding-top: .75rem; }
.sv-also strong { color: var(--text); }

.sv-also-stands {
    border-left: 3px solid var(--secondary);
    background: rgba(0, 180, 216, .08);
    padding: .75rem 1rem;
    margin: -.25rem 0 1.25rem;
    max-width: 34rem;
    font-size: .98rem;
    line-height: 1.55;
    border-radius: 0 8px 8px 0;
}
.sv-also-stands span { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600; color: var(--secondary); margin-right: .35rem; }

/* Future trials */
.sv-future-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.sv-future-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 6px var(--shadow); padding: 2rem; border-top: 4px solid var(--primary); }
.sv-future-trial { border-top-color: #F5A524; }
.sv-future-card h3 { color: var(--primary); font-size: 1.5rem; margin-bottom: .5rem; line-height: 1.3; }
.sv-trial-name { font-weight: 600; margin-bottom: .75rem; }
.sv-future-card p { margin-bottom: 1rem; }
.sv-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; }
.sv-chips li { font-size: .8rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; background: rgba(0,180,216,.12); color: #007a94; }
.sv-future-trial .sv-chips li { background: rgba(245,165,36,.18); color: #9a5b00; }
@media (max-width: 900px) { .sv-future-grid { grid-template-columns: 1fr; } }

.sv-code { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .sv-code { grid-template-columns: 1fr; } }

.sv-venn-legend { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; font-size: .92rem; line-height: 1.45; }
.sv-venn-legend li { display: block; position: relative; padding-left: 1.5rem; }
.sv-sw { position: absolute; left: 0; top: .3rem; width: 14px; height: 14px; border-radius: 50%; }
.sv-sw-a { background: linear-gradient(135deg, #0051A5, #00B4D8); }
.sv-sw-b { background: #2BA84A; }
.sv-sw-c { background: #E4572E; }
