/* Mandombe script font – add your actual font file in assets/fonts/mandombe.woff2 */
@font-face {
    font-family: 'MandombeScript';
    src: url('fonts/mandombe.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* When Mandombe mode is ON */
body.mandombe-mode {
    font-family: 'MandombeScript', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Lowercase for main text elements in Mandombe mode */
/* we avoid inputs/textarea to not annoy people typing */
body.mandombe-mode h1,
body.mandombe-mode h2,
body.mandombe-mode h3,
body.mandombe-mode h4,
body.mandombe-mode h5,
body.mandombe-mode h6,
body.mandombe-mode p,
body.mandombe-mode a,
body.mandombe-mode li,
body.mandombe-mode label,
body.mandombe-mode button,
body.mandombe-mode .badge {
    text-transform: lowercase;
}

/* Later, you can apply it to specific elements, e.g.:
.mandombe-text {
    font-family: 'MandombeScript', system-ui, sans-serif;
}
*/

/* Base layout – soft, calm, readable */
* {
    box-sizing: border-box;
}
.language-bar {
    max-width: 980px;
    margin: 0.4rem auto 0.6rem auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #25593d;

}

.language-bar select {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #c7decf;
    background-color: #f9fbf8;
    font-size: 0.85rem;
}

.language-note {
    opacity: 0.8;
    font-style: italic;
}

/* language toggle */
.lang-hidden {
    display: none;
}
#mandombeToggle {
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #0b6b3a;
    background: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.1s, color 0.1s, box-shadow 0.1s, transform 0.08s;
}

#mandombeToggle:hover {
    background: #0b6b3a;
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(11, 107, 58, 0.25);
    transform: translateY(-1px);
}

body.mandombe-mode #mandombeToggle {
    background: #0b6b3a;
    color: #ffffff;
}

.trust {
    max-width: 980px;
    margin: 0.5rem auto 1.5rem auto;
    padding: 0 1rem;
}

/* Card for the trust section */
.trust-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    border: 1px solid #dbe7d5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.trust-card h2 {
    margin-top: 0;
    color: #25593d;
}

.trust-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.4rem 0;
    text-align: justify; /* optional, if you like justified text */
}


.mission {
    max-width: 980px;
    margin: 1.2rem auto 1.5rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
    gap: 1rem;
}

.mission-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    border: 1px solid #dbe7d5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.mission-card h2,
.mission-card h3 {
    margin-top: 0;
    color: #25593d;
}

.mission-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.4rem 0;
}

.mission-side {
    background: linear-gradient(135deg, #f7faf7, #edf5ee);
}

/* mobile */
@media (max-width: 800px) {
    .mission {
        grid-template-columns: 1fr;
        padding: 0 0.7rem;
    }
}
.mission {
    max-width: 980px;
    margin: 1.2rem auto 1.5rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr);
    gap: 1rem;
}

.mission-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    border: 1px solid #dbe7d5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
}

.mission-card h2,
.mission-card h3 {
    margin-top: 0;
    color: #25593d;
}

.mission-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.4rem 0;
}

.mission-side {
    background: linear-gradient(135deg, #f7faf7, #edf5ee);
}

/* mobile */
@media (max-width: 800px) {
    .mission {
        grid-template-columns: 1fr;
        padding: 0 0.7rem;
    }
}
.explain-scores,
.report-score {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    border: 1px solid #dbe7d5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
    margin-top: 1.5rem;
}

.explain-scores h2,
.report-score h2 {
    margin-top: 0;
    color: #25593d;
}

.explain-scores ul {
    padding-left: 1.2rem;
    margin: 0.6rem 0 0.6rem 0;
}

.explain-scores li {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.report-form {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.report-row {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.report-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #25593d;
}

.report-form input,
.report-form select,
.report-form textarea {
    margin-top: 0.3rem;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    border: 1px solid #c7decf;
    background-color: #f9fbf8;
    font-size: 0.9rem;
}

.report-form textarea {
    border-radius: 16px;
    resize: vertical;
}

.report-form input:focus,
.report-form select:focus,
.report-form textarea:focus {
    outline: none;
    border-color: #0b6b3a;
    box-shadow: 0 0 0 2px rgba(11, 107, 58, 0.15);
}

.report-full {
    width: 100%;
}

.report-form button {
    align-self: flex-start;
    margin-top: 0.4rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: #0b6b3a;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background-color 0.1s;
}

.report-form button:hover {
    background: #0d8f4b;
    box-shadow: 0 4px 10px rgba(11, 107, 58, 0.25);
    transform: translateY(-1px);
}

.report-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #4b5f52;
}

/* responsive for report form */
@media (max-width: 600px) {
    .report-row {
        flex-direction: column;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f7f3;
    color: #1b1b1b;
    text-align: justify;
}

/* Kimbanguist-inspired header: deep green + white */

header {
    background: linear-gradient(120deg, #0b6b3a, #0d8f4b); /* Kimbanguist green gradient */
    color: #ffffff;
    padding: 1.8rem 1.5rem;
    border-bottom: 4px solid #f4f7f3;
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

header p {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    opacity: 0.95;
}
.partners {
    max-width: 980px;
    margin: 1.5rem auto 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: 1rem;
}

.partners-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    border: 1px solid #dbe7d5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

.partners-card h2,
.partners-card h3 {
    margin-top: 0;
    color: #25593d;
}

.partners-card ul {
    margin: 0.4rem 0 0 1.1rem;
    padding: 0;
}

.partners-card li {
    margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
    .partners {
        grid-template-columns: 1fr;
    }
}

/* A subtle Pan-African accent stripe below header */

header::after {
    content: "";
    display: block;
    margin-top: 1rem;
    height: 4px;
    width: 130px;
    background: linear-gradient(to right, #0b6b3a 40%, #ffffff 40%, #ffffff 70%, #f2b705 70%); 
    /* Kimbanguist green + white + warm gold for African dignity */
    border-radius: 999px;
}

/* Main content container */

body > section,
body > footer {
    max-width: 980px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Search box – card with green accent */

.search-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #dbe7d5;
}

.search-box form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.search-box label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #25593d;
}

.search-box input[type="text"],
.search-box select {
    margin-top: 0.35rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    border: 1px solid #c7decf;
    background-color: #f9fbf8;
    font-size: 0.95rem;
}

.search-box input[type="text"]:focus,
.search-box select:focus {
    outline: none;
    border-color: #0b6b3a;
    box-shadow: 0 0 0 2px rgba(11, 107, 58, 0.15);
}

.search-box button {
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: #0b6b3a;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background-color 0.1s;
}

.search-box button:hover {
    background: #0d8f4b;
    box-shadow: 0 4px 10px rgba(11, 107, 58, 0.25);
    transform: translateY(-1px);
}

/* Result list – African card style */

.results h2 {
    margin-top: 0;
}

.entity-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.entity-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    border: 1px solid #dbe7d5;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

/* Subtle “African fabric” corner accent using gradients */

.entity-card::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -16px;
    width: 60px;
    height: 60px;
    background:
        linear-gradient(135deg, rgba(11, 107, 58, 0.15) 25%, transparent 25%) 0 0 / 10px 10px,
        linear-gradient(135deg, rgba(242, 183, 5, 0.2) 25%, transparent 25%) 5px 5px / 10px 10px;
    border-bottom-left-radius: 100%;
    opacity: 0.9;
}

.entity-card h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.entity-card h3 a {
    text-decoration: none;
    color: #0b6b3a;
}

.entity-card h3 a:hover {
    text-decoration: underline;
}

.entity-card p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

/* ATSS badges – quality (Q) + integrity (I) */

.badge-row {
    margin-top: 0.4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-right: 0.3rem;
}

/* Quality badge – neutral green frame */

.badge-q {
    border: 1px solid #0b6b3a;
    color: #0b6b3a;
    background: #f4f7f3;
}

/* Integrity badge – color depends on sign */

.badge-i {
    border: 1px solid transparent;
    color: #ffffff;
}

.atss-i-positive-strong {
    background: #0b6b3a;     /* strong Kimbanguist green */
    border-color: #0b6b3a;
}

.atss-i-positive {
    background: #27a85c;     /* softer positive green */
    border-color: #27a85c;
}

.atss-i-neutral {
    background: #a3b8aa;     /* soft grey-green */
    border-color: #a3b8aa;
}

.atss-i-negative {
    background: #b96a35;     /* earthy “warning” brown, not Western red */
    border-color: #b96a35;
}

.atss-i-negative-strong {
    background: #7a2a1c;     /* darker, severe */
    border-color: #7a2a1c;
}

/* Entity details page */

.entity-details {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    border: 1px solid #dbe7d5;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}

.entity-details p {
    margin: 0.3rem 0;
}

.entity-details h2 {
    margin-top: 0;
}

section h2 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    color: #25593d;
}

/* Simple link styling */

a {
    color: #0b6b3a;
}

a:hover {
    color: #0d8f4b;
}

.join {
    max-width: 980px;
    margin: 1.5rem auto 2rem auto;
    padding: 0 1rem;
}

.join-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.3rem 1.4rem;
    border: 1px solid #dbe7d5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
}

.join-card h2 {
    margin-top: 0;
    color: #25593d;
}

.join-card p {
    margin: 0.4rem 0;
    line-height: 1.5;
    text-align: justify;
}


/* Footer */

footer {
    text-align: center;
    font-size: 0.85rem;
    color: #4b5f52;
    margin-bottom: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

footer small {
    display: block;
}

/* Back link */

footer a {
    text-decoration: none;
    font-weight: 600;
}

/* Responsive small screens */

@media (max-width: 600px) {
    header {
        padding: 1.2rem 1rem;
    }

    .search-box form {
        flex-direction: column;
        align-items: stretch;
    }

    body > section,
    body > footer {
        margin: 1rem auto;
        padding: 0 0.7rem;
    }
}
