/* Agenda Persol — mini calendário compacto na home (~300px), cartão branco no (origem: Persol)
   mesmo estilo dos outros cartões. Ver src/scripts/agenda.js. A versão antiga
   (verde-escuro, 2 colunas de largura, 42 células) foi reprovada em 2026-09-15. */

.agenda-card-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  color: var(--green-900);
  background: var(--white, #fff);
  border: 1px solid var(--line, #e4e4e8);
  border-radius: var(--radius-lg, 18px);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.06);
  font-family: "Montserrat", Arial, sans-serif;
}
.agenda-card-slot[hidden] { display: none; }

/* Botão na barra de cima + cartão que abre logo abaixo dela (não ocupa lugar na home). */
.agenda-button { position: relative; }
.agenda-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  color: #123a2f;
  background: #d4b87a;
  border-radius: 999px;
  font: 800 10px/16px "Montserrat", Arial, sans-serif;
  text-align: center;
}
.agenda-badge[hidden] { display: none; }

.agenda-card-slot {
  position: fixed;
  top: 68px;
  right: 14px;
  z-index: 3500;
  width: 300px;
  box-shadow: 0 18px 44px rgba(10, 10, 10, 0.22);
}
@media (max-width: 700px) {
  .agenda-card-slot { left: 12px; right: 12px; width: auto; max-width: none; }
}

.ag-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.ag-titulo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ag-titulo .material-symbols-rounded { font-size: 18px; color: var(--green-700); }

.ag-nav { display: inline-flex; align-items: center; gap: 2px; }
.ag-mes { min-width: 62px; text-align: center; font-size: 12px; font-weight: 700; }
.ag-nav-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--green-700);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.ag-nav-btn:hover { background: var(--green-50, #f2f2f5); }
.ag-nav-btn .material-symbols-rounded { font-size: 20px; }

.ag-semana, .ag-grade { display: grid; grid-template-columns: repeat(7, 1fr); }
.ag-semana span {
  text-align: center;
  color: var(--muted, #5f6670);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.ag-grade { row-gap: 2px; }

.ag-dia {
  position: relative;
  height: 30px;
  padding: 0;
  color: var(--green-900);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: 600 12px/1 "Montserrat", Arial, sans-serif;
  cursor: default;
}
.ag-dia.fora { color: #b5c2bc; font-weight: 500; }
.ag-dia.hoje { color: #fff; background: var(--green-900); }
.ag-dia.tem { cursor: pointer; font-weight: 800; }
.ag-dia.tem:not(.hoje):hover { background: var(--green-50, #f2f2f5); }
.ag-dia.tem::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: #d4b87a; /* areia Persol (origem: Persol) */
  border-radius: 50%;
}
.ag-dia.hoje.tem::after { background: #fff; }
.ag-dia:focus-visible, .ag-nav-btn:focus-visible, .ag-prox-item:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 1px;
}

/* Próximos compromissos */
.ag-prox { display: grid; gap: 6px; margin: 4px 0 0; padding: 8px 0 0; list-style: none; border-top: 1px solid var(--line, #e4e4e8); }
.ag-prox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  color: inherit;
  text-align: left;
  background: var(--green-50, #f3f7f5);
  border: 0;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}
.ag-prox-item:hover { background: #e6efeb; }
.ag-prox-data {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  color: var(--green-700);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.ag-prox-data b { color: var(--green-900); font-size: 16px; letter-spacing: 0; }
.ag-prox-texto { display: grid; min-width: 0; }
.ag-prox-titulo { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ag-prox-hora { color: var(--muted, #5f6670); font-size: 11px; }
/* V.285: lista dos próximos 30 dias (rola se for longa) + "Ver mais" */
.ag-prox { max-height: 228px; overflow-y: auto; }
.ag-mais { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin: 6px 0 0; padding: 7px 10px; color: var(--green-800);
  background: none; border: 1px dashed var(--line, #e4e4e8); border-radius: 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ag-mais:hover { background: #e6efeb; }
.ag-mais .material-symbols-rounded { font-size: 16px; }
.ag-vazio { margin: 4px 0 0; padding-top: 8px; color: var(--muted, #5f6670); border-top: 1px solid var(--line, #e4e4e8); font-size: 11.5px; }

/* Janelinha com os detalhes (centralizada — não fica presa ao dia clicado) */
.ag-janela { position: fixed; inset: 0; z-index: 4500; display: grid; place-items: center; padding: 16px; }
.ag-janela-fundo { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.45); }
.ag-janela-caixa {
  position: relative;
  width: min(420px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 22px 22px 18px;
  color: var(--green-900);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.3);
  font-family: "Montserrat", Arial, sans-serif;
}
.ag-janela-x {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--green-700);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.ag-janela-x:hover { background: var(--green-50, #f2f2f5); }
.ag-janela-titulo { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.ag-evento + .ag-evento { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, #e4e4e8); }
.ag-evento-publico {
  display: inline-block;
  padding: 3px 9px;
  color: var(--green-700);
  background: var(--green-50, #f2f2f5);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ag-evento-titulo { margin: 8px 0 2px; font-size: 17px; font-weight: 800; line-height: 1.2; }
.ag-evento-quando { margin: 0; color: var(--muted, #5f6670); font-size: 13px; font-weight: 600; }
.ag-evento-desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; white-space: pre-line; }
.ag-meet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  color: #fff;
  background: var(--green-900);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.ag-meet:hover { background: #1a2f29; }
.ag-meet .material-symbols-rounded { font-size: 18px; }

/* V.280: turma de agenda de campanha (vagas ao vivo) */
.ag-evento--campanha .ag-evento-publico { color: #7a4b00; background: #fdf1d8; }
.ag-vagas { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: #2f6b4d; font-size: 13px; font-weight: 600; }
.ag-vagas b { font-size: 15px; font-weight: 800; }
.ag-vagas .material-symbols-rounded { font-size: 18px; }
.ag-vagas.is-quase { color: #a06512; }
.ag-vagas.is-cheia { color: #b23a2f; }
.ag-vagas.is-fim { color: var(--muted, #5f6670); }

@media (prefers-reduced-motion: reduce) { .ag-nav-btn, .ag-dia, .ag-prox-item { transition: none; } }
