:root {
    --stats-max: 1480px;
    --stats-label-col: 88px;
    --stats-table-min: 960px;
    --stats-cell-border: 1px solid #000;
    --stats-head-bg: #eee;
    --stats-label-bg: #f8f8f8;
    --stats-hero-bg: linear-gradient(135deg, #ffffff, #eef5f1);
}

table,
.monotable,
th,
td {
    font-family: 'Roboto Mono', monospace;
}

.page {
    max-width: var(--stats-max);
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.hero {
    background: var(--stats-hero-bg);
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.hero h1 {
    margin: 0 0 10px;
    font-family: Oswald, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 500;
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.table-card {
    background: var(--card);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px;
    overflow-x: auto;
}

.table-wrap {
    min-width: var(--stats-table-min);
}

.monotable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.monotable th,
.monotable td {
    border: var(--stats-cell-border);
    padding: 4px 6px;
    text-align: right;
    vertical-align: middle;
}

.monotable thead {
    background: var(--stats-head-bg);
}

.monotable th:first-child,
.monotable td:first-child {
    width: var(--stats-label-col);
    min-width: var(--stats-label-col);
    max-width: var(--stats-label-col);
    background: var(--stats-label-bg);
    color: var(--text);
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.monotable th:not(:first-child),
.monotable td:not(:first-child) {
    width: calc((100% - var(--stats-label-col)) / var(--years-count, 1));
}

.cell-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
}

.cell-marker {
    flex: 0 0 auto;
    opacity: 0.55;
    cursor: help;
}

.table-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}
