/* ============================================================
   NACWO Platform — Phase 1.48
   Typography, copy hierarchy and dual-theme contrast system.
   ============================================================ */

body.nacwo-os{
  --pf-page:#eef6fb;
  --pf-surface:#ffffff;
  --pf-surface-2:#f6fbfe;
  --pf-surface-3:#eaf4fa;
  --pf-surface-strong:#0a2d4b;
  --pf-text:#10283d;
  --pf-text-2:#4f697c;
  --pf-text-3:#617a8b;
  --pf-line:rgba(31,93,132,.14);
  --pf-line-strong:rgba(31,116,171,.24);
  --pf-input:#ffffff;
  --pf-chip:#edf6fb;
  --pf-chip-text:#245b78;
  --pf-shadow:0 16px 42px rgba(5,44,72,.07);
  --pf-shadow-raised:0 24px 64px rgba(5,44,72,.11);
}
html[data-theme="midnight"] body.nacwo-os{
  --pf-page:#020b14;
  --pf-surface:#071a2b;
  --pf-surface-2:#0a2136;
  --pf-surface-3:#0d2942;
  --pf-surface-strong:#102f4a;
  --pf-text:#f2f8fc;
  --pf-text-2:#c2d4e0;
  --pf-text-3:#91acbd;
  --pf-line:rgba(125,194,233,.14);
  --pf-line-strong:rgba(125,206,245,.24);
  --pf-input:#081d30;
  --pf-chip:#0c2942;
  --pf-chip-text:#b9d9e9;
  --pf-shadow:0 16px 44px rgba(0,0,0,.20);
  --pf-shadow-raised:0 26px 68px rgba(0,0,0,.28);
}

/* Shared portal contrast and hierarchy */
body.nacwo-os:not(.home-page) main,
body.nacwo-os:not(.home-page) .partner-main,
body.nacwo-os:not(.home-page) .admin-main{color:var(--pf-text)}
body.nacwo-os:not(.home-page) .card,
body.nacwo-os:not(.home-page) .panel,
body.nacwo-os:not(.home-page) .member-overview-panel,
body.nacwo-os:not(.home-page) .partner-overview-panel,
body.nacwo-os:not(.home-page) .admin-panel,
body.nacwo-os:not(.home-page) .admin-intel-card,
body.nacwo-os:not(.home-page) .help-panel,
body.nacwo-os:not(.home-page) .tablewrap,
body.nacwo-os:not(.home-page) .network-person-card,
body.nacwo-os:not(.home-page) .marketplace-person-card,
body.nacwo-os:not(.home-page) .network-opportunity-card,
body.nacwo-os:not(.home-page) .marketplace-opportunity-card,
body.nacwo-os:not(.home-page) .marketplace-product-card,
body.nacwo-os:not(.home-page) .marketplace-home-product-card,
body.nacwo-os:not(.home-page) .admin-product-card{
  background:var(--pf-surface)!important;
  color:var(--pf-text)!important;
  border-color:var(--pf-line)!important;
  box-shadow:var(--pf-shadow)!important;
}
body.nacwo-os:not(.home-page) .card h1,
body.nacwo-os:not(.home-page) .card h2,
body.nacwo-os:not(.home-page) .card h3,
body.nacwo-os:not(.home-page) .panel h1,
body.nacwo-os:not(.home-page) .panel h2,
body.nacwo-os:not(.home-page) .panel h3,
body.nacwo-os:not(.home-page) .member-overview-panel h2,
body.nacwo-os:not(.home-page) .partner-overview-panel h2,
body.nacwo-os:not(.home-page) .admin-panel h2{color:var(--pf-text)!important}
body.nacwo-os:not(.home-page) .card p,
body.nacwo-os:not(.home-page) .card small,
body.nacwo-os:not(.home-page) .panel p,
body.nacwo-os:not(.home-page) .panel small,
body.nacwo-os:not(.home-page) .section-copy,
body.nacwo-os:not(.home-page) .muted,
body.nacwo-os:not(.home-page) .hint{color:var(--pf-text-2)!important}
body.nacwo-os:not(.home-page) input,
body.nacwo-os:not(.home-page) select,
body.nacwo-os:not(.home-page) textarea{
  background:var(--pf-input)!important;
  color:var(--pf-text)!important;
  border-color:var(--pf-line-strong)!important;
}
body.nacwo-os:not(.home-page) input::placeholder,
body.nacwo-os:not(.home-page) textarea::placeholder{color:var(--pf-text-3)!important;opacity:1}
body.nacwo-os:not(.home-page) label{color:var(--pf-text-2)}
body.nacwo-os:not(.home-page) .table,
body.nacwo-os:not(.home-page) table{color:var(--pf-text)}
body.nacwo-os:not(.home-page) th{background:var(--pf-surface-2)!important;color:var(--pf-text-2)!important;border-color:var(--pf-line)!important}
body.nacwo-os:not(.home-page) td{color:var(--pf-text)!important;border-color:var(--pf-line)!important}
body.nacwo-os:not(.home-page) .status-chip,
body.nacwo-os:not(.home-page) .marketplace-chip,
body.nacwo-os:not(.home-page) .admin-network-tag{
  background:var(--pf-chip)!important;
  color:var(--pf-chip-text)!important;
  border-color:var(--pf-line)!important;
}
html[data-theme="midnight"] body.nacwo-os:not(.home-page) .ghost,
html[data-theme="midnight"] body.nacwo-os:not(.home-page) .btn.ghost{
  background:rgba(255,255,255,.055)!important;color:#d8e8f2!important;border-color:rgba(157,212,243,.15)!important
}
html[data-theme="midnight"] body.nacwo-os:not(.home-page) a:not(.btn):not([class*="pill"]){color:#77d9ff}

/* Homepage semantic tokens — equal treatment for light and midnight */
body.home-page{
  --hp-page:#f4f9fc;
  --hp-surface:#ffffff;
  --hp-surface-2:#eef7fb;
  --hp-surface-3:#e5f1f7;
  --hp-text:#0b2132;
  --hp-text-2:#526b7b;
  --hp-text-3:#617a8b;
  --hp-line:rgba(19,86,124,.13);
  --hp-line-strong:rgba(19,104,151,.22);
  --hp-blue:#0c73ad;
  --hp-cyan:#54cfe8;
  --hp-gold:#f4b400;
  --hp-accent-soft:#e9f7fc;
  --hp-action:#071f34;
  --hp-shadow:0 20px 58px rgba(6,43,69,.08);
  --hp-shadow-up:0 30px 78px rgba(6,43,69,.12);
  background:var(--hp-page)!important;
  color:var(--hp-text)!important;
}
html[data-theme="midnight"] body.home-page{
  --hp-page:#020b14;
  --hp-surface:#071a2b;
  --hp-surface-2:#0a2136;
  --hp-surface-3:#0d2942;
  --hp-text:#f3f8fc;
  --hp-text-2:#c0d2df;
  --hp-text-3:#8faabd;
  --hp-line:rgba(115,192,235,.14);
  --hp-line-strong:rgba(115,205,246,.24);
  --hp-blue:#55c8ff;
  --hp-cyan:#64e0ef;
  --hp-gold:#ffc72c;
  --hp-accent-soft:#0a2a44;
  --hp-action:#1689d2;
  --hp-shadow:0 20px 60px rgba(0,0,0,.22);
  --hp-shadow-up:0 30px 80px rgba(0,0,0,.30);
}

body.home-page .home-intro,
body.home-page .home-bento-section,
body.home-page .home-membership,
body.home-page .home-partner-section,
body.home-page .home-platform-story,
body.home-page .home-directory-section{background:var(--hp-page)!important;color:var(--hp-text)!important}
body.home-page .home-section-soft,
body.home-page .home-regions{background:var(--hp-surface-2)!important;color:var(--hp-text)!important}
body.home-page .home-center-copy h2,
body.home-page .home-section-heading h2,
body.home-page .membership-copy h2,
body.home-page .home-partner-copy h2,
body.home-page .home-platform-story-copy h2,
body.home-page .home-directory-card h2{color:var(--hp-text)!important}
body.home-page .home-center-copy>p:last-child,
body.home-page .home-section-heading>p:last-child,
body.home-page .membership-copy>p,
body.home-page .home-partner-copy>p,
body.home-page .home-platform-story-copy>p,
body.home-page .home-directory-card p{color:var(--hp-text-2)!important}
body.home-page .home-eyebrow{color:var(--hp-blue)!important}
body.home-page .home-section-dark .home-eyebrow,
body.home-page .home-final-cta .home-eyebrow,
body.home-page .home-org-panel .home-eyebrow,
body.home-page .home-statement-dark .home-eyebrow{color:#75def4!important}

/* Hero copy hierarchy */
body.home-page .home-hero-copy h1{font-size:clamp(50px,6.6vw,92px);line-height:.92;letter-spacing:-.057em;max-width:830px;text-wrap:balance}
body.home-page .home-lead-command{font-size:clamp(18px,1.7vw,23px);line-height:1.43;font-weight:720;color:#f0f8fc;max-width:720px;margin-top:28px}
body.home-page .home-hero-support{max-width:680px;margin:13px 0 0;color:#a8c1cf;font-size:14px;line-height:1.65}
body.home-page .home-hero-actions{margin-top:27px}
body.home-page .home-hero-language{display:flex;gap:8px;flex-wrap:wrap;margin-top:28px}
body.home-page .home-hero-language span{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.11);background:rgba(255,255,255,.055);color:#cfe4ee;font-size:10px;font-weight:850;letter-spacing:.04em}
body.home-page .home-hero-language i{font-style:normal;color:#6fe2f0;font-size:13px}

/* Platform language strip */
body.home-page .home-language-band{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-top:34px;padding:10px;border-radius:20px;background:var(--hp-surface);border:1px solid var(--hp-line);box-shadow:var(--hp-shadow)}
body.home-page .home-language-band span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:9px 7px;border-radius:13px;background:var(--hp-surface-2);color:var(--hp-text-2);font-size:10px}
body.home-page .home-language-band i{font-style:normal;color:var(--hp-blue);font-size:14px}body.home-page .home-language-band b{font-weight:850;color:var(--hp-text)}

/* Statement pauses */
body.home-page .home-statement{padding:56px 0}
body.home-page .home-statement-light{background:linear-gradient(135deg,var(--hp-surface),var(--hp-surface-2));border-top:1px solid var(--hp-line);border-bottom:1px solid var(--hp-line)}
body.home-page .home-statement-dark{background:radial-gradient(circle at 50% 0,rgba(67,206,246,.12),transparent 36%),#041421;color:#fff}
body.home-page .home-statement-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(450px,1.1fr);gap:42px;align-items:center}
body.home-page .home-statement h2{margin:0;font-size:clamp(34px,4.8vw,62px);line-height:.98;letter-spacing:-.045em;color:var(--hp-text)}
body.home-page .home-statement-dark h2{color:#fff}
body.home-page .home-signal-stack{display:grid;grid-template-columns:1fr 1fr;gap:9px}
body.home-page .home-signal-stack>span{display:grid;grid-template-columns:34px 1fr;gap:0 10px;align-items:center;padding:13px 14px;border-radius:16px;background:var(--hp-surface);border:1px solid var(--hp-line);box-shadow:0 8px 22px rgba(6,43,69,.04)}
body.home-page .home-signal-stack i{grid-row:1/3;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--hp-accent-soft);color:var(--hp-blue);font-style:normal;font-weight:900}
body.home-page .home-signal-stack b{font-size:11px;color:var(--hp-text)}body.home-page .home-signal-stack em{font-size:9px;color:var(--hp-text-3);font-style:normal;margin-top:2px}
body.home-page .home-statement-center{text-align:center;max-width:940px}
body.home-page .home-statement-center h2{margin:0 auto;color:#fff;max-width:880px}
body.home-page .home-statement-route{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-top:28px;color:#a8c4d2;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
body.home-page .home-statement-route i{width:36px;height:1px;background:linear-gradient(90deg,#1f8ccb,#5bdaf1)}

/* Journey cards */
body.home-page .home-journey article{background:var(--hp-surface)!important;border-color:var(--hp-line)!important;box-shadow:var(--hp-shadow)!important}
body.home-page .home-journey article h3{color:var(--hp-text)!important}body.home-page .home-journey article p{color:var(--hp-text-2)!important}
body.home-page .journey-icon{color:var(--hp-blue)!important;background:var(--hp-accent-soft)!important}

/* Bento feature cards as miniature product demonstrations */
body.home-page .home-bento-card{background:var(--hp-surface)!important;color:var(--hp-text)!important;border:1px solid var(--hp-line)!important;box-shadow:var(--hp-shadow)!important}
body.home-page .home-bento-card:hover{box-shadow:var(--hp-shadow-up)!important}
body.home-page .home-bento-card h3{color:var(--hp-text)!important;max-width:580px}
body.home-page .home-bento-card>p,
body.home-page .home-bento-card>div>p:not(.home-card-label){color:var(--hp-text-2)!important}
body.home-page .home-card-label{color:var(--hp-blue)!important;letter-spacing:.08em}
body.home-page .home-card-icon{background:var(--hp-accent-soft)!important;color:var(--hp-blue)!important;border:1px solid var(--hp-line)!important;box-shadow:none!important}
body.home-page .home-mini-ui{margin-top:auto;padding:12px;border-radius:16px;background:var(--hp-surface-2);border:1px solid var(--hp-line);color:var(--hp-text);box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
body.home-page .mini-ui-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:9px;margin-bottom:9px;border-bottom:1px solid var(--hp-line);font-size:9px;color:var(--hp-text-3);text-transform:uppercase;letter-spacing:.08em;font-weight:850}
body.home-page .mini-ui-head b{color:var(--hp-blue);font-size:9px}
body.home-page .mini-progress{height:7px;border-radius:999px;background:var(--hp-surface-3);overflow:hidden;margin-bottom:10px}.mini-progress i{display:block;width:78%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0e83ce,#5ed8ee)}
body.home-page .mini-row{display:flex;justify-content:space-between;gap:12px;padding:5px 0;color:var(--hp-text-2);font-size:10px}.mini-row b{color:var(--hp-text);font-size:10px}
body.home-page .mini-customer-line{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:center;font-size:10px;color:var(--hp-text-2)}.mini-customer-line i{height:7px;border-radius:999px;background:linear-gradient(90deg,#1a8bd0 0 66%,var(--hp-surface-3) 66%)}
body.home-page .mini-chip-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.mini-chip-row span{padding:5px 7px;border-radius:999px;background:var(--hp-surface);border:1px solid var(--hp-line);color:var(--hp-text-2);font-size:9px;font-weight:800}
body.home-page .mini-person{display:flex;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid var(--hp-line)}.mini-person:last-child{border-bottom:0}.mini-person>i{width:27px;height:27px;border-radius:9px;background:linear-gradient(145deg,#0b80c3,#5bd7eb)}.mini-person span{display:block}.mini-person b,.mini-person small{display:block}.mini-person b{font-size:10px;color:var(--hp-text)}.mini-person small{font-size:9px;color:var(--hp-text-3);margin-top:2px}
body.home-page .mini-market-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border-radius:10px;background:var(--hp-surface);border:1px solid var(--hp-line);margin-top:6px}.mini-market-card span{font-size:9px;color:var(--hp-text-3)}.mini-market-card b{font-size:9px;color:var(--hp-text)}
body.home-page .mini-op-row{display:grid;grid-template-columns:8px 1fr auto;gap:7px;align-items:center;padding:6px 0;border-bottom:1px solid var(--hp-line);font-size:9px}.mini-op-row:last-child{border-bottom:0}.mini-op-row i{width:7px;height:7px;border-radius:50%;background:#45c8dc}.mini-op-row span{color:var(--hp-text-2)}.mini-op-row b{color:var(--hp-blue)}
body.home-page .mini-spark{height:52px;display:flex;align-items:flex-end;gap:5px}.mini-spark i{flex:1;border-radius:4px 4px 2px 2px;background:linear-gradient(#5bd6ec,#0d77b2);height:24%}.mini-spark i:nth-child(2){height:42%}.mini-spark i:nth-child(3){height:34%}.mini-spark i:nth-child(4){height:58%}.mini-spark i:nth-child(5){height:72%}.mini-spark i:nth-child(6){height:88%}

/* Membership access card */
body.home-page .home-price-card,
body.home-page .home-directory-card,
body.home-page .home-region-card{background:var(--hp-surface)!important;color:var(--hp-text)!important;border-color:var(--hp-line)!important;box-shadow:var(--hp-shadow)!important}
body.home-page .home-price-card p,
body.home-page .home-price-card li,
body.home-page .home-region-copy p{color:var(--hp-text-2)!important}
body.home-page .price-row strong,
body.home-page .home-region-copy h3{color:var(--hp-text)!important}
body.home-page .price-row span{color:var(--hp-text-3)!important}
body.home-page .price-chip,
body.home-page .home-region-tag{background:var(--hp-accent-soft)!important;color:var(--hp-blue)!important;border-color:var(--hp-line)!important}
body.home-page .home-access-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.home-access-status{font-size:9px;font-weight:850;color:var(--hp-blue);text-transform:uppercase;letter-spacing:.08em}
body.home-page .home-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:18px 0}.home-access-grid span{display:flex;align-items:center;gap:7px;padding:9px 10px;border-radius:11px;background:var(--hp-surface-2);border:1px solid var(--hp-line);color:var(--hp-text-2);font-size:10px;font-weight:800}.home-access-grid i{font-style:normal;color:var(--hp-blue)}

/* Regional and partner copy */
body.home-page .home-partner-points span{background:var(--hp-surface)!important;border-color:var(--hp-line)!important;color:var(--hp-text)!important}
body.home-page .home-fineprint{color:var(--hp-text-3)!important}
body.home-page .home-region-card:after{background:var(--hp-surface-2)!important;border-color:var(--hp-line)!important}

/* Light/dark CTA consistency */
body.home-page .home-pill-dark{background:var(--hp-action)!important;color:#fff!important;border:1px solid transparent}
body.home-page .home-pill-outline{background:var(--hp-surface)!important;color:var(--hp-text)!important;border-color:var(--hp-line-strong)!important}
body.home-page .home-text-link{color:var(--hp-blue)!important}
html[data-theme="midnight"] body.home-page .home-pill-primary{color:#08131d!important}
html[data-theme="midnight"] body.home-page .home-pill-outline:hover{background:var(--hp-surface-2)!important}

/* National ribbon themes */
body.home-page .home-national-ribbon-inner{background:linear-gradient(135deg,var(--hp-surface),var(--hp-surface-2))!important;border-color:var(--hp-line)!important;box-shadow:var(--hp-shadow)!important}
body.home-page .home-ribbon-copy small{color:var(--hp-blue)!important}.home-ribbon-copy strong{color:var(--hp-text)!important}.home-ribbon-route .route-stop em{color:var(--hp-text-3)!important}
body.home-page .route-stop b{border-color:var(--hp-surface)!important}
body.home-page .home-ribbon-action{background:var(--hp-action)!important;color:#fff!important}

/* Organisation panel stays intentionally dark in both modes */
body.home-page .home-org-panel{background:radial-gradient(circle at 85% 20%,rgba(101,213,220,.16),transparent 30%),linear-gradient(145deg,#0d2737,#07141f)!important;color:#fff!important}
body.home-page .home-org-copy>p{color:#b7cad4!important}.home-org-note{color:#d6e7ee!important}
body.home-page .org-browser-body{background:#f0f2ef!important;color:#07131f!important}.org-browser-body strong{color:#07131f!important}

/* Final dark surfaces */
body.home-page .home-section-dark,
body.home-page .home-final-cta{background-color:#041421!important;color:#fff!important}
body.home-page .home-final-cta>div>p{color:#b3c8d3!important}

/* Photo credit */
body.home-page .home-photo-credit{background:#041421!important;color:#7895a4!important}

/* Midnight home-specific fixes that previously lost contrast */
html[data-theme="midnight"] body.home-page .home-region-card,
html[data-theme="midnight"] body.home-page .home-price-card,
html[data-theme="midnight"] body.home-page .home-directory-card,
html[data-theme="midnight"] body.home-page .home-bento-card,
html[data-theme="midnight"] body.home-page .home-language-band,
html[data-theme="midnight"] body.home-page .home-journey article{box-shadow:var(--hp-shadow)!important}
html[data-theme="midnight"] body.home-page .home-platform-story-photo img{border-color:rgba(120,198,238,.13)!important}
html[data-theme="midnight"] body.home-page .home-region-card:after{color:#8fdfff!important}
html[data-theme="midnight"] body.home-page .home-national-ribbon-inner:before{opacity:.45}

@media(max-width:1080px){
  body.home-page .home-language-band{grid-template-columns:repeat(4,1fr)}
  body.home-page .home-statement-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  body.home-page .home-language-band{grid-template-columns:repeat(2,1fr)}
  body.home-page .home-signal-stack{grid-template-columns:1fr}
  body.home-page .home-statement{padding:42px 0}
  body.home-page .home-access-grid{grid-template-columns:1fr}
  body.home-page .home-hero-copy h1{font-size:clamp(47px,12vw,68px)}
}
@media(max-width:520px){
  body.home-page .home-hero-support{font-size:13px}
  body.home-page .home-language-band{gap:6px;padding:8px}
  body.home-page .home-language-band span{min-height:44px}
  body.home-page .home-statement-route i{width:18px}
}

/* Bento personality without sacrificing contrast */
body.home-page .bento-business{background:linear-gradient(145deg,var(--hp-surface),#eef8fd)!important}
body.home-page .bento-network{background:linear-gradient(145deg,var(--hp-surface),#f6fbfe)!important}
body.home-page .bento-market{background:linear-gradient(145deg,#fff9e8,var(--hp-surface))!important}
body.home-page .bento-opportunities{background:linear-gradient(145deg,#edf9f8,var(--hp-surface))!important}
body.home-page .bento-customers,
body.home-page .bento-insight{background:linear-gradient(145deg,#061827,#0a3148)!important;color:#fff!important;border-color:rgba(113,210,240,.13)!important}
body.home-page .bento-customers h3,
body.home-page .bento-insight h3{color:#fff!important}
body.home-page .bento-customers>p,
body.home-page .bento-insight>p{color:#b9d0dc!important}
body.home-page .bento-customers .home-card-label,
body.home-page .bento-insight .home-card-label{color:#7ce1e2!important}
body.home-page .bento-customers .home-card-icon,
body.home-page .bento-insight .home-card-icon{background:rgba(108,222,239,.10)!important;color:#7ce1e2!important;border-color:rgba(108,222,239,.13)!important}
body.home-page .bento-customers .home-mini-ui,
body.home-page .bento-insight .home-mini-ui{background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.11);color:#fff}
body.home-page .bento-customers .mini-ui-head,
body.home-page .bento-insight .mini-ui-head{color:#9fbac8;border-color:rgba(255,255,255,.09)}
body.home-page .bento-customers .mini-ui-head b,
body.home-page .bento-insight .mini-ui-head b{color:#79deef}
body.home-page .bento-customers .mini-chip-row span,
body.home-page .bento-insight .mini-chip-row span{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.10);color:#cae0e9}
html[data-theme="midnight"] body.home-page .bento-business,
html[data-theme="midnight"] body.home-page .bento-network,
html[data-theme="midnight"] body.home-page .bento-market,
html[data-theme="midnight"] body.home-page .bento-opportunities{background:linear-gradient(145deg,var(--hp-surface),var(--hp-surface-2))!important}

/* Public information pages */
body.public-page.nacwo-os .pp-section:not(.dark){background:var(--pf-page)!important;color:var(--pf-text)!important}
body.public-page.nacwo-os .pp-section.soft{background:var(--pf-surface-2)!important}
body.public-page.nacwo-os .pp-card,
body.public-page.nacwo-os .pp-list>div,
body.public-page.nacwo-os .pp-bank-card{background:var(--pf-surface)!important;color:var(--pf-text)!important;border-color:var(--pf-line)!important;box-shadow:var(--pf-shadow)!important}
body.public-page.nacwo-os .pp-heading h2,
body.public-page.nacwo-os .pp-card h3,
body.public-page.nacwo-os .pp-list b,
body.public-page.nacwo-os .pp-bank-card b{color:var(--pf-text)!important}
body.public-page.nacwo-os .pp-heading p,
body.public-page.nacwo-os .pp-card p,
body.public-page.nacwo-os .pp-list span,
body.public-page.nacwo-os .pp-bank-row span{color:var(--pf-text-2)!important}
body.public-page.nacwo-os .pp-bank-row{border-color:var(--pf-line)!important}
body.public-page.nacwo-os .pp-note{background:var(--pf-surface-2)!important;color:var(--pf-text-2)!important;border:1px solid var(--pf-line)}

/* Login / registration surfaces */
body.nacwo-os:not(.home-page) .auth-card,
body.nacwo-os:not(.home-page) .register-card,
body.nacwo-os:not(.home-page) .form-card{
  background:var(--pf-surface)!important;color:var(--pf-text)!important;border-color:var(--pf-line)!important;box-shadow:var(--pf-shadow-raised)!important
}
body.nacwo-os:not(.home-page) .auth-card .muted,
body.nacwo-os:not(.home-page) .register-card .muted{color:var(--pf-text-2)!important}
body.nacwo-os:not(.home-page) .login-links a{color:#1aa3e8}
html[data-theme="midnight"] body.nacwo-os:not(.home-page) .login-links a{color:#7bd9ff}

/* ============================================================
   NACWO Platform — Phase 1.49
   Light-mode readability / reduced-vision accessibility pass.
   Midnight mode intentionally untouched.
   ============================================================ */

/* Homepage: supporting copy on genuinely white cards/surfaces */
html:not([data-theme="midnight"]) body.home-page .home-journey article p,
html:not([data-theme="midnight"]) body.home-page .home-bento-card > p,
html:not([data-theme="midnight"]) body.home-page .home-bento-card > div > p:not(.home-card-label),
html:not([data-theme="midnight"]) body.home-page .home-price-card p,
html:not([data-theme="midnight"]) body.home-page .home-price-card li,
html:not([data-theme="midnight"]) body.home-page .home-directory-card p,
html:not([data-theme="midnight"]) body.home-page .home-region-card p,
html:not([data-theme="midnight"]) body.home-page .home-language-band span,
html:not([data-theme="midnight"]) body.home-page .home-signal-stack em,
html:not([data-theme="midnight"]) body.home-page .home-mini-ui .mini-row,
html:not([data-theme="midnight"]) body.home-page .home-mini-ui .mini-customer-line,
html:not([data-theme="midnight"]) body.home-page .home-mini-ui .mini-person small,
html:not([data-theme="midnight"]) body.home-page .home-mini-ui .mini-market-card span,
html:not([data-theme="midnight"]) body.home-page .home-mini-ui .mini-op-row span,
html:not([data-theme="midnight"]) body.home-page .home-mini-ui .mini-ui-head{
  color:#061a30!important;
}

/* Portal/public application white surfaces: ordinary supporting copy */
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) :is(
  .card,
  .panel,
  .member-overview-panel,
  .partner-overview-panel,
  .admin-panel,
  .admin-intel-card,
  .help-panel,
  .tablewrap,
  .network-person-card,
  .marketplace-person-card,
  .network-opportunity-card,
  .marketplace-opportunity-card,
  .marketplace-product-card,
  .marketplace-home-product-card,
  .admin-product-card,
  .member-overview-kpi,
  .partner-overview-kpi,
  .admin-kpi-card,
  .member-launch-card,
  .member-preview-feature,
  .member-preview-live,
  .member-preview-item,
  .member-payment-panel,
  .admin-sol-kpi,
  .admin-sol-product,
  .admin-sol-row,
  .admin-network-post,
  .admin-network-person,
  .admin-sol-insight,
  .admin-conv-list,
  .admin-conv-pane
) :is(p,small,.muted,.hint,.section-copy,.sub,.admin-sol-muted){
  color:#061a30!important;
}

/* White form/table surfaces */
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) form label,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) .tablewrap th,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) .tablewrap td,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) .admin-table th,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) .admin-table td,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) .admin-sol-toolbar input,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) .admin-sol-toolbar select{
  color:#061a30!important;
}

/* White input controls keep strong legibility while placeholders stay distinct. */
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) input,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) select,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) textarea{
  color:#061a30!important;
}
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) input::placeholder,
html:not([data-theme="midnight"]) body.nacwo-os:not(.home-page) textarea::placeholder{
  color:#40566a!important;
  opacity:1!important;
}

/* Specific high-frequency white cards whose legacy styles used light grey copy. */
html:not([data-theme="midnight"]) body.nacwo-os .member-overview-kpi :is(.eyebrow,.sub),
html:not([data-theme="midnight"]) body.nacwo-os .member-launch-card small,
html:not([data-theme="midnight"]) body.nacwo-os .member-preview-feature p,
html:not([data-theme="midnight"]) body.nacwo-os .member-preview-item p,
html:not([data-theme="midnight"]) body.nacwo-os .member-overview-feed-item small,
html:not([data-theme="midnight"]) body.nacwo-os .admin-sol-kpi :is(span,small),
html:not([data-theme="midnight"]) body.nacwo-os .admin-sol-product-seller,
html:not([data-theme="midnight"]) body.nacwo-os .admin-sol-product-stats span,
html:not([data-theme="midnight"]) body.nacwo-os .admin-sol-row small,
html:not([data-theme="midnight"]) body.nacwo-os .admin-network-post small,
html:not([data-theme="midnight"]) body.nacwo-os .admin-conv-item small,
html:not([data-theme="midnight"]) body.nacwo-os .admin-sol-detail-grid span{
  color:#061a30!important;
}

/* Public non-home white cards. */
html:not([data-theme="midnight"]) body.nacwo-os .pp-card p,
html:not([data-theme="midnight"]) body.nacwo-os .pp-list div span,
html:not([data-theme="midnight"]) body.nacwo-os .pp-bank-card :is(p,span,small),
html:not([data-theme="midnight"]) body.nacwo-os .pp-note{
  color:#061a30!important;
}

/* ============================================================
   NACWO Platform — Phase 1.50
   Homepage density, section blueprint assets, and motion polish.
   Keeps Midnight behaviour stable while improving Light mode.
   ============================================================ */

/* 1) Fix light-mode contrast on dark/blue homepage cards */
html:not([data-theme="midnight"]) body.home-page .bento-customers h3,
html:not([data-theme="midnight"]) body.home-page .bento-insight h3,
html:not([data-theme="midnight"]) body.home-page .bento-customers > p:not(.home-card-label),
html:not([data-theme="midnight"]) body.home-page .bento-insight > p:not(.home-card-label),
html:not([data-theme="midnight"]) body.home-page .bento-customers > div > p:not(.home-card-label),
html:not([data-theme="midnight"]) body.home-page .bento-insight > div > p:not(.home-card-label),
html:not([data-theme="midnight"]) body.home-page .bento-customers .home-mini-ui,
html:not([data-theme="midnight"]) body.home-page .bento-insight .home-mini-ui,
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-ui-head,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-ui-head,
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-customer-line,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-customer-line,
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-row,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-row,
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-person small,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-person small,
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-market-card span,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-market-card span,
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-op-row span,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-op-row span{
  color:#eef7fb!important;
}
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-ui-head b,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-ui-head b,
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-op-row b,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-op-row b{
  color:#79deef!important;
}
html:not([data-theme="midnight"]) body.home-page .bento-customers .mini-chip-row span,
html:not([data-theme="midnight"]) body.home-page .bento-insight .mini-chip-row span{
  color:#d7ebf2!important;
}

/* 2) Reduce over-spaced layout so the page feels tighter and more content-dense */
body.home-page .home-hero{min-height:clamp(700px,88vh,840px)!important;padding:clamp(64px,8vw,116px) 0 72px!important}
body.home-page .home-section{padding:clamp(58px,7.2vw,94px) 0!important}
body.home-page .home-statement{padding:44px 0!important}
body.home-page .home-directory-section{padding-top:56px!important}
body.home-page .home-section-heading{margin-bottom:34px!important}
body.home-page .home-center-copy>p:last-child,
body.home-page .home-section-heading>p:last-child,
body.home-page .membership-copy>p,
body.home-page .home-partner-copy>p,
body.home-page .home-platform-story-copy>p,
body.home-page .home-photo-copy>p{margin-top:18px!important}
body.home-page .home-photo-grid,
body.home-page .membership-grid,
body.home-page .home-partner-grid,
body.home-page .home-platform-story-grid{gap:clamp(28px,4vw,56px)!important}
body.home-page .home-region-grid{margin-top:26px!important;gap:16px!important}
body.home-page .home-bento{gap:12px!important}
body.home-page .home-org-panel{gap:34px!important;padding:clamp(30px,4vw,56px)!important}
body.home-page .home-directory-card{padding:30px!important}
body.home-page .home-photo-frame{min-height:600px!important}
body.home-page .home-photo-frame img{height:600px!important}
body.home-page .home-partner-photo{height:580px!important}
body.home-page .home-platform-story-photo img{height:470px!important}

/* 3) Make each section visually busier with subtle blueprint / technical motifs */
body.home-page :is(.home-intro,.home-photo-story,.home-bento-section,.home-membership,.home-partner-section,.home-regions,.home-platform-story,.home-organisation,.home-directory-section,.home-final-cta,.home-statement){
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
body.home-page :is(.home-intro,.home-photo-story,.home-bento-section,.home-membership,.home-partner-section,.home-regions,.home-platform-story,.home-organisation,.home-directory-section,.home-final-cta,.home-statement)>.home-shell,
body.home-page .home-final-cta>.home-shell{position:relative;z-index:1}

@keyframes hpBlueprintDrift{0%{background-position:0 0,0 0,0 0,0 0}100%{background-position:90px 48px,90px 48px,0 0,0 0}}
@keyframes hpGlowFloat{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(0,-10px,0) scale(1.04)}}
@keyframes hpMeshPan{0%{transform:translate3d(0,0,0)}50%{transform:translate3d(12px,-8px,0)}100%{transform:translate3d(0,0,0)}}
@keyframes hpPulseRing{0%,100%{transform:scale(1);opacity:.26}50%{transform:scale(1.08);opacity:.42}}
@keyframes hpRouteMove{0%{background-position:0 0,0 0,0 0}100%{background-position:120px 0,-120px 0,0 0}}
@keyframes hpCardBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes hpTiltFloat{0%,100%{transform:rotate(2.5deg) translateY(0)}50%{transform:rotate(1.2deg) translateY(-6px)}}
@keyframes hpScan{0%,100%{transform:translateX(-8%);opacity:.18}50%{transform:translateX(8%);opacity:.34}}

body.home-page .home-intro:before{
  content:"";position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(14,109,149,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(14,109,149,.06) 1px,transparent 1px),
    radial-gradient(circle at 18% 28%,rgba(244,180,0,.14),transparent 20%),
    radial-gradient(circle at 84% 74%,rgba(14,109,149,.10),transparent 24%);
  background-size:34px 34px,34px 34px,100% 100%,100% 100%;
  opacity:.72;animation:hpBlueprintDrift 28s linear infinite;
  -webkit-mask-image:linear-gradient(to bottom,transparent,black 8%,black 92%,transparent);
  mask-image:linear-gradient(to bottom,transparent,black 8%,black 92%,transparent);
  pointer-events:none;
}
body.home-page .home-photo-story:before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 16% 20%,rgba(124,225,226,.11),transparent 18%),
    radial-gradient(circle at 88% 78%,rgba(244,180,0,.08),transparent 18%),
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:100% 100%,100% 100%,40px 40px,40px 40px;
  opacity:.9;animation:hpMeshPan 20s ease-in-out infinite;
}
body.home-page .home-statement-light:before,
body.home-page .home-membership:before,
body.home-page .home-platform-story:before,
body.home-page .home-directory-section:before{
  content:"";position:absolute;inset:0;
  background-image:
    linear-gradient(rgba(14,109,149,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(14,109,149,.045) 1px,transparent 1px);
  background-size:28px 28px;
  opacity:.62;animation:hpBlueprintDrift 32s linear infinite reverse;
  pointer-events:none;
}
body.home-page .home-bento-section:before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(circle at 13% 22%,rgba(14,109,149,.08),transparent 16%),
    radial-gradient(circle at 88% 16%,rgba(244,180,0,.10),transparent 16%),
    repeating-linear-gradient(135deg,rgba(14,109,149,.035) 0 2px,transparent 2px 24px);
  opacity:.72;animation:hpMeshPan 24s ease-in-out infinite;
  pointer-events:none;
}
body.home-page .home-membership:after{
  content:"";position:absolute;right:-120px;top:50%;width:320px;height:320px;border-radius:50%;
  background:radial-gradient(circle,rgba(14,109,149,.12),rgba(14,109,149,0) 68%);
  opacity:.65;animation:hpPulseRing 9s ease-in-out infinite;
}
body.home-page .home-partner-section:before{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(120deg,rgba(14,109,149,.04) 18%,transparent 18% 50%,rgba(244,180,0,.05) 50% 52%,transparent 52%),
    radial-gradient(circle at 90% 18%,rgba(14,109,149,.08),transparent 18%),
    radial-gradient(circle at 10% 84%,rgba(244,180,0,.10),transparent 20%);
  opacity:.9;animation:hpMeshPan 22s ease-in-out infinite reverse;
}
body.home-page .home-regions:before{
  content:"";position:absolute;inset:0;
  background-image:
    radial-gradient(circle,rgba(14,109,149,.12) 2px,transparent 2px),
    linear-gradient(90deg,rgba(14,109,149,.08) 0 22%,transparent 22% 100%),
    linear-gradient(transparent 48%,rgba(244,180,0,.12) 48% 52%,transparent 52%);
  background-size:36px 36px,240px 2px,240px 2px;
  background-repeat:repeat,repeat-x,repeat-x;
  background-position:0 0,0 30%,0 70%;
  opacity:.58;animation:hpRouteMove 24s linear infinite;
}
body.home-page .home-statement-dark:before,
body.home-page .home-final-cta:before{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px),
    radial-gradient(circle at 50% 0,rgba(124,225,226,.14),transparent 28%);
  background-size:42px 42px,42px 42px,100% 100%;
  opacity:.7;animation:hpBlueprintDrift 36s linear infinite;
}
body.home-page .home-organisation:before{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px),
    radial-gradient(circle at 82% 24%,rgba(124,225,226,.12),transparent 22%);
  background-size:32px 32px,32px 32px,100% 100%;
  opacity:.58;animation:hpBlueprintDrift 26s linear infinite;
}
body.home-page .home-directory-section:after{
  content:"";position:absolute;left:-80px;bottom:-70px;width:240px;height:240px;border-radius:50%;
  background:radial-gradient(circle,rgba(244,180,0,.16),rgba(244,180,0,0) 68%);
  animation:hpGlowFloat 10s ease-in-out infinite;
}

/* 4) Section-by-section motion accents so the page feels more alive */
body.home-page .home-journey article{animation:hpCardBob 9s ease-in-out infinite}
body.home-page .home-journey article:nth-child(2){animation-delay:-1.8s}
body.home-page .home-journey article:nth-child(3){animation-delay:-3.4s}
body.home-page .home-journey article:nth-child(4){animation-delay:-5.1s}
body.home-page .home-price-card{animation:hpGlowFloat 9.5s ease-in-out infinite}
body.home-page .home-region-card:nth-child(1){animation:hpCardBob 8.5s ease-in-out infinite}
body.home-page .home-region-card:nth-child(2){animation:hpCardBob 8.5s ease-in-out infinite -1.8s}
body.home-page .home-region-card:nth-child(3){animation:hpCardBob 8.5s ease-in-out infinite -3.6s}
body.home-page .home-org-visual .org-browser{animation:hpTiltFloat 10s ease-in-out infinite}
body.home-page .home-directory-card:before{
  content:"";position:absolute;left:-8%;right:-8%;top:-14%;height:90px;
  background:linear-gradient(90deg,transparent,rgba(14,109,149,.10),transparent);
  filter:blur(10px);animation:hpScan 14s ease-in-out infinite;
}
body.home-page .home-photo-badge,
body.home-page .home-operator-photo-caption,
body.home-page .home-refresh-dashboard{backdrop-filter:blur(14px) saturate(128%)}

@media(max-width:1080px){
  body.home-page .home-photo-frame{min-height:520px!important}
  body.home-page .home-photo-frame img{height:520px!important}
  body.home-page .home-partner-photo{height:500px!important}
  body.home-page .home-platform-story-photo img{height:360px!important}
}
@media(max-width:780px){
  body.home-page .home-hero{min-height:auto!important;padding-top:168px!important;padding-bottom:52px!important}
  body.home-page .home-section{padding:52px 0!important}
  body.home-page .home-statement{padding:36px 0!important}
  body.home-page .home-partner-photo,
  body.home-page .home-photo-frame,
  body.home-page .home-platform-story-photo img{height:auto!important;min-height:unset!important}
}
@media(prefers-reduced-motion:reduce){
  body.home-page .home-intro:before,
  body.home-page .home-photo-story:before,
  body.home-page .home-statement-light:before,
  body.home-page .home-membership:before,
  body.home-page .home-membership:after,
  body.home-page .home-bento-section:before,
  body.home-page .home-partner-section:before,
  body.home-page .home-regions:before,
  body.home-page .home-statement-dark:before,
  body.home-page .home-final-cta:before,
  body.home-page .home-organisation:before,
  body.home-page .home-directory-section:after,
  body.home-page .home-journey article,
  body.home-page .home-price-card,
  body.home-page .home-region-card,
  body.home-page .home-org-visual .org-browser,
  body.home-page .home-directory-card:before{animation:none!important}
}

/* 1.50 correction pass — keep hover behaviour while preserving motion */
body.home-page .home-journey article,
body.home-page .home-region-card,
body.home-page .home-price-card{animation:none!important}
body.home-page .home-journey article .journey-icon{animation:hpCardBob 8s ease-in-out infinite}
body.home-page .home-journey article:nth-child(2) .journey-icon{animation-delay:-1.6s}
body.home-page .home-journey article:nth-child(3) .journey-icon{animation-delay:-3.2s}
body.home-page .home-journey article:nth-child(4) .journey-icon{animation-delay:-4.8s}
body.home-page .home-region-card:after{animation:hpPulseRing 7.5s ease-in-out infinite}
body.home-page .home-region-card:nth-child(2):after{animation-delay:-2.5s}
body.home-page .home-region-card:nth-child(3):after{animation-delay:-5s}
body.home-page .home-price-card,
body.home-page .home-directory-card{position:relative;overflow:hidden}
body.home-page .home-price-card:after{
  content:"";position:absolute;right:-56px;top:-56px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(124,225,226,.14),rgba(124,225,226,0) 70%);
  animation:hpGlowFloat 9s ease-in-out infinite;pointer-events:none;
}
@media(prefers-reduced-motion:reduce){
  body.home-page .home-journey article .journey-icon,
  body.home-page .home-region-card:after,
  body.home-page .home-price-card:after{animation:none!important}
}

/* ============================================================
   NACWO Platform — Phase 1.51
   Navy light-mode text, stronger blueprints, journey graphics.
   ============================================================ */

/* Light-mode navy language instead of pure black. */
html:not([data-theme="midnight"]) body.nacwo-os{
  --pf-text:#061a30;
  --pf-text-2:#173a5a;
  --pf-text-3:#35536e;
}
html:not([data-theme="midnight"]) body.home-page{
  --hp-text:#061a30;
  --hp-text-2:#173a5a;
  --hp-text-3:#35536e;
}

/* Platform-story fact rows were inherited from a dark section in the legacy stylesheet. */
html:not([data-theme="midnight"]) body.home-page .home-platform-story .home-inline-facts{
  border-top-color:rgba(6,26,48,.14)!important;
}
html:not([data-theme="midnight"]) body.home-page .home-platform-story .home-inline-facts div{
  border-bottom-color:rgba(6,26,48,.14)!important;
}
html:not([data-theme="midnight"]) body.home-page .home-platform-story .home-inline-facts b{
  color:#061a30!important;
}
html:not([data-theme="midnight"]) body.home-page .home-platform-story .home-inline-facts span{
  color:#173a5a!important;
}

/* Journey cards now carry a small illustrated visual story. */
body.home-page .home-journey article{
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  grid-template-rows:auto 1fr auto!important;
  gap:8px 12px!important;
  min-height:245px!important;
  overflow:hidden!important;
  position:relative!important;
  padding:22px!important;
}
body.home-page .home-journey article>span{grid-column:1/3;position:relative;z-index:2}
body.home-page .home-journey article .journey-icon{grid-column:1;grid-row:2;align-self:start;position:relative;z-index:2}
body.home-page .home-journey article .journey-copy{grid-column:2;grid-row:2;position:relative;z-index:2;max-width:190px}
body.home-page .home-journey article .journey-copy h3{margin:0 0 8px!important}
body.home-page .home-journey article .journey-copy p{margin:0!important;line-height:1.5!important}
body.home-page .home-journey .journey-graphic{
  grid-column:1/3;grid-row:3;width:150px;height:96px;object-fit:contain;justify-self:end;align-self:end;
  margin:-4px -10px -10px 0;filter:drop-shadow(0 12px 20px rgba(5,52,84,.10));
  transition:transform .3s ease,filter .3s ease;position:relative;z-index:1;
}
body.home-page .home-journey article:hover .journey-graphic{transform:translateY(-4px) scale(1.035);filter:drop-shadow(0 18px 24px rgba(5,52,84,.15))}
body.home-page .home-journey article:after{
  content:"";position:absolute;right:-52px;bottom:-58px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(84,207,232,.14),rgba(84,207,232,0) 68%);pointer-events:none;
}
body.home-page .home-journey .journey-trade:after{background:radial-gradient(circle,rgba(244,180,0,.16),rgba(244,180,0,0) 68%)}
body.home-page .home-journey .journey-grow:after{background:radial-gradient(circle,rgba(39,150,132,.13),rgba(39,150,132,0) 68%)}

/* Stronger, darker and more plentiful blueprint motion in LIGHT mode only. */
html:not([data-theme="midnight"]) body.home-page .home-intro:before{
  background-image:
    linear-gradient(rgba(6,76,116,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(6,76,116,.12) 1px,transparent 1px),
    radial-gradient(circle at 18% 28%,rgba(244,180,0,.20),transparent 18%),
    radial-gradient(circle at 84% 74%,rgba(14,109,149,.16),transparent 24%)!important;
  background-size:30px 30px,30px 30px,100% 100%,100% 100%!important;opacity:.92!important;
}
html:not([data-theme="midnight"]) body.home-page .home-photo-story:before{
  background:
    radial-gradient(circle at 16% 20%,rgba(124,225,226,.18),transparent 18%),
    radial-gradient(circle at 88% 78%,rgba(244,180,0,.13),transparent 18%),
    linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px)!important;
  background-size:100% 100%,100% 100%,34px 34px,34px 34px!important;opacity:1!important;
}
html:not([data-theme="midnight"]) body.home-page :is(.home-statement-light,.home-membership,.home-platform-story,.home-directory-section):before{
  background-image:
    linear-gradient(rgba(6,76,116,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(6,76,116,.10) 1px,transparent 1px)!important;
  background-size:26px 26px!important;opacity:.9!important;
}
html:not([data-theme="midnight"]) body.home-page .home-bento-section:before{
  background:
    radial-gradient(circle at 13% 22%,rgba(14,109,149,.15),transparent 16%),
    radial-gradient(circle at 88% 16%,rgba(244,180,0,.16),transparent 16%),
    repeating-linear-gradient(135deg,rgba(6,76,116,.075) 0 2px,transparent 2px 22px)!important;
  opacity:.95!important;
}
html:not([data-theme="midnight"]) body.home-page .home-partner-section:before{
  background:
    linear-gradient(120deg,rgba(6,76,116,.075) 18%,transparent 18% 50%,rgba(244,180,0,.08) 50% 52%,transparent 52%),
    radial-gradient(circle at 90% 18%,rgba(14,109,149,.14),transparent 18%),
    radial-gradient(circle at 10% 84%,rgba(244,180,0,.14),transparent 20%)!important;
  opacity:1!important;
}
html:not([data-theme="midnight"]) body.home-page .home-regions:before{
  background-image:
    radial-gradient(circle,rgba(6,76,116,.20) 2px,transparent 2px),
    linear-gradient(90deg,rgba(6,76,116,.14) 0 22%,transparent 22% 100%),
    linear-gradient(transparent 48%,rgba(244,180,0,.18) 48% 52%,transparent 52%)!important;
  background-size:32px 32px,210px 2px,210px 2px!important;opacity:.82!important;
}
html:not([data-theme="midnight"]) body.home-page .home-directory-section:after{opacity:.9!important}

/* Extra moving blueprint layers give each section a different technical rhythm. */
@keyframes hpBlueprintSlideX{0%{transform:translateX(-20px)}50%{transform:translateX(20px)}100%{transform:translateX(-20px)}}
@keyframes hpBlueprintSlideY{0%{transform:translateY(-16px)}50%{transform:translateY(16px)}100%{transform:translateY(-16px)}}
@keyframes hpBlueprintRotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
html:not([data-theme="midnight"]) body.home-page .home-bento-section:after{
  content:"";position:absolute;left:-100px;top:15%;width:260px;height:260px;border-radius:50%;
  border:1px dashed rgba(6,76,116,.22);box-shadow:0 0 0 26px rgba(6,76,116,.035),0 0 0 52px rgba(6,76,116,.025);
  animation:hpBlueprintRotate 38s linear infinite;pointer-events:none;
}
html:not([data-theme="midnight"]) body.home-page .home-partner-section:after{
  content:"";position:absolute;right:4%;bottom:7%;width:210px;height:120px;
  background:repeating-linear-gradient(90deg,rgba(6,76,116,.12) 0 2px,transparent 2px 18px);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 20%,#000 80%,transparent);mask-image:linear-gradient(90deg,transparent,#000 20%,#000 80%,transparent);
  animation:hpBlueprintSlideX 12s ease-in-out infinite;pointer-events:none;
}
html:not([data-theme="midnight"]) body.home-page .home-platform-story:after{
  content:"";position:absolute;right:7%;top:8%;width:150px;height:150px;border:1px solid rgba(6,76,116,.16);border-radius:32px;
  background:linear-gradient(135deg,rgba(6,76,116,.04),transparent 60%);transform:rotate(12deg);animation:hpBlueprintSlideY 13s ease-in-out infinite;pointer-events:none;
}

/* Final density pass: shorten only the sections that still read as oversized. */
body.home-page .home-section{padding:clamp(44px,5.4vw,72px) 0!important}
body.home-page .home-statement{padding:32px 0!important}
body.home-page .home-section-heading{margin-bottom:26px!important}
body.home-page .home-language-band{margin-top:24px!important}
body.home-page .home-inline-facts{margin-top:22px!important}
body.home-page .home-partner-points{margin:18px 0!important}
body.home-page .home-directory-section{padding-top:42px!important}
body.home-page .home-final-actions{margin-top:22px!important}

@media(max-width:780px){
  body.home-page .home-section{padding:44px 0!important}
  body.home-page .home-journey article{min-height:220px!important}
  body.home-page .home-journey .journey-graphic{width:132px;height:86px}
}
@media(prefers-reduced-motion:reduce){
  html:not([data-theme="midnight"]) body.home-page .home-bento-section:after,
  html:not([data-theme="midnight"]) body.home-page .home-partner-section:after,
  html:not([data-theme="midnight"]) body.home-page .home-platform-story:after{animation:none!important}
}

/* Phase 1.51 public-page final dark section contrast + expanded policy footer */
body.public-page.nacwo-os .about-final-dark .pp-heading h2,
body.public-page.nacwo-os .about-final-dark .pp-heading p{color:#fff!important}
body.public-page.nacwo-os .about-final-dark .pp-heading p{opacity:.86}
body.public-page.nacwo-os .pp-footer-expanded{padding:38px 0 44px!important;background:#04121e!important;color:#9fb9c9!important}
body.public-page.nacwo-os .pp-footer-grid{display:grid;grid-template-columns:1.45fr .8fr .8fr 1.2fr;gap:28px;align-items:start}
body.public-page.nacwo-os .pp-footer-brand strong{display:block;color:#fff!important;font-size:18px}
body.public-page.nacwo-os .pp-footer-brand span{display:block;margin-top:8px;font-size:11px;color:#90aebf!important;line-height:1.5}
body.public-page.nacwo-os .pp-footer-col{display:grid;gap:7px}
body.public-page.nacwo-os .pp-footer-col b{color:#fff!important;font-size:11px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:4px}
body.public-page.nacwo-os .pp-footer-col a{margin:0!important;font-size:12px;color:#cde1ec!important;text-decoration:none}
body.public-page.nacwo-os .pp-footer-col a:hover{color:#fff!important;text-decoration:underline}
body.public-page.nacwo-os .pp-footer-policies{grid-template-columns:1fr 1fr}
body.public-page.nacwo-os .pp-footer-policies b{grid-column:1/-1}
@media(max-width:980px){body.public-page.nacwo-os .pp-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){body.public-page.nacwo-os .pp-footer-grid{grid-template-columns:1fr}body.public-page.nacwo-os .pp-footer-policies{grid-template-columns:1fr}body.public-page.nacwo-os .pp-footer-policies b{grid-column:auto}}
