/* ==========================================================================
   Brands Nexus Network 3.8: the "Trust is infrastructure" design on every page.
   Same cool light ground, near-black ink and cobalt accent as the homepage,
   with Bricolage Grotesque, Instrument Sans and JetBrains Mono. The colours are
   set on <body>, so they apply whatever Appearance > Customize holds.
   ========================================================================== */

body.bnn-nx {
	--bg: #f2f4f7;
	--card: #ffffff;
	--card-2: #f8f9fb;
	--brand: #1f3de0;
	--brand-rgb: 31, 61, 224;
	--brand-hover: #3a55f0;
	--brand-deep: #142a9e;
	--brand-ink: #ffffff;
	--pill: #e4e8f0;
	--text: #0a0f1c;
	--muted: #4a5468;
	--muted-2: #5d687c;
	--line: #d5dae3;
	--line-brand: rgba(31, 61, 224, 0.22);
	--nx-body: #2b3446;
	--f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--f-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--f-brand: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--w-display: 700;
	--w-hero: 700;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 20px;
	--radius-xl: 28px;
	--btn-radius: 999px;
	--container: 1760px;
	--pad: clamp(20px, 5vw, 96px);
	background: var(--bg);
	color: var(--text);
}

/* Dark surfaces keep the same family: ink and navy with a pale cobalt accent */
body.bnn-nx .bnn-footer,
body.bnn-nx .bnn-banner {
	--bg: #0a0f1c;
	--card: #111a2e;
	--card-2: #15203a;
	--text: #f2f4f7;
	--muted: #c9d0de;
	--muted-2: #8d97ad;
	--line: #1e2740;
	--pill: #1a2542;
	--brand: #8da2ff;
	--brand-rgb: 141, 162, 255;
	--brand-hover: #b0bfff;
	--brand-ink: #0a0f1c;
	--line-brand: rgba(141, 162, 255, 0.28);
	--nx-body: #c9d0de;
	color: var(--text);
}
body.bnn-nx .bnn-footer { background: var(--bg); }
body.bnn-nx .bnn-banner { background: linear-gradient(112deg, #0b1730 0%, #112456 62%, #0b1730 100%); border-color: #243461; }

/* --- Type ------------------------------------------------------------------- */
body.bnn-nx { font-weight: 400; line-height: 1.6; }
body.bnn-nx .bnn-h1, body.bnn-nx .bnn-hero3__title, body.bnn-nx .bnn-phero__title { font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
body.bnn-nx .bnn-h2 { line-height: 1.08; letter-spacing: -0.032em; }
body.bnn-nx .bnn-h3 { line-height: 1.15; letter-spacing: -0.022em; }
body.bnn-nx .bnn-quote { line-height: 1.08; letter-spacing: -0.03em; }
body.bnn-nx .bnn-lead, body.bnn-nx .bnn-on-dark, body.bnn-nx .bnn-hero3__lead, body.bnn-nx .bnn-icard__text, body.bnn-nx .bnn-panel__desc, body.bnn-nx .bnn-panel__lead p:not(.bnn-small-label) { font-weight: 400; }
body.bnn-nx .bnn-lead, body.bnn-nx .bnn-hero3__lead, body.bnn-nx .bnn-phero .bnn-lead, body.bnn-nx .bnn-icard__text { color: var(--nx-body); }
body.bnn-nx .bnn-eyebrow, body.bnn-nx .bnn-kicker, body.bnn-nx .bnn-small-label, body.bnn-nx .bnn-tag, body.bnn-nx .bnn-leader__role { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--muted); }
body.bnn-nx .bnn-eyebrow__label, body.bnn-nx .bnn-eyebrow__num { color: var(--muted); }
body.bnn-nx .bnn-eyebrow__num { color: var(--brand); }
body.bnn-nx .bnn-stat__num, body.bnn-nx .bnn-acard--number .bnn-acard__big { font-weight: 700; letter-spacing: -0.04em; }

/* --- Buttons: ink pills, cobalt on hover --------------------------------------- */
body.bnn-nx .bnn-btn { min-height: 50px; padding: 0 26px; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
body.bnn-nx .bnn-btn--sm { min-height: 44px; padding: 0 20px; }
body.bnn-nx :is(.bnn-btn--primary, .bnn-btn--neon, .bnn-btn--light, .bnn-btn--chapter) { background: var(--text); color: var(--bg); border-color: var(--text); }
body.bnn-nx :is(.bnn-btn--primary, .bnn-btn--neon, .bnn-btn--light, .bnn-btn--chapter):hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: none; }
body.bnn-nx :is(.bnn-btn--ghost, .bnn-btn--line, .bnn-btn--ghost-light, .bnn-btn--chapter-ghost) { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
body.bnn-nx :is(.bnn-btn--ghost, .bnn-btn--line, .bnn-btn--ghost-light, .bnn-btn--chapter-ghost):hover { background: var(--text); border-color: var(--text); color: var(--bg); }
body.bnn-nx .bnn-btn--text { font-weight: 600; }
body.bnn-nx .bnn-link { font-weight: 600; }
body.bnn-nx .bnn-totop { border-radius: 999px; }
body.bnn-nx .bnn-chips li { border-radius: 999px; background: #fff; border-color: var(--line); color: var(--nx-body); }
body.bnn-nx .bnn-badge { background: #fff; border-color: var(--line); }
body.bnn-nx .bnn-badge--live { color: #0b6b3a; }

/* --- Cards: clean white, hairline border -------------------------------------- */
body.bnn-nx :is(.bnn-card, .bnn-company, .bnn-post, .bnn-icard, .bnn-sc, .bnn-acard, .bnn-glance, .bnn-role, .bnn-empty-card, .bnn-form-wrap, .bnn-promo) { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: none; transition: transform 0.25s ease, box-shadow 0.25s ease; }
body.bnn-nx :is(.bnn-card, .bnn-company, .bnn-post, .bnn-icard, .bnn-sc, .bnn-acard, .bnn-glance, .bnn-role, .bnn-empty-card, .bnn-form-wrap, .bnn-promo)::before { display: none; }
body.bnn-nx :is(.bnn-company, .bnn-post, .bnn-icard, .bnn-sc, .bnn-acard, .bnn-card):hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(10, 15, 28, 0.4); }
body.bnn-nx .bnn-sc__visual { background: linear-gradient(180deg, #e7ebf2, #f8f9fb); border-bottom: 1px solid var(--line); }
body.bnn-nx .bnn-sc__visual::before { opacity: 0.07; }
body.bnn-nx .bnn-sc__stage :is(.bnn-frame, .mk-qx) { box-shadow: 0 24px 50px -26px rgba(10, 15, 28, 0.4); }
body.bnn-nx .bnn-acard--glass .bnn-acard__glass { background: rgba(255, 255, 255, 0.78); border-color: var(--line); }
body.bnn-nx .bnn-area__art { background: linear-gradient(165deg, #fff, var(--card-2)); border-color: var(--line); }
body.bnn-nx .bnn-leader__portrait { background: linear-gradient(165deg, #fff, #e7ebf2); border-color: var(--line); box-shadow: none; }
body.bnn-nx .bnn-leader__monogram { color: var(--brand); text-shadow: none; }
body.bnn-nx .bnn-frame { border-color: var(--line); box-shadow: 0 40px 90px -46px rgba(10, 15, 28, 0.45); }
body.bnn-nx .bnn-netchip { background: rgba(255, 255, 255, 0.85); }
body.bnn-nx .bnn-marquee__item:nth-of-type(even) { -webkit-text-stroke: 1px rgba(10, 15, 28, 0.5); }

/* Product pictures drawn for a dark page now draw for a light one */
body.bnn-nx .bnn-mo__bar--soft { fill: rgba(10, 15, 28, 0.14); }
body.bnn-nx .bnn-mo__track { fill: rgba(10, 15, 28, 0.08); }
body.bnn-nx .bnn-mo__ring-bg { stroke: rgba(10, 15, 28, 0.1); }
body.bnn-nx .bnn-mo__num { fill: var(--text); }
body.bnn-nx .bnn-mo__axis { stroke: rgba(10, 15, 28, 0.15); }
body.bnn-nx .bnn-mo__search, body.bnn-nx .bnn-mo__card { fill: rgba(10, 15, 28, 0.04); stroke: rgba(10, 15, 28, 0.14); }
body.bnn-nx .bnn-mo__avatar--alt { fill: rgba(10, 15, 28, 0.22); }
body.bnn-nx .bnn-mo__pill { fill: rgba(10, 15, 28, 0.1); }
body.bnn-nx .bnn-mo__links path { stroke: rgba(10, 15, 28, 0.2); }
body.bnn-nx .bnn-mo__nodes circle { fill: #fff; }
body.bnn-nx .bnn-mo__nodes .bnn-mo__node--hub { fill: var(--brand); }
body.bnn-nx .bnn-mo__dots circle { fill: rgba(10, 15, 28, 0.2); }
body.bnn-nx .bnn-m__node--hub circle { stroke: #f2f4f7; }
body.bnn-nx .bnn-m__node text { fill: var(--text); }
body.bnn-nx .na-pkt { fill: var(--brand); }
body.bnn-nx .na-node--solid + .na-core, body.bnn-nx .na-core { fill: #fff; }
body.bnn-nx .bnn-netbg::before { opacity: 0.08; }
body.bnn-nx .bnn-hero3__bg::before { opacity: 0.08; }
body.bnn-nx .bnn-footer .bnn-netbg::before { opacity: 0.3; }

/* --- Header and menus: light, solid, same as the homepage ------------------------ */
body.bnn-nx .bnn-header { background: rgba(242, 244, 247, 0.9); color: var(--text); }
body.bnn-nx .bnn-header.is-top:not(.has-panel-open):not(.is-open) { background: rgba(242, 244, 247, 0.9); }
body.bnn-nx .bnn-panel { background: #fff; box-shadow: 0 32px 60px -24px rgba(10, 15, 28, 0.3); }
body.bnn-nx .bnn-panel__item { background: var(--card-2); border-color: var(--line); }
body.bnn-nx a.bnn-panel__item:hover { background: #fff; border-color: var(--brand); }
body.bnn-nx .bnn-toggle { border-color: rgba(10, 15, 28, 0.3); border-radius: 999px; }
body.bnn-nx .bnn-menu__link, body.bnn-nx .bnn-nav .menu-item a { font-family: var(--f-body); font-weight: 600; font-size: 0.97rem; letter-spacing: 0; text-transform: none; }
body.bnn-nx .bnn-menu__item { border-radius: 999px; }
@media (max-width: 1359px) {
	body.bnn-nx .bnn-nav { background: #f8f9fb; }
}

/* --- Page headings sit under a solid header, so they need less top space ---------- */
body.bnn-nx .bnn-phero { padding-top: clamp(48px, 6vw, 96px); background: var(--bg); }
body.bnn-nx .bnn-hero3 { padding-top: clamp(28px, 5vw, 76px); }
body.bnn-nx .bnn-main { background: var(--bg); }
body.bnn-nx .bnn-section, body.bnn-nx .bnn-cta { background: var(--bg); }
body.bnn-nx .bnn-section--ruled { border-top-color: var(--line); }

/* --- Forms ------------------------------------------------------------------------ */
body.bnn-nx :is(.bnn-field input, .bnn-field select, .bnn-field textarea, .bnn-search__input, .bnn-comments .comment-form input[type="text"], .bnn-comments .comment-form input[type="email"], .bnn-comments .comment-form input[type="url"], .bnn-comments .comment-form textarea) { background: #fff; border: 1px solid #c3cad8; border-radius: var(--radius-sm); }
body.bnn-nx .bnn-field select option { background: #fff; color: var(--text); }
body.bnn-nx .bnn-subscribe { background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
body.bnn-nx .bnn-subscribe input[type="email"] { background: transparent; border: 0; border-radius: 999px; color: var(--text); }
body.bnn-nx .bnn-footer .bnn-subscribe { background: #111a2e; border-color: #26324f; }
body.bnn-nx .bnn-notice { background: rgba(31, 61, 224, 0.07); }
body.bnn-nx .bnn-notice--error { border-left-color: #c62828; background: rgba(198, 40, 40, 0.08); color: #7a1414; }
body.bnn-nx .bnn-subscribe__note--ok { color: #0b6b3a; }
body.bnn-nx .bnn-subscribe__note--err { color: #b3261e; }
body.bnn-nx .bnn-footer .bnn-subscribe__note--ok { color: #9be2ad; }
body.bnn-nx .bnn-footer .bnn-subscribe__note--err { color: #ffb4ae; }

/* ==========================================================================
   3.9.0 - Inner pages follow the homepage exactly
   Same ground, same type scale, same hairlines, same cards, same spacing.
   ========================================================================== */
body.bnn-nx {
	--nx-pad: clamp(20px, 5vw, 96px);
	--nx-ink: #0a0f1c;
	--nx-raised: #f8f9fb;
	--nx-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Page container: same side margins as the homepage */
body.bnn-nx .bnn-container { max-width: none; padding-inline: var(--nx-pad); }
body.bnn-nx .bnn-container--narrow { max-width: calc(860px + var(--nx-pad) * 2); margin-inline: auto; }
body.bnn-nx .bnn-container--medium { max-width: calc(1100px + var(--nx-pad) * 2); margin-inline: auto; }

/* Page heading: flat ground, big tight Bricolage title, mono eyebrow */
body.bnn-nx .bnn-phero { padding: clamp(28px, 5vw, 60px) 0 clamp(48px, 7vw, 96px); border-bottom: 0; background: var(--bg); overflow: visible; }
body.bnn-nx .bnn-phero .bnn-netbg { display: none; }
body.bnn-nx .bnn-phero__title { font-size: clamp(2.75rem, 5.6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
body.bnn-nx .bnn-phero--wide { --t: clamp(2.75rem, 5.6vw, 5.25rem); }
body.bnn-nx .bnn-phero--wide .bnn-phero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; column-gap: clamp(32px, 5vw, 96px); }
body.bnn-nx .bnn-phero--wide .bnn-phero__side { padding-top: 0; padding-bottom: 0.5rem; }
body.bnn-nx .bnn-phero .bnn-lead { margin-top: 0; max-width: 34em; font-size: clamp(1.125rem, 1.5vw, 1.3rem); font-weight: 400; line-height: 1.55; color: var(--nx-body); }
body.bnn-nx .bnn-phero .bnn-actions { margin-top: 28px; }
body.bnn-nx .bnn-phero .bnn-eyebrow { margin-bottom: 28px; }
body.bnn-nx .bnn-crumbs { margin-bottom: 22px; font-family: var(--nx-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-muted); }
body.bnn-nx .bnn-crumbs li + li::before { color: var(--nx-muted); }
body.bnn-nx .bnn-crumbs a:hover { color: var(--nx-accent); }
body.bnn-nx .bnn-eyebrow, body.bnn-nx .bnn-kicker { color: var(--nx-muted); }

/* Sections: same rhythm and heading scale as the homepage */
body.bnn-nx .bnn-section { padding-block: clamp(56px, 8vw, 112px); }
body.bnn-nx .bnn-section--tight { padding-block: clamp(40px, 5vw, 72px); }
body.bnn-nx .bnn-h2 { font-weight: 700; font-size: clamp(2.125rem, 3.8vw, 3.5rem); line-height: 1; letter-spacing: -0.035em; }
body.bnn-nx .bnn-sh { margin-bottom: clamp(32px, 4vw, 56px); }
body.bnn-nx .bnn-sh .bnn-h2 { max-width: 16em; }
body.bnn-nx .bnn-sh__body { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: end; }
body.bnn-nx .bnn-sh__body--solo, body.bnn-nx .bnn-sh--stack .bnn-sh__body { grid-template-columns: minmax(0, 1fr); }
body.bnn-nx .bnn-sh__lead .bnn-lead { font-size: 1.0625rem; line-height: 1.55; color: var(--nx-body); }
body.bnn-nx .bnn-sh__link, body.bnn-nx .bnn-link { color: var(--nx-ink); font-weight: 600; }
body.bnn-nx .bnn-sh__link:hover, body.bnn-nx .bnn-link:hover { color: var(--nx-accent); }
body.bnn-nx .bnn-arrow { color: var(--nx-accent); }
body.bnn-nx .bnn-section--white { background: var(--nx-raised); border-block: 1px solid var(--line); }

/* Strips and facts: raised band with hairlines, like the homepage strip */
body.bnn-nx .bnn-factbar { background: var(--nx-raised); border-color: var(--line); }
body.bnn-nx .bnn-factbar dt { font-family: var(--nx-mono); font-weight: 400; letter-spacing: 0.1em; color: var(--nx-muted); }
body.bnn-nx .bnn-factbar dd { font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }

/* Cards: same white, same radius */
body.bnn-nx :is(.bnn-card, .bnn-company, .bnn-post, .bnn-icard, .bnn-sc, .bnn-acard, .bnn-glance, .bnn-role, .bnn-empty-card, .bnn-form-wrap, .bnn-promo) { border-radius: 20px; }
body.bnn-nx :is(.bnn-icard__title, .bnn-acard__title, .bnn-company__name, .bnn-sc__name, .bnn-post__title, .bnn-step__title) { font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
body.bnn-nx .bnn-icard__icon { background: rgba(31, 61, 224, 0.08); color: var(--nx-accent); border-radius: 14px; }
body.bnn-nx .bnn-ctile, body.bnn-nx .bnn-leader__portrait, body.bnn-nx .bnn-area__art, body.bnn-nx .bnn-africa__visual { border-radius: 20px; border-color: var(--line); }

/* Numbered steps and principles: ink rule on top like the homepage list */
body.bnn-nx .bnn-steps { border-top: 1.5px solid var(--nx-ink); }
body.bnn-nx .bnn-step::before { display: none; }
body.bnn-nx .bnn-step { padding-top: 26px; }
body.bnn-nx .bnn-step__n { font-family: var(--nx-mono); font-weight: 400; letter-spacing: 0.14em; color: var(--nx-accent); }
body.bnn-nx .bnn-step p:last-child { color: var(--nx-body); font-weight: 400; }

/* Leadership */
body.bnn-nx .bnn-leader__name { font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
body.bnn-nx .bnn-leader__bio p { color: var(--nx-body); font-weight: 400; }

/* Body copy everywhere */
body.bnn-nx :is(.bnn-prose, .bnn-article__body) { color: var(--nx-body); font-weight: 400; }
body.bnn-nx :is(.bnn-prose, .bnn-article__body) :is(h2, h3, h4) { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--nx-ink); }
body.bnn-nx :is(.bnn-icard__text, .bnn-acard__text, .bnn-company__desc, .bnn-post__excerpt, .bnn-step p) { font-weight: 400; color: var(--nx-body); }

/* Dark call-to-action: same navy panel as the homepage */
body.bnn-nx .bnn-banner { border-radius: 28px; }
body.bnn-nx .bnn-banner__title { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; color: #f2f4f7; }
body.bnn-nx .bnn-banner__lead, body.bnn-nx .bnn-banner .bnn-eyebrow { color: #c9d2e6; }
body.bnn-nx .bnn-banner .bnn-btn--primary { background: var(--nx-gold); border-color: var(--nx-gold); color: var(--nx-navy); }
body.bnn-nx .bnn-banner .bnn-btn--primary:hover { background: #f0c16a; border-color: #f0c16a; }
body.bnn-nx .bnn-banner .bnn-btn--ghost { color: #f2f4f7; border-color: rgba(242, 244, 247, 0.6); }
body.bnn-nx .bnn-banner .bnn-btn--ghost:hover { background: #f2f4f7; color: var(--nx-navy); }

@media (max-width: 899px) {
	body.bnn-nx .bnn-phero--wide .bnn-phero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
	body.bnn-nx .bnn-sh__body { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: left-aligned like the homepage (older rules centred everything) */
@media (max-width: 899px) {
	body.bnn-nx .bnn-main :is(.bnn-phero, .bnn-section, .bnn-cta, .bnn-sh, .bnn-factbar, .bnn-leader__text, .bnn-icard, .bnn-acard, .bnn-company, .bnn-post, .bnn-step, .bnn-contact__intro, .bnn-article, .bnn-empty-card) { text-align: left; }
	body.bnn-nx .bnn-main :is(.bnn-phero .bnn-eyebrow, .bnn-crumbs, .bnn-crumbs ol, .bnn-actions, .bnn-chips, .bnn-sc__links, .bnn-sc__meta, .bnn-post__meta, .bnn-share, .bnn-company__name, .bnn-leader__text .bnn-actions, .bnn-checklist li) { justify-content: flex-start; text-align: left; }
	body.bnn-nx .bnn-main :is(.bnn-phero__title, .bnn-phero .bnn-lead, .bnn-h2, .bnn-lead, .bnn-post__title, .bnn-post__excerpt, .bnn-icard__title, .bnn-icard__text, .bnn-factbar dt, .bnn-factbar dd, .bnn-leader__name, .bnn-leader__role, .bnn-step__title, .bnn-note) { text-align: left; margin-inline: 0; }
	body.bnn-nx .bnn-main .bnn-factbar__grid > div { flex-direction: column; align-items: flex-start; text-align: left; }
	body.bnn-nx .bnn-phero__title { font-size: clamp(2.5rem, 11vw, 3.5rem); }
}
@media (max-width: 899px) {
	body.bnn-nx .bnn-main :is(.bnn-post__body, .bnn-post__body *, .bnn-post__meta) { text-align: left; justify-content: flex-start; }
	body.bnn-nx .bnn-phero .bnn-lead { margin-top: 20px; }
}
