﻿:root {
    --ink: #1c1c1c;
    --muted: #666;
    --bg: #fafafa;
    --card: #ffffff;
    --brand: #026955;
    --brand-2: #027b68;
    --accent: #F5F5F5;
    --cta: #ffe680;
    --shadow: 0 6px 20px rgba(0,0,0,.18);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
}

#insights-title {
    color: #fff;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    padding: 4.5rem 1.5rem 3rem;
    text-align: center;
}

    #insights-title h1 {
        margin: .25rem 0;
        color: #fff;
        font-size: 2.7rem;
        font-weight: 800;
        letter-spacing: .2px;
    }

    #insights-title p {
        margin: 0 auto;
        max-width: 880px;
        font-size: 1.15rem;
        opacity: .95;
    }

article {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 1.25rem;
    margin: 0 auto;
}

.responsive-image {
    width: 100%;
    height: auto;
}

@media (min-width: 860px) {
    article {
        padding: 2.5rem 2.25rem;
    }

    .responsive-image {
        width: 50%;
    }
}

h2 {
    color: var(--brand-2);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

h3 {
    color: #2B2B2B;
    margin-top: 1.25rem;
    font-size: 1.25rem;
}

p, li {
    font-size: 1.06rem;
}

ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
}

.callout {
    background: var(--accent);
    border-left: 6px solid var(--brand-2);
    border-radius: 8px;
    padding: 1rem 1rem;
    margin: 1rem 0;
}

.media {
    margin: 1.25rem 0;
    text-align: center;
}

    .media img {
        max-width: 100%;
        border-radius: 10px;
        border: 1px solid #e9edf2;
    }

.grid-2 {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 880px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.quote {
    font-style: italic;
    background: #fbfdff;
    border-left: 4px solid #9ec5ff;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.kpis {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.kpi {
    background: var(--accent);
    border: 1px solid #027b68;
    border-radius: 10px;
    padding: 1rem;
}

@media (min-width: 760px) {
    .kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

.divider {
    height: 1px;
    background: #e9edf2;
    margin: 2rem 0;
}

.cta {
    background: var(--brand-2);
    color: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

    .cta h3 {
        margin: .25rem 0;
        color: #fff;
    }

    .cta a {
        color: var(--cta);
        font-weight: 700;
        text-decoration: none;
    }

.small {
    color: var(--muted);
    font-size: .95rem;
}

.refs li {
    margin: .4rem 0;
}

.badge {
    display: inline-block;
    background: #edf5ff;
    color: #153e75;
    border: 1px solid #d3e6ff;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .85rem;
    margin-right: .4rem;
}

.tag-row {
    margin: .5rem 0 0;
}

/* -------------------------------------------
   Reusable Numbered Cards Component
   ------------------------------------------- */
.numbered-cards {
    counter-reset: step;
    display: grid;
    gap: 1.25rem;
    padding: 0;
    list-style: none;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .numbered-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.card-item {
    counter-increment: step;
    position: relative;
    background: var(--card);
    border: 1px solid rgba(2, 123, 104, .18);
    border-radius: 16px;
    padding: 20px 20px 20px 64px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow .2s ease;
}

    .card-item:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    .card-item::before {
        content: counter(step);
        position: absolute;
        left: 16px;
        top: 20px;
        width: 36px;
        height: 36px;
        line-height: 36px;
        border-radius: 10px;
        background: var(--brand-2);
        color: #fff;
        display: grid;
        place-items: center;
        font-weight: 800;
        font-size: 1.05rem;
        font-variant-numeric: tabular-nums;
    }

    .card-item h3 {
        margin: 0 0 8px 0;
        display: inline;
        font-weight: 800;
    }

.card-sub {
    display: inline-block;
    margin-left: .5ch;
    color: var(--muted);
    font-weight: 600;
    font-size: .95em;
}

.card-outcome {
    margin-top: .9em;
    padding: .65em .75em;
    border: 1px dashed var(--brand-2);
    border-radius: 10px;
    background: #f0f7f7;
    font-weight: 600;
}

    .card-outcome span {
        text-transform: uppercase;
        letter-spacing: .03em;
        font-weight: 800;
        font-size: .78em;
        color: var(--brand-2);
        margin-right: .5ch;
    }

/* -------------------------------------------
   Reusable Unnumbered Cards Component
   ------------------------------------------- */
.unnumbered-cards {
    display: grid;
    gap: 1.25rem;
    padding: 0;
    list-style: none;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .unnumbered-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.card-plain {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(2, 123, 104, .18);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow .2s ease;
}

    .card-plain:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    }

    .card-plain h3 {
        margin: 0 0 8px 0;
        font-weight: 800;
    }

    .card-plain p {
        margin: .6em 0 0 0;
    }

    .card-plain h3, .card-plain .card-sub {
        display: inline-block;
        vertical-align: baseline;
        margin-right: 0.5ch;
    }

.summary-table-container {
    background-color: #fff;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    margin: auto;
    font-family: Arial, sans-serif;
}

.summary-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 700px; /* Keeps layout readable */
}

    .summary-table th,
    .summary-table td {
        padding: 10px;
        border: 1px solid #333;
        text-align: left;
        word-break: break-word;
    }

    .summary-table th {
        background-color: #027b68;
        color: white;
    }

    .summary-table .alt-row {
        background-color: #f0f7f5;
    }

/* Elegant scroll hint */
.table-scroll {
    overflow-x: auto;
    position: relative;
}

    .table-scroll::after {
        content: "⇆";
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 1.2em;
        color: #aaa;
        pointer-events: none;
    }

/* Hide scroll hint on wide screens */
@media (min-width: 900px) {
    .table-scroll::after {
        display: none;
    }
}
