*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --teal-light: #ccfbf1;
    --teal-xlight: #f0fdfa;
    --white: #fff;
    --warm: #fafaf8;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --sage: #f0fdf4;
    --sage-border: #bbf7d0;
    --sage-text: #166534;
    --amber: #fffbeb;
    --amber-border: #fde68a;
    --amber-text: #92400e
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--warm);
    color: var(--text)
}

.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50
}

.nav-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--teal-dark);
    text-decoration: none
}

.nav-back {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none
}

.nav-back:hover {
    color: var(--text)
}

.page-header {
    padding: 2rem 1.5rem 0.75rem;
    max-width: 800px;
    margin: 0 auto
}

.page-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.4rem
}

.page-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6
}

.filters {
    padding: 0.75rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.filter-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.12s
}

.filter-btn:hover,
.filter-btn.on {
    border-color: var(--teal);
    background: var(--teal-xlight);
    color: var(--teal-dark)
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 3rem
}

.year-group {
    margin-bottom: 2rem
}

.year-label {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px
}

.year-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border)
}

.quarter-group {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border)
}

.quarter-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 8px;
    margin-left: -1rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--teal);
    position: relative;
    left: -2px
}

.timeline-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: inherit
}

.timeline-card:hover {
    border-color: var(--teal);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.08)
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0
}

.tc-body {
    flex: 1
}

.tc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px
}

.tc-date {
    font-size: 12px;
    color: var(--muted)
}

.tc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px
}

.stage-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em
}

.chip {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 8px;
    background: var(--border-light);
    color: var(--muted);
    font-weight: 600
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
    font-style: italic
}

.today-marker {
    background: var(--amber);
    border: 1.5px solid var(--amber-border);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--amber-text);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 6px
}