/* =========================================================
   ALLNAIJAMARKET PUBLIC INTRO — COLLAPSIBLE
========================================================= */

.anm-public-intro {
    --intro-bg: #ffffff;
    --intro-soft: #f6faf8;
    --intro-text: #17231c;
    --intro-muted: #647269;
    --intro-border: #dde8e1;
    --intro-brand: #087443;
    --intro-brand-soft: rgba(8, 116, 67, 0.10);

    width: min(1180px, calc(100% - 20px));
    margin: 10px auto 12px;

    border: 1px solid var(--intro-border);
    border-radius: 14px;

    background: var(--intro-bg);
    color: var(--intro-text);

    overflow: hidden;
}


/* =========================================================
   CLOSED SUMMARY
========================================================= */

.anm-public-intro__summary {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 52px;
    padding: 9px 13px;

    cursor: pointer;
    list-style: none;

    background: var(--intro-soft);

    -webkit-tap-highlight-color: transparent;
}


/* Hide browser marker */

.anm-public-intro__summary::-webkit-details-marker {
    display: none;
}

.anm-public-intro__summary::marker {
    content: "";
}


/* =========================================================
   ICON
========================================================= */

.anm-public-intro__icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 31px;
    height: 31px;

    border-radius: 9px;

    background: var(--intro-brand-soft);

    font-size: 15px;
}


/* =========================================================
   SUMMARY TEXT
========================================================= */

.anm-public-intro__summary-copy {
    display: flex;
    flex: 1;
    min-width: 0;

    flex-direction: column;

    gap: 2px;
}


.anm-public-intro__summary-copy strong {
    color: var(--intro-text);

    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}


.anm-public-intro__summary-copy small {
    display: block;

    overflow: hidden;

    color: var(--intro-muted);

    font-size: 11px;
    line-height: 1.3;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   CHEVRON
========================================================= */

.anm-public-intro__chevron {
    flex: 0 0 auto;

    color: var(--intro-brand);

    font-size: 18px;
    font-weight: 800;

    transition: transform 0.2s ease;
}


.anm-public-intro[open]
.anm-public-intro__chevron {
    transform: rotate(180deg);
}


/* =========================================================
   EXPANDED BODY
========================================================= */

.anm-public-intro__body {
    padding: 14px 15px;

    border-top: 1px solid var(--intro-border);

    background: var(--intro-bg);
}


/* Application Purpose heading */

.anm-public-intro__title {
    margin: 0 auto 7px;

    color: var(--intro-text);

    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;

    text-align: center;
}


/* Introductory sentence */

.anm-public-intro__lead {
    max-width: 920px;

    margin: 0 auto 9px;

    color: var(--intro-brand);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;

    text-align: center;
}


/* Description */

.anm-public-intro__description {
    max-width: 920px;

    margin: 0 auto 9px;

    color: var(--intro-muted);

    font-size: 12.5px;
    line-height: 1.55;

    text-align: center;
}


.anm-public-intro__description:last-of-type {
    margin-bottom: 0;
}


.anm-public-intro__description strong {
    color: var(--intro-text);
    font-weight: 800;
}


/* =========================================================
   LINKS
========================================================= */

.anm-public-intro__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 6px;

    margin-top: 11px;
}


.anm-public-intro__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 9px;

    border: 1px solid var(--intro-border);
    border-radius: 7px;

    background: var(--intro-soft);

    color: var(--intro-brand);

    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    transition:
        border-color 0.18s ease,
        background-color 0.18s ease;
}


.anm-public-intro__links a:hover {
    border-color: var(--intro-brand);
    background: var(--intro-brand-soft);
}


.anm-public-intro__links a:focus-visible {
    outline: 2px solid var(--intro-brand);
    outline-offset: 2px;
}


/* =========================================================
   DARK MODE
========================================================= */

@media (prefers-color-scheme: dark) {

    .anm-public-intro {
        --intro-bg: #0d1812;
        --intro-soft: #122019;
        --intro-text: #edf7f1;
        --intro-muted: #a8b8ae;
        --intro-border: #263b2f;
        --intro-brand: #65dda0;
        --intro-brand-soft: rgba(101, 221, 160, 0.10);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .anm-public-intro {
        width: calc(100% - 12px);

        margin: 7px auto 9px;

        border-radius: 12px;
    }


    .anm-public-intro__summary {
        min-height: 47px;

        padding: 8px 10px;

        gap: 8px;
    }


    .anm-public-intro__icon {
        width: 28px;
        height: 28px;

        border-radius: 8px;

        font-size: 13px;
    }


    .anm-public-intro__summary-copy strong {
        font-size: 12px;
    }


    .anm-public-intro__summary-copy small {
        font-size: 9.5px;
    }


    .anm-public-intro__chevron {
        font-size: 16px;
    }


    .anm-public-intro__body {
        padding: 11px 12px;
    }


    .anm-public-intro__title {
        margin-bottom: 6px;

        font-size: 13.5px;
    }


    .anm-public-intro__lead {
        margin-bottom: 7px;

        font-size: 12px;
        line-height: 1.4;
    }


    .anm-public-intro__description {
        margin-bottom: 8px;

        font-size: 11.5px;
        line-height: 1.45;
    }


    .anm-public-intro__links {
        gap: 4px;

        margin-top: 9px;
    }


    .anm-public-intro__links a {
        padding: 5px 7px;

        border-radius: 6px;

        font-size: 9.5px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .anm-public-intro__summary-copy small {
        max-width: 205px;
    }


    .anm-public-intro__links a {
        flex: 1 1 auto;
    }
}