:root {
    --text: #1a1a1a;
    --muted: #555;
    --border: #d4d4d4;
    --bg: #fdfdfd;
    --accent: #2c5282;
    --tag-bg: #edf2f7;
    --card-bg: #fafbfc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.container > img {
    display: block;
    margin: 0 auto 40px;
    width: 50%;
    border-radius: 6px;
}

.title-block {
    margin-bottom: 48px;
}

.title-block h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.title-block .subtitle {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 4px;
}

.title-block .course {
    font-size: 13px;
    color: var(--muted);
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 12px;
}

section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 16px 0 8px;
}

section p {
    margin-bottom: 12px;
}

code {
    font-size: 13px;
    background: var(--tag-bg);
    padding: 1px 5px;
    border-radius: 3px;
}

/* Architecture diagrams */
.arch-diagram {
    display: block;
    width: 100%;
    max-width: 680px;
    margin: 8px auto 0;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* Mermaid diagrams */
.mermaid {
    margin: 16px 0;
    overflow-x: auto;
}

.mermaid svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto !important;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.links {
    margin-top: 8px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.links a {
    font-size: 14px;
    font-weight: 500;
}

.links a.live-demo-btn {
    background-color: var(--accent);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(44, 82, 130, 0.2);
}

.links a.live-demo-btn:hover {
    background-color: #1a365d;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(44, 82, 130, 0.3);
}

/* Tech tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tech-tags span {
    background: var(--tag-bg);
    color: var(--text);
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Lists */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 6px;
}

.progress-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.progress-list li {
    padding-left: 24px;
    position: relative;
}

.progress-list li::before {
    position: absolute;
    left: 0;
    font-size: 14px;
}

.progress-list li.done::before {
    content: "✓";
    color: #2f855a;
    font-weight: 600;
}

.progress-list li.wip::before {
    content: "◦";
    color: #b7791f;
    font-weight: 600;
}

/* Session cards */
.session-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.session-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
}

.session-card .progress-list {
    margin-bottom: 0;
}

/* Snapshot tables */
.snapshot-table {
    width: 100%;
    max-width: 760px;
    margin: 16px auto 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.status-matrix-table {
    max-width: 100%;
}

.snapshot-table th,
.snapshot-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5eaf0;
    text-align: left;
    font-size: 14px;
}

.snapshot-table thead th {
    background: linear-gradient(180deg, #f3f7fc 0%, #eaf1fa 100%);
    color: #243b53;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.snapshot-table tbody tr:nth-child(even) {
    background: #fafcff;
}

.snapshot-table tbody tr:hover {
    background: #f1f7ff;
}

.snapshot-table tbody tr:last-child td {
    border-bottom: none;
}

.snapshot-table.metrics-table td:nth-child(2),
.snapshot-table.metrics-table td:nth-child(3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #1f3a5f;
}

@media (max-width: 700px) {
    .snapshot-table th,
    .snapshot-table td {
        padding: 10px 10px;
        font-size: 13px;
    }
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25px;
    text-transform: uppercase;
    border: 1px solid transparent;
    line-height: 1.3;
}

.status-live {
    background: #e8f7ee;
    color: #17633a;
    border-color: #b8e5c7;
}

.status-demo {
    background: #fff4df;
    color: #8a5a00;
    border-color: #f4d29b;
}

.status-planned {
    background: #eaf1fa;
    color: #274e7d;
    border-color: #c9dcf3;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 28px 20px;
    margin-top: 4px;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.member-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.member-card .name {
    font-weight: 500;
    font-size: 14px;
}

.member-card .role {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.leader-badge {
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Team list */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team-list .person {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

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

.person .name {
    font-weight: 500;
}

.person .role {
    font-size: 13px;
    color: var(--muted);
}

/* Dividers */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* Footer */
footer {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 40px 16px 60px;
    }
    .title-block h1 {
        font-size: 24px;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .person {
        flex-direction: column;
        gap: 2px;
    }
}
