@layer components {
  body.page:not(.home) {
    --clx-page-frame: min(calc(100vw - 76px), 1680px);
    --clx-inner-frame: min(100%, 1180px);
    background: var(--wp--preset--color--background);
  }

  body.page:not(.home) .clx-page-shell {
    max-width: none !important;
    padding-block: clamp(28px, 3vw, 48px) clamp(70px, 7vw, 120px);
    width: 100%;
  }

  body.page:not(.home) .clx-page-shell > .clx-foundation-hero,
  body.page:not(.home) .clx-page-shell > .wp-block-post-content > .alignwide,
  body.page:not(.home) .clx-page-shell > .alignwide {
    box-sizing: border-box;
    margin-inline: auto !important;
    max-width: var(--clx-page-frame) !important;
    width: var(--clx-page-frame) !important;
  }

  body.page:not(.home) .clx-page-shell > .wp-block-post-content {
    box-sizing: border-box;
    max-width: none !important;
    padding-inline: 0 !important;
    width: 100%;
  }

  body.page:not(.home) .clx-foundation-hero {
    align-content: end;
    background:
      linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .32), rgba(3, 11, 47, .06)),
      var(--wp--preset--color--navy-950);
    background-position: center;
    background-size: cover;
    border-radius: 24px;
    box-shadow: var(--wp--custom--shadow--card);
    color: var(--wp--preset--color--surface);
    min-height: clamp(360px, 31vw, 520px);
    overflow: hidden;
    padding: clamp(44px, 5vw, 82px) !important;
  }

  body.page:not(.home):not(.page-id-20):not(.page-id-21) .clx-foundation-hero h1 {
    color: inherit;
    font-size: clamp(3rem, 4vw, 4.75rem) !important;
    line-height: 1.05;
    max-width: 860px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .2);
  }

  body.page-id-11 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .28), rgba(3, 11, 47, .04)), url("../images/backgrounds/titlebar-who-we-are.jpg");
  }

  body.page-id-12 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .30), rgba(3, 11, 47, .06)), url("../images/backgrounds/titlebar-our-team.jpg");
  }

  body.page-id-13 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .30), rgba(3, 11, 47, .06)), url("../images/backgrounds/titlebar-membership.jpg");
  }

  body.page-id-14 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .30), rgba(3, 11, 47, .06)), url("../images/backgrounds/titlebar-contact.jpg");
  }

  body.page-id-15 .clx-foundation-hero,
  body.page-id-16 .clx-foundation-hero,
  body.page-id-17 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .30), rgba(3, 11, 47, .06)), url("../images/backgrounds/titlebar-events.jpg");
  }

  body.page-id-18 .clx-foundation-hero,
  body.page-id-19 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .30), rgba(3, 11, 47, .06)), url("../images/backgrounds/titlebar-news.jpg");
  }

  body.page-id-20 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .30), rgba(3, 11, 47, .06)), url("../images/backgrounds/titlebar-founder-members.jpg");
  }

  body.page-id-21 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .78), rgba(3, 11, 47, .30), rgba(3, 11, 47, .06)), url("../images/backgrounds/titlebar-corporate-members.jpg");
  }

  body.page:not(.home) .clx-phase8-intro,
  body.page:not(.home) .clx-phase8-card,
  body.page:not(.home) .clx-contact-panel,
  body.page:not(.home) .clx-form-panel {
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--border-soft);
    border-radius: 18px;
    box-shadow: var(--wp--custom--shadow--soft);
    padding: clamp(28px, 3.2vw, 52px);
  }

  body.page:not(.home) .clx-phase8-intro {
    margin-block: clamp(44px, 5vw, 84px);
  }

  body.page:not(.home) .clx-phase8-intro h2,
  body.page:not(.home) .clx-phase8-card h2 {
    max-width: 980px;
  }

  body.page:not(.home) .clx-card-grid,
  body.page:not(.home) .clx-logo-grid,
  body.page:not(.home) .clx-event-list,
  body.page:not(.home) .clx-hero-split,
  body.page:not(.home) .clx-dual-panel,
  body.page:not(.home) .clx-contact-split,
  body.page:not(.home) .clx-map-section,
  body.page:not(.home) .clx-article-header {
    margin-block: clamp(44px, 5vw, 84px);
  }

  body.page:not(.home) .clx-card-grid {
    gap: clamp(24px, 2.6vw, 40px);
  }

  body.page:not(.home) .clx-feature-card,
  body.page:not(.home) .clx-team-card,
  body.page:not(.home) .clx-pricing-card,
  body.page:not(.home) .clx-stat-card,
  body.page:not(.home) .clx-logo-tile {
    border-radius: 16px;
    min-height: 100%;
  }

  body.page:not(.home) .clx-team-card__avatar img {
    aspect-ratio: 1;
    border-radius: 999px;
    object-fit: cover;
  }

  body.page:not(.home) .clx-filter-bar {
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--border-soft);
    border-radius: 16px;
    box-shadow: var(--wp--custom--shadow--soft);
    padding: var(--wp--preset--spacing--lg);
  }

  body.page:not(.home) .clx-event-list {
    background: var(--wp--preset--color--surface);
    border: 1px solid var(--wp--preset--color--border-soft);
    border-radius: 18px;
    box-shadow: var(--wp--custom--shadow--soft);
    padding: clamp(22px, 2.6vw, 38px);
  }

  body.page:not(.home) .clx-event-row {
    align-items: center;
    border-bottom: 1px solid var(--wp--preset--color--border-soft);
    display: grid;
    gap: var(--wp--preset--spacing--lg);
    grid-template-columns: minmax(0, 1fr) 160px 220px;
    padding-block: 18px;
  }

  body.page:not(.home) .clx-event-row p {
    margin: 0;
  }

  body.page:not(.home) .clx-event-date,
  body.page:not(.home) .clx-add-calendar {
    color: var(--wp--preset--color--chinalux-blue);
    font-weight: 800;
  }

  body.page:not(.home) .clx-add-calendar {
    justify-self: end;
  }

  body.page:not(.home) .clx-featured-news img,
  body.page:not(.home) .clx-hero-split img,
  body.page:not(.home) .clx-map-section img {
    border-radius: 16px;
    object-fit: cover;
  }

  body.page:not(.home) .clx-news-card img {
    aspect-ratio: 16 / 9;
  }

  body.page:not(.home) .clx-article-header {
    text-align: center;
  }

  body.page:not(.home) .clx-phase8-logo-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  @media (max-width: 1023px) {
    body.page:not(.home) {
      --clx-page-frame: min(calc(100vw - 40px), 1680px);
    }

    body.page:not(.home) .clx-page-shell > .clx-foundation-hero {
      min-height: 360px;
      padding: var(--wp--preset--spacing--2-xl) !important;
    }

    body.page:not(.home) .clx-event-row,
    body.page:not(.home) .clx-phase8-logo-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 767px) {
    body.page:not(.home) {
      --clx-page-frame: min(calc(100vw - 28px), 1680px);
    }

    body.page:not(.home) .clx-page-shell > .clx-foundation-hero {
      min-height: 320px;
      padding: var(--wp--preset--spacing--xl) !important;
    }

    body.page:not(.home) .clx-event-row,
    body.page:not(.home) .clx-phase8-logo-grid {
      grid-template-columns: 1fr;
    }

    body.page:not(.home) .clx-add-calendar {
      justify-self: start;
    }
  }
}

/* Phase 8 visual correction pass - closer to PNG references. */
@layer components {
  body.page:not(.home) {
    --clx-page-frame: min(calc(100vw - 76px), 1688px);
    --clx-section-gap: clamp(32px, 3.4vw, 58px);
  }

  body.page:not(.home) .clx-page-shell {
    padding-block-start: clamp(22px, 2.4vw, 34px);
  }

  body.page:not(.home) .clx-foundation-hero {
    align-content: center;
    min-height: clamp(470px, 30.5vw, 560px);
    padding: clamp(80px, 6vw, 110px) clamp(88px, 6vw, 118px) !important;
  }

  body.page:not(.home):not(.page-id-20):not(.page-id-21) .clx-foundation-hero h1 {
    font-size: clamp(3.35rem, 4.8vw, 5.25rem) !important;
    margin: 0 0 clamp(44px, 4vw, 70px);
    max-width: 760px;
  }

  body.page:not(.home) .clx-foundation-hero .wp-block-post-excerpt,
  body.page:not(.home) .clx-foundation-hero .wp-block-post-excerpt__excerpt {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(1.4rem, 1.8vw, 1.95rem) !important;
    line-height: 1.35;
    margin: 0 !important;
    max-width: 760px;
  }

  body.page:not(.home) .wp-block-post-content > .alignwide,
  body.page:not(.home) .wp-block-post-content > .wp-block-heading.alignwide {
    margin-block: var(--clx-section-gap);
  }

  body.page:not(.home) .clx-design-intro {
    align-items: flex-start;
    gap: clamp(72px, 7vw, 150px) !important;
    padding: clamp(18px, 2vw, 34px) clamp(44px, 3vw, 76px);
  }

  body.page:not(.home) .clx-design-intro h2 {
    font-size: clamp(2.75rem, 3.35vw, 4.15rem) !important;
    letter-spacing: 0;
    line-height: 1.1;
    margin-top: 10px;
  }

  body.page:not(.home) .clx-underlined-heading::after,
  body.page:not(.home) .clx-design-intro h2::after {
    background: var(--wp--preset--color--chinalux-red);
    border-radius: 999px;
    content: "";
    display: block;
    height: 4px;
    margin-top: 22px;
    width: 68px;
  }

  body.page:not(.home) .clx-design-filter {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(3, 11, 47, .09);
    border-radius: 22px;
    box-shadow: 0 14px 45px rgba(3, 11, 47, .07);
    display: grid;
    gap: clamp(24px, 3vw, 64px);
    grid-template-columns: minmax(280px, .9fr) minmax(480px, 1.4fr);
    padding: clamp(32px, 3vw, 54px);
  }

  body.page:not(.home) .clx-design-filter > p:first-child {
    color: var(--wp--preset--color--navy-950);
    font-size: clamp(1.18rem, 1.25vw, 1.45rem);
    line-height: 1.45;
    margin: 0;
  }

  body.page:not(.home) .clx-filter-controls {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  body.page:not(.home) .clx-filter-controls span,
  body.page:not(.home) .clx-tabs span {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(3, 11, 47, .11);
    border-radius: 10px;
    color: rgba(3, 11, 47, .68);
    display: flex;
    min-height: 58px;
    padding: 0 22px;
  }

  body.page:not(.home) .clx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 34px;
    grid-column: 1 / -1;
    margin: 0;
  }

  body.page:not(.home) .clx-tabs span:first-child {
    background: var(--wp--preset--color--chinalux-blue);
    color: #fff;
  }

  body.page:not(.home) .clx-featured-event,
  body.page:not(.home) .clx-featured-article,
  body.page:not(.home) .clx-split-cta-card,
  body.page:not(.home) .clx-member-feature,
  body.page:not(.home) .clx-single-layout {
    background: #fff;
    border: 1px solid rgba(3, 11, 47, .09);
    border-radius: 22px;
    box-shadow: 0 16px 50px rgba(3, 11, 47, .07);
    gap: clamp(38px, 4vw, 76px) !important;
    overflow: hidden;
    padding: clamp(34px, 3vw, 60px);
  }

  body.page:not(.home) .clx-featured-event img,
  body.page:not(.home) .clx-featured-article img,
  body.page:not(.home) .clx-single-layout img,
  body.page:not(.home) .clx-split-cta-card img {
    aspect-ratio: 1.45 / 1;
    border-radius: 18px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
  }

  body.page:not(.home) .clx-badge {
    background: rgba(0, 159, 220, .1);
    border-radius: 6px;
    color: var(--wp--preset--color--chinalux-blue);
    display: inline-flex;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .04em;
    margin: 0 0 22px;
    padding: 9px 14px;
    text-transform: uppercase;
  }

  body.page:not(.home) .clx-date-stack,
  body.page:not(.home) .clx-date-mini {
    align-items: center;
    color: var(--wp--preset--color--chinalux-blue);
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
  }

  body.page:not(.home) .clx-date-stack strong,
  body.page:not(.home) .clx-date-mini strong {
    font-size: clamp(3.6rem, 4vw, 5.2rem);
    line-height: .85;
  }

  body.page:not(.home) .clx-date-stack span,
  body.page:not(.home) .clx-date-mini span {
    color: var(--wp--preset--color--navy-950);
    font-weight: 800;
    line-height: 1.2;
  }

  body.page:not(.home) .clx-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  body.page:not(.home) .clx-pill-row span {
    background: rgba(3, 11, 47, .06);
    border-radius: 999px;
    color: rgba(3, 11, 47, .68);
    font-size: .9rem;
    padding: 8px 14px;
  }

  body.page:not(.home) .clx-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
  }

  body.page:not(.home) .clx-button-row .wp-element-button,
  body.page:not(.home) .clx-featured-article .wp-element-button,
  body.page:not(.home) .clx-member-feature .wp-element-button,
  body.page:not(.home) .clx-single-layout .wp-element-button {
    border-radius: 999px;
    font-weight: 800;
    padding: 17px 36px;
  }

  body.page:not(.home) .wp-element-button.is-outline,
  body.page:not(.home) .clx-event-table a,
  body.page:not(.home) .clx-news-card a {
    background: transparent;
    border: 2px solid rgba(0, 159, 220, .42);
    border-radius: 999px;
    color: var(--wp--preset--color--chinalux-blue);
    font-weight: 800;
    text-decoration: none;
  }

  body.page:not(.home) .clx-event-table {
    background: #fff;
    border: 1px solid rgba(3, 11, 47, .09);
    border-radius: 22px;
    box-shadow: 0 14px 45px rgba(3, 11, 47, .06);
    padding: 0 clamp(28px, 3vw, 52px);
  }

  body.page:not(.home) .clx-event-table-row {
    align-items: center;
    border-bottom: 1px solid rgba(3, 11, 47, .09);
    display: grid;
    gap: 28px;
    grid-template-columns: 140px minmax(360px, 1.4fr) 180px 160px 230px;
    padding: 28px 0;
  }

  body.page:not(.home) .clx-event-table-row:last-child {
    border-bottom: 0;
  }

  body.page:not(.home) .clx-event-table h3 {
    font-size: clamp(1.25rem, 1.3vw, 1.6rem);
    margin: 0 0 8px;
  }

  body.page:not(.home) .clx-event-table p {
    margin: 0;
  }

  body.page:not(.home) .clx-event-table a {
    display: inline-flex;
    justify-content: center;
    padding: 14px 22px;
  }

  body.page:not(.home) .clx-split-cta-card {
    align-items: center;
  }

  body.page:not(.home) .clx-calendar-card {
    border-right: 1px solid rgba(3, 11, 47, .1);
  }

  body.page:not(.home) .clx-calendar-grid {
    color: rgba(3, 11, 47, .68);
    font-weight: 700;
    line-height: 2.1;
    white-space: pre-line;
  }

  body.page:not(.home) .clx-calendar-grid strong {
    background: var(--wp--preset--color--chinalux-blue);
    border-radius: 999px;
    color: #fff;
    padding: 7px 12px;
  }

  body.page:not(.home) .clx-news-grid {
    display: grid !important;
    gap: clamp(28px, 2.6vw, 46px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page:not(.home) .clx-news-grid > .wp-block-column {
    min-width: 0;
  }

  body.page:not(.home) .clx-news-card {
    background: #fff;
    border: 1px solid rgba(3, 11, 47, .09);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(3, 11, 47, .055);
    height: 100%;
    overflow: hidden;
  }

  body.page:not(.home) .clx-news-card figure {
    margin: 0;
  }

  body.page:not(.home) .clx-news-card img {
    aspect-ratio: 1.72 / 1;
    border-radius: 0;
    display: block;
    object-fit: cover;
    width: 100%;
  }

  body.page:not(.home) .clx-news-card > :not(figure) {
    margin-left: clamp(26px, 2vw, 34px);
    margin-right: clamp(26px, 2vw, 34px);
  }

  body.page:not(.home) .clx-news-card .clx-meta {
    color: var(--wp--preset--color--chinalux-blue);
    font-weight: 900;
    margin-top: 24px;
    text-transform: uppercase;
  }

  body.page:not(.home) .clx-news-card h3 {
    font-size: clamp(1.45rem, 1.5vw, 1.85rem);
    line-height: 1.16;
  }

  body.page:not(.home) .clx-news-card a {
    border: 0;
    display: inline-flex;
    margin-bottom: 28px;
    padding: 0;
  }

  body.page:not(.home) .clx-page-pagination {
    align-items: center;
    display: flex;
    gap: 26px;
    justify-content: center;
  }

  body.page:not(.home) .clx-page-pagination strong,
  body.page:not(.home) .clx-page-pagination span:first-child,
  body.page:not(.home) .clx-page-pagination span:last-child {
    align-items: center;
    background: var(--wp--preset--color--chinalux-blue);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
  }

  body.page:not(.home) .clx-team-grid {
    display: grid !important;
    gap: clamp(28px, 2.6vw, 42px) !important;
  }

  body.page:not(.home) .clx-team-grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.page:not(.home) .clx-team-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page:not(.home) .clx-team-card {
    background: #fff;
    border: 1px solid rgba(3, 11, 47, .09);
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(3, 11, 47, .055);
    padding: clamp(24px, 2.2vw, 34px);
  }

  body.page:not(.home) .clx-team-card__avatar {
    margin: 0 0 28px;
  }

  body.page:not(.home) .clx-team-card__avatar img {
    aspect-ratio: 1.08 / 1;
    border-radius: 0;
    object-fit: cover;
    width: 100%;
  }

  body.page:not(.home) .clx-team-grid--compact .clx-team-card__avatar img {
    aspect-ratio: 1;
  }

  body.page:not(.home) .clx-team-card h3 {
    font-size: clamp(1.25rem, 1.25vw, 1.55rem);
    margin: 0 0 10px;
  }

  body.page:not(.home) .clx-member-directory {
    display: grid;
    gap: clamp(22px, 2vw, 34px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.page:not(.home) .clx-logo-tile {
    align-content: center;
    background: #fff;
    border: 1px solid rgba(3, 11, 47, .09);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(3, 11, 47, .055);
    min-height: 150px;
    padding: 26px;
    text-align: center;
  }

  body.page:not(.home) .clx-logo-tile h3 {
    color: var(--wp--preset--color--navy-950);
    font-size: clamp(1.3rem, 1.35vw, 1.7rem);
    margin: 0 0 8px;
  }

  body.page:not(.home) .clx-pricing-grid {
    gap: clamp(28px, 2.8vw, 48px) !important;
  }

  body.page:not(.home) .clx-pricing-card {
    background: #fff;
    border: 1px solid rgba(3, 11, 47, .09);
    border-radius: 20px;
    box-shadow: 0 12px 38px rgba(3, 11, 47, .06);
    height: 100%;
    padding: clamp(34px, 3vw, 52px);
  }

  body.page:not(.home) .clx-pricing-card.is-featured {
    border-color: rgba(0, 159, 220, .34);
    box-shadow: 0 20px 52px rgba(0, 159, 220, .16);
    transform: translateY(-10px);
  }

  body.page:not(.home) .clx-price {
    color: var(--wp--preset--color--chinalux-blue);
    font-size: clamp(2.2rem, 3vw, 3.8rem);
    font-weight: 900;
  }

  body.page:not(.home) .clx-faux-form {
    display: grid;
    gap: 16px;
    margin-top: 28px;
  }

  body.page:not(.home) .clx-faux-form span {
    border: 1px solid rgba(3, 11, 47, .11);
    border-radius: 12px;
    color: rgba(3, 11, 47, .46);
    padding: 18px 20px;
  }

  body.page:not(.home) .clx-faux-form .is-large {
    min-height: 150px;
  }

  @media (max-width: 1180px) {
    body.page:not(.home) .clx-design-filter,
    body.page:not(.home) .clx-event-table-row,
    body.page:not(.home) .clx-news-grid,
    body.page:not(.home) .clx-team-grid--featured,
    body.page:not(.home) .clx-team-grid--compact,
    body.page:not(.home) .clx-member-directory {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 767px) {
    body.page:not(.home) {
      --clx-page-frame: min(calc(100vw - 28px), 1688px);
    }

    body.page:not(.home) .clx-foundation-hero {
      min-height: 340px;
      padding: 44px 28px !important;
    }

    body.page:not(.home):not(.page-id-20):not(.page-id-21) .clx-foundation-hero h1 {
      font-size: clamp(2.4rem, 12vw, 3.4rem) !important;
      margin-bottom: 28px;
    }

    body.page:not(.home) .clx-filter-controls,
    body.page:not(.home) .clx-design-filter,
    body.page:not(.home) .clx-event-table-row,
    body.page:not(.home) .clx-news-grid,
    body.page:not(.home) .clx-team-grid--featured,
    body.page:not(.home) .clx-team-grid--compact,
    body.page:not(.home) .clx-member-directory {
      grid-template-columns: 1fr;
    }

    body.page:not(.home) .clx-design-intro {
      padding-inline: 10px;
    }
  }
}

/* Phase 8 browser QA pass - internal page hero fidelity. */
@layer components {
  body.page:not(.home) .clx-foundation-hero,
  body.page:not(.home) .clx-foundation-hero.has-background {
    background-color: #030b2f !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    color: #fff !important;
    isolation: isolate;
  }

  body.page:not(.home) .clx-foundation-hero :where(h1, h2, h3, p, a),
  body.page:not(.home) .clx-foundation-hero .wp-block-post-title,
  body.page:not(.home) .clx-foundation-hero .wp-block-post-title a,
  body.page:not(.home) .clx-foundation-hero .wp-block-post-excerpt,
  body.page:not(.home) .clx-foundation-hero .wp-block-post-excerpt__excerpt {
    color: #fff !important;
    opacity: 1 !important;
  }

  body.page:not(.home) .clx-foundation-hero .wp-block-post-title,
  body.page:not(.home):not(.page-id-20):not(.page-id-21) .clx-foundation-hero h1 {
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-shadow: 0 6px 28px rgba(0, 0, 0, .34);
  }

  body.page:not(.home) .clx-foundation-hero .wp-block-post-excerpt__excerpt {
    font-weight: 800;
    text-shadow: 0 3px 16px rgba(0, 0, 0, .28);
  }

  body.page-id-11 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .62) 0%, rgba(3, 11, 47, .24) 45%, rgba(3, 11, 47, .04) 100%), url("../images/backgrounds/titlebar-who-we-are.jpg") !important;
  }

  body.page-id-12 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .64) 0%, rgba(3, 11, 47, .24) 45%, rgba(3, 11, 47, .05) 100%), url("../images/backgrounds/titlebar-our-team.jpg") !important;
  }

  body.page-id-13 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .64) 0%, rgba(3, 11, 47, .24) 45%, rgba(3, 11, 47, .05) 100%), url("../images/backgrounds/titlebar-membership.jpg") !important;
  }

  body.page-id-14 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .64) 0%, rgba(3, 11, 47, .24) 45%, rgba(3, 11, 47, .05) 100%), url("../images/backgrounds/titlebar-contact.jpg") !important;
  }

  body.page-id-15 .clx-foundation-hero,
  body.page-id-16 .clx-foundation-hero,
  body.page-id-17 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .64) 0%, rgba(3, 11, 47, .24) 45%, rgba(3, 11, 47, .05) 100%), url("../images/backgrounds/titlebar-events.jpg") !important;
  }

  body.page-id-18 .clx-foundation-hero,
  body.page-id-19 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .64) 0%, rgba(3, 11, 47, .24) 45%, rgba(3, 11, 47, .05) 100%), url("../images/backgrounds/titlebar-news.jpg") !important;
  }

  body.page-id-20 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .64) 0%, rgba(3, 11, 47, .24) 45%, rgba(3, 11, 47, .05) 100%), url("../images/backgrounds/titlebar-founder-members.jpg") !important;
  }

  body.page-id-21 .clx-foundation-hero {
    background-image: linear-gradient(90deg, rgba(3, 11, 47, .64) 0%, rgba(3, 11, 47, .24) 45%, rgba(3, 11, 47, .05) 100%), url("../images/backgrounds/titlebar-corporate-members.jpg") !important;
  }
}

/* Phase 8 browser QA pass - PNG scale and section rhythm. */
@layer components {
  body.page:not(.home) .wp-site-blocks > main.clx-page-shell,
  body.page:not(.home) main.clx-page-shell {
    margin-block-start: clamp(18px, 1.4vw, 26px) !important;
    padding-block-start: 0 !important;
  }

  body.page:not(.home) .clx-foundation-hero {
    min-height: clamp(420px, 28vw, 500px) !important;
    padding: clamp(62px, 5vw, 88px) clamp(78px, 5.6vw, 108px) !important;
  }

  body.page:not(.home) .clx-foundation-hero .wp-block-post-title,
  body.page:not(.home):not(.page-id-20):not(.page-id-21) .clx-foundation-hero h1 {
    font-size: clamp(2.9rem, 3.3vw, 3.95rem) !important;
    line-height: 1.04 !important;
    margin: 0 0 clamp(46px, 4.2vw, 74px) !important;
    max-width: 720px !important;
  }

  body.page:not(.home) .clx-foundation-hero .wp-block-post-excerpt,
  body.page:not(.home) .clx-foundation-hero .wp-block-post-excerpt__excerpt {
    font-size: clamp(1.24rem, 1.45vw, 1.65rem) !important;
    font-weight: 400 !important;
    line-height: 1.42 !important;
    max-width: 760px !important;
  }

  body.page-id-12 .clx-foundation-hero {
    background-position: center 56% !important;
  }

  body.page-id-15 .clx-foundation-hero,
  body.page-id-16 .clx-foundation-hero,
  body.page-id-17 .clx-foundation-hero {
    background-position: center 48% !important;
  }

  body.page:not(.home) .wp-block-post-content > .alignwide,
  body.page:not(.home) .wp-block-post-content > .wp-block-heading.alignwide {
    margin-block: clamp(26px, 2.6vw, 46px) !important;
  }

  body.page:not(.home) .clx-design-filter {
    gap: clamp(24px, 3vw, 58px) !important;
    padding: clamp(28px, 2.45vw, 42px) clamp(32px, 2.8vw, 54px) !important;
  }

  body.page:not(.home) .clx-filter-controls span,
  body.page:not(.home) .clx-tabs span {
    min-height: 52px !important;
    padding-inline: 20px !important;
  }

  body.page-id-18 .clx-design-filter {
    display: block !important;
    min-height: 0 !important;
  }

  body.page-id-18 .clx-filter-controls {
    grid-template-columns: minmax(360px, 1.6fr) minmax(260px, 1.05fr) minmax(220px, .85fr) !important;
    max-width: 1180px;
  }

  body.page-id-18 .clx-tabs {
    gap: 18px 34px !important;
    margin-top: 22px !important;
  }

  body.page-id-18 .clx-tabs span {
    min-height: 48px !important;
  }

  body.page-id-12 .clx-design-intro {
    gap: clamp(60px, 6vw, 120px) !important;
    padding-block: clamp(18px, 1.8vw, 28px) !important;
  }

  body.page-id-12 .clx-design-intro h2 {
    font-size: clamp(2.35rem, 3vw, 3.35rem) !important;
    max-width: 560px !important;
  }

  body.page:not(.home) .clx-featured-event,
  body.page:not(.home) .clx-featured-article,
  body.page:not(.home) .clx-split-cta-card,
  body.page:not(.home) .clx-member-feature,
  body.page:not(.home) .clx-single-layout {
    padding: clamp(30px, 2.8vw, 48px) !important;
  }

  body.page:not(.home) .clx-featured-event,
  body.page:not(.home) .clx-featured-article {
    gap: clamp(38px, 4.4vw, 84px) !important;
  }

  body.page-id-18 .clx-featured-article h2,
  body.page-id-15 .clx-featured-event h2 {
    font-size: clamp(2.15rem, 2.7vw, 3.35rem) !important;
    line-height: 1.12 !important;
  }

  @media (max-width: 767px) {
    body.page:not(.home) .wp-site-blocks > main.clx-page-shell,
    body.page:not(.home) main.clx-page-shell {
      margin-block-start: 14px !important;
    }

    body.page:not(.home) .clx-foundation-hero {
      min-height: 330px !important;
      padding: 42px 28px !important;
    }

    body.page:not(.home) .clx-foundation-hero .wp-block-post-title,
    body.page:not(.home):not(.page-id-20):not(.page-id-21) .clx-foundation-hero h1 {
      font-size: clamp(2.35rem, 10vw, 3.15rem) !important;
      margin-bottom: 28px !important;
    }

    body.page-id-18 .clx-filter-controls {
      grid-template-columns: 1fr !important;
    }
  }
}
