/* agenda de eventos do bairro */
html:has(body.page-agenda) {
  height: auto; min-height: 100vh;
  overflow-x: hidden; overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(122, 91, 51, .48) rgba(122, 91, 51, .07);
}
html:has(body.page-agenda)::-webkit-scrollbar { width: 10px; }
html:has(body.page-agenda)::-webkit-scrollbar-track { background: rgba(122, 91, 51, .07); }
html:has(body.page-agenda)::-webkit-scrollbar-thumb {
  background: rgba(122, 91, 51, .42); border: 2px solid var(--paper); border-radius: 999px;
}

body.page-agenda {
  overflow: visible; height: auto; min-height: 100vh;
  background:
    radial-gradient(1100px 460px at 12% -10%, rgba(217, 154, 43, .16), transparent 70%),
    radial-gradient(900px 420px at 95% 0%, rgba(193, 97, 74, .12), transparent 70%),
    var(--paper);
}

.agenda-topbar { position: sticky; top: 0; }
.agenda-topbar .brand { text-decoration: none; color: inherit; }
.agenda-nav { display: flex; gap: 6px; margin-left: auto; }
.agenda-nav a {
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 14px;
  color: var(--ink-soft); text-decoration: none; padding: 8px 14px; border-radius: 999px;
}
.agenda-nav a:hover { background: rgba(122, 91, 51, .1); color: var(--ink); }

.voltar {
  padding: 9px 16px; border-radius: 999px;
  border: 2px solid #ddc9a4; background: var(--paper-2);
  color: var(--ink-soft); font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 14px;
  text-decoration: none; white-space: nowrap; transition: all .16s;
}
.voltar:hover { border-color: var(--terra); color: var(--terra); transform: translateY(-1px); }

.ag-wrap { max-width: 1000px; margin: 0 auto; padding: 34px 20px 60px; }

.ag-hero { margin-bottom: 24px; }
.eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--terra);
}
.ag-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; font-weight: 800; }
.ag-hero .lead { margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.ag-hero-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.btn-agenda {
  font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 15px;
  color: #fffdf6; text-decoration: none; padding: 12px 22px; border-radius: 999px;
  background: #4c9a5b; box-shadow: 0 8px 18px rgba(76, 154, 91, .3);
}
.btn-agenda:hover { background: #438a50; transform: translateY(-1px); }
.ag-nota { font-size: 13px; color: #a8916d; }

.ag-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }

/* mês */
.ag-mes { margin-bottom: 34px; }
.ag-mes > h2 {
  margin: 0 0 14px; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase;
  color: #a8916d; font-weight: 800;
  display: flex; align-items: center; gap: 12px;
}
.ag-mes > h2::after { content: ""; flex: 1; height: 2px; background: rgba(122, 91, 51, .14); border-radius: 2px; }

.ag-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px;
  background: var(--paper-2);
  border: 2px solid rgba(122, 91, 51, .16);
  border-radius: 18px; padding: 16px 18px; margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(62, 47, 28, .07);
  transition: transform .15s, border-color .15s;
}
.ag-item:hover { transform: translateY(-2px); border-color: rgba(193, 97, 74, .5); }
.ag-item.exemplo { border-style: dashed; }

.ag-data {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--c, var(--terra)); color: #fffdf6;
  border-radius: 14px; padding: 8px 6px; height: fit-content;
}
.ag-dia { font-family: "Baloo 2", sans-serif; font-size: 30px; font-weight: 800; line-height: 1; }
.ag-mesnome { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; opacity: .92; margin-top: 3px; }
.ag-semana { font-size: 10.5px; opacity: .8; margin-top: 2px; }

.ag-corpo h3 { margin: 0 0 4px; font-family: "Baloo 2", sans-serif; font-size: 19px; font-weight: 800; line-height: 1.2; }
.ag-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.ag-meta b { color: var(--ink); font-weight: 700; }
.ag-desc { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: var(--ink); max-width: 62ch; }
.ag-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-tag {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(122, 91, 51, .09); color: #6b5942;
}
.ag-tag.tipo { background: color-mix(in srgb, var(--c, var(--terra)) 16%, #fff); color: color-mix(in srgb, var(--c, var(--terra)) 70%, #3a2a18); }
.ag-tag.exemplo-tag { background: #fff2cf; color: #8a6a1e; }
.ag-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ag-btn {
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 13.5px;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  border: 2px solid #ddc9a4; color: var(--ink); background: var(--paper);
}
.ag-btn:hover { border-color: var(--terra); color: var(--terra); }

.vazio {
  background: var(--paper-2); border: 2px dashed rgba(122, 91, 51, .28);
  border-radius: 20px; padding: 30px 26px;
}
.vazio h2 { margin: 0 0 10px; font-size: 22px; font-weight: 800; }
.vazio p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.6; max-width: 60ch; }
.carregando { color: #a8916d; }

.ag-como {
  margin-top: 44px; padding: 24px 26px; border-radius: 20px;
  background: rgba(255, 253, 246, .72); border: 2px solid rgba(122, 91, 51, .14);
}
.ag-como h2 { margin: 0 0 12px; font-size: 19px; font-weight: 800; }
.ag-como ol { margin: 0; padding-left: 20px; color: var(--ink-soft); line-height: 1.7; font-size: 14.5px; }
.ag-como li { margin-bottom: 6px; }
.ag-como-fim { margin: 12px 0 0; font-size: 13.5px; color: #a8916d; }

.ag-foot { text-align: center; padding: 10px 20px 44px; color: #a8916d; font-size: 13px; }

@media (max-width: 640px) {
  .ag-wrap { padding: 24px 14px 50px; }
  .agenda-nav { display: none; }
  .ag-item { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; }
  .ag-dia { font-size: 24px; }
  .ag-hero-acts { flex-direction: column; align-items: flex-start; }
}
