.cec-conferences {
    --cec-accent: #b18421;
    --cec-accent-dark: #8c6819;
    --cec-accent-soft: #f7edd8;
    --cec-ink: #1c2434;
    --cec-muted: #8b93a7;
    --cec-line: #eef1f6;
    --cec-card: #ffffff;
    --cec-canvas: #f6f4f1;
    box-sizing: border-box;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem;
    color: var(--cec-ink);
    font-size: 16px;
    line-height: 1.5;
    background: var(--cec-canvas);
    border-radius: 28px;
    overflow: hidden;
}

.cec-conferences .cec-cal__continue {
    height: 8px;
    margin: 0 0 4px;
    padding: 0;
    background: #b18421;
    border-radius: 999px;
    overflow: hidden;
}

.cec-conferences *,
.cec-conferences *::before,
.cec-conferences *::after {
    box-sizing: border-box;
}

.cec-month {
    margin: 0 0 2.5rem;
    background: var(--cec-card);
    border-radius: 24px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 18px 40px rgba(28, 36, 52, 0.06);
    overflow: hidden;
    max-width: 100%;
}

.cec-month:last-child {
    margin-bottom: 0;
}

.cec-month__title,
.cec-calendar__title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--cec-ink);
    line-height: 1.2;
}

.cec-month__title {
    margin: 0 0 1.25rem;
}

.cec-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.1rem;
}

.cec-calendar__title {
    flex: 1;
    text-align: center;
    font-size: 1.35rem;
}

.cec-calendar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    padding: 0 0.85rem;
    border: 0;
    border-radius: 999px;
    background: #f3f1ee;
    color: var(--cec-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.cec-calendar__btn:hover {
    background: var(--cec-accent);
    color: #fff;
    text-decoration: none;
}

.cec-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.82rem;
    color: #5c6578;
}

.cec-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
    background: var(--cec-accent);
}

/* Grid must stay inside the column. table-layout:fixed stops long
   event names from stretching the week. overflow clips any leftover. */
.cec-conferences .cec-cal {
    display: table;
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: transparent;
    overflow: hidden;
}

.cec-conferences .cec-cal th {
    border: 0;
    background: #f7f8fb;
    color: #9aa3b5;
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    padding: 10px 4px;
    text-align: center;
    width: 14.285%;
}

.cec-conferences .cec-cal th:first-child {
    border-radius: 12px 0 0 12px;
}

.cec-conferences .cec-cal th:last-child {
    border-radius: 0 12px 12px 0;
}

.cec-conferences .cec-cal td {
    border: 1px solid #f0f2f6;
    vertical-align: top;
    height: 118px;
    width: 14.285%;
    max-width: 0;
    padding: 8px 6px 6px;
    background: #fff;
    overflow: hidden;
}

.cec-conferences .cec-cal td.is-empty {
    background: #fcfcfd;
}

.cec-conferences .cec-cal td.is-today {
    background: #fffdf8;
    box-shadow: inset 0 0 0 1.5px var(--cec-accent-soft);
}

.cec-cal__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 12px;
    color: #6b7280;
    border-radius: 999px;
}

.cec-conferences .cec-cal td.is-today .cec-cal__num {
    background: var(--cec-accent);
    color: #fff;
}

.cec-cal__events {
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.cec-conferences .cec-cal__events li {
    display: block;
    max-width: 100%;
    margin: 0 0 4px;
    padding: 3px 6px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    color: #6a4e12;
    background: #f8edd4;
    border-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cec-conferences .cec-cal__events li:nth-child(3n + 2) {
    background: #fde7d6;
    color: #8a4b24;
}

.cec-conferences .cec-cal__events li:nth-child(3n) {
    background: #efe6f8;
    color: #6b4d86;
}

.cec-conferences .cec-cal__events a,
.cec-conferences .cec-month__list a,
.cec-conferences .cec-list a {
    color: inherit;
    text-decoration: none;
}

.cec-conferences .cec-cal__events a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cec-conferences .cec-cal__events a:hover,
.cec-conferences .cec-month__list a:hover,
.cec-conferences .cec-list a:hover {
    text-decoration: underline;
}

.cec-month__list h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1.25rem 0 0.65rem;
    color: var(--cec-ink);
}

.cec-month__list ul {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.cec-month__list li {
    margin: 0 0 8px;
    padding: 10px 12px;
    background: #faf8f5;
    border-radius: 10px;
    border-left: 3px solid var(--cec-accent);
}

.cec-month__dates {
    font-weight: 700;
    color: var(--cec-accent-dark);
}

.cec-week__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.7rem;
    max-width: 100%;
}

.cec-week__day {
    border: 0;
    border-radius: 16px;
    padding: 0.85rem 0.75rem;
    min-height: 12rem;
    min-width: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28, 36, 52, 0.05);
    overflow: hidden;
}

.cec-week__day.is-today {
    background: #fffdf8;
    box-shadow: inset 0 0 0 1.5px var(--cec-accent), 0 8px 24px rgba(177, 132, 33, 0.08);
}

.cec-week__day h3 {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #8b93a7;
}

.cec-week__day.is-today h3 {
    color: var(--cec-accent-dark);
}

.cec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cec-list__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 12px;
    padding: 14px 16px;
    border: 0;
    border-left: 4px solid var(--cec-accent);
    background: #fff;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 8px 22px rgba(28, 36, 52, 0.05);
}

.cec-list__item .cec-dot {
    display: none;
}

.cec-list__body {
    min-width: 0;
    flex: 1;
}

.cec-list__name {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cec-ink);
    text-decoration: none;
    margin: 0 0 6px;
}

.cec-list__name:hover {
    color: var(--cec-accent-dark);
    text-decoration: underline;
}

.cec-list__venue {
    font-size: 0.92rem;
    color: #5c6578;
    margin: 0 0 4px;
}

.cec-list__venue span {
    font-weight: 700;
    color: #3d4658;
}

.cec-list__date,
.cec-list__meta,
.cec-empty {
    font-size: 0.85rem;
    color: var(--cec-muted);
}

.cec-list__image img {
    width: 96px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.cec-event-details {
    border: 0;
    border-radius: 18px;
    padding: 1.15rem 1.3rem;
    margin-bottom: 1.25rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 36, 52, 0.05);
    border-top: 3px solid var(--cec-accent);
}

.cec-empty {
    padding: 1.5rem;
    text-align: center;
    background: #fff;
    border-radius: 16px;
}

@media (max-width: 800px) {
    .cec-conferences {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .cec-month {
        padding: 1rem;
        border-radius: 18px;
    }

    .cec-week__grid {
        grid-template-columns: 1fr;
    }

    .cec-conferences .cec-cal td {
        height: auto;
        min-height: 72px;
        padding: 4px;
    }

    .cec-conferences .cec-cal__events li,
    .cec-conferences .cec-cal__events a {
        font-size: 10px;
        padding: 2px 4px;
    }

    .cec-list__item {
        padding: 12px;
    }

    .cec-list__image img {
        width: 72px;
        height: 56px;
    }
}