/* Corenexis shared header and footer, version 2.
   Rendered by global-v2.js from nav-v2.json and footer-v2.json; every class is
   prefixed with cnx2- so it never collides with a site's own styles.
   A page can ask for the transparent header over a dark hero with
   <body data-cnx-header="dark">. The header is 64px tall; sites add their own
   top padding (or use the --cnx2-h variable). */

:root { --cnx2-h: 64px; --cnx2-brand: #fe5940; --cnx2-brand-d: #e3452d; --cnx2-navy: #000b36; --cnx2-ink: #0f172a; --cnx2-muted: #64748b; --cnx2-line: rgba(15, 23, 42, .08); }

.cnx2-header, .cnx2-header *, .cnx2-sheet, .cnx2-sheet *, .cnx2-ft, .cnx2-ft *, .cnx2-ov, .cnx2-ov * { box-sizing: border-box; }
.cnx2-header { position: fixed; inset: 0 0 auto 0; z-index: 9000; height: var(--cnx2-h); font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--cnx2-line); transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.cnx2-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(0, 11, 54, .45); }
.cnx2-in { position: relative; max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cnx2-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.cnx2-logo img { height: 26px; width: auto; display: block; }
.cnx2-logo .on-dark { display: none; }
.cnx2-name { font-size: 24px; font-weight: 700; letter-spacing: 0; line-height: 1; color: var(--cnx2-navy); }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-name, .cnx2-ft .cnx2-name { color: #fff; }
.cnx2-tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cnx2-brand); background: rgba(254, 89, 64, .1); padding: 3px 8px; border-radius: 999px; }

/* Pill navigation */
.cnx2-nav { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, .07); background: rgba(255, 255, 255, .7); box-shadow: 0 8px 30px -14px rgba(0, 11, 54, .25); }
.cnx2-item { position: static; }
.cnx2-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 15px; border-radius: 999px; border: 0; background: none; font-family: inherit; font-weight: 500; font-size: 15px; color: #475569; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.cnx2-link:hover, .cnx2-item.is-open > .cnx2-link { background: #fff; color: var(--cnx2-ink); }
.cnx2-link.is-active { color: var(--cnx2-brand); }
.cnx2-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.cnx2-item.is-open > .cnx2-link svg { transform: rotate(180deg); }

/* Dropdown panels */
.cnx2-panel { position: absolute; top: calc(100% - 2px); left: 50%; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.cnx2-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.cnx2-item.is-open .cnx2-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.cnx2-box { max-width: calc(100vw - 32px); max-height: calc(100vh - 90px); overflow: auto; background: #fff; border: 1px solid rgba(15, 23, 42, .07); border-radius: 24px; padding: 10px; box-shadow: 0 30px 70px -24px rgba(0, 11, 54, .35); color: var(--cnx2-ink); }
.cnx2-cards { display: grid; grid-template-columns: repeat(3, 260px); gap: 8px; }
.cnx2-card { display: flex; flex-direction: column; padding: 16px; border-radius: 18px; text-decoration: none; color: inherit; transition: background .15s ease; }
.cnx2-card:hover { background: #f6f7fb; }
.cnx2-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cnx2-card b { display: block; margin-top: 12px; font-size: 16px; }
.cnx2-card p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--cnx2-muted); }
.cnx2-chip { font-size: 11px; font-weight: 600; color: var(--cnx2-muted); background: #f1f3f9; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.cnx2-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 0 16px 14px; }
.cnx2-sub a { font-size: 13px; font-weight: 500; color: #475569; text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid #e5e7ef; transition: border-color .15s, color .15s; }
.cnx2-sub a:hover { border-color: var(--cnx2-brand); color: var(--cnx2-brand); }
.cnx2-cardwrap { display: flex; flex-direction: column; border-radius: 18px; }
.cnx2-cardwrap:hover { background: #f6f7fb; }
.cnx2-cardwrap .cnx2-card:hover { background: transparent; }
.cnx2-list { display: grid; grid-template-columns: repeat(2, 270px); gap: 4px; }
.cnx2-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; text-decoration: none; color: inherit; transition: background .15s ease; }
.cnx2-row:hover { background: #f6f7fb; }
.cnx2-row b { display: block; font-size: 15px; }
.cnx2-row > span:not(.cnx2-ico) span, .cnx2-row > span:not(.cnx2-ico) b { display: block; } .cnx2-row > span:not(.cnx2-ico) span { font-size: 13px; color: var(--cnx2-muted); margin-top: 2px; }
.cnx2-groups { display: grid; grid-template-columns: repeat(2, 230px); gap: 8px; }
.cnx2-gname { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; }
.cnx2-groups .cnx2-row { align-items: center; padding: 9px 12px; }
.cnx2-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(254, 89, 64, .1); color: var(--cnx2-brand); }
.cnx2-ico svg { width: 19px; height: 19px; }
.cnx2-ico.t-blue { background: rgba(47, 79, 181, .1); color: #2f4fb5; }
.cnx2-ico.t-green { background: rgba(12, 143, 106, .1); color: #0c8f6a; }
.cnx2-ico.t-plain { background: #f1f3f9; color: #475569; }
.cnx2-groups .cnx2-ico { width: 32px; height: 32px; border-radius: 10px; }
.cnx2-groups .cnx2-ico svg { width: 16px; height: 16px; }

/* Actions */
.cnx2-acts { display: flex; align-items: center; gap: 8px; flex: none; }
.cnx2-search { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid transparent; background: none; color: #475569; font-family: inherit; font-weight: 500; font-size: 14px; cursor: pointer; transition: background .15s ease; }
.cnx2-search:hover { background: rgba(15, 23, 42, .05); }
.cnx2-search svg { width: 18px; height: 18px; }
.cnx2-kbd { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: rgba(15, 23, 42, .06); color: #64748b; }
.cnx2-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease; }
.cnx2-btn:hover { transform: translateY(-1px); }
.cnx2-btn.s-solid { background: var(--cnx2-brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(254, 89, 64, .8); }
.cnx2-btn.s-solid:hover { background: var(--cnx2-brand-d); }
.cnx2-btn.s-ghost { color: #334155; }
.cnx2-btn.s-ghost:hover { background: rgba(15, 23, 42, .05); }
.cnx2-burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; color: var(--cnx2-ink); cursor: pointer; place-items: center; }
.cnx2-burger svg { width: 24px; height: 24px; }

/* Transparent header over a dark hero, until the page scrolls */
.cnx2-header.is-dark:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-logo .on-light { display: none; }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-logo .on-dark { display: block; }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-nav { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-nav > .cnx2-item > .cnx2-link { color: rgba(255, 255, 255, .82); }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-nav > .cnx2-item > .cnx2-link:hover,
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-nav > .cnx2-item.is-open > .cnx2-link { background: rgba(255, 255, 255, .12); color: #fff; }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-search,
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-btn.s-ghost,
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-burger { color: #fff; }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-kbd { background: rgba(255, 255, 255, .14); color: #e2e8f0; }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-search:hover,
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-btn.s-ghost:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 1080px) {
  .cnx2-nav, .cnx2-btn.s-ghost, .cnx2-search-label, .cnx2-kbd { display: none; }
  .cnx2-search { width: 42px; padding: 0; justify-content: center; }
  .cnx2-burger { display: grid; }
}
@media (max-width: 480px) { .cnx2-acts .cnx2-btn.s-solid { display: none; } }

/* Mobile bottom sheet */
.cnx2-sheet { position: fixed; inset: 0; z-index: 9500; display: none; font-family: 'Jost', system-ui, sans-serif; }
.cnx2-sheet.is-open { display: block; }
.cnx2-sheet-bg { position: absolute; inset: 0; background: rgba(0, 11, 54, .5); backdrop-filter: blur(4px); animation: cnx2-fade .2s ease; }
.cnx2-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 10px 16px max(env(safe-area-inset-bottom), 18px); box-shadow: 0 -20px 60px -20px rgba(0, 11, 54, .4); animation: cnx2-up .26s cubic-bezier(.2, .8, .2, 1); color: var(--cnx2-ink); }
.cnx2-grab { width: 40px; height: 4px; border-radius: 4px; background: #e2e8f0; margin: 4px auto 12px; }
.cnx2-acc { border-bottom: 1px solid #f1f3f9; }
.cnx2-acc > button, .cnx2-acc > a { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; border: 0; background: none; font-family: inherit; font-weight: 600; font-size: 17px; color: inherit; text-decoration: none; cursor: pointer; }
.cnx2-acc > button svg { width: 18px; height: 18px; transition: transform .2s ease; }
.cnx2-acc.is-open > button svg { transform: rotate(180deg); }
.cnx2-acc-body { display: none; padding: 0 0 10px; }
.cnx2-acc.is-open .cnx2-acc-body { display: grid; gap: 2px; }
.cnx2-acc-body .cnx2-row { padding: 10px 8px; }
.cnx2-sheet-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cnx2-sheet-cta .cnx2-btn { height: 48px; border-radius: 16px; }
.cnx2-sheet-cta .s-ghost { border: 1px solid #e5e7ef; }
@keyframes cnx2-up { from { transform: translateY(100%); } }
@keyframes cnx2-fade { from { opacity: 0; } }
body.cnx2-lock { overflow: hidden; }

/* Search overlay (Ctrl+K) */
.cnx2-ov { position: fixed; inset: 0; z-index: 9800; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(0, 11, 54, .5); backdrop-filter: blur(6px); font-family: 'Jost', system-ui, sans-serif; }
.cnx2-ov.is-open { display: flex; }
.cnx2-ov-panel { width: 100%; max-width: 640px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 11, 54, .6); animation: cnx2-fade .15s ease; }
.cnx2-ov-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #f1f3f9; color: #94a3b8; }
.cnx2-ov-box svg { width: 20px; height: 20px; flex: none; }
.cnx2-ov-box input { flex: 1; border: 0; outline: none; font-family: inherit; font-size: 17px; color: var(--cnx2-ink); background: none; }
.cnx2-ov-res { max-height: 56vh; overflow-y: auto; padding: 8px; }
.cnx2-ov-msg { padding: 22px 14px; text-align: center; color: #94a3b8; font-size: 15px; }
.cnx2-res { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: inherit; }
.cnx2-res:hover, .cnx2-res.is-sel { background: #f6f7fb; }
.cnx2-res-h { display: flex; align-items: center; gap: 8px; }
.cnx2-res-t { font-weight: 600; color: var(--cnx2-ink); }
.cnx2-res-b { font-size: 11px; font-weight: 700; color: var(--cnx2-brand); background: rgba(254, 89, 64, .1); padding: 2px 8px; border-radius: 999px; }
.cnx2-res-d { margin-top: 2px; font-size: 13.5px; color: var(--cnx2-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Footer */
.cnx2-ft { font-family: 'Jost', system-ui, sans-serif; background: radial-gradient(120% 120% at 100% 0%, #14246b 0%, #000b36 55%, #000824 100%); color: #94a3b8; padding: 64px 0 28px; }
.cnx2-ft-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.cnx2-ft-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; }

.cnx2-ft-brand .cnx2-name { font-size: 25px; }
.cnx2-ft-brand p { margin: 16px 0 22px; max-width: 340px; font-size: 15px; line-height: 1.6; }
.cnx2-ft-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cnx2-ft-acts a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.cnx2-ft-acts .a-solid { background: var(--cnx2-brand); color: #fff; }
.cnx2-ft-acts .a-glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.cnx2-ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 32px; gap: 24px; }
.cnx2-ft-cols h4 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.cnx2-ft-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cnx2-ft-cols a { color: #94a3b8; text-decoration: none; font-size: 15px; transition: color .15s ease; }
.cnx2-ft-cols a:hover { color: #fff; }
.cnx2-ft-bot { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.cnx2-ft-bot p { margin: 0; }
.cnx2-soc { display: flex; gap: 8px; }
.cnx2-soc a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #cbd5e1; background: rgba(255, 255, 255, .06); transition: background .15s ease, color .15s ease; }
.cnx2-soc a:hover { background: var(--cnx2-brand); color: #fff; }
.cnx2-soc svg { width: 17px; height: 17px; }
@media (max-width: 900px) { .cnx2-ft-top { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 560px) { .cnx2-ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: each footer link becomes a 40px row so it is easy to tap; the list gap shrinks to keep the rhythm. */
@media (max-width: 767px) {
  .cnx2-ft-cols ul { gap: 0; }
  .cnx2-ft-cols h4 { margin-bottom: 6px; }
  .cnx2-ft-cols a { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; }
  .cnx2-soc a { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .cnx2-panel, .cnx2-sheet-panel, .cnx2-sheet-bg, .cnx2-ov-panel { transition: none; animation: none; }
}

/* ---------- wordmark colour schemes (CNX.wordmark = 1..4) ---------- */
.cnx2-name .a, .cnx2-name .b { color: inherit; }
.cnx2-name.wm-1 .a { color: var(--cnx2-navy); } .cnx2-name.wm-1 .b { color: var(--cnx2-brand); }
.cnx2-name.wm-2 .a { color: var(--cnx2-brand); } .cnx2-name.wm-2 .b { color: var(--cnx2-navy); }
.cnx2-name.wm-3 .a { color: var(--cnx2-navy); }
.cnx2-name.wm-3 .b { background: linear-gradient(90deg, #fe5940, #ff9a5c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cnx2-name.wm-4 .a { color: var(--cnx2-brand); } .cnx2-name.wm-4 .b { color: #2f4fb5; }
/* On dark surfaces the navy half turns white (and the blue lightens). */
.cnx2-ft .cnx2-name.wm-1 .a, .cnx2-ft .cnx2-name.wm-3 .a, .cnx2-ft .cnx2-name.wm-2 .b,
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-name.wm-1 .a, .cnx2-header.is-dark:not(.is-scrolled) .cnx2-name.wm-3 .a, .cnx2-header.is-dark:not(.is-scrolled) .cnx2-name.wm-2 .b,
[data-theme='dark'] .cnx2-name.wm-1 .a, [data-theme='dark'] .cnx2-name.wm-3 .a, [data-theme='dark'] .cnx2-name.wm-2 .b { color: #fff; }
.cnx2-ft .cnx2-name.wm-4 .b, .cnx2-header.is-dark:not(.is-scrolled) .cnx2-name.wm-4 .b, [data-theme='dark'] .cnx2-name.wm-4 .b { color: #8ea6ff; }

/* ---------- theme button ---------- */
.cnx2-theme { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: #475569; cursor: pointer; display: grid; place-items: center; transition: background .15s ease; }
.cnx2-theme:hover { background: rgba(15, 23, 42, .05); }
.cnx2-theme svg { width: 19px; height: 19px; }
.cnx2-header.is-dark:not(.is-scrolled) .cnx2-theme { color: #fff; }

/* ---------- panel intro column, ecosystem bar, compact rows ---------- */
.cnx2-panel-in { display: flex; gap: 8px; }
.cnx2-intro { width: 230px; flex: none; padding: 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(254, 89, 64, .1), rgba(254, 89, 64, .02)); display: flex; flex-direction: column; }
.cnx2-intro b { font-size: 17px; }
.cnx2-intro p { margin: 6px 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--cnx2-muted); }
.cnx2-intro a { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--cnx2-brand); text-decoration: none; }
.cnx2-intro a svg { width: 15px; height: 15px; }
.cnx2-groups { grid-template-columns: repeat(var(--cols, 2), 220px); }
.cnx2-row.no-ico { padding: 8px 12px; }
.cnx2-row.no-ico b { font-size: 14.5px; font-weight: 600; }
.cnx2-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; padding: 12px 16px 6px; border-top: 1px solid #f1f3f9; }
.cnx2-more span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; margin-right: 6px; }
.cnx2-more a { font-size: 13px; font-weight: 500; color: #475569; text-decoration: none; padding: 5px 10px; border-radius: 999px; background: #f6f7fb; }
.cnx2-more a:hover { color: var(--cnx2-brand); }

/* ---------- dark theme ---------- */
[data-theme='dark'] { --cnx2-ink: #e2e8f0; --cnx2-muted: #94a3b8; --cnx2-line: rgba(255, 255, 255, .08); }
[data-theme='dark'] .cnx2-header { background: rgba(7, 13, 28, .82); }
[data-theme='dark'] .cnx2-nav { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
[data-theme='dark'] .cnx2-link, [data-theme='dark'] .cnx2-search, [data-theme='dark'] .cnx2-btn.s-ghost, [data-theme='dark'] .cnx2-theme, [data-theme='dark'] .cnx2-burger { color: #cbd5e1; }
[data-theme='dark'] .cnx2-link:hover, [data-theme='dark'] .cnx2-item.is-open > .cnx2-link { background: rgba(255, 255, 255, .1); color: #fff; }
[data-theme='dark'] .cnx2-search:hover, [data-theme='dark'] .cnx2-btn.s-ghost:hover, [data-theme='dark'] .cnx2-theme:hover { background: rgba(255, 255, 255, .08); }
[data-theme='dark'] .cnx2-kbd { background: rgba(255, 255, 255, .1); color: #cbd5e1; }
[data-theme='dark'] .cnx2-box, [data-theme='dark'] .cnx2-sheet-panel, [data-theme='dark'] .cnx2-ov-panel { background: #0f1830; border-color: rgba(255, 255, 255, .08); color: #e2e8f0; }
[data-theme='dark'] .cnx2-card:hover, [data-theme='dark'] .cnx2-cardwrap:hover, [data-theme='dark'] .cnx2-row:hover, [data-theme='dark'] .cnx2-res:hover, [data-theme='dark'] .cnx2-res.is-sel { background: rgba(255, 255, 255, .05); }
[data-theme='dark'] .cnx2-chip, [data-theme='dark'] .cnx2-more a { background: rgba(255, 255, 255, .07); color: #cbd5e1; }
[data-theme='dark'] .cnx2-sub a { border-color: rgba(255, 255, 255, .12); color: #cbd5e1; }
[data-theme='dark'] .cnx2-more, [data-theme='dark'] .cnx2-acc, [data-theme='dark'] .cnx2-ov-box { border-color: rgba(255, 255, 255, .08); }
[data-theme='dark'] .cnx2-ico.t-plain { background: rgba(255, 255, 255, .07); color: #cbd5e1; }
[data-theme='dark'] .cnx2-intro { background: linear-gradient(160deg, rgba(254, 89, 64, .16), rgba(254, 89, 64, .03)); }
[data-theme='dark'] .cnx2-ov-box input { color: #fff; }
[data-theme='dark'] .cnx2-grab { background: rgba(255, 255, 255, .15); }
[data-theme='dark'] .cnx2-sheet-cta .s-ghost { border-color: rgba(255, 255, 255, .15); }
[data-theme='dark'] .cnx2-logo .on-light { display: none; }
[data-theme='dark'] .cnx2-logo .on-dark { display: block; }

/* ---------- logo intro: the CN mark is written, then becomes the wordmark ---------- */
.cnx2-logo { position: relative; }
/* The wordmark is only 24px tall; an invisible margin gives it a touch-sized hit area. */
.cnx2-logo::after { content: ''; position: absolute; inset: -10px -6px; }
.cnx2-intro-mark { position: absolute; left: 0; top: 2px; height: 18px; pointer-events: none; } /* cap height of the 24px wordmark, sitting on its baseline */
.cnx2-intro-mark svg { height: 100%; width: auto; display: block; overflow: visible; }
.cnx2-intro-mark .o { fill: #fe5940; }
.cnx2-intro-mark .d { fill: #17171f; }
[data-theme='dark'] .cnx2-intro-mark .d, .cnx2-header.is-dark:not(.is-scrolled) .cnx2-intro-mark .d { fill: #fff; }
.cnx2-ink { fill: none; stroke: #fff; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cnx2-ink.c { stroke-width: 270; }
.cnx2-ink.n { stroke-width: 250; stroke-linejoin: round; }
circle.cnx2-ink, rect.cnx2-ink { stroke: none; fill: #fff; }
circle.cnx2-ink { transform-box: fill-box; transform-origin: center; transform: scale(0); }
rect.cnx2-ink { opacity: 0; }
.cnx2-logo.is-intro .cnx2-ink.c { animation: cnx2-draw .7s cubic-bezier(.6, 0, .4, 1) .15s forwards; }
.cnx2-logo.is-intro .cnx2-ink.n { animation: cnx2-draw .85s cubic-bezier(.6, 0, .4, 1) .7s forwards; }
.cnx2-logo.is-intro circle.cnx2-ink { animation: cnx2-pop .35s cubic-bezier(.3, 1.6, .5, 1) 1.45s forwards; }
.cnx2-logo.is-intro rect.cnx2-ink { animation: cnx2-fill .2s ease 1.7s forwards; }
.cnx2-logo.is-intro .cnx2-intro-mark { animation: cnx2-mark-out .3s ease 2s forwards; }
.cnx2-logo.is-intro .cnx2-name { clip-path: inset(0 100% 0 0); animation: cnx2-reveal .7s cubic-bezier(.2, .7, .2, 1) 2.25s forwards; }
@keyframes cnx2-draw { to { stroke-dashoffset: 0; } }
@keyframes cnx2-pop { to { transform: scale(1); } }
@keyframes cnx2-fill { to { opacity: 1; } }
@keyframes cnx2-mark-out { to { opacity: 0; transform: translateX(-8px) scale(.7); visibility: hidden; } }
@keyframes cnx2-reveal { to { clip-path: inset(0 0 0 0); } }
/* Footer: CN mark at text height, then the wordmark. */
.cnx2-ft-brand .cnx2-logo { gap: 9px; }
.cnx2-ft-brand .cnx2-logo img { height: 22px; }

/* ---------- compact menus: one-line descriptions, slimmer intro ---------- */
.cnx2-groups { grid-template-columns: repeat(var(--cols, 2), 248px); gap: 4px 8px; }
.cnx2-row { padding: 9px 12px; gap: 11px; align-items: center; }
.cnx2-row > span:not(.cnx2-ico) { min-width: 0; }
.cnx2-row > span:not(.cnx2-ico) span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cnx2-row b { font-size: 14.5px; }
.cnx2-ico { width: 34px; height: 34px; border-radius: 11px; }
.cnx2-ico svg { width: 17px; height: 17px; }
.cnx2-intro { width: 210px; padding: 16px; }
.cnx2-intro p { margin-bottom: 12px; }
.cnx2-gname { padding: 8px 12px 2px; }

/* Phones and tablets: the bottom sheet lists each menu's groups with headings. */
.cnx2-acc-body .cnx2-gname { padding: 10px 8px 2px; }
.cnx2-acc-body .cnx2-row { padding: 8px; }
.cnx2-acc-body .cnx2-more { padding: 10px 8px 4px; }
.cnx2-acc-body .cnx2-more a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; } /* touch-sized chips in the sheet */
@media (max-width: 1080px) {
  .cnx2-sheet-panel { padding-left: 14px; padding-right: 14px; }
  .cnx2-acc > button, .cnx2-acc > a { padding: 13px 6px; font-size: 16px; }
}

/* ---------- product logos in menu tiles ---------- */
.cnx2-ico.has-logo { background: #fff; border: 1px solid rgba(15, 23, 42, .08); overflow: hidden; }
.cnx2-ico.has-logo img { display: block; max-width: 72%; max-height: 60%; width: auto; height: auto; }
.cnx2-ico.has-logo img[src*='cashly-icon'] { max-width: none; max-height: none; width: 100%; height: 100%; }
.cnx2-card .cnx2-ico.has-logo { width: 42px; height: 42px; border-radius: 13px; }
[data-theme='dark'] .cnx2-ico.has-logo { background: #fff; border-color: rgba(255, 255, 255, .15); }

/* ---------- hover feedback on every menu entry ---------- */
.cnx2-cardwrap, .cnx2-row { transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.cnx2-cardwrap:hover { background: rgba(254, 89, 64, .06); box-shadow: inset 0 0 0 1px rgba(254, 89, 64, .18); }
.cnx2-cardwrap:hover .cnx2-card b { color: var(--cnx2-brand); }
.cnx2-row:hover { background: rgba(254, 89, 64, .07); transform: translateX(2px); }
.cnx2-row:hover b { color: var(--cnx2-brand); }
.cnx2-row:hover .cnx2-ico:not(.has-logo) { background: var(--cnx2-brand); color: #fff; }
.cnx2-more a:hover, .cnx2-sub a:hover { background: rgba(254, 89, 64, .1); border-color: rgba(254, 89, 64, .35); }
[data-theme='dark'] .cnx2-cardwrap:hover, [data-theme='dark'] .cnx2-row:hover { background: rgba(254, 89, 64, .12); }

/* ---------- search: icon plus the shortcut, no label ---------- */
.cnx2-search { gap: 7px; padding: 0 8px 0 11px; }
@media (prefers-reduced-motion: reduce) { .cnx2-row:hover { transform: none; } }

/* Mobile sheet: rows never grow wider than the sheet, and descriptions wrap
   instead of forcing a sideways scroll. */
.cnx2-sheet-panel { overflow-x: hidden; }
.cnx2-acc-body, .cnx2-sheet .cnx2-row, .cnx2-sheet .cnx2-more { min-width: 0; max-width: 100%; }
.cnx2-sheet .cnx2-row > span:not(.cnx2-ico) { flex: 1 1 auto; }
.cnx2-sheet .cnx2-row > span:not(.cnx2-ico) span { white-space: normal; overflow-wrap: anywhere; }
