.rulebook-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.45;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.rulebook-table th,
.rulebook-table td {
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.rulebook-table thead th,
.rulebook-table th {
    background: var(--color-secondary);
    color: var(--color-accent-soft);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.rulebook-table tbody tr:nth-child(even) td {
    background: rgba(107, 90, 66, 0.05);
}

.rulebook-table tbody tr:hover td {
    background: rgba(196, 165, 116, 0.12);
}

/* Keep horizontal scroll on sheet wraps only.
   Do NOT set overflow-x on .chapter-content: that forces overflow-y:auto
   and breaks position:sticky for Суть/Стол/Прогрессия. */
.sheet-table-wrap {
    overflow-x: auto;
}

/* Wide MD tables scroll locally without trapping sticky descendants */
.chapter-content .rulebook-table {
    max-width: 100%;
}

.sheet-table { font-size: 0.82rem; }
.sheet-table th,
.sheet-table td { white-space: nowrap; }
