/* legis_cita.css — link de citação de legislação + popover do dispositivo.
   Carregado em legislacao_norma, legislacao_tema e blog (o link é gerado por
   Legislacao::linkarCitacoes; o popover, por public/jquery/legis_cita.js). */

a.legis-cita {
  color: #1d4ed8;
  text-decoration: none;
  border-bottom: 1px dashed #93c5fd;
  cursor: pointer;
}
a.legis-cita:hover { background: #eff6ff; border-bottom-color: #1d4ed8; }

.legis-pop {
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  font-size: 14px;
  color: #0f172a;
  line-height: 1.6;
  overflow: hidden;
}
.legis-pop-cab {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.legis-pop-norma { font-weight: 700; color: #0f172a; flex: 1 1 auto; min-width: 0; }
.legis-pop-badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 700;
  background: #dcfce7;
  color: #166534;
  white-space: nowrap;
}
.legis-pop-badge--alerta { background: #fee2e2; color: #991b1b; }
.legis-pop-fechar {
  flex-shrink: 0;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 2px 6px;
}
.legis-pop-fechar:hover { color: #0f172a; }

.legis-pop-corpo { padding: 12px 14px; max-height: 55vh; overflow: auto; }
.legis-pop-corpo p { margin: 0 0 8px; }
.legis-pop-corpo p:last-child { margin-bottom: 0; }

.legis-pop-rotulo {
  display: block;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 4px;
}
.legis-pop-revogado {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #991b1b;
  background: #fee2e2;
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 6px;
}
.legis-pop-contexto {
  border-left: 3px solid #e2e8f0;
  padding-left: 10px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 13px;
}
.legis-pop-disp { }
.legis-pop-mais { color: #64748b; font-size: 12.5px; font-style: italic; margin-top: 8px; }
.legis-pop-carregando { color: #64748b; margin: 0; }

.legis-pop-rodape {
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  text-align: right;
}
.legis-pop-integra {
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: none;
}
.legis-pop-integra:hover { text-decoration: underline; }

/* mobile: folha fixa colada embaixo (o JS não posiciona nesse caso) */
@media (max-width: 640px) {
  .legis-pop {
    position: fixed;
    left: 0 !important;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: auto !important;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, .28);
  }
  .legis-pop-corpo { max-height: 50vh; }
}
