/* ==================== CONTAINER (igual à página de notícia) ==================== */
.page-wrap {
  padding: 22px var(--body-padding);
}
.page-wrap .centered{
  max-width:1080px;
  margin:0 auto;
}

/* ==================== VOLTAR (match .voltar da notícia) ==================== */
.pg-link{
  display:inline-flex; align-items:center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all .3s ease;
  padding: 8px 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, transparent, transparent);
  margin-bottom: 1rem;
}
.pg-link:hover{
  background: linear-gradient(135deg, rgba(var(--primary-color-rbg) / 0.08), rgba(var(--primary-color-rbg) / 0.05));
  transform: translateX(-4px);
  color: var(--secondary-color);
}

/* ==================== CARD (mesmo raio/sombra/limpeza) ==================== */
.licit-card--detail{
  background:#fff;
  border-radius:12px;
  padding:20px;
}

/* Cabeçalho: esquerda (título/objeto) | direita (valor/data) */
.licit-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:24px;
  align-items:start;
}

/* ==================== TÍTULO / METAS (escala e cores da notícia) ==================== */
.licit-title{
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight:800;
  line-height:1.2;
  color: var(--secondary-color);
  margin: 0 0 1rem;
  letter-spacing:-.02em;
  background: none;            /* remove faixa sólida */
  padding: 0;                  /* tipografia limpa como na notícia */
  border-radius: 0;
}
.licit-subtitle{
  color: var(--secondary-color);
  font-weight: 700;
  margin: 14px 0 6px;
}

/* Texto do objeto com a mesma hierarquia da descrição/lead */
.licit-desc{
  font-size: 1.15rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1rem;
}

/* ==================== INFO À DIREITA (match dos chips/supercards) ==================== */
.licit-right{
  margin-top: 8px;                         /* na mesma linha visual do Objeto */
  display:flex; flex-direction:column; gap:10px;
  min-width:260px; max-width:320px;
}
@media (min-width:1024px){
  .licit-right{ position: sticky; top: 12px; }
}
.licit-info{
  background: rgba(var(--primary-color-rbg) / 0.06);
  border:1px solid rgba(var(--primary-color-rbg) / 0.12);
  border-radius:10px;
  padding:12px 14px;
  display:flex; justify-content:space-between; gap:14px;
}
.licit-info .label{ color: var(--secondary-color); }
.licit-info .value{ font-weight:800; color: var(--secondary-color); }

/* ==================== TABELA DE ATRIBUTOS (linhas finas como na notícia) ==================== */
.detail-grid{ 
  margin-top: 8px;
  border-top: 2px solid rgba(var(--primary-color-rbg) / 0.1);
}
.detail-item{
  display:grid; grid-template-columns:260px 1fr; gap:12px;
  padding:12px 6px;
  border-bottom:1px solid rgba(0,0,0,.06);
  background:#fff;
}
.detail-label{
  color: var(--secondary-color);
  font-weight:800;
  text-transform:uppercase;
  font-size:12px; letter-spacing:.2px;
}
.detail-value{ color:#0f172a; font-weight:700; font-size:14px; }
.licit-sep{ border:0; height:2px; background:rgba(var(--primary-color-rbg) / 0.1); margin:18px 0; }

/* ==================== DOCUMENTOS (título + botão Baixar) ==================== */
.anexos-list{ list-style:none; padding-left:0; margin:8px 0 0 0; }
.anexos-list li{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.06);
  border-radius:10px;
  background:#fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.anexos-list li + li{ margin-top:12px; }
.anexos-list li:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.doc-title{
  font-weight:700; color: var(--secondary-color);
  max-width:70%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.btn-download{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 14px; border-radius:20px;
  background: var(--primary-color);
  color:#fff; font-weight:700; text-decoration:none;
  border: 1px solid transparent;
}
.btn-download:hover{
  background: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(var(--primary-color-rbg) / 0.3);
}

/* ==================== TIPOGRAFIA GERAL (coerente com notícia) ==================== */
.licit-title, .licit-desc{
  white-space:normal; overflow-wrap:anywhere; word-break:break-word; hyphens:auto;
}

/* ==================== ANIMAÇÃO (mesma da notícia) ==================== */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
.licit-card--detail { animation: fadeInUp .6s ease forwards; }

/* ==================== RESPONSIVO ==================== */
@media (max-width: 992px){
  .detail-item{ grid-template-columns:200px 1fr; }
}
@media (max-width:768px){
  .licit-header{ grid-template-columns:1fr; }
  .licit-right{ position: static; max-width:unset; }
  .detail-item{ grid-template-columns:1fr; }
}
