
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: system-ui, sans-serif;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}
header {
    width: 100%;
    background: #f0f4f8;
    border-bottom: 1px solid #ddd;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
}
.logo span { line-height: 32px; }
.nav-link { color: #0066cc; text-decoration: underline; text-underline-offset: 2px; line-height: 32px; }
.nav-link:hover { text-decoration-thickness: 2px; }
header p { margin: 0; color: #666; }
header a { color: #0066cc; }
.names-page {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.names-page .count { color: #666; margin-bottom: 1rem; }
.names-list {
    columns: 3;
    column-gap: 2rem;
    list-style: none;
    padding: 0;
}
.names-list li { margin: 0.25rem 0; }
.names-list a { color: #333; text-decoration: none; }
.names-list a:hover { text-decoration: underline; }
#toc {
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    background: #f5f5f5;
    padding: 1rem;
    border-right: 1px solid #ddd;
}
#toc ul {
    list-style: none;
    padding: 0;
}
#toc li { margin: 0.25rem 0; }
#toc a { color: #333; text-decoration: none; }
#toc a:hover { text-decoration: underline; }
main {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    min-width: 0;
}
article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}
h1 { color: #222; }
.name-link {
    color: inherit;
    text-decoration: none;
}
.name-link:hover {
    text-decoration: underline;
}
.source-link {
    font-size: 0.6em;
    color: #888;
    text-decoration: none;
    vertical-align: middle;
}
.source-link:hover { color: #0066cc; }
.agent-info {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.agent-photo-wrap {
    flex-shrink: 0;
}
.agent-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}
.agent-details {
    flex: 1;
}
.info-row { margin: 0.5rem 0; }
img { max-width: 100%; height: auto; }
a { color: #0066cc; }

/* Mobile styles */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        text-align: center;
    }
    header p { font-size: 0.9rem; }
    #toc {
        width: 100%;
        height: auto;
        max-height: 40vh;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    main {
        padding: 1rem;
    }
    .agent-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.75rem;
    }
    .agent-photo {
        width: 100px;
        height: 100px;
    }
    .names-page {
        padding: 1rem;
    }
    .names-list {
        columns: 1;
    }
    h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .logo span { font-size: 1rem; }
    header p { font-size: 0.8rem; }
    #toc { max-height: 30vh; }
}
