/*
 * GEO Cite 22 — stili output pubblico dei campi GEO.
 * Volutamente minimali e neutri. Override dal tema via le custom property
 * --gc22-* oppure ridefinendo le classi .gc22-geo*.
 */

.gc22-geo {
    --gc22-accent: #2f6df0;
    --gc22-bg: #f6f8fc;
    --gc22-border: #e2e6ef;
    --gc22-text: inherit;
    --gc22-muted: #5b6478;
    --gc22-radius: 10px;

    margin: 1.6em 0;
    padding: 1.1em 1.25em;
    background: var(--gc22-bg);
    border: 1px solid var(--gc22-border);
    border-radius: var(--gc22-radius);
    color: var(--gc22-text);
}

.gc22-geo__title {
    margin: 0 0 .6em;
    font-size: 1.05rem;
    line-height: 1.3;
}

.gc22-geo__text {
    white-space: pre-line; /* preserva gli a-capo del testo senza wpautop */
}

.gc22-geo__list {
    margin: 0;
    padding-left: 1.25em;
}

.gc22-geo__list li {
    margin: .35em 0;
}

/* Quick Answer e Definizione: stile "callout" con barra d'accento */
.gc22-geo--quick-answer,
.gc22-geo--direct-definition {
    border-left: 4px solid var(--gc22-accent);
}

/* FAQ: accordion nativo <details>/<summary>, zero JavaScript */
.gc22-geo--faq {
    padding-bottom: .4em;
}

.gc22-geo__faq-item {
    border-top: 1px solid var(--gc22-border);
    padding: .55em 0;
}

.gc22-geo__faq-item:first-of-type {
    border-top: 0;
}

.gc22-geo__faq-q {
    cursor: pointer;
    font-weight: 600;
    list-style-position: inside;
}

.gc22-geo__faq-a {
    margin-top: .5em;
    color: var(--gc22-muted);
}

/* Statistiche e Fonti */
.gc22-geo__stats,
.gc22-geo__sources {
    list-style: none;
    padding-left: 0;
}

.gc22-geo__stat {
    font-weight: 600;
}

.gc22-geo__source {
    display: inline;
    color: var(--gc22-muted);
    font-size: .9em;
    font-style: normal;
}

.gc22-geo__stats li {
    border-top: 1px solid var(--gc22-border);
    padding: .45em 0;
}

.gc22-geo__stats li:first-child {
    border-top: 0;
}

@media (prefers-color-scheme: dark) {
    .gc22-geo {
        --gc22-bg: rgba(255, 255, 255, .04);
        --gc22-border: rgba(255, 255, 255, .14);
        --gc22-muted: #9aa3b8;
    }
}
