/* ── FONTS ─────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;1,8..60,300;1,8..60,400&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap");

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --bg: #f8f7f4;
    --bg2: #f0ede8;
    --bg3: #e8e4de;
    --bg-dark: #0d1117;
    --bg-dark2: #161b22;
    --bg-dark3: #1c2128;
    --border: #e2ddd7;
    --border2: #ccc8c2;
    --border-dark: #30363d;
    --border-dark2: #3a424d;
    --text: #1a1a1a;
    --text-mid: #555;
    --text-dim: #999;
    --text-light: #c9d1d9;
    --text-light-mid: #8b949e;
    --text-light-dim: #484f58;
    --accent: #0969da;
    --accent-light: #1f6feb;
    --accent2: #1a7f37;
    --gold: #9a6700;
    --gold-bg: #fff8c5;
    --lbl: #003366;
    --lbl-light: #0a4a8c;
    --mono: "IBM Plex Mono", monospace;
    --sans: "IBM Plex Sans", sans-serif;
    --serif: "Source Serif 4", Georgia, serif;
}

/* ── RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
}
code {
    font-family: var(--mono);
}

/* ── NAV ────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(248, 247, 244, 0.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-brand-logo {
    height: 32px;
    width: auto;
    display: block;
}
.nav-site-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.nav-links a {
    font-size: 14px;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.12s;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}
.nav-links a.active {
    font-weight: 500;
    border-bottom: none;
    box-shadow: inset 0 -2px 0 var(--lbl);
}
a[target="_blank"],
a[href^="http://"]:not([href^="http://bqskit.lbl.gov"]),
a[href^="https://"]:not([href^="https://bqskit.lbl.gov"]) {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' stroke-width='1.5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 3L15 3M21 3L12 12M21 3V9' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 13V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3H11' stroke='black' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' stroke-width='1.5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 3L15 3M21 3L12 12M21 3V9' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 13V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3H11' stroke='black' stroke-linecap='round'/%3E%3C/svg%3E")
        no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.nav-cta {
    font-family: var(--mono);
    font-size: 12px;
    padding: 7px 16px;
    background: var(--lbl);
    color: #fff !important;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.12s;
}
.nav-cta:hover {
    background: var(--lbl-light) !important;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    padding: 3.5rem 2.5rem 2rem;
    color: var(--text-light-mid);
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-brand-name {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}
.footer-brand-desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-light-mid);
    max-width: 260px;
    margin-bottom: 1rem;
}
.footer-license {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-light-dim);
}
.footer-col-title {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-light-mid);
    text-decoration: none;
    transition: color 0.1s;
}
.footer-links a:hover {
    color: var(--text-light);
}
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.footer-bottom-text {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-light-dim);
}
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.footer-lbl-logo img {
    height: 32px;
    width: auto;
    opacity: 0.85;
    display: block;
}
.footer-lbl-logo:hover img {
    opacity: 1;
}

/* ── SHARED SECTION PRIMITIVES ──────────────────────────── */
.section-wrap {
    padding: 5rem 2.5rem;
}
.section-wrap.dark {
    background: var(--bg-dark);
    color: var(--text-light);
}
.section-wrap.tinted {
    background: var(--bg2);
}
.section-wrap.white {
    background: #fff;
}
.section-wrap.ruled {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}
.dark .eyebrow {
    color: var(--text-light-dim);
}

h2.sh {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.dark h2.sh {
    color: var(--text-light);
}

.sdesc {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-mid);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.dark .sdesc {
    color: var(--text-light-mid);
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--mono);
    font-size: 13px;
    padding: 11px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.12s;
}
.btn-primary {
    background: var(--lbl);
    color: #fff;
}
.btn-primary:hover {
    background: var(--lbl-light);
    color: #fff;
}
.btn-ghost {
    border: 1px solid var(--border2);
    color: var(--text);
}
.btn-ghost:hover {
    border-color: var(--lbl);
    color: var(--lbl);
}
.btn-ghost-dark {
    border: 1px solid var(--border-dark2);
    color: var(--text-light);
}
.btn-ghost-dark:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

/* ── TRUST BAR ──────────────────────────────────────────── */
.trust-bar {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2.5rem;
}
.trust-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.trust-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
}
.trust-items {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.trust-item {
    font-size: 13px;
    color: var(--text-mid);
}
.trust-item strong {
    color: var(--text);
    font-weight: 600;
}
.trust-sep {
    color: var(--border2);
}

/* ── CARDS (generic) ────────────────────────────────────── */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.75rem;
    transition:
        box-shadow 0.15s,
        border-color 0.15s;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: var(--border2);
}

/* ── PILL / BADGE ───────────────────────────────────────── */
.pill {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
}
.pill-award {
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid #dba512;
}
.pill-arxiv {
    background: #f0f6ff;
    color: var(--accent);
    border: 1px solid #b3d0f5;
}
.pill-new {
    background: #f0faf3;
    color: var(--accent2);
    border: 1px solid #b3e5c0;
}

.tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 0.9rem;
}
.tag-c {
    background: #dbeafe;
    color: #1d4ed8;
}
.tag-s {
    background: #f3e8ff;
    color: #7e22ce;
}
.tag-f {
    background: #fef9c3;
    color: #a16207;
}
.tag-a {
    background: #dcfce7;
    color: #15803d;
}
.tag-r {
    background: #fee2e2;
    color: #b91c1c;
}

/* ── CODE BLOCK ─────────────────────────────────────────── */
.code-card {
    background: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.code-panel {
    display: none;
    padding: 1.25rem 1.5rem;
}
.code-panel.active {
    display: block;
}
.code-panel pre {
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.9;
    color: var(--text-light);
    overflow-x: auto;
}
.ck {
    color: #ff7b72;
}
.cf {
    color: #79c0ff;
}
.cs {
    color: #a5d6ff;
}
.cc {
    color: var(--text-light-dim);
    font-style: italic;
}
.cn {
    color: #ffa657;
}
.cm {
    color: #7ee787;
}
.code-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-dark);
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-light-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.code-footer a {
    color: var(--accent-light);
    text-decoration: none;
}
.code-footer a:hover {
    text-decoration: underline;
}

/* ── RESEARCH GRID (research areas) ─────────────────────── */
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: transparent;
    border: none;
}
.research-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
}
.dg-num {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}
.dg-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}
.dg-desc {
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.dg-papers {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.dg-papers a {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.1s;
    line-height: 1.4;
}
.dg-papers a::before {
    content: "→ ";
}
.dg-papers a:hover {
    color: var(--lbl);
}
.dg-award {
    color: var(--gold) !important;
}

/* ── PUB ROW ────────────────────────────────────────────── */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.pub-row {
    background: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: background 0.1s;
}
.pub-row:hover {
    background: #fafaf8;
}
.pub-row.award {
    border-left: 3px solid var(--gold);
}
.pub-info {
    flex: 1;
}
.pub-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}
.pub-title:hover {
    color: var(--accent);
}
.pub-authors {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 0.3rem;
}
.pub-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.pub-venue {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-mid);
}
.pub-arxiv-btn {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--accent);
    background: #f0f6ff;
    border: 1px solid #b3d0f5;
    border-radius: 3px;
    padding: 1px 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s;
}
.pub-arxiv-btn:hover {
    background: #daeaff;
}

/* ── PUB FILTERS ────────────────────────────────────────── */
.pub-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.pf {
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-mid);
    cursor: pointer;
    background: #fff;
    transition: all 0.12s;
}
.pf.active {
    background: var(--lbl);
    border-color: var(--lbl);
    color: #fff;
}
.pf:hover:not(.active) {
    border-color: #aaa;
}

/* ── STEP ROW ───────────────────────────────────────────── */

/* ── TEAM GRID ──────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.team-card {
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    transition: box-shadow 0.12s;
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.team-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--lbl);
    color: #fff;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.team-avatar.postdoc {
    background: #6366f1;
}
.team-avatar.grad {
    background: #0891b2;
}
.team-avatar.undergrad {
    background: #059669;
}
.team-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.2rem;
}
.team-role {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
    line-height: 1.4;
}
.team-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-dim);
    margin-top: auto;
    padding-top: 0.5rem;
}
.ts-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ts-staff   { background: var(--lbl); }
.ts-postdoc { background: #6366f1; }
.ts-grad    { background: #0891b2; }
.ts-undergrad { background: #059669; }
.team-links {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    flex-wrap: wrap;
}
.team-links a {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-mid);
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition:
        color 0.1s,
        border-color 0.1s;
}
.team-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── AFFILIATION STRIP ──────────────────────────────────── */
.affil-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 2rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}
.affil-label {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
}
.affil-chip {
    font-size: 12px;
    color: var(--text-mid);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
}

/* ── PAST MEMBERS ───────────────────────────────────────── */
.past-members {
    margin-top: 2.5rem;
}
.past-members h3 {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.past-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
}
.past-item {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.5;
}
.past-item strong {
    color: var(--text);
    font-weight: 500;
}
.past-item .past-now {
    color: var(--text-dim);
    font-size: 12px;
}

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
    padding: 5rem 2.5rem 3rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.page-hero .container {
    max-width: 1400px;
    margin: 0 auto;
}
.page-hero-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}
.page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1rem;
    max-width: 700px;
}
.page-hero-desc {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.7;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .site-nav {
        padding: 0 1rem;
    }
    .nav-site-name {
        display: none;
    }
    .nav-links .hide-sm {
        display: none;
    }
    .section-wrap {
        padding: 3rem 1rem;
    }
    .trust-bar {
        padding: 1rem;
    }
    .page-hero {
        padding: 5.5rem 1rem 3rem;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .site-footer {
        padding: 2.5rem 1rem 1.5rem;
    }
}

/* extracted from index.html */
/* ── INDEX-ONLY STYLES ──────────────────────────────────── */
.hero {
    padding: 8rem 2.5rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}
.hero-lbl {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
}
.hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent2);
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.hero h1 em {
    font-style: italic;
    color: var(--lbl);
}
.hero-sub {
    font-size: clamp(17px, 1.2vw, 22px);
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 2rem;
}
.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.pip-snippet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 13px;
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s;
}
.pip-snippet:hover {
    border-color: var(--border-dark2);
    background: var(--bg-dark2);
}
.pip-prompt {
    color: var(--accent2);
    opacity: 0.7;
}
.pip-cmd {
    color: #e6edf3;
}
.pip-copy-icon {
    color: #6e7681;
    display: flex;
    align-items: center;
    margin-left: 2px;
    transition: color 0.15s;
}
.pip-snippet:hover .pip-copy-icon {
    color: #c9d1d9;
}
.icon-check {
    display: none;
}
.pip-snippet.copied .icon-copy {
    display: none;
}
.pip-snippet.copied .icon-check {
    display: block;
    color: var(--accent2);
}

/* cap grid */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 860px) {
    .cap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .cap-grid {
        grid-template-columns: 1fr;
    }
}
.cap-grid .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.cap-grid .tag {
    align-self: flex-start;
}
.cap-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.cap-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 1rem;
}
.cap-link {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    margin-top: auto;
    align-self: flex-start;
}
.cap-link:hover {
    text-decoration: underline;
}

/* index custom */
.integ-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.35rem;
}
.integ-desc {
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.5;
}
.news-date {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}
.news-grid .pill {
    display: block;
    width: fit-content;
    margin-bottom: 0.5rem;
}
.news-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.news-title:hover {
    color: var(--accent);
}
.news-snippet {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-code {
        display: none;
    }
}
@media (max-width: 640px) {
    .hero {
        padding: 6rem 1rem 3rem;
    }
}

/* extracted from about.html */
/* ── ABOUT-ONLY STYLES ──────────────────────────────────── */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.mission-body {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.8;
}
.mission-body p + p {
    margin-top: 1rem;
}
.mission-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mh {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--lbl);
}
.mh-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.mh-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
}

.role-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}
.rl-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 12px;
    color: var(--text-mid);
}
.rl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.rl-staff {
    background: var(--lbl);
}
.rl-postdoc {
    background: #6366f1;
}
.rl-grad {
    background: #0891b2;
}
.rl-undergrad {
    background: #059669;
}

@media (max-width: 720px) {
    .mission-grid {
        grid-template-columns: 1fr;
    }
}

/* extracted from research.html */
/* ── RESEARCH-ONLY STYLES ───────────────────────────────── */
.year-header {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 2rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.year-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.year-header:first-child {
    margin-top: 0;
}

.year-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.year-btn {
    font-family: var(--mono);
    font-size: 11px;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-mid);
    cursor: pointer;
    background: #fff;
    transition: all 0.12s;
}
.year-btn.active {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: #fff;
}
.year-btn:hover:not(.active) {
    border-color: #aaa;
}

.open-prob-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.op-row {
    background: #fff;
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    transition: background 0.1s;
}
.op-row:hover {
    background: #fafaf8;
}
.op-num {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    min-width: 28px;
    padding-top: 3px;
}
.op-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.op-desc {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.6;
}

.pub-year-section {
    margin-bottom: 0.5rem;
}

/* extracted from 404.html */
.not-found {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.nf-inner {
    max-width: 560px;
    width: 100%;
}
.nf-code {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nf-code::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--border2);
}
.nf-num {
    font-family: var(--serif);
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 300;
    line-height: 1;
    color: var(--bg3);
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    user-select: none;
}
.nf-title {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.nf-desc {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.nf-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.nf-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 1.5rem;
}
.nf-links-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}
.nf-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.nf-links a {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.12s;
}
.nf-links a:hover {
    color: var(--accent);
}
.nf-links a::before {
    content: "→ ";
}
/* external link icon handled by .external-link */
