:root {
    --bio-bg: #eef3f8;
    --bio-card: rgba(255,255,255,0.94);
    --bio-card-soft: #f8fafc;
    --bio-border: rgba(15,23,42,0.12);
    --bio-text: #111827;
    --bio-muted: #5f6b7a;
    --bio-red: #c94848;
    --bio-gold: #b88a3d;
    --bio-navy: #101827;
    --shadow-main: 0 18px 45px rgba(15,23,42,0.08);
}

body.dark-mode {
    --bio-bg: #05070d;
    --bio-card: rgba(17,24,39,0.94);
    --bio-card-soft: #111827;
    --bio-border: rgba(255,255,255,0.10);
    --bio-text: #f3f6fb;
    --bio-muted: #aeb8c7;
    --bio-red: #ff6f6f;
    --bio-gold: #d8b56d;
    --bio-navy: #f3f6fb;
    --shadow-main: 0 18px 50px rgba(0,0,0,0.45);
}

body {
    background:
        radial-gradient(circle at top right, rgba(201,72,72,0.08), transparent 32rem),
        radial-gradient(circle at bottom left, rgba(184,138,61,0.10), transparent 34rem),
        linear-gradient(to bottom, #f7fafc, var(--bio-bg));
    color: var(--bio-text);
}

body.dark-mode {
    background:
        radial-gradient(circle at top right, rgba(255,111,111,0.18), transparent 32rem),
        radial-gradient(circle at bottom left, rgba(216,181,109,0.12), transparent 34rem),
        linear-gradient(to bottom, #05070d, #0b1020);
}

.peptide-reference {
    max-width: 1260px;
    margin: 0 auto;
    padding: 1.25rem;
}

.reference-logo {
    width: 320px;
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.reference-logo img {
    width: 100%;
    height: auto;
    display: none;
}

body:not(.dark-mode) .logo-light {
    display: block;
}

body.dark-mode .logo-dark {
    display: block;
}

.reference-hero,
.reference-section,
.reference-nav,
.vera-panel {
    background: var(--bio-card);
    border: 1px solid var(--bio-border);
    box-shadow: var(--shadow-main);
}

.reference-hero {
    border-radius: 30px;
    padding: clamp(1.5rem, 4vw, 3.75rem);
    position: relative;
    overflow: hidden;
}

.reference-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--bio-red);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .9rem 1.4rem;
    border-radius: 999px;
    background: rgba(65,105,168,0.08);
    border: 1px solid var(--bio-border);
    color: var(--bio-red);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .74rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.reference-hero h1 {
    margin: 0;
    color: var(--bio-navy);
    font-size: clamp(2.35rem, 8vw, 5.8rem);
    line-height: .92;
    letter-spacing: -0.07em;
}

.hero-subtitle,
.reference-section p,
.info-card p,
.protocol-row span,
.stack-card span,
.vera-panel p {
    color: var(--bio-muted);
    line-height: 1.7;
}

.hero-subtitle {
    max-width: 790px;
    margin-top: 1.2rem;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.identity-grid,
.info-grid,
.stack-grid {
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}

.identity-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
}

.info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.identity-card,
.info-card,
.protocol-row,
.stack-card {
    border: 1px solid var(--bio-border);
    background: var(--bio-card-soft);
    border-radius: 18px;
    padding: 1rem;
}

.identity-card span {
    display: block;
    color: var(--bio-muted);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    margin-bottom: .35rem;
}

.identity-card strong,
.info-card h3,
.protocol-row strong,
.stack-card strong {
    color: var(--bio-navy);
}

.reference-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.1rem;
    margin-top: 1.2rem;
}

.reference-nav {
    position: sticky;
    top: 1rem;
    align-self: start;
    border-radius: 24px;
    padding: 1rem;
}

.reference-nav h2 {
    margin: 0 0 .85rem;
    font-size: .85rem;
    color: var(--bio-navy);
    text-transform: uppercase;
    letter-spacing: .13em;
}

.reference-nav a {
    display: block;
    color: var(--bio-muted);
    text-decoration: none;
    padding: .72rem .8rem;
    border-radius: 14px;
    font-size: .92rem;
}

.reference-nav a:hover {
    background: var(--bio-card-soft);
    color: var(--bio-navy);
}

.reference-content {
    display: grid;
    gap: 1rem;
}

.reference-section,
.vera-panel {
    border-radius: 26px;
    padding: clamp(1.1rem, 3vw, 1.75rem);
}

.reference-section h2,
.vera-panel h2 {
    margin: 0 0 .8rem;
    color: var(--bio-navy);
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.protocol-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.vera-panel {
    border-color: rgba(184,138,61,0.32);
    background: linear-gradient(135deg, rgba(184,138,61,0.12), var(--bio-card));
}

.vera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.primary-btn,
.secondary-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .8rem 1.1rem;
    text-decoration: none;
    font-weight: 800;
    font-size: .92rem;
}

.primary-btn {
    background: var(--bio-navy);
    color: var(--bio-bg);
    border: 1px solid var(--bio-navy);
}

.secondary-btn {
    background: var(--bio-card);
    color: var(--bio-navy);
    border: 1px solid var(--bio-border);
}

.caution-box {
    margin-top: 1rem;
    border: 1px solid rgba(201,72,72,0.28);
    background: rgba(201,72,72,0.07);
    border-radius: 20px;
    padding: 1rem;
    color: var(--bio-muted);
    line-height: 1.65;
}

.breadcrumb {
    margin-bottom: 1rem;
    color: var(--bio-muted);
    font-size: .88rem;
}

.breadcrumb a {
    color: var(--bio-gold);
    text-decoration: none;
    font-weight: 700;
}

.theme-toggle-btn {
    width: 100%;
    margin-top: .75rem;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid var(--bio-border);
    background: var(--bio-card);
    color: var(--bio-text);
    font-weight: 800;
    font-size: .88rem;
    cursor: pointer;
    box-shadow: var(--shadow-main);
}

@media (max-width: 1050px) {
    .reference-layout {
        grid-template-columns: 1fr;
    }

    .reference-nav {
        position: relative;
        top: auto;
    }

    .identity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .peptide-reference {
        padding: .85rem;
    }

    .reference-hero,
    .reference-section,
    .vera-panel {
        border-radius: 22px;
    }

    .identity-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .vera-actions a {
        width: 100%;
    }

    .reference-logo {
        width: 300px;
    }
}
:root {
    --bio-bg: #eef3f8;
    --bio-card: rgba(255,255,255,0.94);
    --bio-card-soft: #f8fafc;
    --bio-border: rgba(15,23,42,0.12);
    --bio-text: #111827;
    --bio-muted: #5f6b7a;
    --bio-red: #c94848;
    --bio-gold: #b88a3d;
    --bio-navy: #101827;
    --shadow-main: 0 18px 45px rgba(15,23,42,0.08);
}

body.dark-mode {
    --bio-bg: #05070d;
    --bio-card: rgba(17,24,39,0.94);
    --bio-card-soft: #111827;
    --bio-border: rgba(255,255,255,0.10);
    --bio-text: #f3f6fb;
    --bio-muted: #aeb8c7;
    --bio-red: #ff6f6f;
    --bio-gold: #d8b56d;
    --bio-navy: #f3f6fb;
    --shadow-main: 0 18px 50px rgba(0,0,0,0.45);
}

body {
    background:
        radial-gradient(circle at top right, rgba(201,72,72,0.08), transparent 32rem),
        radial-gradient(circle at bottom left, rgba(184,138,61,0.10), transparent 34rem),
        linear-gradient(to bottom, #f7fafc, var(--bio-bg));
    color: var(--bio-text);
}

body.dark-mode {
    background:
        radial-gradient(circle at top right, rgba(255,111,111,0.18), transparent 32rem),
        radial-gradient(circle at bottom left, rgba(216,181,109,0.12), transparent 34rem),
        linear-gradient(to bottom, #05070d, #0b1020);
}

.vera-branding {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: -1.15rem 0 -.2rem;
    padding-left: 4.8rem;
    overflow: hidden;
    position: relative;
}

.vera-branding img {
    width: 100%;
    max-width: 620px;
    height: auto;
    display: none;
    pointer-events: none;
    user-select: none;
}

body:not(.dark-mode) .vera-light {
    display: block;
}

body.dark-mode .vera-dark {
    display: block;
}

@media (max-width: 900px) {

    .vera-branding {
        padding-left: 4rem;
        margin: -.95rem 0 -.15rem;
    }

    .vera-branding img {
        max-width: 520px;
    }

}

@media (max-width: 640px) {

    .vera-branding {
        padding-left: .65rem;
        margin: -.55rem 0 -.05rem;
    }

    .vera-branding img {
        max-width: 100%;
    }

}

body.dark-mode .vera-branding img {
    opacity: 0.82;
}

.peptide-reference {
    max-width: 1260px;
    margin: 0 auto;
    padding: 1.25rem;
}

.reference-logo {
    width: 320px;
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.reference-logo img {
    width: 100%;
    height: auto;
    display: none;
}

body:not(.dark-mode) .logo-light {
    display: block;
}

body.dark-mode .logo-dark {
    display: block;
}

.reference-hero,
.reference-section,
.reference-nav,
.vera-panel {
    background: var(--bio-card);
    border: 1px solid var(--bio-border);
    box-shadow: var(--shadow-main);
}

.reference-hero {
    border-radius: 30px;
    padding: clamp(1.5rem, 4vw, 3.75rem);
    position: relative;
    overflow: hidden;
}

.reference-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--bio-red);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .9rem 1.4rem;
    border-radius: 999px;
    background: rgba(65,105,168,0.08);
    border: 1px solid var(--bio-border);
    color: var(--bio-red);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .74rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.reference-hero h1 {
    margin: 0;
    color: var(--bio-navy);
    font-size: clamp(2.35rem, 8vw, 5.8rem);
    line-height: .92;
    letter-spacing: -0.07em;
}

.hero-subtitle,
.reference-section p,
.info-card p,
.protocol-row span,
.stack-card span,
.vera-panel p {
    color: var(--bio-muted);
    line-height: 1.7;
}

.hero-subtitle {
    max-width: 790px;
    margin-top: 1.2rem;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.identity-grid,
.info-grid,
.stack-grid {
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}

.identity-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
}

.info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.identity-card,
.info-card,
.protocol-row,
.stack-card {
    border: 1px solid var(--bio-border);
    background: var(--bio-card-soft);
    border-radius: 18px;
    padding: 1rem;
}

.identity-card span {
    display: block;
    color: var(--bio-muted);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    margin-bottom: .35rem;
}

.identity-card strong,
.info-card h3,
.protocol-row strong,
.stack-card strong {
    color: var(--bio-navy);
}

.reference-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.1rem;
    margin-top: 1.2rem;
}

.reference-nav {
    position: sticky;
    top: 1rem;
    align-self: start;
    border-radius: 24px;
    padding: 1rem;
}

.reference-nav h2 {
    margin: 0 0 .85rem;
    font-size: .85rem;
    color: var(--bio-navy);
    text-transform: uppercase;
    letter-spacing: .13em;
}

.reference-nav a {
    display: block;
    color: var(--bio-muted);
    text-decoration: none;
    padding: .72rem .8rem;
    border-radius: 14px;
    font-size: .92rem;
}

.reference-nav a:hover {
    background: var(--bio-card-soft);
    color: var(--bio-navy);
}

.reference-content {
    display: grid;
    gap: 1rem;
}

.reference-section,
.vera-panel {
    border-radius: 26px;
    padding: clamp(1.1rem, 3vw, 1.75rem);
}

.reference-section h2,
.vera-panel h2 {
    margin: 0 0 .8rem;
    color: var(--bio-navy);
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.035em;
}

.protocol-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.vera-panel {
    border-color: rgba(184,138,61,0.32);
    background: linear-gradient(135deg, rgba(184,138,61,0.12), var(--bio-card));
}

.vera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.primary-btn,
.secondary-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .8rem 1.1rem;
    text-decoration: none;
    font-weight: 800;
    font-size: .92rem;
}

.primary-btn {
    background: var(--bio-navy);
    color: var(--bio-bg);
    border: 1px solid var(--bio-navy);
}

.secondary-btn {
    background: var(--bio-card);
    color: var(--bio-navy);
    border: 1px solid var(--bio-border);
}

.caution-box {
    margin-top: 1rem;
    border: 1px solid rgba(201,72,72,0.28);
    background: rgba(201,72,72,0.07);
    border-radius: 20px;
    padding: 1rem;
    color: var(--bio-muted);
    line-height: 1.65;
}

.breadcrumb {
    margin-bottom: 1rem;
    color: var(--bio-muted);
    font-size: .88rem;
}

.breadcrumb a {
    color: var(--bio-gold);
    text-decoration: none;
    font-weight: 700;
}

.theme-toggle-btn {
    width: 100%;
    margin-top: .75rem;
    min-height: 46px;
    border-radius: 16px;
    border: 1px solid var(--bio-border);
    background: var(--bio-card);
    color: var(--bio-text);
    font-weight: 800;
    font-size: .88rem;
    cursor: pointer;
    box-shadow: var(--shadow-main);
}

@media (max-width: 900px) {
    .vera-branding {
        padding-left: 4.5rem;
        margin-top: .8rem;
    }

    .vera-branding img {
        max-width: 560px;
    }
}

@media (max-width: 1050px) {
    .reference-layout {
        grid-template-columns: 1fr;
    }

    .reference-nav {
        position: relative;
        top: auto;
    }

    .identity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stack-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .vera-branding {
        padding-left: 1rem;
        margin: .75rem 0 .5rem;
    }

    .vera-branding img {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .peptide-reference {
        padding: .85rem;
    }

    .reference-hero,
    .reference-section,
    .vera-panel {
        border-radius: 22px;
    }

    .identity-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .vera-actions a {
        width: 100%;
    }

    .reference-logo {
        width: 300px;
    }
}