/* Phase 1.76 About-only layout correction.
   The shared NACWO stylesheet gives all <main> elements a centered max-width.
   The About page is a full-bleed editorial layout, so override that here
   WITHOUT affecting Member/Partner/Admin portals or the public Homepage. */

/* Use reliable document widths, not viewport-width hacks that create overflow. */
html { min-width:320px; }
body.nacwo-os.about-platform-page {
  margin:0!important;
  width:100%!important;
  max-width:none!important;
  min-height:100dvh;
  overflow-x:clip;
  background:#f6fafc!important;
}
body.nacwo-os.about-platform-page > main.about176-main {
  display:block!important;
  position:relative;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  flex:1 1 auto;
  overflow-x:clip;
  overflow-y:visible;
}
body.nacwo-os.about-platform-page > main.about176-main > section {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-width:0;
  margin-inline:0!important;
  overflow-x:clip;
}
body.nacwo-os.about-platform-page > main.about176-main .pp-shell {
  box-sizing:border-box!important;
  width:min(1250px,calc(100% - clamp(32px,6vw,116px)))!important;
  max-width:1250px!important;
  margin-inline:auto!important;
  min-width:0;
}
body.nacwo-os.about-platform-page > main.about176-main :is(
  .about176-hero-layout,.about176-manifesto-grid,.about176-pillar-grid,
  .about176-human-grid,.about176-honesty-grid,.about176-status-grid,.about176-bridge-grid
) > * {min-width:0;max-width:100%;}
body.nacwo-os.about-platform-page :is(h1,h2,h3,p,small,a) {
  overflow-wrap:break-word;
}
body.nacwo-os.about-platform-page :is(.about176-hero-copy h1,.about176-manifesto h2,.about176-section-head h2) {
  text-wrap:balance;
}
/* Make top navigation full-width and flush to the upper edge, not a floating pill. */
body.nacwo-os.about-platform-page > header.platform-public-header {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  margin-block:0!important;
  padding:14px clamp(18px,4vw,65px)!important;
  border-radius:0!important;
  top:0!important;
  left:0;
  right:0;
  min-height:76px;
  background:linear-gradient(110deg,#06192c,#0b3a58 65%,#13567a)!important;
  border-bottom:1px solid rgba(142,206,233,.22)!important;
  box-shadow:0 9px 30px rgba(6,25,42,.18)!important;
}
body.nacwo-os.about-platform-page > header.platform-public-header .brand-logo {
  max-width:180px;
  max-height:49px;
  width:auto;
  height:auto;
  object-fit:contain;
}
/* Keep responsive mobile navigation reachable, above content and away from edges. */
body.nacwo-os.about-platform-page > header .about176-mobile-nav {
  z-index:115;
}
body.nacwo-os.about-platform-page > header .about176-mobile-nav nav {
  max-height:min(70dvh,480px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
/* The illustrative image and overlay should not fall outside the main content shell. */
body.nacwo-os.about-platform-page .about176-hero-media {
  isolation:isolate;
  max-width:100%;
  min-width:0;
}
body.nacwo-os.about-platform-page .about176-hero-media > img {
  max-width:100%;
  height:auto;
}
body.nacwo-os.about-platform-page .about176-hero-media-caption {
  left:12px;
  bottom:55px;
  max-width:calc(100% - 24px);
}
body.nacwo-os.about-platform-page .about176-hero {
  margin-top:0!important;
  border-radius:0!important;
  background:
    radial-gradient(circle at 82% 16%,rgba(58,198,209,.20),transparent 38%),
    linear-gradient(130deg,#061c30,#0b3857 76%,#126381)!important;
}
/* Keep readable cards and cohesive full-width surfaces in light mode. */
body.nacwo-os.about-platform-page .about176-manifesto {background:#f8fbfe!important;}
body.nacwo-os.about-platform-page .about176-pillars {background:#eaf5fa!important;}
body.nacwo-os.about-platform-page .about176-human {background:#fff!important;}
body.nacwo-os.about-platform-page .about176-status {background:#f4f9fc!important;}
body.nacwo-os.about-platform-page .about176-bridge {background:#e8f5fa!important;}
body.nacwo-os.about-platform-page .about176-manifesto .about176-manifesto-copy {
  color:#35556b;
}
body.nacwo-os.about-platform-page .about176-manifesto-copy p {
  color:#49667b!important;
}
body.nacwo-os.about-platform-page .about176-human-photo {
  min-width:0;overflow:hidden;border-radius:23px;
}
body.nacwo-os.about-platform-page .about176-human-photo img {
  max-width:100%;
}
/* Footer must span the same page width as the main sections. */
body.nacwo-os.about-platform-page > footer.pp-footer {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  overflow-x:clip;
}
body.nacwo-os.about-platform-page > footer.pp-footer .pp-shell {
  width:min(1250px,calc(100% - clamp(32px,6vw,116px)))!important;
  max-width:1250px!important;
  margin-inline:auto!important;
}
/* Midnight: page surfaces, text, dividers and cards form ONE coherent palette. */
html[data-theme="midnight"] body.nacwo-os.about-platform-page {
  background:#061827!important;
  color:#eaf6ff!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page > header.platform-public-header {
  background:linear-gradient(110deg,#051526,#092c46 74%,#0d4865)!important;
  border-bottom-color:#28506b!important;
  box-shadow:0 9px 35px rgba(0,0,0,.35)!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-hero {
  background:
    radial-gradient(circle at 78% 15%,rgba(35,159,197,.15),transparent 39%),
    linear-gradient(135deg,#061727,#08263d 70%,#0b3753)!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-manifesto,
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-human,
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-status {
  background:#071d30!important;
  color:#eaf6ff!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-pillars,
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-bridge {
  background:#0a2941!important;
  color:#eaf6ff!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-manifesto :is(h2,p),
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-human :is(h2,p),
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-section-head :is(h2,p),
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-bridge :is(h2,p) {
  color:#e5f3fc!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-manifesto-copy {
  border-left-color:#56b5d5!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-pillars .about176-pillar-grid article,
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-status .about176-status-grid article {
  background:#103149!important;
  color:#eaf6ff!important;
  border-color:#2c5472!important;
  box-shadow:0 12px 35px rgba(0,0,0,.16)!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-pillars .about176-pillar-feature {
  background:#0c4058!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-pillar-grid article :is(h3,p),
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-status-grid article :is(h3,p) {
  color:#e5f3fc!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-pillar-grid article>span:last-child {
  border-top-color:#315873!important;
  color:#a6d9ea!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-human-list strong {
  color:#f2fbff!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-human-list small {
  color:#bad6e8!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-human-list>div>span {
  background:#123e3a!important;color:#9eeac9!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-human-photo {
  box-shadow:0 24px 60px rgba(0,0,0,.22);
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-honesty,
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-final {
  background:
    radial-gradient(circle at 78% 16%,rgba(41,170,183,.12),transparent 38%),
    #051827!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-bridge .about176-button.outline {
  background:#143750!important;
  border-color:#507b93!important;
  color:#e9f6ff!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page > footer.pp-footer {
  background:#041421!important;border-top:1px solid #23485e!important;
  color:#ccdfeb!important;
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page > footer.pp-footer :is(a,b,strong,span) {
  color:#d5eaf6!important;
}
@media(max-width:920px){
  body.nacwo-os.about-platform-page .about176-hero-layout {
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.nacwo-os.about-platform-page .about176-hero-media-caption{
    left:16px;max-width:calc(100% - 32px);
  }
}
@media(max-width:620px){
  body.nacwo-os.about-platform-page > main.about176-main .pp-shell,
  body.nacwo-os.about-platform-page > footer.pp-footer .pp-shell {
    width:calc(100% - 32px)!important;
  }
  body.nacwo-os.about-platform-page > header.platform-public-header {
    min-height:68px;padding:11px 16px!important;
  }
  body.nacwo-os.about-platform-page .about176-hero-media-caption{
    position:relative;inset:auto;width:auto;max-width:none;
    margin:-35px 12px 0;
  }
}


/* Phase 1.76-E: stronger ink on pale light-mode editorial surfaces.
   Do not override the already-light typography on dark honesty/hero bands. */
html:not([data-theme="midnight"]) body.nacwo-os.about-platform-page
  :is(.about176-manifesto,.about176-pillars,.about176-human,.about176-status,.about176-bridge) .about176-overline{
  color:#07546c!important
}
html:not([data-theme="midnight"]) body.nacwo-os.about-platform-page .about176-manifesto-copy a{
  color:#07546c!important
}
html:not([data-theme="midnight"]) body.nacwo-os.about-platform-page
  .about176-pillar-grid article:not(.about176-pillar-feature) .about176-pillar-number{
  color:#07546c!important
}
html:not([data-theme="midnight"]) body.nacwo-os.about-platform-page
  .about176-pillar-grid article:not(.about176-pillar-feature)>span:last-child{
  color:#07546c!important
}

/* 1.76-E second pass: midnight needs light lettering on dark panels. */
html[data-theme="midnight"] body.nacwo-os.about-platform-page
 :is(.about176-manifesto,.about176-pillars,.about176-human,.about176-status,.about176-bridge) .about176-overline{
 color:#bbfff0!important
}
html[data-theme="midnight"] body.nacwo-os.about-platform-page
 .about176-pillar-grid article .about176-pillar-number{color:#c6fff0!important}
html[data-theme="midnight"] body.nacwo-os.about-platform-page .about176-manifesto-copy a{
 color:#c6fff0!important
}
body.nacwo-os.about-platform-page .about176-pillar-feature>span{
 color:#d5fff3!important
}
