/* ============================================================
   anvo-clean-cards.css
   Overrides the multi-color boxed card design with clean,
   minimal editorial typography — bold section labels, dividers,
   generous whitespace. No colored backgrounds or borders.

   IMPORTANT: link this AFTER chat-pro-style.css in chatbot.html
   so these rules win over the old colored-card styles.
   ============================================================ */

/* ── RESPONSE CONTAINER ───────────────────────────────────── */
.anvo-response {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* ── BASE CARD → becomes a plain content section ─────────── */
.anvo-card {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    animation: cardIn 0.3s ease forwards;
}

/* Thin divider between sections — none before the first one */
.anvo-card + .anvo-card,
.anvo-card + .anvo-plain,
.anvo-plain + .anvo-card {
    margin-top: 22px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border) !important;
}

/* ── SECTION LABEL — bold, small-caps, gold — no color-coded backgrounds ── */
.anvo-card__header {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 !important;
    margin-bottom: 11px;
    border: none !important;
    background: none !important;
}

.anvo-card__icon {
    font-size: 0.8rem;
    opacity: 0.75;
    filter: grayscale(0.3);
}

.anvo-card__label {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    color: var(--gold) !important;
}

/* Every variant's label uses the same gold — no more per-type colors */
.anvo-card--alert .anvo-card__label,
.anvo-card--answer .anvo-card__label,
.anvo-card--rights .anvo-card__label,
.anvo-card--warning .anvo-card__label,
.anvo-card--steps .anvo-card__label,
.anvo-card--help .anvo-card__label,
.anvo-card--law .anvo-card__label,
.anvo-card--doctrine .anvo-card__label,
.anvo-card--history .anvo-card__label,
.anvo-card--procedure .anvo-card__label,
.anvo-card--table .anvo-card__label,
.anvo-card--flag .anvo-card__label {
    color: var(--gold) !important;
}

/* ── BODY — plain flowing text, no box ────────────────────── */
.anvo-card__body {
    padding: 0 !important;
    font-size: 0.94rem;
    line-height: 1.75;
    color: var(--text);
}

/* Slightly emphasize the direct-answer section without boxing it —
   just a touch larger, still no background/border. */
.anvo-card--answer .anvo-card__body {
    font-size: 1rem;
    color: #f0e9d2;
}

/* ── HEADINGS, BOLD, LISTS INSIDE BODY — cleaner rhythm ───── */
.anvo-card__body strong {
    color: var(--gold) !important;
    font-weight: 700 !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.anvo-card__body em { color: var(--text-muted); }

.anvo-card__body p { margin-bottom: 12px; }
.anvo-card__body p:last-child { margin-bottom: 0; }

.anvo-card__body ul,
.anvo-card__body ol {
    padding-left: 20px;
    margin: 4px 0 14px;
}
.anvo-card__body ul li,
.anvo-card__body ol li {
    margin-bottom: 8px;
    padding-left: 2px;
}

/* Bullet color matches gold accent, subtly, instead of default */
.anvo-card__body ul { list-style: none; padding-left: 4px; }
.anvo-card__body ul li {
    position: relative;
    padding-left: 18px;
}
.anvo-card__body ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold);
    opacity: 0.6;
}

/* Numbered steps — plain numbers, no pill/badge styling */
.anvo-card--steps .anvo-card__body ol {
    counter-reset: none;
    list-style: decimal;
    padding-left: 20px;
}
.anvo-card--steps .anvo-card__body ol li {
    display: list-item;
    background: none !important;
    border: none !important;
    padding: 0 0 0 4px;
    margin-bottom: 10px;
}
.anvo-card--steps .anvo-card__body ol li::before {
    content: none;
}

/* ── TABLES — clean lines, no colored header fills ────────── */
.anvo-card__body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 14px 0;
}
.anvo-card__body th {
    background: none !important;
    border: none;
    border-bottom: 1.5px solid var(--gold);
    padding: 8px 12px 8px 0;
    text-align: left;
    color: var(--gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.anvo-card__body td {
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 9px 12px 9px 0;
    color: var(--text);
    vertical-align: top;
}
.anvo-card__body tr:nth-child(even) td { background: none !important; }

/* ── QUOTES, CODE, HR ──────────────────────────────────────── */
.anvo-card__body blockquote {
    border-left: 2px solid var(--gold);
    padding-left: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin: 12px 0;
}
.anvo-card__body code {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.15);
}
.anvo-card__body hr { display: none; } /* dividers are handled between sections now */

/* ── DISCLAIMER — quiet footnote, not a boxed bar ─────────── */
.anvo-disclaimer-bar {
    background: none !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    border-radius: 0 !important;
    padding: 16px 0 0 !important;
    margin-top: 22px !important;
    font-size: 0.74rem !important;
    color: var(--text-dim) !important;
    font-style: italic;
    line-height: 1.6;
}

/* ── MODE TINTS — removed. Every mode reads identically clean. ── */
.anvo-mode--citizen .anvo-card--answer,
.anvo-mode--learner .anvo-card--answer {
    border: none !important;
    background: none !important;
}
.anvo-mode--citizen .anvo-card--answer .anvo-card__label,
.anvo-mode--learner .anvo-card--answer .anvo-card__label {
    color: var(--gold) !important;
}