/* Agenda: shared theme typography; layout scoped to the events archive. */
.guia-eventos-page {--agenda-ink:#132039;--agenda-muted:#46566c;--agenda-accent:#146173;--agenda-line:#dee6ed;--agenda-soft:#f4f8fa}
.guia-eventos-page .gg-agenda-heading{margin:clamp(16px,3vw,34px) 0 16px}
.guia-eventos-page .gg-agenda-heading h1{margin:0;color:var(--agenda-ink);font-size:clamp(26px,5.7vw,48px);line-height:1.14;letter-spacing:-.035em}
.guia-eventos-page .gg-agenda-heading p{margin:8px 0 0;color:var(--agenda-muted);font-size:15px;line-height:1.5}
.guia-eventos-page .gg-agenda-controls{margin:0 0 20px;padding-bottom:13px;border-bottom:1px solid var(--agenda-line)}
.guia-eventos-page .gg-agenda-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;max-width:620px;position:relative;margin:0}
.gg-agenda-search{display:flex;min-width:0;min-height:48px;align-items:center;border:1px solid var(--agenda-line);border-radius:12px;background:#fff;color:var(--agenda-muted);overflow:hidden}
.gg-agenda-search svg,.gg-agenda-filter svg{width:18px;height:18px;flex:none}
.gg-agenda-search svg{margin-left:12px}
.guia-eventos-page .gg-agenda-search input{min-width:0;width:100%;height:46px;margin:0;padding:0 6px;border:0;border-radius:0;box-shadow:none;background:#fff;color:var(--agenda-ink);font:inherit;font-size:16px}
.gg-agenda-search input::placeholder{color:#526179;font-size:13px;opacity:1}
.gg-agenda-search:focus-within{outline:2px solid var(--agenda-accent);outline-offset:2px}
.gg-agenda-search button{flex:none;min-height:44px;padding:0 8px;border:0;background:#fff;color:var(--agenda-accent);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.gg-agenda-filter{margin:0}
.gg-agenda-filter summary,.gg-agenda-filter-panel button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:0 12px;border:1px solid transparent;border-radius:12px;background:var(--agenda-accent);color:#fff;list-style:none;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.gg-agenda-filter summary::-webkit-details-marker{display:none}
.gg-agenda-filter summary::marker{content:''}
.gg-agenda-filter-panel{position:absolute;inset:56px 0 auto;z-index:5;display:grid;gap:11px;padding:14px;border:1px solid var(--agenda-line);border-radius:14px;background:#fff;box-shadow:0 12px 30px #13203924}
.gg-agenda-filter:not([open]) .gg-agenda-filter-panel{display:none}
.gg-agenda-filter-panel label{display:grid;gap:4px;color:var(--agenda-ink);font-size:14px;font-weight:650}
.guia-eventos-page .gg-agenda-filter-panel select{width:100%;min-height:44px;padding:7px 10px;border:1px solid var(--agenda-line);border-radius:8px;background:#fff;color:var(--agenda-ink);font:inherit;font-size:16px}
.gg-agenda-shortcuts,.gg-agenda-applied{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0}
.gg-agenda-shortcuts a,.gg-agenda-applied a{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 11px;border:1px solid var(--agenda-line);border-radius:999px;background:var(--agenda-soft);color:var(--agenda-ink);font-size:13px;font-weight:650;line-height:1.2;text-decoration:none;overflow-wrap:anywhere}
.gg-agenda-shortcuts a[aria-current],.gg-agenda-applied a:not(.gg-agenda-clear){background:#e3eff2;border-color:#b7d3d9;color:#124d5e}
.gg-agenda-shortcuts a:hover,.gg-agenda-applied a:hover,.gg-agenda-search button:hover{color:var(--agenda-accent);text-decoration:underline}
.guia-eventos-page :is(.gg-agenda-form,.gg-agenda-shortcuts,.gg-agenda-applied,.gg-agenda-editorial,.gg-agenda-submit,.guia-events-grid) :is(a,button,input,select,summary):focus-visible,
.guia-eventos-page .guia-event-card:focus-visible{outline:2px solid var(--agenda-accent);outline-offset:2px}
.guia-eventos-page .guia-results-header{margin-bottom:12px}
.guia-eventos-page .guia-results-title{font-size:clamp(22px,4.5vw,32px);line-height:1.2}
.guia-eventos-page .guia-event-card{border-radius:15px;min-width:0}
.guia-eventos-page .guia-event-card .guia-event-content{padding:12px 14px 14px}
.guia-eventos-page .guia-event-card .guia-event-date-time{display:block;margin-bottom:6px;color:var(--agenda-accent);font-size:13px;font-weight:700}
.guia-eventos-page .guia-event-card .guia-event-title{min-height:0;margin:0 0 4px;font-size:18px;line-height:1.28}
.guia-eventos-page .guia-event-card :is(.guia-event-meta-top,.guia-event-meta-bottom){margin:4px 0 0;padding:0;border:0;color:var(--agenda-muted);font-size:13px;line-height:1.5}
.guia-eventos-page .guia-event-card .guia-event-location{display:block;white-space:normal;overflow-wrap:anywhere}
.guia-eventos-page .guia-event-card :is(.guia-event-date-time,.guia-event-location) svg{display:none}
.guia-eventos-page .gg-agenda-editorial{margin:36px 0 0;padding:24px 0 8px;border-top:1px solid var(--agenda-line);max-width:720px}
.gg-agenda-editorial h2{margin:0 0 10px;color:var(--agenda-ink);font-size:clamp(22px,3vw,28px);line-height:1.2}
.gg-agenda-editorial p{margin:0 0 10px;color:var(--agenda-muted);font-size:15px;line-height:1.65}
.gg-agenda-editorial a,.gg-agenda-submit a{color:#155b74;text-decoration:underline;text-underline-offset:3px}
.guia-eventos-page .gg-agenda-submit{margin:8px 0 24px}
.gg-agenda-submit a{display:inline-flex;min-height:44px;align-items:center;font-weight:650}
@media(max-width:768px){
 .guia-eventos-page .guia-breadcrumb-system{display:none}
 .guia-eventos-page .gg-agenda-heading{margin-top:20px}
 .guia-eventos-page .gg-agenda-heading p{font-size:14px}
 .guia-eventos-page .guia-events-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .guia-eventos-page .guia-event-card .guia-event-media{aspect-ratio:2.04}
 .guia-eventos-page .guia-event-card .guia-event-meta-bottom :is(.guia-event-category,.guia-event-attendance,.separator){display:none}
}
@media(max-width:360px){
 .gg-agenda-search svg{margin-left:7px;width:14px}
 .gg-agenda-search input::placeholder{font-size:12px}
 .gg-agenda-search button{padding:0 5px}
 .gg-agenda-filter summary{padding:0 8px}
}

/* Keep the open panel in the page flow so mobile users can scroll to every option. */
.guia-eventos-page .gg-agenda-form{grid-template-columns:minmax(0,1fr) 94px}
.guia-eventos-page .gg-agenda-search{grid-column:1;grid-row:1;position:relative;z-index:1}
.guia-eventos-page .gg-agenda-filter{grid-column:1/-1;grid-row:1;min-width:0;pointer-events:none}
.guia-eventos-page .gg-agenda-filter summary{box-sizing:border-box;width:94px;margin-left:auto;pointer-events:auto}
.guia-eventos-page .gg-agenda-filter-panel{position:static;gap:12px;margin-top:8px;padding:14px;border-radius:12px;box-shadow:0 4px 16px #1320390c;pointer-events:auto}
.guia-eventos-page .gg-agenda-filter-panel label{gap:4px;font-size:13px;font-weight:650}
.guia-eventos-page .gg-agenda-filter-panel select{min-width:0;min-height:46px;margin:0}
.guia-eventos-page .gg-agenda-filter-panel button{min-height:46px;margin-top:2px}
.guia-eventos-page .gg-agenda-applied .gg-agenda-clear{background:transparent;border-color:transparent;color:var(--agenda-accent)}

/* 18.50.13 — Events discovery: compact, accessible, mobile-first. */
.guia-eventos-page .gg-agenda-heading{margin:clamp(12px,2.4vw,22px) 0 clamp(14px,2vw,18px)}
.guia-eventos-page .gg-agenda-heading h1{font-size:clamp(29px,4.5vw,46px);line-height:1.12;letter-spacing:-.035em}
.guia-eventos-page .gg-agenda-controls{margin-bottom:10px;padding-bottom:10px}
.guia-eventos-page .gg-agenda-form{max-width:680px;gap:8px}
.guia-eventos-page .gg-agenda-shortcuts{gap:7px;margin-top:8px}
.guia-eventos-page .gg-agenda-shortcuts a{background:#fff;border-color:#dbe5eb;transition:background-color .16s,border-color .16s}
.guia-eventos-page .gg-agenda-shortcuts a[aria-current]{background:#e5f2f3;border-color:#91c3ca;color:#105968}
.guia-eventos-page .guia-results-title{font-size:clamp(22px,3.1vw,29px);letter-spacing:-.02em;margin:0}
.guia-eventos-page .guia-results-header{margin-bottom:12px}
.guia-eventos-page .gg-event-map-module{margin:0 0 8px}
.guia-eventos-page .gg-event-map-toggle{min-height:44px;padding:4px 0;font-size:14px;font-weight:650}
.guia-eventos-page .gg-event-map-panel{margin-bottom:16px}
.guia-eventos-page .gg-agenda-filter summary:focus-visible,.guia-eventos-page .gg-event-map-toggle:focus-visible{outline:2px solid #146173;outline-offset:3px}
@media(max-width:768px){
 .guia-eventos-page .gg-agenda-heading{margin:12px 0 14px}
 .guia-eventos-page .gg-agenda-heading h1{font-size:clamp(28px,7.5vw,38px)}
 .guia-eventos-page .gg-agenda-controls{margin-bottom:6px;padding-bottom:8px}
 .guia-eventos-page .gg-agenda-shortcuts{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:1px 1px 5px;margin-right:-10px;-webkit-overflow-scrolling:touch}
 .guia-eventos-page .gg-agenda-shortcuts::-webkit-scrollbar{display:none}
 .guia-eventos-page .gg-agenda-shortcuts a{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:0 12px}
 .guia-eventos-page .gg-agenda-search input{font-size:16px}
 .guia-eventos-page .gg-agenda-search button{min-width:52px;font-size:12px}
 .guia-eventos-page .gg-event-map-module{margin:0 0 6px}
 .guia-eventos-page .guia-results-header{margin-bottom:10px}
}
@media(prefers-reduced-motion:reduce){.guia-eventos-page .gg-agenda-shortcuts a{transition:none}}

/* 18.50.14 — Vertical rhythm of the event map, isolated to the agenda.
   The map is a sibling of the filters and results; margins must not collapse. */
.guia-eventos-page .gg-agenda-controls{margin-bottom:0;padding-bottom:12px}
.guia-eventos-page .gg-event-map-module{display:flow-root;margin:14px 0 22px}
.guia-eventos-page .gg-event-map-toggle{display:inline-flex;min-height:44px;margin:0;padding:6px 0}
.guia-eventos-page .gg-event-map-panel{margin:12px 0 0}
.guia-eventos-page .gg-event-map-summary{margin:0 2px 12px}
.guia-eventos-page .gg-event-map-canvas{margin:0}
.guia-eventos-page .gg-event-map-module + .guia-results-section{margin-top:0}
.guia-eventos-page .guia-results-section{padding-top:0}
.guia-eventos-page .guia-results-header{margin-top:0;margin-bottom:14px}
@media(max-width:768px){
 .guia-eventos-page .gg-agenda-controls{padding-bottom:10px}
 .guia-eventos-page .gg-event-map-module{margin:12px 0 20px}
 .guia-eventos-page .gg-event-map-panel{margin-top:10px}
 .guia-eventos-page .gg-event-map-summary{gap:12px;margin-bottom:10px;flex-wrap:wrap}
 .guia-eventos-page .guia-results-header{margin-bottom:12px}
}

/* 18.50.15 — clear hierarchy, swipeable shortcuts and comfortable tap targets */
.guia-eventos-page .gg-agenda-heading h1{font-weight:700}
.guia-eventos-page .gg-agenda-search button{font-weight:500;font-size:13px;min-width:52px}
.guia-eventos-page .gg-agenda-filter summary{font-weight:500}
.guia-eventos-page .gg-agenda-shortcuts a{font-weight:500;font-size:13px;white-space:nowrap;overflow-wrap:normal}
.guia-eventos-page .gg-agenda-shortcuts a[aria-current]{font-weight:600}
.guia-eventos-page .gg-agenda-controls{margin-bottom:16px}
@media(max-width:650px){
 .guia-eventos-page .gg-agenda-heading{margin-bottom:14px}
 .guia-eventos-page .gg-agenda-heading h1{font-size:clamp(29px,8vw,34px);line-height:1.12}
 .guia-eventos-page .gg-agenda-shortcuts{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;gap:7px;padding:2px 16px 6px 0;scroll-snap-type:x proximity}
 .guia-eventos-page .gg-agenda-shortcuts::-webkit-scrollbar{display:none}
 .guia-eventos-page .gg-agenda-shortcuts a{flex:0 0 auto;min-height:44px;padding:0 12px;scroll-snap-align:start}
 .guia-eventos-page .gg-agenda-controls{margin-bottom:16px;padding-bottom:13px}
}

/* 18.50.16 — single-owner spacing contract for Events page.
   Theme owns transitions between controls, map and agenda; plugin owns map internals. */
.guia-eventos-page .gg-agenda-controls{margin-bottom:0;padding-bottom:0;border-bottom:0}
.guia-eventos-page .gg-event-map-module{display:flow-root;margin:20px 0 24px}
.guia-eventos-page .gg-event-map-toggle{margin:0;min-height:44px;padding:6px 0}
.guia-eventos-page .gg-event-map-panel{margin:12px 0 0}
.guia-eventos-page .gg-event-map-module .gg-map-mobile-panel{margin:16px 0 0}
.guia-eventos-page .gg-event-map-module + .guia-results-section{margin-top:0;padding-top:0}
.guia-eventos-page .guia-results-header{margin-top:0}
@media(max-width:768px){
 .guia-eventos-page .gg-event-map-module{margin-top:20px;margin-bottom:24px}
 .guia-eventos-page .gg-event-map-panel{margin-top:12px}
 .guia-eventos-page .gg-event-map-module .gg-map-mobile-panel{margin-top:16px;margin-bottom:0}
}

/* 18.50.17 — distinct map, selected-event panel and Agenda on mobile.
   Keep the compact 24px rhythm when no event is selected; provide additional
   breathing room only while the selected-event panel is present. */
@media (max-width:650px){
 .guia-eventos-page .gg-event-map-module .gg-map-mobile-panel{margin-top:22px;margin-bottom:0}
 .guia-eventos-page .gg-event-map-module:has(.gg-map-mobile-panel){margin-bottom:36px}
}


/* 18.50.19 — Ações da Agenda alinhadas ao azul institucional; WCAG AA 4,5:1 */
.guia-eventos-page .gg-agenda-filter > summary,
.guia-eventos-page .gg-agenda-filter-panel > button {
  background: #075DCC;
  border-color: #075DCC;
  color: #FFFFFF;
}
.guia-eventos-page .gg-agenda-filter > summary:hover,
.guia-eventos-page .gg-agenda-filter-panel > button:hover {
  background: #064BA6;
  border-color: #064BA6;
  color: #FFFFFF;
}
.guia-eventos-page .gg-agenda-filter > summary:focus-visible,
.guia-eventos-page .gg-agenda-filter-panel > button:focus-visible {
  outline: 3px solid #075DCC;
  outline-offset: 3px;
}
