/* Central de calendário: complementa a identidade visual do portal. */
.agenda-page-hero::before { background: linear-gradient(90deg,rgba(2,13,58,.9),rgba(8,32,108,.56) 58%,rgba(2,16,70,.1)),url("fachada-reitoria-atual.jpg") center 49%/cover; }
.agenda-page-hero { min-height: 315px; }
.agenda-page-hero h1 { max-width: 780px; }
.agenda-page-hero p { max-width: 610px; }
.agenda-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin: -43px 0 28px; position: relative; z-index: 2; padding: 10px; width: fit-content; max-width: 100%; border: 1px solid #e0e7f2; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 15px 32px rgba(10,28,80,.12); }
.agenda-tabs button { border: 0; border-radius: 13px; padding: 12px 19px; color: #213568; background: #f3f6fc; font-size: .82rem; font-weight: 800; cursor: pointer; }
.agenda-tabs button:hover,.agenda-tabs button:focus-visible { color: #00107a; background: #e9effb; }
.agenda-tabs button.is-active { color: #fff; background: #001b87; box-shadow: 0 6px 16px rgba(0,16,122,.23); }
.agenda-hub-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(278px,322px); gap: 22px; align-items: start; }
.agenda-hub-main,.agenda-hub-side { min-width: 0; }
.agenda-hub-side { display: grid; gap: 17px; }
.agenda-filter-bar { margin-bottom: 24px; }
.agenda-filter-bar > span { display: block; margin-bottom: 9px; color: #687796; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.agenda-filter-bar > div { display: flex; flex-wrap: wrap; gap: 7px; }
.agenda-filter-bar button { border: 1px solid #dce5f4; border-radius: 999px; padding: 8px 13px; color: #385079; background: #fff; font-size: .72rem; font-weight: 750; cursor: pointer; }
.agenda-filter-bar button:hover,.agenda-filter-bar button.is-active { color: #fff; border-color: #001b87; background: #001b87; }
.agenda-section-heading { margin: 0 0 17px; }
.agenda-section-heading h2 { margin: 4px 0 5px; color: #001b75; font: 400 clamp(1.9rem,3vw,2.7rem)/1.1 var(--serif); }
.agenda-section-heading p { margin: 0; color: #697797; font-size: .84rem; }
.agenda-next-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 27px 0 15px; border-bottom: 1px solid #dbe3f0; }
.agenda-next-heading button,.agenda-side-more,.agenda-month-panel > button { border: 0; color: #001b87; background: none; font-size: .72rem; font-weight: 850; cursor: pointer; }
.agenda-hub-results { display: grid; gap: 10px; }
.agenda-event-card { display: grid; grid-template-columns: 64px 92px minmax(0,1fr) auto; align-items: center; gap: 15px; min-width: 0; padding: 14px; border: 1px solid #e0e7f1; border-radius: 17px; background: #fff; box-shadow: 0 7px 20px rgba(10,31,78,.04); }
.agenda-event-card.is-featured { border-color: #d5e1f5; background: linear-gradient(110deg,#eef4ff,#fff); box-shadow: 0 12px 27px rgba(9,36,92,.09); }
.agenda-event-date { display: grid; align-content: center; justify-items: center; min-height: 71px; border-radius: 11px; color: #001b87; background: #f1f5fc; line-height: 1; }
.agenda-event-date strong { font: 400 1.85rem/1 var(--serif); }
.agenda-event-date span { margin-top: 4px; font-size: .68rem; font-weight: 900; }
.agenda-event-thumb,.agenda-event-symbol { width: 92px; height: 70px; border-radius: 10px; object-fit: cover; }
.agenda-event-symbol { display: grid; place-items: center; color: #b98114; background: linear-gradient(135deg,#fff0c7,#f7f9fc); }
.agenda-event-symbol .icon { width: 29px; height: 29px; }
.agenda-event-copy { min-width: 0; }
.agenda-category { display: inline-block; border-radius: 999px; padding: 4px 8px; color: #0b3a9b; background: #e7efff; font-size: .61rem; font-weight: 850; line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.agenda-category.gold { color: #805908; background: #fff0cc; }
.agenda-category.green { color: #087a57; background: #def6ea; }
.agenda-category.violet { color: #64439b; background: #eee6fa; }
.agenda-featured-tag { margin-left: 6px; color: #9b6b0e; font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.agenda-event-copy h3 { margin: 6px 0 3px; color: #09266e; font: 700 1.02rem/1.25 var(--display); }
.agenda-event-copy p { margin: 0 0 6px; color: #5c6c89; font-size: .73rem; line-height: 1.42; }
.agenda-event-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #60708d; font-size: .67rem; font-weight: 650; }
.agenda-details-link { justify-self: end; border-radius: 10px; padding: 9px 12px; color: #fff; background: #001b87; font-size: .68rem; font-weight: 800; white-space: nowrap; text-decoration: none; }
.agenda-details-link:hover { background: #173aab; }
.agenda-empty-state { padding: 25px; border: 1px dashed #ced9eb; border-radius: 15px; color: #64738c; background: #f8fafd; font-size: .82rem; }
.agenda-empty-state button { display: inline-block; margin-top: 12px; padding: 8px 0; border: 0; color: #001b87; background: transparent; font-size: .76rem; font-weight: 850; cursor: pointer; }
.agenda-side-card,.agenda-month-panel { padding: 18px; border: 1px solid #e0e7f1; border-radius: 18px; background: #fff; box-shadow: 0 9px 25px rgba(11,35,85,.06); }
.agenda-side-title { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #aa7510; }
.agenda-side-title h3 { margin: 0; color: #123074; font: 700 1.05rem/1.25 var(--serif); }
.agenda-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 14px; color: #183677; text-align: center; }
.agenda-calendar-head strong { text-transform: capitalize; font: 700 .85rem/1.2 var(--display); }
.agenda-calendar-head button { border: 0; border-radius: 8px; width: 28px; height: 28px; color: #16347a; background: #f2f5fb; font-size: 1.25rem; cursor: pointer; }
.agenda-calendar-head button:hover { background: #e3ebfa; }
.agenda-calendar-weekdays,.agenda-calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; text-align: center; }
.agenda-calendar-weekdays { margin-bottom: 5px; color: #8090aa; font-size: .55rem; font-weight: 850; }
.agenda-calendar-day { display: grid; place-items: center; align-content: center; width: 100%; min-height: 34px; border: 0; border-radius: 8px; color: #394b6d; background: transparent; font-size: .7rem; cursor: pointer; }
.agenda-calendar-day:hover,.agenda-calendar-day.is-selected { color: #fff; background: #001b87; }
.agenda-calendar-day.is-today { outline: 1px solid #c99b2c; outline-offset: -2px; }
.agenda-calendar-dots { display: flex; gap: 2px; min-height: 4px; margin-top: 3px; }
.agenda-calendar-dots i,.agenda-calendar-legend i { width: 4px; height: 4px; border-radius: 50%; background: #2a69b9; }
.agenda-calendar-dots i.gold,.agenda-calendar-legend i.gold { background: #d69b1c; }
.agenda-calendar-dots i.green,.agenda-calendar-legend i.green { background: #32aa78; }
.agenda-calendar-dots i.violet,.agenda-calendar-legend i.violet { background: #8055bc; }
.agenda-calendar-day:hover i,.agenda-calendar-day.is-selected i { background: #fff; }
.agenda-calendar-legend { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e8edf5; color: #75839a; font-size: .61rem; }
.agenda-calendar-legend span { display: inline-flex; align-items: center; gap: 4px; }
.agenda-calendar-legend i { width: 7px; height: 7px; }
.agenda-side-hour { display: grid; grid-template-columns: 34px 38px 1fr; gap: 6px; align-items: baseline; padding: 9px 0; border-top: 1px solid #edf1f6; color: #52617e; font-size: .65rem; }
.agenda-side-hour b { color: #ab7914; }
.agenda-side-hour time { color: #142d79; font-weight: 800; }
.agenda-side-more { display: block; margin: 12px 0 0 auto; padding: 0; }
.agenda-month-panel { margin-bottom: 8px; }
.agenda-month-panel .agenda-calendar-grid { gap: 4px; }
.agenda-month-panel .agenda-calendar-day { min-height: 44px; font-size: .8rem; }
.agenda-month-panel > button { margin-top: 13px; padding: 0; }
.agenda-fixed-list { overflow: hidden; border: 1px solid #e1e7f1; border-radius: 17px; background: #fff; }
.agenda-fixed-row { display: grid; grid-template-columns: 130px minmax(0,1fr) 60px; gap: 12px; align-items: center; padding: 17px 19px; border-bottom: 1px solid #edf1f7; color: #596a87; font-size: .79rem; }
.agenda-fixed-row:last-child { border-bottom: 0; }
.agenda-fixed-row span { color: #a47417; font-weight: 800; }
.agenda-fixed-row strong { color: #173471; }
.agenda-fixed-row small { display: block; margin-top: 5px; color: #64738d; font-size: .7rem; font-weight: 400; line-height: 1.45; }
.agenda-fixed-row time { text-align: right; font-weight: 850; color: #001b87; }
.agenda-contact-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 31px; padding: 25px; border-radius: 19px; color: #fff; background: linear-gradient(105deg,#091852,#123c91); }
.agenda-contact-cta .eyebrow { color: #f0c65c; }
.agenda-contact-cta h2 { margin: 6px 0; color: #fff; font: 400 1.65rem/1.12 var(--serif); }
.agenda-contact-cta p { margin: 0; color: #d9e3f8; font-size: .77rem; line-height: 1.55; }
.agenda-contact-cta .btn { flex-shrink: 0; }
.agenda-disclaimer { margin: 25px 0 0; color: #7b879a; font-size: .74rem; }
.agenda-detail-lead { font-size: 1.02rem !important; }
.agenda-detail-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 23px 0; }
.agenda-detail-facts div { padding: 12px; border-radius: 10px; background: #f2f6fc; }
.agenda-detail-facts dt { color: #8694a9; font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.agenda-detail-facts dd { margin: 3px 0 0; color: #233c77; font-size: .81rem; font-weight: 750; }
.agenda-stops { color: #4b5d7b; line-height: 1.65; }
.agenda-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.agenda-detail-actions button { cursor: pointer; }
.agenda-admin-editor .agenda-form { gap: 12px; }
.agenda-admin-editor .field[hidden] { display: none; }
.agenda-admin-editor .field small { display: block; margin-top: 4px; color: #78859c; font-size: .64rem; }
.agenda-admin-switches { display: grid; gap: 8px; }
.agenda-check { display: flex; align-items: center; gap: 8px; color: #33456c; font-size: .76rem; font-weight: 700; }
.agenda-check input { accent-color: #001b87; }
.agenda-admin-form-actions,.agenda-admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.agenda-admin-actions button:first-child { color: #123c93; background: #eaf0ff; }
.agenda-preview-row { grid-template-columns: 54px minmax(0,1fr) auto; }
@media (max-width: 1000px) { .agenda-hub-layout { grid-template-columns: 1fr; } .agenda-hub-side { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .agenda-tabs { width: 100%; margin-top: -30px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .agenda-tabs button { padding: 11px 9px; } .agenda-hub-side { grid-template-columns: 1fr; } .agenda-event-card { grid-template-columns: 53px 65px minmax(0,1fr); gap: 10px; } .agenda-event-date { min-height: 57px; } .agenda-event-date strong { font-size: 1.5rem; } .agenda-event-thumb,.agenda-event-symbol { width: 65px; height: 57px; } .agenda-event-copy h3 { font-size: .91rem; } .agenda-details-link { grid-column: 3; justify-self: start; } .agenda-detail-facts { grid-template-columns: 1fr; } .agenda-contact-cta { flex-direction: column; align-items: flex-start; } }
@media (max-width: 470px) { .agenda-event-card { grid-template-columns: 52px minmax(0,1fr); } .agenda-event-thumb,.agenda-event-symbol { display: none; } .agenda-details-link { grid-column: 2; } .agenda-fixed-row { grid-template-columns: 90px minmax(0,1fr) 42px; gap: 5px; padding: 13px 10px; font-size: .68rem; } .agenda-preview-row { grid-template-columns: 49px minmax(0,1fr); } .agenda-admin-actions { grid-column: 2; } }

/* Airy public calendar: navigation, filters and programming are separate surfaces. */
#agenda-page-content { padding-top: 12px; }
#agenda-page-content .agenda-navigation-label { margin-bottom: 14px; color: #846322; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
#agenda-page-content .agenda-tabs { width: 100%; margin: 0 0 28px; padding: 12px; gap: 12px; border-radius: 22px; box-shadow: 0 8px 24px rgba(10,28,80,.06); }
#agenda-page-content .agenda-tabs button { flex: 1; padding: 16px 20px; font-size: .87rem; }
#agenda-page-content .agenda-filter-bar { margin: 0 0 36px; padding: 24px 28px; border: 1px solid #e1e7f1; border-radius: 20px; background: rgba(255,255,255,.8); }
#agenda-page-content .agenda-filter-bar > span { margin-bottom: 16px; }
#agenda-page-content .agenda-filter-bar > div { gap: 10px; }
#agenda-page-content .agenda-filter-bar button { padding: 10px 16px; font-size: .76rem; }
#agenda-page-content .agenda-hub-layout { gap: 32px; grid-template-columns: minmax(0,1fr) 310px; }
#agenda-page-content .agenda-hub-results { gap: 32px; }
#agenda-page-content .agenda-content-block { min-width: 0; padding: 30px; border: 1px solid #e1e7f1; border-radius: 24px; background: #fff; box-shadow: 0 12px 34px rgba(10,31,78,.04); }
#agenda-page-content .agenda-event-list { display: grid; gap: 20px; }
#agenda-page-content .agenda-section-heading { margin: 0 0 8px; }
#agenda-page-content .agenda-section-heading h2 { margin: 10px 0 12px; font-size: clamp(1.8rem,2.5vw,2.3rem); line-height: 1.18; }
#agenda-page-content .agenda-section-heading p { line-height: 1.7; }
#agenda-page-content .agenda-next-heading { margin: 0 0 8px; padding-bottom: 18px; align-items: center; }
#agenda-page-content .agenda-next-heading h2 { max-width: 520px; }
#agenda-page-content .agenda-next-heading button { flex-shrink: 0; padding: 10px 0 10px 10px; }
#agenda-page-content .agenda-event-card { grid-template-columns: 54px 64px minmax(0,1fr); gap: 16px; padding: 22px; background: #f8fafd; box-shadow: none; border-radius: 17px; }
#agenda-page-content .agenda-event-date { min-height: 70px; background: #edf2fb; }
#agenda-page-content .agenda-event-thumb,#agenda-page-content .agenda-event-symbol { width: 64px; height: 70px; }
#agenda-page-content .agenda-event-copy h3 { margin: 9px 0 8px; line-height: 1.35; }
#agenda-page-content .agenda-event-copy p { font-size: .8rem; line-height: 1.65; margin-bottom: 12px; }
#agenda-page-content .agenda-event-facts { gap: 8px 15px; font-size: .74rem; line-height: 1.5; }
#agenda-page-content .agenda-details-link { grid-column: 3; justify-self: start; padding: 11px 15px; font-size: .74rem; }
#agenda-page-content .agenda-hub-side { gap: 28px; }
#agenda-page-content .agenda-side-card { padding: 25px 22px; border-radius: 22px; box-shadow: 0 10px 30px rgba(11,35,85,.04); }
#agenda-page-content .agenda-side-title { margin-bottom: 22px; }
#agenda-page-content .agenda-calendar-head { margin-bottom: 20px; }
#agenda-page-content .agenda-calendar-head button { width: 32px; height: 32px; }
#agenda-page-content .agenda-calendar-grid { row-gap: 7px; }
#agenda-page-content .agenda-calendar-day { min-height: 36px; font-size: .76rem; }
#agenda-page-content .agenda-calendar-legend { margin-top: 20px; padding-top: 18px; gap: 10px 12px; line-height: 1.6; }
#agenda-page-content .agenda-side-hour { padding: 15px 0; font-size: .74rem; line-height: 1.65; }
#agenda-page-content .agenda-side-more { margin-top: 20px; }
#agenda-page-content .agenda-contact-cta { margin-top: 44px; padding: 34px; gap: 30px; border-radius: 23px; }
#agenda-page-content .agenda-contact-cta h2 { margin: 10px 0 14px; line-height: 1.3; }
#agenda-page-content .agenda-disclaimer { line-height: 1.8; }
#agenda-page-content .agenda-fixed-group-title { margin: 0; padding: 22px 20px 16px; color: #986d16; background: #f5f7fc; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
#agenda-page-content .agenda-fixed-row { grid-template-columns: 135px minmax(0,1fr) 92px; padding: 23px 20px; gap: 18px; line-height: 1.6; }
#agenda-page-content .agenda-fixed-row time { line-height: 1.7; }
@media (max-width: 1050px) {
 #agenda-page-content .agenda-hub-layout { grid-template-columns: 1fr; }
 #agenda-page-content .agenda-hub-side { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
}
@media (max-width: 700px) {
 #agenda-page-content .agenda-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 9px; margin: 0 0 24px; }
 #agenda-page-content .agenda-tabs button { padding: 15px 8px; font-size: .78rem; }
 #agenda-page-content .agenda-filter-bar { padding: 22px 18px; margin-bottom: 28px; }
 #agenda-page-content .agenda-filter-bar button { font-size: .72rem; padding: 10px 12px; }
 #agenda-page-content .agenda-hub-side { grid-template-columns: 1fr; }
 #agenda-page-content .agenda-content-block { padding: 24px 18px; border-radius: 20px; }
 #agenda-page-content .agenda-next-heading { align-items: flex-start; flex-direction: column; gap: 0; }
 #agenda-page-content .agenda-next-heading button { padding-left: 0; }
 #agenda-page-content .agenda-event-card { grid-template-columns: 48px minmax(0,1fr); padding: 18px 14px; gap: 14px; }
 #agenda-page-content .agenda-event-thumb,#agenda-page-content .agenda-event-symbol { display: none; }
 #agenda-page-content .agenda-details-link { grid-column: 2; }
 #agenda-page-content .agenda-event-copy h3 { font-size: 1rem; }
 #agenda-page-content .agenda-event-copy p { font-size: .79rem; }
 #agenda-page-content .agenda-contact-cta { padding: 28px 22px; margin-top: 32px; }
 #agenda-page-content .agenda-fixed-row { grid-template-columns: 1fr auto; padding: 20px 16px; gap: 10px 16px; }
 #agenda-page-content .agenda-fixed-row > span { grid-column: 1/-1; }
}

/* Calendário administrativo e alterações de ocorrências. */
.agenda-management { margin-bottom:28px; }
.agenda-management .panel-card-heading p { margin:8px 0 0;color:var(--muted,#637393);font-size:.86rem; }
.agenda-management-grid { display:grid;grid-template-columns:minmax(260px,350px) minmax(0,1fr);gap:32px;align-items:start; }
.agenda-management-month { padding:20px;background:#f3f6fd;border:1px solid #dce5f5;border-radius:20px; }
.agenda-management-day { display:grid;gap:16px;margin-top:18px; }
.agenda-managed-event { padding:22px;border:1px solid #dce5f5;border-radius:18px;background:#fff; }
.agenda-managed-event h4 { font-size:1.08rem;margin:12px 0 8px; }
.agenda-managed-event p { font-size:.86rem; }
.agenda-managed-meta { display:flex;justify-content:space-between;gap:12px;font-size:.76rem;color:#50658c; }
.agenda-managed-meta span:first-child { font-weight:800;color:#122985; }
.agenda-occurrence-controls { margin-top:18px;border-top:1px solid #e4eaf5;padding-top:14px; }
.agenda-occurrence-controls summary { cursor:pointer;font-weight:700;font-size:.82rem;color:#142a88; }
.agenda-occurrence-controls form { display:grid;gap:14px;margin-top:18px; }
.agenda-change-status { color:#8b5a00;font-weight:700; }
.agenda-managed-event.is-cancelled { background:#f9f4f4;border-color:#e9cdcd; }
.agenda-managed-event.is-cancelled h4 { text-decoration:line-through; }
@media(max-width:850px){.agenda-management-grid{grid-template-columns:1fr;gap:22px}.agenda-management-month{max-width:450px;width:100%;box-sizing:border-box}.agenda-management .panel-card-heading{align-items:flex-start;gap:14px;flex-direction:column}.agenda-managed-event{padding:18px}}
.agenda-occurrence-help{font-size:.77rem;line-height:1.65;color:var(--admin-muted,#687b96);margin:12px 0 0}.agenda-occurrence-editor summary{display:flex;align-items:center;gap:9px}.agenda-occurrence-editor summary:before{content:'✎';font-size:1rem}.agenda-occurrence-editor form{padding:17px;border:1px solid var(--admin-line,#dfe7f3);border-radius:14px;background:var(--admin-surface,#f8faff)}.agenda-occurrence-editor textarea{resize:vertical}.agenda-occurrence-editor .btn{justify-self:start}
