.tenses-page {
    padding: 0.5rem 0 1.5rem;
}

.tenses-header {
    margin-bottom: 1.5rem;
}

.tenses-kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.tenses-title {
    font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.tenses-subtitle {
    color: #6b7280;
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.tenses-table-wrapper {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #eef2f6;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.tenses-table-modern {
    border-collapse: separate;
    border-spacing: 0.6rem;
    min-width: 760px;
    margin-bottom: 0;
}

.tenses-table-modern th,
.tenses-table-modern td {
    padding: 1rem;
    text-align: center;
    vertical-align: middle;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.tenses-table-modern thead th {
    background: linear-gradient(180deg, #d97979, #cf6666);
    color: #fff;
    border-color: #cc5f5f;
    font-weight: 700;
}

.tenses-table-modern thead th .tenses-formula {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.tenses-corner {
    background: transparent;
    border: none;
}

.tenses-rowhead {
    --bs-table-bg: #7fb68f;
    background: #7fb68f;
    color: #2f3b33;
    font-weight: 700;
    border-color: #6aa77c;
}

.tenses-corner {
    background: transparent;
    border: none;
    visibility: hidden;
}

.tenses-table-modern td {
    background: #e0e0e0;
    border-color: #d2d5da;
}

.tenses-link {
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: none;
}

.tenses-link:hover,
.tenses-link:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.tenses-table-modern td:hover {
    background: #eef2ff;
}

@media (max-width: 768px) {
    .tenses-table-wrapper {
        padding: 0.75rem;
    }

    .tenses-table-modern {
        min-width: 100%;
        border-spacing: 0.4rem;
    }

    .tenses-table-modern th,
    .tenses-table-modern td {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .tenses-title {
        font-size: clamp(1.6rem, 2vw + 0.8rem, 2.1rem);
    }
}
