:root {
  --azul: #022549;
  --rosa: #e00286;
  --cinza: #f2f2f2;
  --branco: #ffffff;
  --texto: #1d3557;
  --topo-fixo-altura: 110px;
  --topo-fixo-altura-scroll: 84px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  --topo-fixo-atual: var(--topo-fixo-altura);
  font-family: "Segoe UI", sans-serif;
  background: var(--azul);
  color: var(--texto);
  padding-top: var(--topo-fixo-atual);
  transition: padding-top .22s ease;
}

body.topo-reduzido {
  --topo-fixo-atual: var(--topo-fixo-altura-scroll);
}

.topo {
  min-height: var(--topo-fixo-atual);
  background: var(--cinza);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  border: 2px solid rgba(224, 2, 134, 0.55);
  border-top: none;
  padding: 22px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  transition: min-height .22s ease, padding .22s ease, border-radius .22s ease, box-shadow .22s ease;
}



.logo-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
}

.logo-box img {
  height: 56px;
  display: block;
  transition: height .22s ease;
}

.topo-acoes {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--azul);
  color: var(--azul);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease, padding .22s ease, min-width .22s ease;
  margin-top: 2px;
}

.btn-login:hover {
  background: var(--azul);
  color: #fff;
  transform: translateY(-1px);
}

body.topo-reduzido .topo {
  padding: 12px 28px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

body.topo-reduzido .logo-box img {
  height: 44px;
}

body.topo-reduzido .btn-login {
  min-width: 84px;
  padding: 8px 14px;
}

.conteudo {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 28px 42px;
}

.titulo-area {
  color: #fff;
  margin-bottom: 18px;
}

.titulo-area h1 {
  font-size: 2rem;
  font-weight: 800;
}

.titulo-area .data {
  display: block;
  margin-top: 6px;
  opacity: 0.88;
}

.noticias-layout {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.lista-coluna {
  flex: 1 1 auto;
  min-width: 0;
  transition: flex-basis .44s cubic-bezier(.22,.61,.36,1), max-width .44s cubic-bezier(.22,.61,.36,1);
}

.noticias-layout.com-detalhe .lista-coluna {
  flex: 0 0 34%;
  max-width: 460px;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: gap .25s ease;
}

.card {
  background: var(--cinza);
  border-radius: 36px;
  padding: 22px 28px;
  cursor: pointer;
  border: 2px solid rgba(224, 2, 134, 0.45);
  transition: opacity .42s ease, border-color .42s ease, box-shadow .42s ease, background-color .42s ease;
}

.card:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.card h3 {
  color: var(--azul);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0;
}

.grid.tem-selecao .card:not(.ativa) {
  opacity: 0.72;
  background: #e8ebf0;
}

.card.ativa {
  border-color: #ff2aa9;
  box-shadow: 0 12px 26px rgba(224, 2, 134, 0.2);
}

.painel-detalhe {
  background: var(--cinza);
  border-radius: 22px;
  width: min(760px, 64vw);
  max-width: 0;
  min-width: 0;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  overflow: hidden;
  padding: 22px 0;
  max-height: calc(100vh - 210px);
  position: sticky;
  top: calc(var(--topo-fixo-atual) + 20px);
  display: flex;
  flex-direction: column;
  will-change: opacity, transform;
  clip-path: inset(0 100% 0 0 round 22px);
  border: 2px solid rgba(224, 2, 134, 0.35);
  transition: max-width .44s cubic-bezier(.22,.61,.36,1), opacity .34s ease, transform .44s cubic-bezier(.22,.61,.36,1), padding .44s cubic-bezier(.22,.61,.36,1), clip-path .44s cubic-bezier(.22,.61,.36,1);
}

.noticias-layout.com-detalhe .painel-detalhe {
  max-width: min(760px, 64vw);
  opacity: 1;
  transform: translateX(0);
  clip-path: inset(0 0 0 0 round 22px);
  pointer-events: auto;
  padding: 22px 22px 20px;
}

.painel-detalhe > * {
  opacity: 0;
  transition: opacity .22s ease;
}

.noticias-layout.com-detalhe .painel-detalhe > * {
  opacity: 1;
  transition-delay: .12s;
}

.painel-detalhe h2 {
  color: var(--azul);
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 8px;
  transition: opacity .28s ease, transform .28s ease;
}

.detalhe-data {
  display: block;
  font-size: 0.82rem;
  color: #607091;
  margin-bottom: 16px;
  transition: opacity .28s ease, transform .28s ease;
}

.conteudo-noticia {
  color: #1b3461;
  line-height: 1.72;
  overflow-y: auto;
  max-height: calc(100vh - 330px);
  padding-right: 8px;
  transition: opacity .28s ease, transform .28s ease;
}

.painel-detalhe.trocando-conteudo h2,
.painel-detalhe.trocando-conteudo .detalhe-data,
.painel-detalhe.trocando-conteudo .conteudo-noticia {
  opacity: 0;
  transform: translateY(6px);
}

.conteudo-noticia p {
  margin-bottom: 1em;
}

.conteudo-noticia .tabela-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 20px;
}

.conteudo-noticia table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  background: #fff;
}

.conteudo-noticia th,
.conteudo-noticia td {
  border: 1px solid #c8d1df;
  padding: 9px 10px;
  color: #18345f;
  font-size: 0.93rem;
  line-height: 1.35;
}

.conteudo-noticia th {
  background: #e7f0ff;
  color: #123562;
  font-weight: 700;
}

.conteudo-noticia em {
  display: block;
  margin-top: 18px;
  border-top: 1px solid #d4dbe8;
  padding-top: 10px;
  color: #607091;
  font-size: 0.85rem;
}

.conteudo-noticia .assinatura-nota {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #c8d1df;
}

.conteudo-noticia {
  scrollbar-width: thin;
  scrollbar-color: #9eb0cc transparent;
}

.conteudo-noticia::-webkit-scrollbar {
  width: 8px;
}

.conteudo-noticia::-webkit-scrollbar-thumb {
  background: #9eb0cc;
  border-radius: 999px;
}

.btn-fechar-detalhe {
  align-self: flex-end;
  margin-top: 14px;
  border: none;
  border-radius: 999px;
  background: #cf1212;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: 7px 14px;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.btn-fechar-detalhe:hover {
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .topo {
    padding: 18px 20px;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .topo-acoes {
    gap: 12px;
  }

  .noticias-layout {
    flex-direction: column;
    gap: 16px;
  }

  .painel-detalhe {
    width: 100%;
    max-width: 100%;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    clip-path: inset(0 0 100% 0 round 22px);
    pointer-events: none;
    position: static;
    padding: 0 18px;
  }

  .noticias-layout.com-detalhe .painel-detalhe {
    max-width: 100%;
    max-height: none;
    min-height: 260px;
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0 round 22px);
    pointer-events: auto;
    padding: 18px;
  }

  .noticias-layout.com-detalhe .painel-detalhe > * {
    transition-delay: .06s;
  }

  .noticias-layout.com-detalhe .lista-coluna {
    flex: 1 1 auto;
    max-width: none;
  }

  .card h3 {
    font-size: 1.35rem;
  }

  .grid.tem-selecao .card:not(.ativa) {
    opacity: 0.78;
    filter: none;
  }

  .conteudo-noticia {
    max-height: 380px;
  }
}

@media (max-width: 720px) {
  :root {
    --topo-fixo-altura: 140px;
    --topo-fixo-altura-scroll: 122px;
  }

  .topo {
    flex-direction: column;
    align-items: flex-start;
  }

  .topo-acoes {
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
  }

  .btn-login {
    min-width: 80px;
    padding: 8px 14px;
  }

  body.topo-reduzido .topo {
    padding: 14px 18px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }
}
