/* Complementos do CMS sobre o template "Top News" (preserva a identidade visual). */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #000; color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.btn-primary, .bg-primary, .badge-primary { background-color: var(--portal-primary) !important; border-color: var(--portal-primary) !important; }
.text-primary, a.text-primary { color: var(--portal-primary) !important; }
.btn-outline-primary { color: var(--portal-primary); border-color: var(--portal-primary); }
.btn-outline-primary:hover { background: var(--portal-primary); color: #fff; }
.a11y-bar button { background: transparent; border: 1px solid rgba(0,0,0,.2); border-radius: 3px; padding: 0 6px; margin-left: 4px; font-size: 12px; line-height: 20px; cursor: pointer; }
.page-head { background: #f5f5f5; padding: 20px 0; margin-bottom: 24px; }
.page-head h1 { font-size: 1.8rem; margin: 0; }
.portal-card { border: 1px solid #e9ecef; border-radius: 4px; background: #fff; height: 100%; transition: box-shadow .2s; }
.portal-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.portal-card img { width: 100%; height: 190px; object-fit: cover; border-radius: 4px 4px 0 0; }
.portal-card .body { padding: 14px; }
.portal-card h3, .portal-card h5 { font-size: 1.05rem; margin: 0 0 6px; }
.service-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e9ecef; border-radius: 4px; background: #fff; height: 100%; color: #333; }
.service-tile:hover { border-color: var(--portal-primary); text-decoration: none; color: var(--portal-primary); }
.service-tile i { font-size: 26px; color: var(--portal-primary); width: 34px; text-align: center; }
.transp-tile { display: block; text-align: center; padding: 18px 8px; border-radius: 4px; background: var(--portal-primary); color: #fff; height: 100%; }
.transp-tile:hover { color: #fff; opacity: .9; text-decoration: none; }
.transp-tile i { display: block; font-size: 34px; margin-bottom: 8px; }
.banner-slide img { width: 100%; max-height: 520px; object-fit: cover; }
.banner-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.banner-caption h2 { color: #fff; font-size: 1.6rem; }
.breaking-bar { background: var(--portal-secondary); color: #fff; padding: 6px 0; font-size: 14px; }
.breaking-bar a { color: #fff; }
.calendar-table { table-layout: fixed; }
.calendar-table td { height: 82px; vertical-align: top; font-size: 12px; padding: 4px; }
.calendar-table td.today { background: #fff8e1; }
.calendar-table td.other { background: #fafafa; color: #bbb; }
.calendar-table .cal-event { display: block; background: var(--portal-primary); color: #fff; border-radius: 2px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
  /* 7 colunas cabem na largura do celular sem rolagem lateral */
  .calendar-table th, .calendar-table td { padding: 2px; font-size: 11px; }
  .calendar-table td { height: 58px; }
  .calendar-table .cal-event { padding: 0 2px; font-size: 10px; }
}
.date-badge { min-width: 64px; text-align: center; background: var(--portal-primary); color: #fff; border-radius: 4px; padding: 6px; line-height: 1.1; }
.date-badge .d { font-size: 1.6rem; font-weight: bold; display: block; }
.album-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.album-thumbs a { display: block; position: relative; }
.album-thumbs img { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; }
.album-thumbs .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 36px; text-shadow: 0 0 8px rgba(0,0,0,.6); }
.embed-responsive-16by9 iframe { border: 0; }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; background: #222; color: #eee; padding: 12px 0; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.wrap__article-detail-content img { max-width: 100%; height: auto; }
.search-result h3 { font-size: 1.1rem; margin-bottom: 2px; }
.doc-icon { font-size: 28px; color: #c0392b; }
/* Alto contraste */
body.high-contrast, body.high-contrast * { background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
body.high-contrast a, body.high-contrast a * { color: #ff0 !important; text-decoration: underline !important; }
body.high-contrast img { filter: grayscale(100%) contrast(1.2); }
body.high-contrast .btn, body.high-contrast .transp-tile { border: 1px solid #ff0 !important; }
