:root {
    --accent: #2f3e4d;
    --accent-light: #f4f6f8;
    --text-main: #222;
    --text-muted: #555;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    background: #e5e7eb;
    color: var(--text-main);
}

.page {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-radius: 8px;
    overflow: hidden;
}

/* Sidebar */

.sidebar {
    background: var(--accent);
    color: white;
    padding: 32px 28px 36px;
}

.name {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.title {
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    margin: 0 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 6px;
}

.sidebar p,
.sidebar li {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li+li {
    margin-top: 6px;
}

.sidebar .muted {
    opacity: 0.8;
    font-size: 0.85rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Main column */

.main {
    padding: 32px 34px 36px;
    background: white;
}

.summary {
    background: var(--accent-light);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.main-section {
    margin-bottom: 22px;
}

.main-section h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0 0 10px;
    color: var(--accent);
}

.item {
    margin-bottom: 14px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.item-role {
    font-weight: 600;
    font-size: 0.98rem;
}

.item-org {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.item-dates {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.item-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.item ul {
    margin: 6px 0 0 20px;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.item ul li+li {
    margin-top: 4px;
}

.tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    body {
        padding: 16px 0;
    }

    .page {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-bottom: 24px;
    }

    .main {
        padding-top: 20px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .page {
        box-shadow: none;
        border-radius: 0;
    }
}