/* Public homepage redesign: brand-led hero + goals gateway
   Photo hero (rru-hero-background.webp) is bright — use dark type + soft left scrim.
   Must beat legacy .hero p { color:#475569 !important } for support copy weight/size.
*/

body.site-public .hero.hero--home,
body.site-public .public-home-section.hero.hero--home {
    position: relative;
    overflow: hidden;
    min-height: min(82vh, 720px);
    color: #0b2742 !important;
    background: #f4e7b0;
    --home-heading-color: #0b2742;
    --home-copy-color: #334155;
    --home-muted-color: #475569;
}

body.site-public .hero.hero--home .hero__atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

body.site-public .hero.hero--home .hero__color-plane {
    position: absolute;
    inset: 0;
    background-color: #f4e7b0;
    background-image:
        linear-gradient(105deg, rgba(255, 248, 220, .88) 0%, rgba(255, 248, 220, .55) 38%, rgba(255, 248, 220, .12) 62%, rgba(255, 248, 220, 0) 78%),
        url("../img/theme/rru-hero-background.webp");
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
}

body.site-public .hero.hero--home .hero__sdg-strip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(17, minmax(0, 1fr));
    height: 10px;
}

body.site-public .hero.hero--home .hero__sdg-chip { display: block; min-height: 10px; }
body.site-public .hero.hero--home .hero__sdg-chip--1 { background: #e5243b; }
body.site-public .hero.hero--home .hero__sdg-chip--2 { background: #dda63a; }
body.site-public .hero.hero--home .hero__sdg-chip--3 { background: #4c9f38; }
body.site-public .hero.hero--home .hero__sdg-chip--4 { background: #c5192d; }
body.site-public .hero.hero--home .hero__sdg-chip--5 { background: #ff3a21; }
body.site-public .hero.hero--home .hero__sdg-chip--6 { background: #26bde2; }
body.site-public .hero.hero--home .hero__sdg-chip--7 { background: #fcc30b; }
body.site-public .hero.hero--home .hero__sdg-chip--8 { background: #a21942; }
body.site-public .hero.hero--home .hero__sdg-chip--9 { background: #fd6925; }
body.site-public .hero.hero--home .hero__sdg-chip--10 { background: #dd1367; }
body.site-public .hero.hero--home .hero__sdg-chip--11 { background: #fd9d24; }
body.site-public .hero.hero--home .hero__sdg-chip--12 { background: #bf8b2e; }
body.site-public .hero.hero--home .hero__sdg-chip--13 { background: #3f7e44; }
body.site-public .hero.hero--home .hero__sdg-chip--14 { background: #0a97d9; }
body.site-public .hero.hero--home .hero__sdg-chip--15 { background: #56c02b; }
body.site-public .hero.hero--home .hero__sdg-chip--16 { background: #00689d; }
body.site-public .hero.hero--home .hero__sdg-chip--17 { background: #19486a; }

body.site-public .hero.hero--home .hero__content--home {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    min-height: min(82vh, 720px);
    padding: clamp(2.4rem, 5.5vw, 4.2rem) 0;
}

body.site-public .hero.hero--home .hero__copy {
    max-width: 42rem;
    color: #0b2742 !important;
}

body.site-public .hero.hero--home .hero__brand {
    margin: 0 0 .35rem;
    font-size: clamp(2.6rem, 6.4vw, 4.6rem) !important;
    line-height: .94 !important;
    letter-spacing: -.045em;
    font-weight: 800 !important;
    color: #0b2742 !important;
}

body.site-public .hero.hero--home .hero__kicker,
body.site-public .hero.hero--home p.hero__kicker {
    margin: 0 0 .85rem !important;
    color: #0f6f74 !important;
    font-size: clamp(.95rem, 1.3vw, 1.05rem) !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
}

body.site-public .hero.hero--home h1,
body.site-public .hero.hero--home .public-home-section__copy h1 {
    margin: 0 0 .9rem !important;
    max-width: 18ch;
    color: #0b2742 !important;
    font-size: clamp(1.55rem, 3.4vw, 2.55rem) !important;
    line-height: 1.28 !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    text-wrap: balance;
}

body.site-public .hero.hero--home p,
body.site-public .hero.hero--home .hero__support,
body.site-public .hero.hero--home .public-home-section__copy > p,
body.site-public .hero.hero--home .public-home-section__copy .hero__support {
    margin: 0 !important;
    max-width: 38rem;
    color: #334155 !important;
    font-size: clamp(1.05rem, 1.55vw, 1.18rem) !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    text-shadow: none !important;
}

body.site-public .hero.hero--home .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1.45rem;
}

body.site-public .hero.hero--home .button {
    min-height: 48px;
    border-color: #0b2742 !important;
    background: #0b2742 !important;
    color: #fff !important;
    font-weight: 700;
}

body.site-public .hero.hero--home .button:hover {
    background: #071e33 !important;
    border-color: #071e33 !important;
    color: #fff !important;
}

body.site-public .hero.hero--home .button--outline {
    background: rgba(255, 255, 255, .55) !important;
    color: #0b2742 !important;
    border-color: rgba(11, 39, 66, .55) !important;
}

body.site-public .hero.hero--home .button--outline:hover {
    background: rgba(255, 255, 255, .82) !important;
    color: #071e33 !important;
}

body.site-public .hero.hero--home .hero__visual {
    display: grid;
    place-items: center;
}

body.site-public .hero.hero--home .hero__mark {
    display: grid;
    justify-items: center;
    gap: .75rem;
    text-align: center;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    border: 1px solid rgba(11, 39, 66, .12);
    border-radius: 28px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(17, 56, 92, .12);
    width: min(100%, 340px);
    color: #0b2742 !important;
}

body.site-public .hero.hero--home .hero__mark img {
    width: clamp(110px, 18vw, 168px);
    height: auto;
    border-radius: 28px;
}

body.site-public .hero.hero--home .hero__mark strong {
    font-size: 1.4rem;
    color: #0b2742 !important;
}

body.site-public .hero.hero--home .hero__mark span {
    color: #475569 !important;
    font-size: .98rem;
    font-weight: 500;
}

/* Goals gateway */
body.site-public .home-goals-gateway {
    padding: clamp(2.2rem, 5vw, 3.4rem) 0;
    background: #fff;
}

body.site-public .home-goals-gateway__head {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

body.site-public .home-goals-gateway__head h2 {
    margin: .2rem 0 .45rem;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    color: #0b2742;
}

body.site-public .home-goals-gateway__head p {
    margin: 0;
    max-width: 42rem;
    color: #475569;
}

body.site-public .home-goals-gateway__actions {
    display: grid;
    gap: .45rem;
    justify-items: end;
}

body.site-public .home-goals-gateway__note {
    color: #64748b;
    font-size: .9rem;
}

body.site-public .home-goals-gateway__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .7rem;
}

body.site-public .home-goal-tile {
    display: grid;
    gap: .45rem;
    padding: .55rem;
    border: 1px solid #d6e1ea;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    border-top: 3px solid var(--goal-color, #006B3F);
    transition: transform .16s ease, border-color .16s ease;
}

body.site-public .home-goal-tile:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--goal-color, #006B3F) 40%, #d6e1ea);
}

body.site-public .home-goal-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

body.site-public .home-goal-tile__meta {
    display: grid;
    gap: .1rem;
}

body.site-public .home-goal-tile__meta strong {
    font-size: .86rem;
    color: #1f2937;
}

body.site-public .home-goal-tile__meta small {
    color: #64748b;
    font-size: .78rem;
}

body.site-public .home-trust-band__head {
    max-width: 46rem;
    margin-bottom: 1.25rem;
}

body.site-public .home-trust-band__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

body.site-public .home-trust-item {
    display: grid;
    gap: .4rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid #d6e1ea;
    border-radius: 16px;
    background: #fff;
}

body.site-public .home-trust-item span {
    width: max-content;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: #e8f1f8;
    color: #11385c;
    font-size: .8rem;
    font-weight: 700;
}

body.site-public .home-projects__empty {
    display: grid;
    gap: .55rem;
    justify-items: start;
    padding: 1.5rem;
    border: 1px dashed #d6e1ea;
    border-radius: 18px;
    background: #fff;
}

body.site-public .home-projects__empty strong {
    font-size: 1.1rem;
    color: #11385c;
}

body.site-public .home-projects__empty p {
    margin: 0;
    color: #64748b;
}

body.site-public .home-projects__empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .4rem;
}

@media (max-width: 1080px) {
    body.site-public .home-goals-gateway__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    body.site-public .home-trust-band__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    body.site-public .hero.hero--home .hero__color-plane {
        background-image:
            linear-gradient(180deg, rgba(255, 248, 220, .9) 0%, rgba(255, 248, 220, .72) 48%, rgba(255, 248, 220, .35) 100%),
            url("../img/theme/rru-hero-background.webp");
        background-position: 70% center;
    }
    body.site-public .hero.hero--home .hero__content--home {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2.4rem 0 2.1rem;
    }
    body.site-public .hero.hero--home .hero__visual { order: -1; }
    body.site-public .hero.hero--home .hero__mark { width: min(100%, 280px); }
    body.site-public .home-goals-gateway__head {
        flex-direction: column;
        align-items: start;
    }
    body.site-public .home-goals-gateway__actions { justify-items: start; }
}

@media (max-width: 640px) {
    body.site-public .hero.hero--home .hero__brand { font-size: clamp(2.2rem, 11vw, 3.1rem) !important; }
    body.site-public .hero.hero--home h1 { font-size: clamp(1.4rem, 6.8vw, 1.85rem) !important; max-width: none; }
    body.site-public .hero.hero--home .hero__actions .button { width: 100%; }
    body.site-public .home-goals-gateway__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.site-public .home-trust-band__grid { grid-template-columns: 1fr; }
    body.site-public .home-projects__empty-actions .button { width: 100%; }
}

/* ===== Live homepage dashboard (#dashboard) ===== */
body.site-public .dashboard-band--live,
body.site-public .dashboard-band--live.public-home-section {
    --dash-ink: #f8fafc;
    --dash-muted: rgba(248, 250, 252, .78);
    --dash-card: #ffffff;
    --dash-card-ink: #0f172a;
    --dash-card-muted: #64748b;
    --dash-line: rgba(15, 23, 42, .1);
    position: relative;
    overflow: hidden;
    padding: clamp(1.55rem, 3vw, 2.15rem) 0 !important;
    color: var(--dash-ink);
    background:
        radial-gradient(ellipse 70% 55% at 8% 0%, rgba(242, 194, 48, .18), transparent 55%),
        radial-gradient(ellipse 55% 50% at 92% 100%, rgba(0, 163, 168, .22), transparent 50%),
        linear-gradient(145deg, #0a3d2a 0%, #0b5d3b 42%, #0f766e 100%);
}
body.site-public .dashboard-band--live::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: min(48vw, 420px);
    height: min(48vw, 420px);
    border-radius: 50%;
    border: 56px solid rgba(242, 194, 48, .08);
    pointer-events: none;
}
body.site-public .dashboard-band--live .container.dash-live {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .95rem;
}
body.site-public .dash-live__head {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    align-items: center;
    justify-content: space-between;
}
body.site-public .dash-live__intro {
    min-width: 0;
    flex: 1 1 18rem;
}
body.site-public .dash-live__intro .eyebrow {
    margin: 0 0 .2rem;
    color: #f2c230 !important;
    font-size: .72rem;
    letter-spacing: .07em;
}
body.site-public .dashboard-band--live .dash-live__intro h2,
body.site-public .dash-live__intro h2 {
    margin: 0;
    color: #fff !important;
    font-size: clamp(1.05rem, 1.55vw, 1.32rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    max-width: none;
}
body.site-public .dash-live__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .75rem;
    align-items: center;
    justify-content: flex-end;
}
body.site-public .dash-live__status {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .4rem .65rem;
    align-items: center;
}
body.site-public .dash-live__badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .18rem .55rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, .18);
    border: 1px solid rgba(52, 211, 153, .35);
    color: #a7f3d0;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
body.site-public .dash-live__badge::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .22);
    animation: dash-live-pulse 1.8s ease-in-out infinite;
}
body.site-public .dash-live__updated {
    color: rgba(248, 250, 252, .7);
    font-size: .78rem;
    line-height: 1.3;
    white-space: nowrap;
}
body.site-public .dash-live__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: flex-end;
}
body.site-public .dashboard-band--live .dash-live__actions .button {
    min-height: 34px;
    padding: .35rem .8rem;
    font-size: .84rem;
}
body.site-public .dashboard-band--live .button--outline {
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
    background: transparent;
}
body.site-public .dashboard-band--live .button--outline:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
body.site-public .dashboard-band--live .button:not(.button--outline) {
    background: #f2c230;
    color: #0b3d2a;
    border-color: #f2c230;
}
body.site-public .dashboard-band--live .button:not(.button--outline):hover {
    background: #ffd60a;
    border-color: #ffd60a;
}

body.site-public .dash-live__kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}
body.site-public .dash-live__kpi {
    display: grid;
    gap: .45rem;
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    transition: transform .25s ease, border-color .25s ease;
}
body.site-public .dash-live__kpi:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 194, 48, .45);
}
body.site-public .dash-live__kpi-label {
    color: rgba(248, 250, 252, .78);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.35;
}
body.site-public .dash-live__kpi-value {
    color: #fff;
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}
body.site-public .dash-live__kpi-value em {
    margin-left: .1rem;
    font-style: normal;
    font-size: .52em;
    font-weight: 700;
    color: rgba(248, 250, 252, .7);
}
body.site-public .dash-live__kpi-meter {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}
body.site-public .dash-live__kpi-meter i {
    display: block;
    width: var(--meter, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f2c230, #34d399);
    transform-origin: left center;
    animation: dash-live-grow .9s ease-out both;
}
body.site-public .dash-live__kpi small {
    color: rgba(248, 250, 252, .68);
    font-size: .78rem;
    line-height: 1.4;
}

body.site-public .dash-live__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: .95rem;
    align-items: stretch;
}
body.site-public .dash-live__card {
    display: grid;
    gap: 1rem;
    padding: clamp(1.05rem, 2vw, 1.35rem);
    border-radius: 22px;
    background: var(--dash-card);
    color: var(--dash-card-ink);
    box-shadow: 0 18px 40px rgba(2, 20, 12, .22);
}
body.site-public .dash-live__card-head span {
    display: inline-block;
    margin-bottom: .35rem;
    color: #0b5d3b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.site-public .dash-live__card-head h3 {
    margin: 0;
    color: #0b3d2a !important;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.35;
}

body.site-public .dash-live__pipeline-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
}
body.site-public .dash-live__donut {
    position: relative;
    width: 140px;
    height: 140px;
    flex: 0 0 auto;
}
body.site-public .dash-live__donut svg {
    display: block;
    transform: rotate(0deg);
}
body.site-public .dash-live__donut-track,
body.site-public .dash-live__donut-seg {
    fill: none;
    stroke-width: 14;
    stroke-linecap: butt;
}
body.site-public .dash-live__donut-track {
    stroke: #e2e8f0;
}
body.site-public .dash-live__donut-seg {
    transition: stroke-dasharray .6s ease;
}
body.site-public .dash-live__donut-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    pointer-events: none;
}
body.site-public .dash-live__donut-center strong {
    color: #0b3d2a;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}
body.site-public .dash-live__donut-center span {
    margin-top: .25rem;
    color: var(--dash-card-muted);
    font-size: .72rem;
    font-weight: 600;
}

body.site-public .dash-live__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}
body.site-public .dash-live__legend li {
    display: grid;
    grid-template-columns: 10px minmax(4.5rem, .9fr) minmax(0, 1.2fr) auto 2.4rem;
    gap: .55rem;
    align-items: center;
    font-size: .82rem;
}
body.site-public .dash-live__swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--swatch, #94a3b8);
}
body.site-public .dash-live__legend-label {
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.site-public .dash-live__legend-bar {
    height: 7px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}
body.site-public .dash-live__legend-bar i {
    display: block;
    width: var(--bar, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--swatch, #94a3b8);
    animation: dash-live-grow .85s ease-out both;
}
body.site-public .dash-live__legend strong {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
body.site-public .dash-live__legend em {
    color: var(--dash-card-muted);
    font-style: normal;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

body.site-public .dash-live__goal-chart {
    display: grid;
    grid-template-columns: repeat(17, minmax(0, 1fr));
    gap: .28rem;
    align-items: end;
    min-height: 168px;
    padding: .35rem .1rem .15rem;
}
body.site-public .dash-live__goal-col {
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: .28rem;
    align-items: end;
    min-width: 0;
    height: 168px;
    text-decoration: none;
    color: inherit;
}
body.site-public .dash-live__goal-bar {
    display: block;
    align-self: end;
    width: 100%;
    height: var(--bar, 8%);
    min-height: 8px;
    border-radius: 7px 7px 3px 3px;
    background: color-mix(in srgb, var(--goal-color, #0b5d3b) 28%, #e2e8f0);
    transition: height .55s ease, background .2s ease, transform .2s ease;
}
body.site-public .dash-live__goal-col.is-active .dash-live__goal-bar {
    background: var(--goal-color, #0b5d3b);
    box-shadow: 0 8px 16px color-mix(in srgb, var(--goal-color, #0b5d3b) 28%, transparent);
}
body.site-public .dash-live__goal-col:hover .dash-live__goal-bar,
body.site-public .dash-live__goal-col:focus-visible .dash-live__goal-bar {
    transform: scaleY(1.04);
    filter: brightness(1.05);
}
body.site-public .dash-live__goal-col strong {
    display: block;
    text-align: center;
    color: #0f172a;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
}
body.site-public .dash-live__goal-col small {
    display: block;
    text-align: center;
    color: var(--dash-card-muted);
    font-size: .66rem;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
body.site-public .dash-live__goal-col.is-active small {
    color: #0b5d3b;
    font-weight: 700;
}
body.site-public .dash-live__coverage-note,
body.site-public .dash-live__coverage-empty {
    margin: 0;
    color: var(--dash-card-muted);
    font-size: .84rem;
    line-height: 1.5;
}

@keyframes dash-live-grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes dash-live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
    50% { opacity: .65; box-shadow: 0 0 0 7px rgba(52, 211, 153, .08); }
}
@media (prefers-reduced-motion: reduce) {
    body.site-public .dash-live__badge::before,
    body.site-public .dash-live__kpi-meter i,
    body.site-public .dash-live__legend-bar i,
    body.site-public .dash-live__goal-bar {
        animation: none !important;
        transition: none !important;
    }
    body.site-public .dash-live__kpi:hover { transform: none; }
}

@media (max-width: 1080px) {
    body.site-public .dash-live__head { align-items: flex-start; }
    body.site-public .dash-live__meta { justify-content: flex-start; width: 100%; }
    body.site-public .dash-live__actions { justify-content: flex-start; }
    body.site-public .dash-live__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    body.site-public .dash-live__kpis { grid-template-columns: 1fr; }
    body.site-public .dash-live__pipeline-body { grid-template-columns: 1fr; justify-items: center; }
    body.site-public .dash-live__legend { width: 100%; }
    body.site-public .dash-live__legend li {
        grid-template-columns: 10px minmax(0, 1fr) auto 2.6rem;
    }
    body.site-public .dash-live__legend-bar { display: none; }
    body.site-public .dash-live__goal-chart {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        min-height: auto;
        gap: .45rem;
    }
    body.site-public .dash-live__goal-col { height: 132px; }
}
@media (max-width: 480px) {
    body.site-public .dash-live__actions { width: 100%; }
    body.site-public .dash-live__actions .button { flex: 1 1 auto; justify-content: center; }
    body.site-public .dash-live__goal-chart { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Methodology Wave shelf — full-bleed within container, balanced head/body */
body.site-public .section--workflow .section__head--center {
    max-width: none;
    margin-bottom: clamp(.85rem, 1.8vw, 1.15rem);
}

body.site-public .section--workflow .workflow-shelf {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #f7fbf8;
    border: 1px solid rgba(8, 53, 40, .1);
}

body.site-public .section--workflow .workflow-shelf__head {
    position: relative;
    background: linear-gradient(105deg, #083528 0%, #0b5d3b 45%, #1a6b3c 70%, #24985a 100%);
}

body.site-public .section--workflow .workflow-shelf__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

body.site-public .section--workflow .workflow-shelf__wave svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 18px;
    display: block;
}

body.site-public .section--workflow .workflow-shelf__wave svg path {
    fill: #f7fbf8;
}

body.site-public .section--workflow .workflow-shelf__pills {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    padding: .8rem 1.15rem 1.15rem;
}

body.site-public .section--workflow .workflow-shelf__pill {
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(0, 0, 0, .18);
    color: rgba(255, 255, 255, .92);
    font: inherit;
    font-weight: 800;
    font-size: clamp(.72rem, 1.05vw, .84rem);
    line-height: 1.3;
    padding: .65rem .7rem;
    border-radius: 999px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

body.site-public .section--workflow .workflow-shelf__pill:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

body.site-public .section--workflow .workflow-shelf__pill:focus-visible {
    outline: 2px solid #f5e7a1;
    outline-offset: 2px;
}

body.site-public .section--workflow .workflow-shelf__pill.is-done {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
}

body.site-public .section--workflow .workflow-shelf__pill.is-active {
    background: #f5e7a1;
    color: #0a3d2a;
    border-color: #f5e7a1;
    transform: translateY(-1px);
}

body.site-public .section--workflow .workflow-shelf__panels {
    position: relative;
    z-index: 1;
    padding: 1.15rem clamp(1.15rem, 2.5vw, 1.85rem) 1.25rem;
    text-align: left;
    min-height: 0;
    background: #f7fbf8;
}

body.site-public .section--workflow .workflow-shelf__panel[hidden] {
    display: none !important;
}

body.site-public .section--workflow .workflow-shelf__panel.is-active {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .35rem 1.15rem;
    align-items: baseline;
    animation: workflow-shelf-rise .28s ease both;
}

@keyframes workflow-shelf-rise {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

body.site-public .section--workflow .workflow-shelf__tag {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #0b5d3b;
    white-space: nowrap;
}

body.site-public .section--workflow .workflow-shelf__panel h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: clamp(1.12rem, 1.8vw, 1.32rem);
    line-height: 1.35;
    color: #0a3d2a;
}

body.site-public .section--workflow .workflow-shelf__panel p:not(.workflow-shelf__tag) {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: .15rem 0 0;
    max-width: none;
    color: #5b6b63;
    font-size: .95rem;
    line-height: 1.65;
}

@media (max-width: 900px) {
    body.site-public .section--workflow .workflow-shelf__pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: .85rem .9rem .45rem;
    }
    body.site-public .section--workflow .workflow-shelf__pill {
        white-space: normal;
    }
}

@media (max-width: 560px) {
    body.site-public .section--workflow .workflow-shelf__pills {
        grid-template-columns: 1fr;
        gap: .4rem;
    }
    body.site-public .section--workflow .workflow-shelf__panel.is-active {
        grid-template-columns: 1fr;
        gap: .25rem;
    }
    body.site-public .section--workflow .workflow-shelf__tag,
    body.site-public .section--workflow .workflow-shelf__panel h3,
    body.site-public .section--workflow .workflow-shelf__panel p:not(.workflow-shelf__tag) {
        grid-column: 1;
    }
    body.site-public .section--workflow .workflow-shelf__panel h3 { grid-row: 2; }
    body.site-public .section--workflow .workflow-shelf__panel p:not(.workflow-shelf__tag) { grid-row: 3; }
}

/* Long unedited Facebook topics: keep cards compact (PHP also shortens headline). */
body.site-public .project-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
}
body.site-public .project-card__summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Project detail hero — A Overlay: full-bleed cover + bottom gradient copy. */
body.site-public .project-detail-hero-v2--overlay {
    position: relative !important;
    display: grid !important;
    align-items: end !important;
    min-height: clamp(280px, 38vh, 360px) !important;
    max-height: none !important;
    overflow: hidden;
    background: linear-gradient(135deg, #063a28, #0b2742);
}
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__bg,
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__no-image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    transform: none !important;
    filter: brightness(.78) saturate(.94) contrast(1.04) !important;
}
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__bg::before,
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__bg::after {
    content: none !important;
    display: none !important;
}
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(2, 12, 10, .45) 0%,
            rgba(2, 12, 10, .52) 30%,
            rgba(2, 12, 10, .78) 58%,
            rgba(2, 12, 10, .94) 82%,
            rgba(1, 8, 6, .98) 100%) !important;
    pointer-events: none;
}
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__inner {
    position: relative !important;
    z-index: 2;
    width: min(100% - clamp(1rem, 3vw, 2rem), 1180px) !important;
    max-width: 1180px !important;
    margin: 0 auto .85rem !important;
    display: grid;
    gap: .5rem;
    padding: .85rem 1rem .95rem !important;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(2, 12, 10, .62) 0%, rgba(2, 12, 10, .78) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.site-public .project-detail-hero-v2--overlay .breadcrumb-lite {
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
    gap: .4rem;
}
body.site-public .project-detail-hero-v2--overlay .breadcrumb-lite a {
    color: #c8f5d4;
    font-weight: 650;
}
body.site-public .breadcrumb-lite > span:last-child {
    display: inline-block;
    max-width: min(36rem, 68vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    display: grid;
    gap: .35rem;
}
body.site-public .project-detail-hero-v2--overlay .eyebrow {
    margin: 0;
    color: #9af0b4;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
body.site-public .project-detail-hero-v2--overlay h1,
body.site-public .project-detail-hero-v2 h1 {
    display: block !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(1.2rem, .95rem + 1.15vw, 1.75rem) !important;
    font-weight: 750 !important;
    line-height: 1.34 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-wrap: wrap !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 2px 12px rgba(0, 0, 0, .55), 0 12px 32px rgba(0, 0, 0, .45);
}
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__summary,
body.site-public .project-detail-hero-v2__summary {
    display: block !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    width: min(100%, 46rem) !important;
    max-width: none !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, .88) !important;
    font-size: .92rem !important;
    line-height: 1.5 !important;
    text-align: left !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__meta {
    margin-top: .1rem;
    gap: .4rem;
}
body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__meta span {
    padding: .28rem .55rem;
    background: rgba(0, 0, 0, .42);
    border: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .94);
    font-size: .8rem;
    backdrop-filter: blur(6px);
}
body.site-public .project-detail-hero-v2--overlay .project-goal-clicks {
    margin-top: .15rem;
    gap: .45rem;
}
body.site-public .project-detail-hero-v2--overlay .project-goal-button {
    min-height: 46px;
    padding: .32rem .65rem .32rem .32rem;
    border-color: rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}
body.site-public .project-detail-hero-v2--overlay .project-goal-button img {
    width: 34px;
    height: 34px;
}
@media (max-width: 760px) {
    body.site-public .project-detail-hero-v2--overlay {
        min-height: clamp(260px, 46vh, 340px) !important;
    }
    body.site-public .project-detail-hero-v2--overlay h1,
    body.site-public .project-detail-hero-v2 h1 {
        font-size: clamp(1.12rem, 4.8vw, 1.4rem) !important;
        line-height: 1.38 !important;
    }
    body.site-public .project-detail-hero-v2--overlay .project-detail-hero-v2__inner {
        gap: .45rem;
        margin-bottom: .65rem;
        padding: .75rem .8rem .8rem !important;
        border-radius: 12px;
    }
}

/* Project gallery: thumb grid + full-size lightbox */
body.site-public .project-detail-gallery__zoom {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
body.site-public .project-detail-gallery__zoom:focus-visible {
    outline: 2px solid rgba(15, 118, 110, .55);
    outline-offset: 2px;
}
body.site-public .project-detail-gallery__zoom img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}
body.site-public .project-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
}
body.site-public .project-image-viewer[hidden] {
    display: none !important;
}
body.site-public .project-image-viewer__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .78);
    cursor: zoom-out;
}
body.site-public .project-image-viewer__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: .65rem;
    width: auto;
    max-width: min(96vw, 100%);
    max-height: min(94vh, 100%);
}
body.site-public .project-image-viewer__img {
    width: auto;
    height: auto;
    max-width: min(96vw, 100%);
    max-height: min(86vh, 100%);
    object-fit: contain;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
body.site-public .project-image-viewer__close {
    justify-self: end;
    min-height: 36px;
    padding: .4rem .85rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
body.site-public.is-project-image-viewer-open {
    overflow: hidden;
}

/* SDG project modal: CTA matches goal color, full-width footer action */
body.site-public .sdg-public-modal__close {
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}
body.site-public .sdg-public-modal__targets code {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: .12rem .45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--goal-color, #0f766e) 12%, #fff);
    color: var(--goal-color, #0f766e);
    font-size: .82rem;
}
body.site-public .sdg-public-modal__actions {
    display: grid;
    margin-top: .25rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(15, 23, 42, .08);
}
body.site-public .sdg-public-modal__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 48px;
    padding: .78rem 1.15rem;
    border-radius: 12px;
    border: 0;
    background: var(--goal-color, #0b5d3b);
    color: #fff !important;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--goal-color, #0b5d3b) 32%, transparent);
    transition: filter .15s ease, transform .15s ease;
}
body.site-public .sdg-public-modal__cta:hover,
body.site-public .sdg-public-modal__cta:focus-visible {
    filter: brightness(1.07);
    color: #fff !important;
}
body.site-public .sdg-public-modal__cta:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--goal-color, #0b5d3b) 55%, #fff);
    outline-offset: 2px;
}
body.site-public .sdg-public-modal__cta-arrow {
    font-size: 1.05em;
    line-height: 1;
    opacity: .92;
}
