/* ===== ATRICON - estilos base ===== */

.atricon-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 64px;
    clear: both;
}

.atricon-header h1 {
    text-align: center;
    font-size: 24px;
    color: #16305c;
    margin-bottom: 20px;
}

/* ----- Busca ----- */
.atricon-filtros {
    max-width: 700px;
    margin: 0 auto 32px;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    clear: both;
    text-align: center;
}

.atricon-filtros .campo-descricao input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 14px;
}

.atricon-filtros .campo-acoes {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn-pesquisar {
    background: #16305c !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
}

.btn-pesquisar:hover {
    background: #0f2246 !important;
}

.btn-limpar {
    font-size: 14px !important;
    color: #16305c !important;
    border-color: #16305c !important;
    padding: 8px 16px !important;
}

.btn-limpar:hover {
    background: #eef1f7 !important;
}

.btn-acessar {
    background: #16305c;
    color: #fff;
    white-space: nowrap;
}

.btn-acessar:hover {
    background: #0f2246;
}

/* ----- Lista agrupada por taxonomia ----- */
.atricon-lista.atricon-loading {
    opacity: .5;
    pointer-events: none;
}

.atricon-grupo {
    margin-bottom: 32px;
}

.atricon-grupo-titulo {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #16305c;
    margin: 0 0 16px;
}

.atricon-grupo:first-child .atricon-grupo-titulo {
    border-top: none;
    padding-top: 0;
}

.atricon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.atricon-item-texto h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #111827;
}

.atricon-codigo {
    font-weight: 700;
    color: #16305c;
}

.atricon-base-legal {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.atricon-base-legal p {
    margin: 0;
}

.atricon-item-acao {
    flex: 0 0 auto;
}

.atricon-item-acao a {
    flex: 0 0 auto;
    color: #16305c;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.atricon-item-acao a:hover {
    text-decoration: underline;
}

.atricon-vazio {
    text-align: center;
    color: #6b7280;
    padding: 24px 0;
}

/* ----- Página interna ----- */
.atricon-single-card {
    max-width: 560px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px 28px;
}

.atricon-single-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.atricon-fechar {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    color: #9ca3af;
    text-decoration: none;
    margin-top: -2px;
}

.atricon-fechar:hover {
    color: #374151;
}

.atricon-divisor {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0 18px;
}

.atricon-info {
    font-size: 14px;
    margin: 0 0 8px;
    color: #111827;
}

.atricon-info p {
    display: inline;
    margin: 0;
}

.atricon-links-titulo {
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 10px;
}

.atricon-links-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.atricon-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
}

.atricon-link-texto {
    margin: 0;
    font-size: 13px;
    color: #111827;
    line-height: 1.4;
}

.btn-acessar-link {
    background: #0064c4 !important;
    color: #fff !important;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px !important;
}

.btn-acessar-link:hover {
    background: #0064c4 !important;
}

.atricon-voltar-wrap {
    text-align: center;
    margin-top: 24px;
}

.btn-voltar {
    background: #16305c;
    color: #fff;
}

.btn-voltar:hover {
    background: #0f2246;
}

@media (max-width: 640px) {
    .atricon-item {
        flex-wrap: wrap;
    }
}
