/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
    /* Slate background, muted orange primary, muted teal secondary */
    --bg-primary:     #181B20;
    --bg-panel:       #20252C;
    --bg-surface:     #262C34;
    --bg-card:        #2B333D;
    --border-subtle:  rgba(255, 255, 255, 0.07);
    --border-accent:  rgba(192, 138, 90, 0.35);
    --accent:         #C08A5A;
    --accent-bright:  #D4A474;
    --accent-dim:     rgba(192, 138, 90, 0.12);
    --accent-teal:    #6F9F9A;
    --accent-teal-dim: rgba(111, 159, 154, 0.25);
    --text-primary:   #D9DEE3;
    --text-secondary: #B1BAC4;
    --text-muted:     #87919C;
    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'DM Sans', system-ui, sans-serif;
    --font-mono:      'DM Mono', 'Courier New', monospace;
    --nav-height:     68px;
    --max-width:      1120px;
    --transition:     0.2s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

a:hover { color: var(--accent-bright); opacity: 1; }

img { display: block; max-width: 100%; }

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(24, 27, 32, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}

.navbar.scrolled {
    background: rgba(24, 27, 32, 0.97);
    border-bottom-color: rgba(192, 138, 90, 0.2);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.nav-name:hover { color: var(--accent-bright); opacity: 1; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-bright);
    border-bottom-color: var(--accent);
    opacity: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-secondary);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

/* Subtle radial glow behind the hero */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(192, 138, 90, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(111, 159, 154, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2.5rem 4.5rem;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 5rem;
    align-items: center;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.25rem);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.08;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.hero-institution {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-accent-line {
    width: 52px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 2rem;
}

.hero-bio {
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 580px;
    margin-bottom: 2.5rem;
}

.hero-bio em {
    color: var(--text-primary);
    font-style: italic;
}

/* External links replacing buttons */
.hero-ext-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color var(--transition), border-color var(--transition);
}

.hero-ext-link:hover {
    color: var(--accent-bright);
    border-bottom-color: var(--accent);
    opacity: 1;
}

.hero-ext-link svg,
.hero-ext-link .ai {
    width: 16px;
    height: 16px;
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
}

.hero-ext-link:hover svg,
.hero-ext-link:hover .ai {
    opacity: 1;
}

.hero-ext-sep {
    width: 1px;
    height: 14px;
    background: var(--border-subtle);
}

/* Photo */
.hero-photo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    position: relative;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(192, 138, 90, 0.22);
    box-shadow:
        0 0 0 12px rgba(192, 138, 90, 0.04),
        0 0 80px rgba(192, 138, 90, 0.1),
        0 0 140px rgba(192, 138, 90, 0.04);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.9) saturate(0.82) contrast(1.05);
    transition: filter 0.4s ease;
}

.photo-frame:hover img {
    filter: brightness(1) saturate(1) contrast(1);
}

/* ========================================
   Shared section label
   ======================================== */
.section-label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::after {
    content: '';
    display: block;
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
}

/* ========================================
   News / Updates
   ======================================== */
.news {
    padding: 0 0 5rem;
}

.news-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--accent);
    border-radius: 0 0 4px 4px;
    background: var(--bg-panel);
    overflow: hidden;
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    padding: 1.4rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    align-items: start;
    transition: background var(--transition);
}

.news-item:last-child { border-bottom: none; }

.news-item:hover { background: var(--bg-surface); }

.news-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    padding-top: 0.12rem;
    white-space: nowrap;
}

.news-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.news-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

.news-body em { font-style: italic; }

.news-body a { color: var(--accent); }
.news-body a:hover { color: var(--accent-bright); }

.news-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--accent-teal);
    border: 1px solid rgba(111, 159, 154, 0.35);
    border-radius: 2px;
    padding: 0.1rem 0.5rem;
    margin-right: 0.6rem;
    vertical-align: middle;
    line-height: 1.6;
}

/* ========================================
   Quick Nav Cards
   ======================================== */
.quicknav { padding: 0 0 6rem; }

.quicknav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.qcard {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1.5rem 1.25rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.qcard:hover {
    border-color: rgba(192, 138, 90, 0.3);
    background: var(--bg-surface);
    box-shadow: 0 4px 24px rgba(192, 138, 90, 0.07);
    opacity: 1;
}

.qcard-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
    opacity: 0.55;
    margin-bottom: 0.4rem;
}

.qcard-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.qcard-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.qcard-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-left { flex: 1; }

.footer-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.footer-inst {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.footer-contact {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-contact a { color: var(--text-secondary); }
.footer-contact a:hover { color: var(--accent-bright); opacity: 1; }

.footer-right {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-link svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
    opacity: 0.7;
}

.footer-link .ai {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
    vertical-align: middle;
}

.footer-link:hover { color: var(--accent-bright); opacity: 1; }

/* arXiv icon in news links */
.arxiv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.arxiv-link .ai {
    font-size: 0.9rem;
    line-height: 1;
}

.footer-copy {
    width: 100%;
    font-size: 0.74rem;
    color: var(--text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

/* ========================================
   Research Page
   ======================================== */

/* Topic jump-nav */
.topic-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 3.5rem;
    gap: 0;
}

.topic-nav a {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.65rem 1.35rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}

.topic-nav a:hover {
    color: var(--accent-bright);
    border-bottom-color: var(--accent);
    opacity: 1;
}

/* Paper status badges */
.paper-status {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid;
    border-radius: 2px;
    padding: 0.1rem 0.45rem;
    margin-bottom: 0.55rem;
}

.paper-status.wp {
    color: var(--accent);
    border-color: var(--border-accent);
}

.paper-status.forthcoming {
    color: var(--accent-teal);
    border-color: rgba(111, 159, 154, 0.4);
}

/* Author name highlight */
.self-author {
    color: var(--text-primary);
    font-weight: 500;
}

/* Topic section divider */
.topic-section {
    padding: 0 0 4rem;
}

.topic-section:last-of-type {
    padding-bottom: 5rem;
}

.topic-heading {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.topic-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* Shared research page layout */
.page-hero {
    padding: calc(var(--nav-height) + 4rem) 0 2.5rem;
}

.page-hero-container,
.papers-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-accent-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 1.75rem;
}

.papers-section { padding: 0 0 5rem; }

.section-heading {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

article.paper-entry {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

article.paper-entry:last-child { border-bottom: none; }

h3.paper-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    cursor: pointer;
    transition: color var(--transition);
}

h3.paper-title:hover { color: var(--accent-bright); }

p.paper-authors {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

p.paper-journal {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.7rem;
}

.paper-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.paper-link {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    padding: 0.15rem 0.55rem;
    transition: color var(--transition), border-color var(--transition);
}

.paper-link:hover {
    color: var(--accent-bright);
    border-color: var(--border-accent);
    opacity: 1;
}

div.abstract {
    display: none;
    margin-top: 0.75rem;
    padding: 1.1rem 1.4rem;
    background: var(--bg-panel);
    border-left: 2px solid rgba(111, 159, 154, 0.45);
    border-radius: 0 3px 3px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.abstract-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    padding: 0;
    transition: color var(--transition);
}

.abstract-toggle:hover { color: var(--accent-teal); }

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.interest-tag {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--accent-teal);
    border: 1px solid rgba(111, 159, 154, 0.3);
    border-radius: 2px;
    padding: 0.22rem 0.65rem;
    letter-spacing: 0.03em;
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--accent);
    opacity: 0.85;
}

/* ========================================
   Software Page
   ======================================== */

.page-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 2rem;
}

.pkg-entry {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.25rem;
    transition: border-color var(--transition);
}

.pkg-entry:last-child { margin-bottom: 0; }

.pkg-entry:hover {
    border-color: rgba(192, 138, 90, 0.2);
}

.lang-badges {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.lang-badge {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.08rem 0.45rem;
    border-radius: 2px;
    border: 1px solid;
}

.lang-badge.r {
    color: var(--accent-teal);
    border-color: rgba(111, 159, 154, 0.4);
}

.lang-badge.stata {
    color: var(--text-secondary);
    border-color: rgba(177, 186, 196, 0.22);
}

.lang-badge.matlab,
.lang-badge.python {
    color: var(--accent);
    border-color: rgba(192, 138, 90, 0.35);
}

.lang-badge.cran {
    color: var(--accent-teal);
    border-color: rgba(111, 159, 154, 0.4);
}

.pkg-name {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.pkg-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pkg-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
    max-width: 700px;
}

.pkg-install {
    margin: 1rem 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-left: 2px solid rgba(111, 159, 154, 0.45);
    border-radius: 0 3px 3px 0;
    padding: 0.65rem 1rem;
}

.pkg-install + .pkg-install {
    margin-top: 0.5rem;
}

.pkg-install-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.pkg-install code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-teal);
    display: block;
    white-space: pre;
}

/* ========================================
   Teaching Page
   ======================================== */

.lecture-list {
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg-panel);
    overflow: hidden;
    margin-bottom: 2rem;
}

.lecture-part-heading {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 2rem 0 0.65rem;
}

.lecture-part-heading:first-child { margin-top: 0; }

.lecture-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
}

.lecture-entry:last-child { border-bottom: none; }
.lecture-entry:hover { background: var(--bg-surface); }

.lecture-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 22px;
    flex-shrink: 0;
}

.lecture-title {
    font-size: 0.88rem;
    color: var(--text-primary);
    flex: 1;
}

.lecture-links {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lecture-video {
    color: var(--accent) !important;
    border-color: var(--border-accent) !important;
}

.lecture-video:hover {
    color: var(--accent-bright) !important;
}

/* ========================================
   Advising Page
   ======================================== */

/* Current students grid */
.student-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 0;
}

.student-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 1.5rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
    transition: border-color var(--transition), background var(--transition);
}

.student-card:hover {
    border-color: rgba(192, 138, 90, 0.2);
    background: var(--bg-surface);
}

.student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.85rem;
    flex-shrink: 0;
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0; left: 0;
}

.student-initials {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1;
    user-select: none;
}

.student-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.student-cohort {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Alumni list */
.alumni-list {
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg-panel);
    overflow: hidden;
}

.alumni-year-group {
    display: grid;
    grid-template-columns: 72px 1fr;
    border-bottom: 1px solid var(--border-subtle);
}

.alumni-year-group:last-child { border-bottom: none; }

.alumni-year-marker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    padding: 1.1rem 0 1.1rem 1.25rem;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    align-items: flex-start;
    padding-top: 1.1rem;
}

.alumni-entries {
    display: flex;
    flex-direction: column;
}

.alumni-entry {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition);
    flex-wrap: wrap;
}

.alumni-entry:last-child { border-bottom: none; }
.alumni-entry:hover { background: var(--bg-surface); }

.alumni-name {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 400;
    flex: 1;
    min-width: 160px;
}

.alumni-placement {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.alumni-placement::before {
    content: '→ ';
    color: var(--text-muted);
    opacity: 0.5;
}

.role-badge {
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.08rem 0.42rem;
    border-radius: 2px;
    border: 1px solid;
    white-space: nowrap;
    flex-shrink: 0;
}

.role-badge.chair {
    color: var(--accent);
    border-color: rgba(192, 138, 90, 0.38);
}

.role-badge.cochair {
    color: var(--accent-teal);
    border-color: rgba(111, 159, 154, 0.38);
}

.role-badge.member {
    color: var(--text-muted);
    border-color: rgba(135, 145, 156, 0.28);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4.5rem 2rem 4rem;
        text-align: center;
    }

    .hero-text { order: 2; }
    .hero-photo { order: 1; }

    .hero-accent-line,
    .hero-bio { margin-left: auto; margin-right: auto; }

    .hero-ext-links { justify-content: center; }

    .quicknav-container { grid-template-columns: repeat(3, 1fr); }

    .section-label::after { display: none; }

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0; right: 0;
        background: rgba(24, 27, 32, 0.98);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.open { display: flex; }

    .hamburger { display: flex; }

    .news-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .quicknav-container { grid-template-columns: repeat(2, 1fr); }

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

    .alumni-year-group { grid-template-columns: 52px 1fr; }
    .alumni-year-marker { padding-left: 0.75rem; font-size: 0.7rem; }
    .alumni-entry { padding: 0.75rem 0.85rem; }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}
