/* Legend Design Studio 3.8 — ten complete website design systems.
   All selectors are scoped to the Legend front-end; WordPress admin is unaffected. */
body.legend-site {
  --ngo-design-surface:#fff; --ngo-design-wash:#f4f8f3; --ngo-design-ink:#173e34;
  --ngo-design-muted:#596b61; --ngo-design-line:#dce6dd;
  --ngo-density-space:92px; --ngo-card-radius:var(--cngo-radius,14px); --ngo-button-radius:11px;
  background:var(--ngo-design-surface); color:var(--ngo-design-ink);
}
body.legend-site .cngo-container {width:min(var(--cngo-container,1240px),calc(100% - 48px));max-width:none}
body.legend-site .legend-header {background:var(--ngo-design-surface);border-color:var(--ngo-design-line)}
body.legend-site .legend-topbar {background:var(--ngo-design-ink)}
body.legend-site .legend-hero {background:linear-gradient(127deg,var(--ngo-design-wash),var(--ngo-design-surface) 95%);border-color:var(--ngo-design-line);color:var(--ngo-design-ink)}
body.legend-site .legend-hero-copy h1,body.legend-site .legend-section-head h2,body.legend-site .cngo-section-heading h2,body.legend-site .legend-transparency-heading h2,body.legend-site .cngo-page-hero h1 {color:var(--ngo-design-ink)}
body.legend-site .legend-hero-copy>p,body.legend-site .legend-section-head p,body.legend-site .legend-transparency-heading p {color:var(--ngo-design-muted)}
body.legend-site .cngo-page-hero {background:linear-gradient(125deg,var(--ngo-design-wash),var(--ngo-design-surface));border-color:var(--ngo-design-line)}
body.legend-site .legend-transparency {background:var(--ngo-design-wash);border-color:var(--ngo-design-line)}
body.legend-site .legend-impact {background:var(--ngo-design-surface)}
body.legend-site .legend-belief {background:var(--ngo-design-wash);border-color:var(--ngo-design-line)}
body.legend-site .legend-belief p {color:var(--ngo-design-ink)}
body.legend-site .cngo-section {padding-block:var(--ngo-density-space)}
body.legend-site .cngo-card,body.legend-site .cngo-service-card,body.legend-site .cngo-message-card,body.legend-site .cngo-detail-panel {border-radius:var(--ngo-card-radius);border-color:var(--ngo-design-line);background:var(--ngo-design-surface)}
body.legend-site .legend-impact-story {border-color:var(--ngo-design-line)}
body.legend-site .legend-btn,body.legend-site .cngo-btn,body.legend-site .legend-donate-btn {border-radius:var(--ngo-button-radius)}
body.legend-site .legend-btn-primary,body.legend-site .legend-donate-btn {background:var(--cngo-green);border-color:var(--cngo-green);color:#fff}
body.legend-site .legend-btn-ghost {border-color:var(--ngo-design-line);background:var(--ngo-design-surface);color:var(--ngo-design-ink)}
body.legend-site .legend-footer-cta {background:var(--cngo-green)}
body.legend-site .legend-identity-band {background:var(--ngo-design-ink);color:var(--ngo-design-surface)}
body.legend-site .legend-kicker,body.legend-site .cngo-eyebrow {color:var(--cngo-green)}
body.legend-site .legend-hero-stats strong {color:var(--cngo-green)}
body.legend-site .legend-back-to-top {background:var(--ngo-design-ink);border-color:var(--ngo-design-ink)}
body.legend-site .legend-news-categories a,body.legend-site .legend-news-categories span,body.legend-site .legend-pagination a {border-color:var(--ngo-design-line);background:var(--ngo-design-surface);color:var(--ngo-design-ink)}
body.legend-site :is(a,button,input,select,textarea):focus-visible {outline:3px solid var(--cngo-orange);outline-offset:3px}

/* Strong individual visual identities, not merely ten color filters. */
body.cngo-skin-heritage .legend-hero {border-radius:24px}
body.cngo-skin-ocean .legend-hero {background:linear-gradient(130deg,#e6f5fd 5%,#f7fbfd 48%,#fff 100%)}
body.cngo-skin-ocean .legend-hero-stats {border-top:1px solid #cae1ed}
body.cngo-skin-ocean .legend-identity-band {background:#073856}
body.cngo-skin-ocean .legend-hero-copy h1 {letter-spacing:-.035em}
body.cngo-skin-sunrise .legend-hero {background:radial-gradient(ellipse at 50% -30%,#ffe2ad 0%,#fff8eb 53%,#fffcf7 100%)}
body.cngo-skin-sunrise .legend-kicker {background:#fff2d8;padding:9px 18px;border:1px solid #f2d4a6;border-radius:999px}
body.cngo-skin-sunrise .legend-identity-band {background:#7d381e}
body.cngo-skin-sunrise .legend-hero-copy h1 {font-weight:850}
body.cngo-skin-royal .legend-hero {background:radial-gradient(circle at 85% 8%,#dfdafa 0%,#f5f3ff 43%,#fff 100%)}
body.cngo-skin-royal .legend-hero-collage:before {content:"";position:absolute;inset:8% 12%;border-radius:50%;background:#d9d1fa;filter:blur(55px);pointer-events:none}
body.cngo-skin-royal .legend-identity-band {background:#302978}
body.cngo-skin-earth .legend-hero {background:#f4efe4;border:0;border-radius:0!important}
body.cngo-skin-earth .legend-kicker {letter-spacing:.10em}
body.cngo-skin-earth .legend-belief {background:#e8e1d4}
body.cngo-skin-earth .legend-identity-band {background:#394b31}
body.cngo-skin-mono .legend-hero {background:#fff;border-block:3px solid #151e23;border-radius:0!important}
body.cngo-skin-mono .legend-identity-band {background:#151e23}
body.cngo-skin-mono .legend-hero-copy h1 {font-weight:900;letter-spacing:-.05em}
body.cngo-skin-mono .legend-belief {background:#edf0ef}
body.cngo-skin-mono .legend-focus-icon {background:#e5e8e5}
body.cngo-skin-health .legend-hero {background:linear-gradient(145deg,#effaf8,#dff2ef 65%,#fff 100%);border-radius:30px}
body.cngo-skin-health .legend-identity-band {background:#075b59}
body.cngo-skin-health .legend-hero-stats>div {border-radius:15px}
body.cngo-skin-youth .legend-hero {background:radial-gradient(circle at 80% 5%,#f2dafd 0%,#faf0fe 42%,#fff6ee 100%);border-radius:34px}
body.cngo-skin-youth .legend-hero-copy h1 {font-weight:900;letter-spacing:-.035em}
body.cngo-skin-youth .legend-identity-band {background:#52267f}
body.cngo-skin-youth .legend-kicker {background:rgba(109,40,160,.10);padding:10px 15px;border-radius:40px}
body.cngo-skin-burgundy .legend-hero {background:linear-gradient(138deg,#f8e9e8,#fffdfa 65%);border:0;border-radius:0!important}
body.cngo-skin-burgundy .legend-identity-band {background:#502536}
body.cngo-skin-burgundy .legend-belief {background:#f4e5e7}
body.cngo-skin-burgundy .legend-section-head>span {letter-spacing:.20em}

/* Header alternatives; responsive state is intentionally separate below. */
@media(min-width:981px){
  body.cngo-header-compact .legend-header-inner {min-height:63px}
  body.cngo-header-compact .legend-logo,body.cngo-header-compact .legend-logo-mark {width:42px;height:42px}
  body.cngo-header-compact .legend-brand-copy small {display:none}
  body.cngo-header-compact .legend-header {box-shadow:0 1px 0 var(--ngo-design-line)!important}
  body.cngo-header-split .legend-header-inner {gap:20px;justify-content:space-between}
  body.cngo-header-split .legend-navigation {margin-left:auto}
  body.cngo-header-split .legend-header-actions {border-left:1px solid var(--ngo-design-line);padding-left:14px}
  body.cngo-header-center .legend-header-inner {min-height:115px;flex-wrap:wrap;justify-content:center;gap:0 28px;padding:10px 0}
  body.cngo-header-center .legend-brand {order:-1;flex-basis:100%;justify-content:center;margin:0 0 9px}
  body.cngo-header-center .legend-navigation {margin:0}
  body.cngo-header-center .legend-header-actions {margin:0}
  body.cngo-header-center .legend-brand-copy {text-align:left}
}

/* Hero alternatives; the same real organisation images and content power each layout. */
@media(min-width:981px){
  body.cngo-hero-split .legend-hero-grid {grid-template-columns:1.04fr .96fr}
  body.cngo-hero-center .legend-hero-grid {display:flex;flex-direction:column;gap:30px;padding-block:50px 6px;min-height:0}
  body.cngo-hero-center .legend-hero-copy {max-width:980px;text-align:center;margin:auto}
  body.cngo-hero-center .legend-hero-copy h1 {max-width:950px;font-size:clamp(55px,6.1vw,90px)}
  body.cngo-hero-center .legend-hero-copy>p {max-width:740px;margin-inline:auto}
  body.cngo-hero-center .legend-hero-actions,body.cngo-hero-center .legend-family {justify-content:center}
  body.cngo-hero-center .legend-hero-visual {width:min(100%,900px);min-height:0;align-self:center}
  body.cngo-hero-center .legend-hero-collage {height:450px;margin:0 auto}
  body.cngo-hero-center .legend-collage-main {width:75%;left:12%;top:0;height:95%}
  body.cngo-hero-center .legend-collage-small {width:25%}
  body.cngo-hero-wide .legend-hero-grid {grid-template-columns:1fr .87fr;gap:30px;min-height:590px}
  body.cngo-hero-wide .legend-hero-copy h1 {font-size:clamp(60px,6.3vw,100px);letter-spacing:-.045em}
  body.cngo-hero-wide .legend-hero-visual {min-height:485px}
  body.cngo-hero-wide .legend-hero-collage {height:490px}
  body.cngo-hero-wide .legend-collage-main {width:100%;height:100%;top:0;left:0;right:0;border-radius:var(--ngo-card-radius)}
  body.cngo-hero-wide .legend-collage-small,body.cngo-hero-wide .legend-collage-index,body.cngo-hero-wide .legend-visual-badge {display:none}
  body.cngo-hero-wide .legend-collage-main img {width:100%;height:100%;object-fit:cover}
  body.cngo-hero-stacked .legend-hero-grid {display:flex;flex-direction:column;align-items:stretch;gap:32px}
  body.cngo-hero-stacked .legend-hero-copy {width:min(100%,920px);max-width:none;margin-inline:auto;text-align:center;padding-top:55px}
  body.cngo-hero-stacked .legend-hero-copy>p {max-width:740px;margin-inline:auto}
  body.cngo-hero-stacked .legend-hero-actions,body.cngo-hero-stacked .legend-family {justify-content:center}
  body.cngo-hero-stacked .legend-hero-visual {width:min(100%,1000px);align-self:center;min-height:0}
  body.cngo-hero-stacked .legend-hero-collage {height:470px}
  body.cngo-hero-stacked .legend-collage-main {width:80%;left:10%;height:100%;top:0}
  body.cngo-hero-stacked .legend-collage-small {display:none}
}

/* Components and typography. */
body.cngo-cards-elevated :is(.cngo-card,.cngo-service-card,.legend-focus-card,.legend-impact-story) {border:1px solid var(--ngo-design-line);border-radius:var(--ngo-card-radius);box-shadow:0 14px 35px rgba(20,34,31,.10);overflow:hidden}
body.cngo-cards-outlined :is(.cngo-card,.cngo-service-card,.legend-focus-card,.legend-impact-story) {border:1.5px solid var(--ngo-design-line);border-radius:var(--ngo-card-radius);box-shadow:none;overflow:hidden}
body.cngo-cards-flat :is(.cngo-card,.cngo-service-card,.legend-focus-card,.legend-impact-story) {border:0;border-radius:3px;box-shadow:none;background:var(--ngo-design-wash);overflow:hidden}
body.cngo-cards-glass :is(.cngo-card,.cngo-service-card,.legend-focus-card,.legend-impact-story) {border:1px solid var(--ngo-design-line);border-radius:20px;background:color-mix(in srgb,var(--ngo-design-surface) 81%,transparent);box-shadow:0 14px 35px rgba(25,23,60,.08);backdrop-filter:blur(14px);overflow:hidden}
body.cngo-buttons-pill {--ngo-button-radius:999px}
body.cngo-buttons-square {--ngo-button-radius:2px}
body.cngo-buttons-soft {--ngo-button-radius:11px}
body.cngo-density-compact {--ngo-density-space:55px}
body.cngo-density-normal {--ngo-density-space:90px}
body.cngo-density-airy {--ngo-density-space:125px}
body.cngo-type-modern :is(.legend-hero-copy h1,.cngo-page-hero h1,.legend-section-head h2,.cngo-section-heading h2) {letter-spacing:-.035em;font-weight:780}
body.cngo-type-bold :is(.legend-hero-copy h1,.cngo-page-hero h1,.legend-section-head h2,.cngo-section-heading h2) {font-weight:900;letter-spacing:-.04em}
body.cngo-type-editorial :is(.legend-hero-copy h1,.cngo-page-hero h1,.legend-section-head h2,.cngo-section-heading h2,.legend-belief p) {font-family:Georgia,"Noto Serif Bengali",var(--legend-display-font),serif;font-weight:650;letter-spacing:-.025em}
body.cngo-type-editorial.cngo-lang-bn :is(.legend-hero-copy h1,.cngo-page-hero h1,.legend-section-head h2,.cngo-section-heading h2,.legend-belief p) {font-family:"Noto Serif Bengali",var(--legend-body-font),serif;letter-spacing:0}
body.cngo-fontscale-large :is(.cngo-prose,.legend-hero-copy>p,.legend-impact-story p) {font-size:1.13em}
body.cngo-fontscale-compact :is(.cngo-prose,.legend-hero-copy>p,.legend-impact-story p) {font-size:.95em}
body.cngo-footer-dark .legend-footer {background:#172b2a;color:#dbeae5}
body.cngo-footer-brand .legend-footer {background:var(--cngo-green);color:#fff}
body.cngo-footer-brand .legend-footer :is(a,h3,p,span) {color:#fff}
body.cngo-footer-light .legend-footer {background:var(--ngo-design-wash);color:var(--ngo-design-ink);border-top:1px solid var(--ngo-design-line)}
body.cngo-footer-light .legend-footer :is(a,h3,p,span,.legend-footer-bottom) {color:var(--ngo-design-ink)}
body.cngo-footer-light .legend-footer a:hover {color:var(--cngo-green)!important}
body.cngo-no-breadcrumbs .cngo-page-hero>.cngo-container>a,
body.cngo-no-breadcrumbs .cngo-page-hero>.cngo-container>span {display:none}

/* Midnight's light primary requires dark text on primary surfaces. */
body.cngo-skin-midnight {background:#102525;color:#ebf5ef}
body.cngo-skin-midnight .legend-hero,body.cngo-skin-midnight .cngo-page-hero {background:linear-gradient(145deg,#173535,#102525 90%);border-color:#355451}
body.cngo-skin-midnight .legend-header {background:#102525;border-color:#355451}
body.cngo-skin-midnight .legend-header :is(.legend-brand-copy strong,.legend-nav-list>li>a,.legend-lang a),
body.cngo-skin-midnight .legend-hero-copy h1,body.cngo-skin-midnight .cngo-page-hero h1 {color:#ecf6f1}
body.cngo-skin-midnight .legend-hero-copy>p,body.cngo-skin-midnight .legend-hero-stats span {color:#bdd0c8}
body.cngo-skin-midnight :is(.legend-belief,.legend-transparency,.legend-impact) {background:#132e2d;color:#ebf5ef;border-color:#355451}
body.cngo-skin-midnight .legend-identity-band {background:#071c1d;color:#fff}
body.cngo-skin-midnight :is(.cngo-card,.cngo-service-card,.legend-impact-story,.cngo-detail-panel) {background:#173535;color:#e5f2ed;border-color:#355451}
body.cngo-skin-midnight :is(.cngo-card h3,.cngo-card p,.legend-impact-story h3,.legend-impact-story p,.legend-belief p,.legend-section-head h2,.cngo-section-heading h2,.legend-transparency-heading h2) {color:#ebf5ef}
body.cngo-skin-midnight .legend-btn-primary,body.cngo-skin-midnight .legend-donate-btn {color:#112a29!important}
body.cngo-skin-midnight .legend-btn-ghost {background:#173535;color:#fff;border-color:#355451}
body.cngo-skin-midnight .legend-footer-cta {background:#24554a}
body.cngo-skin-midnight .legend-header-search>summary {background:#173535;border-color:#355451;color:#8be6c5}
body.cngo-skin-midnight .legend-search-popover,body.cngo-skin-midnight .legend-navigation.is-open {background:#173535;color:#e8f4ef}
body.cngo-skin-midnight .legend-search-popover input,body.cngo-skin-midnight .legend-search-popover button {color:#122d2b}
body.cngo-skin-midnight .legend-hero-stats strong,body.cngo-skin-midnight .legend-kicker {color:#9ae7c8}
body.cngo-skin-midnight .cngo-page-content {background:#102525}
body.cngo-skin-midnight :is(.cngo-prose,.cngo-prose p,.cngo-prose li,.cngo-profile-hero p) {color:#e5f1ec}

/* Optional multilingual announcement and mobile actions. */
.ngo-announcement {position:relative;background:var(--ngo-design-ink,#173e34);color:var(--ngo-design-surface,#fff);z-index:102;font-size:13px;line-height:1.5}
.ngo-announcement-inner {min-height:41px;display:flex;align-items:center;justify-content:center;gap:16px;padding:8px 0}
.ngo-announcement a {color:inherit;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.ngo-announcement button {position:absolute;right:14px;top:50%;transform:translateY(-50%);background:none;border:1px solid currentColor;border-radius:50%;width:27px;height:27px;color:inherit;cursor:pointer}
.ngo-announcement[hidden] {display:none}
.ngo-mobile-actions {display:none}
.cngo-design-preview:before {content:"ADMIN PREVIEW · NOT SAVED";position:fixed;top:50%;right:0;z-index:10009;background:#ffd166;color:#242424;padding:7px 12px;font:700 11px system-ui;letter-spacing:.03em;writing-mode:vertical-rl;box-shadow:0 4px 12px #0002}

@media(max-width:980px){
  body.legend-site .cngo-container {width:calc(100% - 34px)}
  body.legend-site .cngo-section {padding-block:min(var(--ngo-density-space),72px)}
  body.legend-site .legend-navigation {background:var(--ngo-design-surface);border-color:var(--ngo-design-line)}
  body.legend-site .legend-header :is(.legend-menu-toggle,.legend-header-search>summary) {border-color:var(--ngo-design-line)}
}
@media(max-width:680px){
  body.legend-site .cngo-container {width:calc(100% - 28px)}
  body.legend-site .cngo-section {padding-block:min(var(--ngo-density-space),52px)}
  body.legend-site .legend-hero-grid {display:flex;flex-direction:column;gap:15px}
  body.legend-site .legend-hero-copy h1 {letter-spacing:0;font-size:clamp(33px,9vw,46px)}
  body.legend-site .legend-hero {border-radius:14px!important}
  body.cngo-hero-wide .legend-hero-collage,body.cngo-hero-stacked .legend-hero-collage {height:320px}
  body.cngo-hero-wide .legend-collage-main,body.cngo-hero-stacked .legend-collage-main {width:100%;height:100%;inset:0;border-radius:var(--ngo-card-radius)}
  body.cngo-hero-wide .legend-collage-small,body.cngo-hero-stacked .legend-collage-small {display:none}
  body.cngo-hero-center .legend-hero-copy,body.cngo-hero-stacked .legend-hero-copy {text-align:center}
  body.cngo-hero-center .legend-hero-actions,body.cngo-hero-stacked .legend-hero-actions {justify-content:center}
  .ngo-announcement-inner {padding-inline:15px 34px;font-size:12px}
  body.legend-site.cngo-mobile-actions-on {padding-bottom:67px}
  .ngo-mobile-actions {position:fixed;inset:auto 0 0;display:grid;grid-template-columns:1fr 1fr;background:var(--ngo-design-surface,#fff);border-top:1px solid var(--ngo-design-line);gap:8px;padding:9px max(13px,env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom));z-index:98;box-shadow:0 -8px 28px #0002}
  .ngo-mobile-actions a {display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:10px;border:1px solid var(--ngo-design-line);text-align:center;font-size:13px;font-weight:750;color:var(--ngo-design-ink);text-decoration:none}
  .ngo-mobile-actions a:last-child {background:var(--cngo-green);color:#fff;border-color:var(--cngo-green)}
  body.cngo-skin-midnight .ngo-mobile-actions a:last-child {color:#102525}
  body.legend-site.cngo-mobile-actions-on .legend-whatsapp {bottom:91px}
  body.legend-site.cngo-mobile-actions-on .legend-back-to-top {bottom:99px}
}
@media(prefers-reduced-motion:reduce){.ngo-announcement button,.ngo-mobile-actions a{transition:none!important}}
@media print {.ngo-announcement,.ngo-mobile-actions,.cngo-design-preview:before{display:none!important}}

@media(min-width:981px){
  body.cngo-archivecols-2:is(.post-type-archive,.search,.blog) .cngo-grid,body.cngo-archivecols-2 .legend-news-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.cngo-archivecols-3:is(.post-type-archive,.search,.blog) .cngo-grid,body.cngo-archivecols-3 .legend-news-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.cngo-archivecols-4:is(.post-type-archive,.search,.blog) .cngo-grid,body.cngo-archivecols-4 .legend-news-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:981px){body.cngo-header-center .legend-brand{max-width:none;width:100%;flex-basis:100%}}
body.cngo-skin-midnight .legend-topbar{background:#071c1d;color:#eef9f4}
body.cngo-skin-midnight .legend-hero-stats{background:#173535;border-color:#355451}
body.cngo-skin-midnight .legend-hero-stats>div{border-color:#355451}
body.cngo-skin-midnight .legend-about,body.cngo-skin-midnight .legend-focus{background:#102525;color:#edf6f1}
body.cngo-skin-midnight .legend-about :is(h2,h3,p),body.cngo-skin-midnight .legend-focus :is(h2,h3,p){color:#edf6f1}
body.cngo-skin-midnight .legend-focus-card{background:#173535;border-color:#355451}
body.cngo-skin-midnight :is(.cngo-form-shell,.cngo-form-layout,.cngo-premium-form){color:#183f38}
body.cngo-skin-midnight .cngo-premium-form :is(input,textarea,select){background:#fff;color:#183f38}
body.cngo-skin-midnight .cngo-form-shell .cngo-form-aside{background:#173c37!important;color:#fff!important}
body.cngo-skin-midnight .cngo-form-shell .cngo-form-aside :is(p,h2,li){color:#fff!important}
body.cngo-fontscale-large{font-size:17px}
body.cngo-fontscale-compact{font-size:15px}
@media(max-width:680px){body.cngo-fontscale-large{font-size:16.5px}body.cngo-fontscale-compact{font-size:14.5px}}
