@import url('./components/person-card.css');
.page-person { background: #fff; }

.person {
    max-width: 1280px;
    margin: 0 auto;
}

/* ─── Back link ────────────────────────────────────────────────────── */

.person-back {
    padding: 1rem 2rem;
    font-size: 0.85rem;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}

.person-back a { color: inherit; text-decoration: underline; }
.person-back a:hover { text-decoration: none; color: #000; }
.person-back-sep { margin: 0 0.5rem; color: #ccc; }

/* ─── Hero ─────────────────────────────────────────────────────────── */

.person-hero {
    padding: 3rem 2rem;
    text-align: center;
}

.person-hero-portrait {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.person-hero-portrait-empty {
    background: #ddd url(/images/person-placeholder.svg) center / cover no-repeat;
}

.person-hero-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.person-hero-about {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Sticky nav (matches spectacle page styling) ──────────────────── */

.person-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.person-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
    overflow-x: auto;
    scrollbar-width: none;
}

.person-nav-inner::-webkit-scrollbar { display: none; }

.person-nav-inner a {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.person-nav-inner a:hover { color: #000; }

.person-nav-inner a.is-active {
    color: #000;
    border-bottom-color: #000;
}

/* ─── Sections ─────────────────────────────────────────────────────── */

.person-section {
    padding: 3rem 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.person-section:last-child { border-bottom: none; }

.person-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 2rem;
}

/* ─── Biography ────────────────────────────────────────────────────── */

.person-bio-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222;
    margin-bottom: 2.5rem;
}

.person-bio-text p { margin: 0 0 1em; }

.roles-group {
    margin-bottom: 2.5rem;
}

.roles-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.role-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    padding: 0.5rem 0;
    line-height: 1.5;
}

.role-year {
    font-weight: 700;
    color: #666;
}

.role-title a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.role-title a:hover { border-bottom-color: #000; }

/* ─── Spectacles grid ──────────────────────────────────────────────── */

.person-spectacles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem 1.5rem;
}

/* ─── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .person-hero { padding: 2rem 1rem; }
    .person-hero-portrait { width: 180px; height: 180px; }
    .person-hero-name { font-size: 1.75rem; }
    .person-section { padding: 2rem 1rem; }
    .person-section-title { font-size: 1.5rem; }
    .role-row { grid-template-columns: 50px 1fr; gap: 0.75rem; }
}