.portal-sidebar-component {
  --portal-sidebar-surface: #fff;
  --portal-sidebar-border: #dbe5ee;
  --portal-sidebar-text: #17324d;
  --portal-sidebar-muted: #60758a;
  display: grid;
  gap: 28px;
  min-width: 0;
}

.portal-sidebar-section,
.portal-sidebar-news-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.portal-sidebar-heading {
  margin: 0 !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 2px solid color-mix(in srgb, var(--cor-primaria, #0d3b66) 22%, transparent) !important;
  color: var(--portal-sidebar-text) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
}

.portal-sidebar-news {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  min-height: 94px;
  padding: 10px;
  border: 1px solid var(--portal-sidebar-border);
  border-radius: 12px;
  background: var(--portal-sidebar-surface);
  color: var(--portal-sidebar-text) !important;
  box-shadow: 0 4px 14px rgba(15, 42, 70, .07);
  text-decoration: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.portal-sidebar-news:hover {
  border-color: color-mix(in srgb, var(--cor-primaria, #0d3b66) 42%, #fff);
  box-shadow: 0 8px 22px rgba(15, 42, 70, .12);
}

.portal-sidebar-news:focus-visible,
.portal-sidebar-service:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cor-secundaria, #2563eb) 70%, #fff);
  outline-offset: 2px;
}

.portal-sidebar-news-media,
.portal-sidebar-news-media img,
.portal-sidebar-news-placeholder {
  display: block;
  width: 88px;
  height: 72px;
  border-radius: 8px;
}

.portal-sidebar-news-media {
  overflow: hidden;
  background: #edf3f8;
}

.portal-sidebar-news-media img { object-fit: cover; }

.portal-sidebar-news-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--cor-primaria, #0d3b66) 10%, #fff);
  color: var(--cor-primaria, #0d3b66);
  font-size: 22px;
}

.portal-sidebar-news-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.portal-sidebar-news-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--portal-sidebar-text) !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.portal-sidebar-news-date {
  color: var(--portal-sidebar-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.portal-sidebar-empty {
  margin: 0;
  padding: 18px 12px;
  border: 1px dashed var(--portal-sidebar-border);
  border-radius: 12px;
  color: var(--portal-sidebar-muted);
  text-align: center;
}

.portal-sidebar-services {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--portal-sidebar-border);
  border-radius: 12px;
  background: var(--portal-sidebar-surface);
  box-shadow: 0 4px 14px rgba(15, 42, 70, .06);
}

.portal-sidebar-service {
  display: flex;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f5f8fb;
  color: var(--portal-sidebar-text) !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  text-decoration: none !important;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.portal-sidebar-service i {
  flex: 0 0 auto;
  color: var(--cor-primaria, #0d3b66);
  font-size: 11px;
}

.portal-sidebar-service:hover {
  border-color: var(--portal-sidebar-border);
  background: #fff;
}

.page-transparencia-main .portal-sidebar-heading { color: #fff !important; }
.page-transparencia-main .portal-sidebar-heading {
  border-bottom-color: rgba(255, 255, 255, .28) !important;
}

@media (max-width: 991px) {
  .portal-sidebar-component { margin-top: 28px; }
}

@media (max-width: 420px) {
  .portal-sidebar-news { grid-template-columns: 72px minmax(0, 1fr); }
  .portal-sidebar-news-media,
  .portal-sidebar-news-media img,
  .portal-sidebar-news-placeholder { width: 72px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-sidebar-news,
  .portal-sidebar-service { transition: none; }
}
