/**
 * Agni Cognitive — camada fina sobre Ghost Source
 * Tokens alinhados a AGNI_UI_UX_GOVERNANCE + produção; refinamentos discretos em Koenig.
 */

:root {
    --agni-brand: #00608a;
    --agni-brand-2: #73b3f3;
    --agni-brand-3: #d0f0fd;
    --agni-radius-card: 14px;
    --agni-radius-code: 10px;
}

/* Superfícies escuras (codeinjection / header accent) */
.has-light-text {
    --agni-brand: #73b3f3;
    --agni-brand-2: #d0f0fd;
    --agni-brand-3: #e8f8fd;
}

.gh-content .kg-bookmark-card {
    border-radius: var(--agni-radius-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-content .kg-bookmark-card .kg-bookmark-container:hover {
    border-color: rgb(0 96 138 / 0.35);
}

.has-light-text .gh-content .kg-bookmark-card .kg-bookmark-container:hover {
    border-color: rgb(115 179 243 / 0.45);
}

.gh-content .kg-file-card.kg-card {
    border-radius: var(--agni-radius-card);
    transition: border-color 0.2s ease;
}

.gh-content .kg-file-card.kg-card:hover {
    border-color: rgb(0 96 138 / 0.3);
}

.has-light-text .gh-content .kg-file-card.kg-card:hover {
    border-color: rgb(115 179 243 / 0.35);
}

.gh-content .kg-callout-card {
    border-radius: var(--agni-radius-card);
}

/* Toggle, galeria, imagem — Onda C Koenig */
.gh-content .kg-toggle-card {
    border-radius: var(--agni-radius-card);
    border: 1px solid var(--color-border, rgb(0 0 0 / 0.1));
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.has-light-text .gh-content .kg-toggle-card {
    border-color: rgb(255 255 255 / 0.12);
}

.gh-content .kg-toggle-card .kg-toggle-heading:hover .kg-toggle-heading-text {
    color: var(--agni-brand, #00608a);
}

.has-light-text .gh-content .kg-toggle-card .kg-toggle-heading:hover .kg-toggle-heading-text {
    color: var(--agni-brand-2, #73b3f3);
}

.gh-content .kg-gallery-card {
    border-radius: var(--agni-radius-card);
    overflow: hidden;
}

.gh-content .kg-gallery-row {
    gap: 0.5rem;
}

.gh-content .kg-image-card img {
    border-radius: var(--agni-radius-card);
}

.gh-content blockquote.kg-blockquote-alt {
    border-left: 4px solid var(--agni-brand, #00608a);
    padding-left: 1.25rem;
}

.has-light-text .gh-content blockquote.kg-blockquote-alt {
    border-left-color: var(--agni-brand-2, #73b3f3);
}

.gh-content .kg-toggle-card .kg-toggle-heading:focus-visible {
    outline: 2px solid var(--agni-brand);
    outline-offset: 2px;
}

.has-light-text .gh-content .kg-toggle-card .kg-toggle-heading:focus-visible {
    outline-color: var(--agni-brand-2);
}

.gh-content pre {
    border-radius: var(--agni-radius-code);
    border: 1px solid var(--color-border, rgb(0 0 0 / 0.08));
}

.has-light-text .gh-content pre {
    border-color: rgb(255 255 255 / 0.12);
}

.gh-content :not(pre) > code {
    border-radius: 6px;
    padding: 0.1em 0.35em;
}

.gh-content a:focus-visible,
.gh-content .kg-bookmark-card a:focus-visible {
    outline: 2px solid var(--agni-brand);
    outline-offset: 2px;
}

.has-light-text .gh-content a:focus-visible {
    outline-color: var(--agni-brand-2);
}

@media (prefers-reduced-motion: reduce) {
    .gh-content .kg-bookmark-card,
    .gh-content .kg-file-card.kg-card,
    .gh-content .kg-toggle-card {
        transition: none;
    }
}
