@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

html, body { margin: 0; background: #f7f8fb; }

.portal {
  --navy: #014380;
  --turquoise: #00aec3;
  --emerald: #04a583;
  --lime: #c7d301;
  --text: #243044;
  --muted: #667085;
  --line: #e6e8ee;
  --bg: #f7f8fb;
  --card: #fff;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.portal * { box-sizing: border-box; }
.portal a { text-decoration: none; }
.portal-wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.portal-header {
  background: var(--navy);
  color: #fff;
}
.portal-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
}
.portal-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.portal-brand img { height: 36px; width: auto; }
.portal-brand span { font-size: 11px; line-height: 1.25; color: rgba(255,255,255,.82); }
.portal-tagline {
  display: none;
  max-width: 256px;
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1.5;
}
.portal-header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.portal-institutional {
  display: none;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}
.portal-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}
.portal-enter:hover { background: #f3f6fb; }

.portal-nav { background: #fff; border-bottom: 1px solid var(--line); }
.portal-nav-inner { display: flex; gap: 28px; overflow-x: auto; }
.portal-nav a {
  display: inline-flex;
  align-items: center;
  height: 48px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.portal-nav a.is-current { color: var(--navy); border-bottom-color: var(--navy); }

.portal-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 420px;
  color: #fff;
}
.portal-hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portal-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 42, 96, .82) 0%, rgba(16, 52, 112, .66) 22%, rgba(16, 52, 112, .38) 42%, rgba(16, 52, 112, .05) 66%, rgba(16, 52, 112, .02) 100%);
}
.portal-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 48px 0;
}
.portal-hero-copy { max-width: 560px; }
.portal-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.portal-kicker i { width: 32px; height: 1px; background: var(--turquoise); }
.portal-hero h1 { margin: 0; font-size: 40px; font-weight: 600; line-height: 1.12; }
.portal-hero h1 span { display: block; margin-top: 8px; color: var(--turquoise); }
.portal-hero-copy p { max-width: 440px; margin: 20px 0 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.9); }
.portal-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}
.portal-btn:hover { background: #f3f6fb; }
.portal-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
}
.portal-btn-ghost:hover { background: rgba(255,255,255,.1); }
.portal-btn-solid { background: var(--navy); color: #fff; }
.portal-btn-solid:hover { background: #01366a; color: #fff; }
.portal-band { height: 6px; background: linear-gradient(90deg, var(--navy) 0 25%, var(--turquoise) 25% 50%, var(--emerald) 50% 75%, var(--lime) 75% 100%); }

.portal-access { background: #fff; border-bottom: 1px solid var(--line); }
.portal-access h2, .portal-section-kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.portal-access-grid { display: grid; }
.portal-access a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.portal-access a:first-child { border-top: 0; }
.portal-access-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  margin-top: 0;
  border-radius: 8px;
  background: #eef2f6;
  color: #234;
}
.portal-access strong { display: block; margin: 0; font-size: 14px; color: var(--text); }
.portal-access a > span:last-child { display: block; min-width: 0; }
.portal-access a > span:last-child span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.portal-access svg.portal-go { margin-left: auto; flex: none; color: var(--muted); }

.portal-section { padding: 48px 0 56px; }
.portal-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.portal-section-kicker { margin-bottom: 12px; color: var(--navy); }
.portal-section h2 { margin: 0; font-size: 28px; font-weight: 600; }
.portal-section-head p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.portal-more { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-size: 14px; font-weight: 500; }
.portal-grid { display: grid; gap: 20px; }
.portal-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  padding: 22px 22px 18px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.portal-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: var(--lime);
}
.portal-card.is-encerrada::before { background: #d0d5dd; }
.portal-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.portal-card-edital { color: var(--navy); font-size: 13px; font-weight: 600; }
.portal-badge {
  flex: none;
  border-radius: 999px;
  background: var(--lime);
  color: #243044;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.portal-badge.is-encerrada {
  background: #fff;
  color: #8a7420;
  border: 1px solid #e3d36a;
  font-weight: 500;
}
.portal-card-titulo { position: relative; margin: 14px 0 12px; }
.portal-card h3 {
  margin: 0;
  min-height: 2.6em;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-card-titulo-completo {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .14);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.portal-card-titulo:hover .portal-card-titulo-completo,
.portal-card-titulo:focus-within .portal-card-titulo-completo { display: block; }
.portal-card .portal-project,
.portal-ficha .portal-project {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 38px;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.portal-card .portal-project span,
.portal-ficha .portal-project span { color: var(--muted); font-size: 11px; font-weight: 500; }
.portal-card .portal-project strong,
.portal-ficha .portal-project strong { font-size: 14px; font-weight: 600; }
.portal-card-datas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.portal-card-datas div { min-width: 0; }
.portal-card-datas dt { margin: 0; color: var(--muted); font-size: 11px; font-weight: 500; }
.portal-card-datas dd { margin: 4px 0 0; color: var(--text); font-size: 14px; font-weight: 500; }
.portal-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px -22px -18px -24px;
  padding: 16px 22px 18px 24px;
  min-height: 52px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}
.portal-card-link:hover { color: #01325f; }
.portal-card-link:focus-visible {
  outline: 2px solid rgba(1, 67, 128, .28);
  outline-offset: -2px;
}
.portal-empty { margin: 0; color: var(--muted); font-size: 14px; }

.portal-page { padding: 40px 0 64px; }
.portal-page .portal-section-head h1 { margin: 0; font-size: 28px; font-weight: 600; }
.portal-crumb { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.portal-crumb a { color: var(--navy); font-weight: 500; }
.portal-crumb span { margin: 0 6px; }
.portal-ficha {
  position: relative;
  padding: 24px 24px 20px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.portal-ficha::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: var(--lime);
}
.portal-ficha.is-encerrada::before { background: #d0d5dd; }
.portal-ficha .portal-card-top { margin: 0 0 4px; }
.portal-ficha h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.portal-ficha-layout {
  display: grid;
  gap: 22px;
  margin-top: 16px;
}
.portal-ficha-principal {
  min-width: 0;
  display: grid;
  gap: 0;
}
.portal-ficha-lateral {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8fb;
}
.portal-ficha .portal-project { margin: 0; }
.portal-ficha-email strong a {
  color: var(--navy);
  font-weight: 600;
  word-break: break-all;
}
.portal-ficha-email strong a:hover { text-decoration: underline; }
.portal-ficha .portal-card-datas {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.portal-ficha-acoes { margin: 0; }
.portal-ficha-acoes .portal-btn {
  width: 100%;
  justify-content: center;
  height: 44px;
  border-radius: 10px;
  font-weight: 600;
}
.portal-ficha-nota { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.portal-ficha-bloco {
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.portal-ficha-bloco h2,
.portal-ficha-docs h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}
.portal-ficha-texto {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}
.portal-ficha-texto p { margin: 0 0 12px; }
.portal-ficha-texto p:last-child { margin-bottom: 0; }
.portal-ficha-lista {
  margin: 0 0 12px;
  padding: 0 0 0 1.15rem;
}
.portal-ficha-lista:last-child { margin-bottom: 0; }
.portal-ficha-lista li { margin: 0 0 8px; padding-left: 4px; }
.portal-ficha-lista li:last-child { margin-bottom: 0; }
.portal-ficha-docs { margin: 0; padding-top: 4px; border-top: 1px solid var(--line); }
.portal-perfis { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.portal-perfis li { padding: 6px 10px; border-radius: 999px; background: #eef2f6; color: var(--text); font-size: 13px; }
.portal-docs { display: grid; gap: 8px; }
.portal-docs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.portal-docs a:hover { background: #eaf2fa; color: #01325f; }
@media (min-width: 900px) {
  .portal-ficha { padding: 28px 28px 24px 32px; }
  .portal-ficha-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
    align-items: start;
  }
  .portal-ficha-lateral {
    position: sticky;
    top: 20px;
  }
}
button.portal-btn { cursor: pointer; font: inherit; }
button.portal-btn-solid { border: 0; }
.portal-btn-sec { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.portal-btn-sec:hover { background: #f3f6fb; }
body.portal-login-aberto { overflow: hidden; }
.portal-login[hidden] { display: none !important; }
.portal-login {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 24, 40, .52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: portalLoginFade .18s ease-out;
}
.portal-login-card {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px 24px 24px;
  border: 1px solid rgba(230, 232, 238, .9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(16, 24, 40, .2);
  animation: portalLoginUp .22s ease-out;
}
@keyframes portalLoginFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes portalLoginUp {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-login,
  .portal-login-card { animation: none; }
}
.portal-login-fechar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.portal-login-fechar:hover { background: #f3f5f8; color: var(--text); }
.portal-login-head { padding-right: 36px; }
.portal-login-edital {
  display: inline-flex;
  align-items: center;
  height: 26px;
  margin: 0 0 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf2fa;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}
.portal-login-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.portal-login-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.portal-login-erro {
  margin: 16px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0c2bc;
  border-radius: 10px;
  background: #fff5f4;
  color: #9f2d20;
  font-size: 13px;
  line-height: 1.45;
}
.portal-login-field { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.portal-login-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.portal-login-field label,
.portal-login-perfis legend {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.portal-login-link-inline {
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.portal-login-link-inline:hover { color: #01325f; text-decoration: underline; }
.portal-login-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.portal-login-field input::placeholder { color: #98a2b3; }
.portal-login-field input:hover { border-color: #cfd5e0; }
.portal-login-field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(1, 67, 128, .16);
}
.portal-login-field input:-webkit-autofill,
.portal-login-field input:-webkit-autofill:hover,
.portal-login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}
.portal-login-senha { position: relative; }
.portal-login-senha input { padding-right: 46px; }
.portal-login-senha-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}
.portal-login-senha-toggle:hover { background: #f3f5f8; color: var(--text); }
.portal-login-senha-toggle .portal-login-ico-ocultar,
.portal-login-senha-toggle[aria-pressed="true"] .portal-login-ico-ver { display: none; }
.portal-login-senha-toggle[aria-pressed="true"] .portal-login-ico-ocultar { display: block; }
.portal-login-perfis {
  margin: 20px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
}
.portal-login-perfis legend { padding: 0; }
.portal-login-perfis label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.portal-login-perfis label:first-of-type { margin-top: 8px; }
.portal-login-perfis input { margin-top: 2px; accent-color: var(--navy); }
.portal-login-aviso { margin: 10px 0 0; color: #9f2d20; font-size: 13px; }
.portal-login-acoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.portal-login-acoes .portal-btn {
  width: 100%;
  height: 46px;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
}
.portal-login-submit { box-shadow: 0 8px 18px rgba(1, 67, 128, .18); }
.portal-login-submit:hover { box-shadow: 0 10px 22px rgba(1, 67, 128, .22); }
.portal-login-extra {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.portal-login-extra a { color: var(--navy); font-weight: 600; }
.portal-login-extra a:hover { text-decoration: underline; }
.portal-lista { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.portal-lista li + li { border-top: 1px solid var(--line); }
.portal-lista-item {
  display: grid;
  grid-template-columns: 118px auto minmax(0, 1fr) auto;
  grid-template-areas: "edital status titulo meta";
  gap: 12px 16px;
  align-items: center;
  padding: 14px 18px;
  color: var(--text);
}
.portal-lista-item:hover { background: #f7f8fb; }
.portal-lista-edital { grid-area: edital; color: var(--navy); font-size: 13px; font-weight: 600; }
.portal-lista-item .portal-badge { grid-area: status; justify-self: start; }
.portal-lista-item strong {
  grid-area: titulo;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-lista-meta { grid-area: meta; color: var(--muted); font-size: 13px; white-space: nowrap; }

.portal-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.portal-filtros {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.portal-filtros-campo { display: flex; flex-direction: column; gap: 6px; }
.portal-filtros-campo label {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}
.portal-filtros-campo input,
.portal-filtros-campo select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.portal-filtros-campo input:focus,
.portal-filtros-campo select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(1, 67, 128, .14);
}
.portal-filtros-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}
.portal-filtros-acoes .portal-btn {
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.portal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.portal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}
.portal-table th,
.portal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.portal-table th {
  background: #f7f8fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.portal-table tbody tr:last-child td { border-bottom: 0; }
.portal-table tbody tr:hover { background: #f7f8fb; }
.portal-table-edital {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}
.portal-table-titulo {
  max-width: 360px;
  line-height: 1.4;
}
.portal-table-titulo a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
}
.portal-table-titulo a:hover { color: var(--navy); }
.portal-table-projeto {
  max-width: 180px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-table-acao { white-space: nowrap; }
.portal-table-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}
.portal-table-link:hover { background: #eaf2fa; }
.portal-paginacao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 0;
}
.portal-paginacao-info {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.portal-paginacao ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.portal-paginacao a,
.portal-paginacao span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.portal-paginacao a:hover { background: #f3f5f8; color: var(--navy); }
.portal-paginacao [aria-current="page"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.portal-paginacao [aria-disabled="true"] {
  color: #98a2b3;
  cursor: not-allowed;
}
.portal-paginacao-ellipsis {
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
}

.portal-cta { background: #f3f5f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portal-cta-inner { display: grid; gap: 24px; align-items: center; padding: 48px 0; }
.portal-cta h2 { margin: 0; font-size: 24px; font-weight: 600; }
.portal-cta p { margin: 12px 0 0; max-width: 640px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.portal-footer { background: #fff; border-top: 1px solid var(--line); color: var(--muted); }
.portal-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding: 40px 0; }
.portal-footer .portal-brand img { filter: brightness(0); }
.portal-footer .portal-brand span { color: var(--muted); }
.portal-footer p { max-width: 280px; margin: 16px 0 0; font-size: 12px; line-height: 1.55; }
.portal-pills { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.portal-pills span { display: inline-flex; align-items: center; gap: 8px; }

@media (min-width: 768px) {
  .portal-tagline, .portal-institutional { display: flex; }
  .portal-hero h1 { font-size: 56px; }
  .portal-access-grid { grid-template-columns: repeat(3, 1fr); }
  .portal-access a { border-top: 0; padding: 8px 28px 8px 0; }
  .portal-access a + a { border-left: 1px solid var(--line); padding-left: 28px; }
  .portal-grid { grid-template-columns: 1fr 1fr; }
  .portal-cta-inner { grid-template-columns: 1fr auto; }
  .portal-hero-shade { background: linear-gradient(90deg, rgba(12, 42, 96, .82) 0%, rgba(16, 52, 112, .66) 22%, rgba(16, 52, 112, .38) 42%, rgba(16, 52, 112, .05) 66%, rgba(16, 52, 112, .02) 100%); }
  .portal-filtros {
    grid-template-columns: minmax(0, 1.6fr) minmax(160px, .7fr) minmax(110px, .45fr) auto;
    align-items: end;
  }
  .portal-filtros-acoes { padding-bottom: 1px; }
}

@media (max-width: 767px) {
  .portal-hero-shade { background: linear-gradient(180deg, rgba(16, 52, 112, .72), rgba(16, 52, 112, .55) 45%, rgba(16, 52, 112, .62)); }
  .portal-hero img { object-position: 65% center; }
  .portal-lista-item {
    grid-template-columns: 1fr auto;
    grid-template-areas: "edital status" "titulo titulo" "meta meta";
    gap: 6px 12px;
  }
}
