/* =============================================================
   Commons World — about.css
   /about (P02), restyled onto the 4E band/card system (docs/plan/
   4E-CHARITIFY-MAPPING.md §4/§7, W6e1). The .cw-doc reference shell
   (sticky rail + reading column) STAYS for the deep pillar-by-pillar
   content — now living inside a .cw-band--paper wrapper rather than a
   bare .cw-section. Enqueued only on is_page('about') after cw-pages.
   The doc shell + spec/faq patterns are written here for now; they are
   shared with /pillars (pillars.css) via the same scrollspy mechanism.

   RETIRED IN W6e1 (superseded by the band/card system, removed rather
   than left as dead weight): .cw-keyfacts (→ 4 .cw-card--icon in
   .cw-cards--4), .cw-trust-aside (→ 4 .cw-card--icon "how this is
   run" row), .cw-about__cta/.cw-about__spec-link (→ cta-band.php +
   .cw-about__closing-links, below). The old bare-hero .cw-page-hero
   markup is gone from this page.

   W6e2 (two-image pass): the hero is now a hand-rolled 2-col editorial
   split (.cw-about-hero, below) — page-hero-band.php is no longer
   called on this page; its .cw-page-hero__eyebrow/__title/__lead
   classes are reused directly instead so .cw-band--navy's existing
   on-dark colour rules keep applying with zero overrides here. A
   second image sits inside #the-gap's reading column via the shared
   .cw-editorial component, narrowed to the column's own measure by
   .cw-about-gap-editorial (below).
   ============================================================= */

/* =============================================================
   HERO SPLIT — .cw-about-hero (W6e2, image 1/2). A 2-col editorial
   hero: essay-infrastructure-lagos.webp beside the eyebrow/H1/lead,
   inside the same .cw-band--navy the old single-column hero used — so
   every existing on-dark colour rule (.cw-band--navy h1/p/.cw-eyebrow)
   keeps applying with zero extra overrides here. Same family as
   .cw-editorial (editorial-row.php) and coming-soon.php's
   .cw-stub-hero, but scoped locally to this page (page-about.php is
   the only caller). No text-over-photo scrim — photo and copy sit
   side by side, never one under the other. The media figure carries
   the shared .cw-editorial__media class (not a new one) purely so
   main.js's fixed fade-in selector list picks it up.
   ============================================================= */
.cw-about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.cw-about-hero__media {
  min-height: 260px;
}
.cw-about-hero__body {
  min-width: 0;
}
/* The hero copy was centred/max-width 760px under the retired
   .cw-page-hero--band wrapper; dropping that wrapper (so the grid
   split can control width instead) means the copy needs its own
   left-aligned, unconstrained rules here — mirrors .cw-stub-hero__body's
   identical override of the same two elements. */
.cw-about-hero__body .cw-page-hero__title,
.cw-about-hero__body .cw-page-hero__lead {
  max-width: none;
}

@media (min-width: 720px) {
  .cw-about-hero {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  }
  .cw-about-hero__media {
    min-height: 100%;
  }
}

@media (max-width: 719px) {
  /* Image above copy on mobile — mirrors .cw-editorial / .cw-stub-hero's
     identical mobile rule (THE RULE §2.7 "never strand": image+heading
     stay adjacent, image leads). */
  .cw-about-hero__media {
    order: -1;
  }
}

/* ---- Doc shell: sticky anchor rail + reading column ---- */
.cw-doc {
  display: block;
}
@media (min-width: 1024px) {
  .cw-doc {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
}
.cw-doc__nav {
  margin-bottom: 2.25rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--cw-border-soft);
  border-radius: var(--cw-radius-md);
  background: var(--cw-surface);
}
@media (min-width: 1024px) {
  .cw-doc__nav {
    position: sticky;
    top: calc(var(--cw-header-height) + 1.25rem);
    margin-bottom: 0;
    max-height: calc(100vh - var(--cw-header-height) - 3rem);
    overflow-y: auto;
    padding: 0.2rem 0 0.2rem 1.2rem;
    border: 0;
    border-left: 1px solid var(--cw-border-soft);
    border-radius: 0;
    background: transparent;
  }
}
.cw-doc__nav-head {
  margin: 0 0 0.8rem;
  font-family: var(--cw-font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cw-gold-deep);
}
.cw-doc__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}
@media (min-width: 1024px) {
  .cw-doc__nav ul {
    flex-direction: column;
    gap: 0;
  }
}
.cw-doc__nav-link {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--cw-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color var(--cw-dur-fast) var(--cw-ease),
    border-color var(--cw-dur-fast) var(--cw-ease);
}
@media (min-width: 1024px) {
  .cw-doc__nav-link {
    margin-left: -1.2rem;
    padding-left: 0.9rem;
  }
}
.cw-doc__nav-link:hover {
  color: var(--cw-navy-deep);
  text-decoration: none;
}
.cw-doc__nav-link[aria-current="true"] {
  color: var(--cw-navy-deep);
  font-weight: 600;
  border-left-color: var(--cw-gold);
}
.cw-doc__main {
  min-width: 0;
}
.cw-doc__section {
  scroll-margin-top: calc(var(--cw-header-height) + 24px);
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}
.cw-doc__section h2 {
  font-size: var(--cw-fs-h2);
  margin: 0 0 1.1rem;
}

/* ---- S3 "The gap" editorial support row (W6e2, image 2/2) ----
   .cw-about-gap-editorial narrows the shared .cw-editorial component
   (editorial-row.php, essay-ai-datacentre.webp) down to the reading
   column's own measure — .cw-editorial's default gap/columns assume the
   wide .cw-container it normally sits in directly (hero/pillars/contact
   usage); here it lives inside .cw-doc__main, which is already narrower,
   so only the vertical rhythm + a tighter gap need adjusting. The image
   fade-in, mobile stacking, and graceful-empty behaviour all come from
   the component/CSS as-is — nothing new is added there. */
.cw-about-gap-editorial {
  margin: 2rem 0 2.5rem;
}
.cw-about-gap-editorial .cw-editorial {
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.cw-about-gap-editorial .cw-editorial__media {
  min-height: 220px;
}
@media (min-width: 720px) {
  .cw-about-gap-editorial .cw-editorial__media {
    min-height: 280px;
  }
}

/* ---- Thesis pull-quote ---- */
.cw-pullquote {
  max-width: 42ch;
  margin: 2.25em auto;
  padding: 1.2em 0;
  border-top: 1px solid var(--cw-gold);
  border-bottom: 1px solid var(--cw-gold);
  text-align: center;
  font-family: var(--cw-font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.4;
  color: var(--cw-heading);
}

/* ---- S4 Nine Pillars overview (hairline rows, not boxes) ---- */
.cw-pillar-rows {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.cw-pillar-row {
  padding: 1.6rem 0;
  border-top: 1px solid var(--cw-border-soft);
}
.cw-pillar-row:first-child {
  border-top: 0;
}
.cw-pillar-row__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cw-pillar-row__n {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--cw-gold-deep);
}
.cw-pillar-row__icon {
  display: inline-flex;
  color: var(--cw-navy);
}
.cw-pillar-row__name {
  margin: 0;
  font-size: 1.2rem;
}
.cw-pillar-row__abbr {
  color: var(--cw-text-muted);
  font-weight: 400;
}
.cw-pillar-row__domain {
  margin: 0.4rem 0 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--cw-text-muted);
}
.cw-pillar-row__summary {
  margin: 0.6rem 0 0;
  color: var(--cw-text);
  line-height: 1.7;
  max-width: 64ch;
}
.cw-pillar-row__more {
  margin-top: 0.85rem;
}

/* ---- S5 Six Baseline Domains (gold numerals) ---- */
.cw-domains {
  list-style: none;
  counter-reset: cw-dom;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.cw-domains__item {
  counter-increment: cw-dom;
  position: relative;
  padding-left: 3rem;
}
.cw-domains__item::before {
  content: counter(cw-dom);
  position: absolute;
  left: 0;
  top: -0.12em;
  font-family: var(--cw-font-serif);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--cw-gold);
}
.cw-domains__name {
  display: block;
  font-weight: 700;
  color: var(--cw-ink);
}
.cw-domains__def {
  display: block;
  margin-top: 0.2rem;
  color: var(--cw-text-muted);
  line-height: 1.6;
  max-width: 62ch;
}

/* ---- S6 Governance (definition list) ---- */
.cw-spec {
  margin: 1.25rem 0 0;
}
.cw-spec__row {
  display: grid;
  gap: 0.2rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--cw-border-soft);
}
.cw-spec__row:first-child {
  border-top: 0;
}
@media (min-width: 720px) {
  .cw-spec__row {
    grid-template-columns: 200px 1fr;
  }
}
.cw-spec__term {
  margin: 0;
  font-family: var(--cw-font-sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cw-gold-deep);
}
.cw-spec__def {
  margin: 0;
  color: var(--cw-text);
  line-height: 1.7;
}

/* ---- FAQ ----
   Click-to-open accordion: <details class="cw-faq__item"><summary
   class="cw-faq__q">…</summary><div class="cw-faq__a">…</div></details>,
   all CLOSED by default (native <details>/<summary> — zero JS). The
   summary's default disclosure triangle is killed and replaced with a gold
   "+" affordance (::after) that rotates into an "×" on [open]. Mirrors
   book.css's .cw-faq accordion (the two never co-load) so the pattern
   reads as one system site-wide. */
.cw-faq {
  margin: 1.25rem 0 0;
}
.cw-faq__item {
  border-top: 1px solid var(--cw-border-soft);
}
.cw-faq__item:first-child {
  border-top: 0;
}
.cw-faq__q {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: var(--cw-font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--cw-heading);
  cursor: pointer;
  list-style: none;
  transition: color var(--cw-dur-fast) var(--cw-ease);
}
.cw-faq__q::-webkit-details-marker {
  display: none;
}
.cw-faq__q::after {
  content: "";
  position: relative;
  flex: 0 0 auto;
  width: 0.8rem;
  height: 0.8rem;
  margin-left: auto;
  background: linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 100% 2px, 2px 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--cw-gold-deep);
  /* An explicit base transform (not the "none" initial value) is required —
     verified live: without it the [open] rule's rotate(45deg) silently fails
     to apply/animate (the transition has no concrete "from" value to
     interpolate out of "none"). Mirrors book.css's .cw-faq__q::after /
     .cw-book-preview__summary::after, which carry the same fix/pattern. */
  transform: rotate(0deg);
  transition: transform var(--cw-dur-fast) var(--cw-ease);
}
.cw-faq__item[open] > .cw-faq__q::after {
  transform: rotate(45deg); /* "+" -> "×" on open */
}
.cw-faq__q:hover,
.cw-faq__q:focus-visible {
  color: var(--cw-gold-deep);
}
.cw-faq__q:focus-visible {
  outline: 2px solid var(--cw-focus);
  outline-offset: 2px;
}
.cw-faq__a {
  margin: 0;
  padding: 0 0 1.4rem;
  color: var(--cw-text);
  line-height: 1.7;
  max-width: 66ch;
}
@media (prefers-reduced-motion: reduce) {
  .cw-faq__q,
  .cw-faq__q::after {
    transition: none;
  }
}

/* ---- Closing CTA band — secondary links row under cta-band.php ---- */
.cw-about__closing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin: 1.75rem 0 0;
  text-align: center;
}
