/* ═══════════ B6 — Calendário Pedagógico ═══════════ */

.ce-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ce-month-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
}

.ce-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ce-type-chip {
  padding: 4px 11px;
  border-radius: 14px;
  border: 1.5px solid;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: opacity 0.12s ease, background 0.12s ease;
}
.ce-type-chip:hover { background: rgba(255,255,255,0.03); }
.ce-type-chip.hidden { opacity: 0.4; text-decoration: line-through; }

.ce-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ce-dow {
  text-align: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--muted);
  padding: 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ce-day {
  min-height: 90px;
  border-radius: 7px;
  padding: 5px 6px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
  overflow: hidden;
}
.ce-day:hover { border-color: var(--gold); }
.ce-day.other-month { background: transparent; border: none; cursor: default; }
.ce-day.other-month:hover { border-color: transparent; }
.ce-day.today {
  background: rgba(245, 200, 66, 0.07);
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 200, 66, 0.18);
}
.ce-day.has-events:hover { transform: translateY(-1px); }

.ce-dn {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.ce-day-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.ce-day-evt {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.ce-day-more {
  font-size: 0.6rem;
  color: var(--muted2);
  font-style: italic;
  padding: 1px 5px;
}

/* Modal do dia — cards de evento */
.ce-evt-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 7px;
  padding: 10px 12px;
}
.ce-evt-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
}
.ce-evt-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.ce-evt-title {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.3;
}
.ce-evt-desc {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
  white-space: pre-wrap;
}

@media (max-width: 600px) {
  .ce-day { min-height: 60px; padding: 3px 4px; }
  .ce-day-evt { font-size: 0.55rem; padding: 1px 3px; }
}
