/* EconollamaAI V8 — unified accessible green design. Load last. */
:root{--v8-ink:#163024;--v8-green:#07552a;--v8-green-dark:#06411f;--v8-pale:#f2f8f1;--v8-line:#d7e5d6;--v8-gold:#b8861c;color-scheme:light}
html,body{background:#fff!important;color:var(--v8-ink)!important;font-family:Arial,Helvetica,sans-serif!important;line-height:1.58}
body,body main,body .shell,body .auth-shell{color:var(--v8-ink)!important;background-color:#fff!important}
body h1,body h2,body h3,body h4,body h5{color:#093b20!important;text-shadow:none!important;opacity:1!important}
body p,body li,body label,body small,body td,body th,body dt,body dd,body summary,body blockquote{color:#25372b!important;text-shadow:none!important;opacity:1!important}
body a{color:#07552a}body a:hover{color:#063d1e}
body input:not([type=checkbox]):not([type=radio]),body textarea,body select{background:#fff!important;color:#182b1e!important;border:1px solid #a8c3ac!important;border-radius:8px}
body input::placeholder,body textarea::placeholder{color:#66766a!important;opacity:1}
body button,body .btn,body input[type=submit],body .primary{background:#0a602f!important;color:#fff!important;border:1px solid #0a602f!important;border-radius:8px;cursor:pointer}
body button:hover,body .btn:hover,body .primary:hover{background:#074722!important}
body button:focus-visible,body a:focus-visible,body input:focus-visible,body select:focus-visible,body textarea:focus-visible{outline:3px solid #b8861c!important;outline-offset:2px}
body .v6-header,body header.v6-header{background:#fff!important;border-bottom:2px solid #0c6a36!important;box-shadow:0 2px 8px #102e1912!important}
body .v6-brand,body .v6-brand span,body .v6-brand small{color:#0a3c21!important}body .v6-brand em{color:#a77816!important}
body .v6-header nav a{background:transparent!important;color:#0b4c28!important;border-radius:7px}
body .v6-header nav a:hover,body .v6-header nav a[aria-current=page]{background:#e9f4e8!important;color:#073d1e!important}
body .v6-home-main,body .v6-home-hero{background:#fff!important}body .v6-home-hero h1 span{color:#b8861c!important}
body .v6-home-card{background:#fbfdf9!important;border:1px solid #d8e5d7!important;border-bottom:3px solid #0b6333!important;border-radius:13px!important;box-shadow:0 6px 18px #153b1b10!important;color:#193321!important}
body .v6-home-card h2,body .v6-home-card p{color:#153b23!important}
/* All catalog cards, including cards inserted dynamically by JavaScript */
body .v5-grid>*,body .cards>*,body .v4-cards>*,body .v5-card,body .v4-card,body .card,body .panel,body .v4-panel,body .v6-note,body .event,body .v7-section,body .v7-bio-panel,body .dictionary-entry,body .dictionary,body .admin-panel,body .consult-panel,body .auth-card,body .result,body .entry{background:#f9fcf8!important;background-image:none!important;color:#183122!important;border-color:#d4e5d5!important;box-shadow:0 3px 13px #173c2010!important}
body .v5-grid>* *,body .cards>* *,body .v4-cards>* *,body .v5-card *,body .v4-card *,body .v4-panel *,body .consult-panel *,body .auth-card *,body .dictionary *,body .admin-panel *{text-shadow:none!important}
body .v5-grid>* h2,body .v5-grid>* h3,body .cards>* h2,body .cards>* h3,body .v5-grid>* strong,body .cards>* strong{color:#093d21!important}
body .v5-grid>* p,body .v5-grid>* span,body .v5-grid>* small,body .cards>* p,body .cards>* span,body .cards>* small{color:#365041!important}
body .v5-grid>* a,body .cards>* a{color:#07552a!important}
body .v5-kicker,body .eyebrow,body .v6-kicker{color:#237043!important}
body .lead,body .muted,body .v4-source,body .v5-quiz-note{color:#526459!important}
body .v5-toolbar,body .v4-toolbar,body .filters,body .atlas-legend{background:#f4f9f3!important;color:#183122!important;border-color:#d6e4d5!important}
body .v7-external,body .alert,body .notice,body .info,body .callout,body .definition,body .message,body .quiz-card,body .question,body .answer{background:#eef7ed!important;color:#173622!important;border-color:#cfe1ce!important}
body .v7-external *,body .alert *,body .notice *,body .info *,body .callout *{color:#173622!important}
body .tabs{background:#f4f8f3!important;border-color:#d7e5d6!important}
body .tabs button{background:#eef5ed!important;color:#0a4826!important;border:1px solid #bdd7c0!important}
body .tabs button.selected,body .tabs button[aria-selected=true]{background:#0b5d30!important;color:#fff!important}
body .section-heading{background:transparent!important;color:#143421!important}
body .section-heading h2{color:#103b21!important}
body .auth-shell{min-height:75vh!important;display:flex;justify-content:center;align-items:flex-start;padding:45px 18px!important}
body .auth-card{background:#fff!important;max-width:700px;width:100%;border:1px solid #d4e5d5!important;border-radius:18px!important;padding:34px!important}
body .auth-card h1,body .auth-card p,body .auth-card label{color:#173722!important}
body .auth-card .eyebrow{color:#0a6a34!important}
body .auth-card .form-error{color:#9d2f22!important}
body .auth-card .auth-link a{color:#07552a!important}
body table,body pre,body code{background:#f7faf6!important;color:#203426!important}body th{background:#eaf4e9!important;color:#104b29!important}body td{background:#fff!important;color:#203426!important;border-color:#dce8db!important}
body footer,body .v6-footer{background:#f5faf4!important;color:#415849!important;border-top:1px solid #d6e4d5!important}
@media(max-width:850px){body .v6-header{display:block!important}body .v6-header nav{display:flex!important;flex-wrap:wrap!important}body .auth-card{padding:22px!important}}

/* Account forms: maintain existing edit, password change and deletion operations */
body #profile,body main.shell>section{background:#fff!important;color:#173622!important;border:1px solid #d9e7d8!important;border-radius:14px!important;padding:24px!important;margin:18px 0!important}
body #profile label{color:#173622!important}
body #remove{background:#a6382d!important;border-color:#a6382d!important;color:#fff!important}
/* Readable map, timeline and result surfaces */
body .map,body .timeline,body .v4-chart,body #results,body #people,body #schools{color:#173622!important}

/* V8 — Cartes des économistes */

body.v5-unified .v5-grid > *,
body .v5-unified .v5-grid > * {
    background: #f8fcf7 !important;
    background-image: none !important;
    color: #183322 !important;
    border: 1px solid #d5e5d5 !important;
    border-bottom: 3px solid #0b6535 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(12, 60, 30, 0.08) !important;
}

body.v5-unified .v5-grid > * h2,
body.v5-unified .v5-grid > * h3,
body .v5-unified .v5-grid > * h2,
body .v5-unified .v5-grid > * h3 {
    color: #093d21 !important;
}

body.v5-unified .v5-grid > * p,
body.v5-unified .v5-grid > * span,
body .v5-unified .v5-grid > * p,
body .v5-unified .v5-grid > * span {
    color: #304b38 !important;
    background: transparent !important;
    text-shadow: none !important;
}

