/* Calendário público CNB, apresentação inspirada no calendário anterior */
.cnb-ge-calendar { width: 100%; }
.cnb-ge-calendar__months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}
.cnb-ge-calendar__month {
    min-width: 0;
    overflow: hidden;
    padding: 8px;
    border: 1px solid #d7dddd;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.cnb-ge-calendar__month-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
    padding: 9px 10px;
    border-radius: 6px;
    background: #BFE7E5;
    color: #173f4b;
    text-align: left;
    text-transform: capitalize;
    font-size: .95rem;
    line-height: 1.2;
    font-weight: 700;
}
.cnb-ge-calendar__month-title .calendar-month-days {
    flex: 0 0 auto;
    color: #52636b;
    font-size: .78rem;
    font-weight: 400;
    text-transform: none;
}
.cnb-ge-calendar table.calendar-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
}
.cnb-ge-calendar .calendar-table th {
    padding: 7px 2px;
    border-bottom: 1px solid #d9e0e3;
    background: #f7f8f9;
    color: #687b8a;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
}
.cnb-ge-calendar .calendar-table td {
    height: 92px;
    padding: 6px 5px;
    vertical-align: top;
    border-bottom: 1px solid #d9e0e3;
    background: #fff;
}
.cnb-ge-calendar .calendar-table td.calendar-empty { background: #f7f8f9; }
.cnb-ge-calendar .calendar-table td.today { background: #fff; }
.cnb-ge-calendar .calendar-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    height: 25px;
    margin: 0 0 4px;
    padding: 0 5px;
    border-radius: 50%;
    color: #173f4b;
    font-size: .78rem;
    line-height: 1;
    font-weight: 500;
}
.cnb-ge-calendar .calendar-table td.today .calendar-day-number {
    background: #BFE7E5;
    font-weight: 700;
}
.cnb-ge-calendar .calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.cnb-ge-calendar .calendar-event-link {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #173f4b;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: none;
}
.cnb-ge-calendar .calendar-event-link:hover,
.cnb-ge-calendar .calendar-event-link:focus {
    background: transparent;
    color: #007179;
    text-decoration: underline;
    box-shadow: none;
}
.cnb-ge-calendar .calendar-event-icon {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    padding: 3px;
    border: 3px solid #bfe7e5;
    border-radius: 50%;
    object-fit: contain;
    background: #009f98;
}
.cnb-ge-calendar .event-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    color: #173f4b;
    font-size: 10px;
    line-height: 1.12;
    white-space: normal;
    overflow-wrap: anywhere;
}
.cnb-ge-calendar .event-time,
.cnb-ge-calendar .event-title { display: block; font-weight: 500; }
.cnb-ge-calendar .calendar-more {
    display: block;
    padding-left: 2px;
    color: #007179;
    font-size: .68rem;
    font-weight: 700;
}
.calendar-modal-icon { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
@media (max-width: 1200px) {
    .cnb-ge-calendar__months { grid-template-columns: 1fr; gap: 1rem; }
    .cnb-ge-calendar__month { padding: 6px; }
    .cnb-ge-calendar .calendar-table td { height: 76px; padding: 4px 2px; }
    .cnb-ge-calendar .calendar-event-icon {
        flex-basis: 22px; width: 22px; height: 22px; padding: 2px; border-width: 2px;
    }
    .cnb-ge-calendar .event-text { font-size: .58rem; }
}
