/**
 * Endurogram Events List v1.3
 */

.eg-events-list {
    display: block;
    width: 100%;
    border-top: 1px solid #c8cdd6;
}

.eg-events-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid #c8cdd6;
    transition: background-color 0.15s ease;
}

/* Колонка даты */
.eg-events-date {
    flex: 0 0 100px;
    min-width: 100px;
    white-space: nowrap;
    line-height: 1.4;
}

.eg-events-date a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.eg-events-date a:hover {
    color: #3d6b9e;
    text-decoration: underline;
}

/* Колонка названия — сброс margin/padding для любого тега */
.eg-events-title {
    flex: 1 1 auto;
    font-weight: 700;
    color: #1e3054;
    line-height: 1.35;

    /* Сброс стилей заголовков h2–h6 */
    margin: 0;
    padding: 0;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    border: none;
    background: none;
}

.eg-events-title a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
    transition: color 0.15s ease;
}

.eg-events-title a:hover {
    color: #3d6b9e;
}

/* Пустой список */
.eg-events-empty {
    padding: 10px 0;
    color: #8a9bb0;
    font-style: italic;
    margin: 0;
}

/* Мобильный */
@media (max-width: 480px) {
    .eg-events-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 0;
    }
    .eg-events-date {
        flex: none;
        min-width: 0;
        font-size: 0.85em;
    }
}
