/* Styles for `ribbon_user.html`, loaded after `app.css` so the shared tokens and
 * components are already in scope. Rules written the same way in three or
 * more pages belong in `app.css` instead: `tests/test_shared_styles.py`
 * fails when one is copied that far.
 */
.user-hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.user-hero img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #252a35;
}
.user-hero-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #181c24;
    border: 2px solid #252a35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.user-hero-info h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #d6d9e0;
    margin: 0 0 4px;
}
.user-hero-info .meta {
    font-size: .85rem;
    color: #9aa2af;
}
.user-hero-info .meta a {
    color: #d4a54a;
    text-decoration: none;
}
.user-hero-info .meta a:hover { text-decoration: underline; }

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 24px 48px;
}
.timeline-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d4a54a;
    margin-bottom: 20px;
    border-bottom: 1px solid #252a35;
    padding-bottom: 8px;
}

.timeline-items {
    position: relative;
    padding-left: 24px;
}
.timeline-items::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #252a35;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.timeline-dot {
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #252a35;
    border: 2px solid #3d4555;
}
.timeline-dot.official { background: #7fb18a; border-color: #7fb18a; }

.timeline-card {
    background: #12151b;
    border: 1px solid #252a35;
    border-radius: 2px;
    padding: 14px 16px;
    transition: border-color .15s;
}
.timeline-card:hover { border-color: #d4a54a; }

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 6px;
}
.timeline-card-title {
    font-weight: 700;
    font-size: .95rem;
    color: #d6d9e0;
}
.timeline-card-title a {
    color: #d6d9e0;
    text-decoration: none;
}
.timeline-card-title a:hover { color: #d4a54a; }
.timeline-card-date {
    font-size: .78rem;
    color: #6b7280;
    white-space: nowrap;
    font-family: 'IBM Plex Mono', monospace;
}
.timeline-card-subtitle {
    font-size: .82rem;
    color: #9aa2af;
    margin-bottom: 4px;
}
.timeline-card-desc {
    font-size: .82rem;
    color: #aeb5c1;
    line-height: 1.5;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: .72rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid #252a35;
}
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}body.light-mode .user-hero img,
body.light-mode .user-hero-placeholder {
    border-color: #d7dce6;
}
body.light-mode .user-hero-placeholder {
    background: #f3f4f6;
}
body.light-mode .user-hero-info h1 {
    color: #1f2937;
}
body.light-mode .user-hero-info .meta {
    color: #6b7280;
}
body.light-mode .user-hero-info .meta a {
    color: #4338ca;
}
body.light-mode .timeline-header {
    color: #4338ca;
    border-bottom-color: #d7dce6;
}
body.light-mode .timeline-items::before {
    background: #d7dce6;
}
body.light-mode .timeline-dot {
    background: #cfd5e1;
    border-color: #d7dce6;
}
body.light-mode .timeline-card {
    background: #ffffff;
    border-color: #d7dce6;
}
body.light-mode .timeline-card:hover {
    border-color: #4338ca;
}
body.light-mode .timeline-card-title,
body.light-mode .timeline-card-title a {
    color: #1f2937;
}
body.light-mode .timeline-card-title a:hover {
    color: #4338ca;
}
body.light-mode .timeline-card-date,
body.light-mode .timeline-card-subtitle {
    color: #6b7280;
}
body.light-mode .timeline-card-desc {
    color: #374151;
}
body.light-mode .badge {
    border-color: #d7dce6;
}
