/* Theme, identity and spatial presentation layer, scoped to atlas-next.html. */
:root{--surface:#fff;--surface-raised:#F8FBFF;--surface-tint:#E3EDFF;--action:#1746E8;--on-color:#142C54;color-scheme:light}
:root[data-theme="dark"]{--bg:#101827;--surface:#182338;--surface-raised:#1D2B43;--surface-tint:#213451;--ink:#E8EFFB;--muted:#AFBED5;--line:#34465F;--blue:#9BB8FF;--action:#2C58E8;--white:#182338;color-scheme:dark}
.nx-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:38px;padding:6px 11px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:12px;white-space:nowrap}
.nx-theme-toggle>span:first-child{font-size:20px;line-height:1}
.nx-logo{display:inline-block;width:36px;height:36px;object-fit:contain;vertical-align:middle;background:#fff;padding:5px;border:1px solid #D6DFEE;border-radius:9px;flex:none}
.nx-logo-fallback{display:inline-grid;place-items:center;width:36px;height:36px;background:var(--surface-tint);color:var(--ink);border-radius:8px;font-size:13px}
.nx-roster-item i{background:transparent!important}.nx-roster-item .nx-logo{width:32px;height:32px;padding:4px;border-radius:7px}
.nx-logo-heading{display:flex;align-items:center;gap:12px}.nx-logo-heading>span{min-width:0;overflow-wrap:anywhere}
.at-table .nx-logo{width:28px;height:28px;padding:3px;border-radius:6px}.at-table .nx-logo-heading{gap:9px}
.nx-company-cover h1>.nx-logo{width:52px;height:52px;padding:8px;border-radius:12px}
.nx-identity-source{display:block;margin:-4px 0 16px;font-size:11px;text-decoration:underline;text-underline-offset:3px;color:inherit;opacity:.85}
.af-company-monogram,.af-hub-mark{background:transparent!important;border:0!important}.af-company-monogram .nx-logo,.af-hub-mark .nx-logo{width:100%;height:100%;padding:4px}
.at-detail-title .nx-logo-heading{align-items:flex-start;gap:9px}.at-detail-title .nx-logo{width:36px;height:36px}.at-detail-title .nx-identity-source{margin:12px 0 0;font-size:12px}
.nx-key-people{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.nx-key-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.nx-key-grid article{min-width:0;background:var(--surface-raised);border:1px solid var(--line);border-radius:12px;padding:9px 9px 15px;box-shadow:0 5px 0 color-mix(in srgb,var(--line) 45%,transparent)}
.nx-key-grid h3{font-size:16px;margin:15px 5px 8px;overflow-wrap:anywhere}.nx-key-grid p{font-size:12px!important;line-height:1.7;margin:0 5px;color:var(--muted)}
.nx-leader-photo{margin:0 0 18px;position:relative;border-radius:9px;overflow:hidden;background:#fff;box-shadow:0 7px 20px #09112424}
.nx-leader-photo img{width:100%;height:190px;object-fit:cover;object-position:50% 28%}.nx-leader-photo.is-event img{object-fit:contain;background:#0E192A}
.nx-leader-photo figcaption{padding:7px 9px;background:#102039;color:#D7E6FF;font-size:10px;line-height:1.5}
.nx-leader-photo figcaption a{color:inherit;font-size:10px;text-underline-offset:3px}
.af-leader-card{box-shadow:0 6px 0 #9DAED52B,0 14px 30px #11244915;border:1px solid #445C7D}
.nx-key-grid .nx-leader-photo{margin-bottom:10px}.nx-key-grid .nx-leader-photo img{height:155px}
.nx-contact>div.nx-contact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
.nx-contact-card{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:13px;min-width:0}
.nx-contact-label{color:var(--muted);font-size:12px!important;margin-bottom:12px}.nx-contact-card>strong{display:block;font-size:20px;overflow-wrap:anywhere}
.nx-contact-card>small{font-size:13px!important}.nx-contact-action{display:inline-block;margin-top:20px;color:var(--blue);font-size:14px;text-decoration:underline;text-underline-offset:4px}
.nx-qr-button{background:var(--surface-raised);border:1px solid var(--line);border-radius:10px;padding:12px;display:flex;align-items:center;gap:18px;width:100%;text-align:left;margin-top:19px}
.nx-qr-button img{width:110px;height:150px;object-fit:contain;background:white;border-radius:5px;flex:none}.nx-qr-button span{font-size:14px!important;color:var(--blue)}
.nx-contact-dialog{width:min(720px,calc(100vw - 28px));max-height:92dvh;overflow:auto;margin:auto;border:1px solid var(--line);padding:24px;border-radius:18px;background:var(--surface);color:var(--ink)}
.nx-contact-dialog::backdrop{background:#061020B3;backdrop-filter:blur(8px)}.nx-contact-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;position:sticky;top:-24px;background:var(--surface);padding:10px 0}
.nx-contact-dialog h2{font-size:20px}.nx-contact-dialog-head button{width:36px;height:36px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--surface-tint)}
.nx-contact-dialog>p{font-size:13px;color:var(--muted);margin:10px 0 18px}.nx-contact-original{width:100%;height:auto;max-height:64dvh;object-fit:contain;background:white;border-radius:10px}.nx-contact-dialog>a{display:block;text-align:center;padding:17px 0 0;color:var(--blue);text-decoration:underline;font-size:14px}
.nx-depth{transform-style:preserve-3d;transition:transform .22s ease,box-shadow .22s ease}
.nx-scene-stack{transform:perspective(1100px) rotateX(var(--tilt-x,5deg)) rotateY(var(--tilt-y,-7deg));box-shadow:16px 24px 35px #071D7540}
.nx-scene-stack:hover{transform:perspective(1100px) rotateX(var(--tilt-x,5deg)) rotateY(var(--tilt-y,-7deg))}
.nx-scene-stack .layer-back{transform:translate(-22px,-20px) rotate(-4deg) translateZ(-40px)}
.nx-scene-stack .layer-middle{transform:translate(-11px,-10px) rotate(-2deg) translateZ(-20px)}
.nx-company-cover figure.nx-depth{transform:perspective(1000px) rotateX(var(--tilt-x,4deg)) rotateY(var(--tilt-y,-5deg));box-shadow:8px 10px 0 color-mix(in srgb,var(--company-color) 70%,#496B9D),18px 24px 35px #142C5426}
.nx-company-visual.nx-depth{transform:perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));border-bottom:5px solid color-mix(in srgb,var(--company-color) 80%,#42689A)}
.nx-company-visual .nx-chips{box-shadow:0 6px 15px #10295633;border-radius:15px;transform:translateZ(16px)}
.nx-featured-item:hover .nx-logo{transform:none}.nx-path{box-shadow:0 5px 0 color-mix(in srgb,var(--path-bg) 80%,#56719C);margin-bottom:5px}
.nx-display-switch{display:inline-flex;align-self:flex-end;gap:4px;background:#082F9A80;border:1px solid #8DAAFF77;padding:3px;border-radius:9px;margin:0 5px 26px}
.nx-display-switch button{border:0;border-radius:6px;background:transparent;color:#DCE8FF;font-size:11px;padding:7px 12px;min-height:34px}.nx-display-switch button[aria-pressed=true]{background:#fff;color:#143D9A}
.nx-scene-top{margin-bottom:12px}.nx-spatial-host{margin:0 0 17px;border:1px solid #88ACFF80;border-radius:13px;overflow:hidden;background:radial-gradient(ellipse at 55% 15%,#304FA0,#101E45 78%);color:#E9F0FF;min-height:320px}
.nx-spatial-stage{height:265px;position:relative;touch-action:pan-y;cursor:grab;outline-offset:-4px!important}.nx-spatial-stage:active{cursor:grabbing}.nx-spatial-stage canvas{display:block;width:100%;height:100%;pointer-events:none}
.nx-spatial-note{position:absolute;left:13px;top:10px;font-size:10px;color:#C6D9FF;pointer-events:none}.nx-spatial-controls{display:flex;align-items:center;gap:6px;padding:9px 12px;border-top:1px solid #6584C177;background:#102249;flex-wrap:wrap}
.nx-spatial-controls button{border:1px solid #6E8DC1;border-radius:5px;padding:5px 9px;font-size:11px;color:#CFDDFA;background:transparent;min-height:32px}.nx-spatial-controls button[aria-pressed=true]{background:#D7E7FF;color:#142C54}.nx-spatial-controls button[data-spatial-reset]{margin-left:auto}
.nx-spatial-hint{padding:5px 12px 10px;font-size:10px;color:#C4D5F5;line-height:1.6}.nx-spatial-host>p{padding:35px 20px;font-size:14px}
.nx-logo{color-scheme:light}
.nx-spatial-host>p.nx-spatial-hint{padding:5px 12px 10px;font-size:10px}
/* Night palette: preserve category hues and the official images themselves. */
[data-theme="dark"] :is(.nx-rail,.nx-toolbar){background:var(--surface)}
[data-theme="dark"] :is(.nx-quick-search,.nx-featured-item,.nx-company-roster,.nx-company-detail,.nx-compare,.nx-about-intro,.nx-contact-card,.nx-company-flow,#global-search,#global-results>button){background:var(--surface);border-color:var(--line)}
[data-theme="dark"] :is(.nx-connections,.nx-company-team,.nx-contact,.nx-method,.nx-compare-bar){background:var(--surface-tint);border-color:var(--line)}
[data-theme="dark"] :is(.nx-rail nav a:hover,.nx-roster-item:hover,.nx-roster-item[aria-pressed=true],#global-results>button:hover){background:var(--surface-tint)}
[data-theme="dark"] .nx-rail nav a[aria-current]{background:var(--action);color:white}
[data-theme="dark"] .nx-hero{background:linear-gradient(120deg,#163AAB,#11275B);border:1px solid #385EAD}
[data-theme="dark"] .nx-button{background:var(--action);color:white}[data-theme="dark"] .nx-button-white{background:#EDF4FF;color:#163F8C}
[data-theme="dark"] :is(.nx-scene-top>span:first-child,.nx-scene-tabs button[aria-pressed=true],.nx-scene-stack figcaption){color:var(--on-color)}
[data-theme="dark"] .nx-company-cover{background:color-mix(in srgb,var(--company-color) 12%,var(--surface));color:var(--ink)}
[data-theme="dark"] .nx-company-cover figure figcaption{background:var(--surface-raised);color:var(--ink)}
[data-theme="dark"] :is(.nx-roster-count,.nx-company-tabs,.nx-products article,.nx-cap-list>div,.nx-evidence-list>a,.nx-timeline article,.nx-event,.nx-table-scroll td,.nx-table-scroll th){border-color:var(--line)}
[data-theme="dark"] :is(.nx-company-roster input,.search-field input){background:var(--surface-raised);color:var(--ink);border-color:var(--line)}
[data-theme="dark"] .nx-company-roster>label{background:var(--surface-raised);border-color:var(--line)}
[data-theme="dark"] .nx-company-filters button{background:var(--surface);color:var(--muted);border-color:var(--line)}
[data-theme="dark"] .nx-company-filters button[aria-pressed=true]{background:var(--filter-color,var(--action));color:var(--filter-ink,#fff)}
[data-theme="dark"] :is(.nx-author-roles span,.nx-section-icon,.nx-result-type,.search-dialog-head button){background:#2B4165;color:#CADBFF}
[data-theme="dark"] .nx-author-mark{color:#A9C5FF;background:#243C68}
[data-theme="dark"] :is(.nx-status.confirmed,.nx-table-scroll .confirmed){color:#83DFC0}
[data-theme="dark"] :is(.nx-status.partial,.nx-table-scroll .partial){color:#F4D17B}
[data-theme="dark"] :is(.nx-status.unknown,.nx-table-scroll .unknown){color:var(--muted)}
[data-theme="dark"] .nx-table-scroll th{background:var(--surface-tint)}
[data-theme="dark"] .nx-company-flow strong{color:#7DDBBA}[data-theme="dark"] .nx-company-out strong{color:#FFA99B}
/* Technology map and evidence matrix. */
[data-theme="dark"] .at-page{color:var(--ink)}
[data-theme="dark"] :is(.at-heading p,.at-heading-note,.at-search label,.at-result-line,.at-canvas-head p,.at-map-bottom p,.at-unplaced small,.at-evidence>p,.at-evidence summary>span:last-child,.at-capability-row dd p,.at-source-missing,.at-table caption,.at-mobile-guide,.at-empty p){color:var(--muted)}
[data-theme="dark"] :is(.at-heading-note strong,.at-result-line a,.at-source-list a,.at-method-tag){color:var(--blue)}
[data-theme="dark"] :is(.at-search,.at-canvas,.at-matrix,.at-table tbody th,.at-cell:hover){background:var(--surface);border-color:var(--line)}
[data-theme="dark"] :is(.at-search input,.at-table tbody th>button){color:var(--ink)}
[data-theme="dark"] :is(.at-mode,.at-unplaced,.at-empty,.at-table thead th,.at-table tbody tr.is-selected>*){background:var(--surface-tint);color:var(--ink)}
[data-theme="dark"] :is(.at-mode button,.at-direction-filters button){color:var(--muted)}
[data-theme="dark"] .at-direction-filters button{background:var(--surface);border-color:var(--line)}
[data-theme="dark"] .at-direction-filters button[aria-pressed=true]{background:var(--at-filter-bg);color:var(--at-filter-ink)}
[data-theme="dark"] .at-mode button[aria-pressed=true]{background:var(--action);color:white}
[data-theme="dark"] .at-search button{background:#2C4164;color:#D1DFFF}
[data-theme="dark"] .at-unplaced button{background:var(--surface);color:var(--ink)}
[data-theme="dark"] .at-unplaced button[aria-pressed=true]{background:var(--action);color:white}
[data-theme="dark"] :is(.at-map-bottom,.at-unplaced,.at-capability-row,.at-table tbody td,.at-table tbody th,.at-table caption,.at-evidence){border-color:var(--line)}
[data-theme="dark"] :is(.at-axis,.at-axis-connector){stroke:#A8BDE0}
[data-theme="dark"] :is(.at-axis-title,.at-axis-label,.at-zone,.at-label-title,.at-node-label){fill:#C5D5EF}
[data-theme="dark"] .at-axis-end{fill:#142C54}
[data-theme="dark"] .at-map>rect[height="195"]{fill-opacity:.15}
[data-theme="dark"] .at-node-dot,[data-theme="dark"] .at-label-dot{fill:var(--at-dot-bg)}
[data-theme="dark"] .at-node:is(.is-selected,:hover,:focus-visible) .at-node-label{fill:#F5F8FF}
[data-theme="dark"] .at-node:is(.is-selected,:hover,:focus-visible) .at-label-bg{fill:#3B5177;fill-opacity:1}
[data-theme="dark"] .at-coordinate-guide{stroke:#9BB8FF}
[data-theme="dark"] .at-status-confirmed{color:#80DDBA}[data-theme="dark"] .at-status-partial{color:#F4CF77}[data-theme="dark"] :is(.at-status-unknown,.at-status-na){color:var(--muted)}
[data-theme="dark"] .at-detail{background:#192B46}[data-theme="dark"] .at-detail .at-source-list a{color:#BED5FF}
/* Talent graph, records and drawers keep distinct inbound/outbound colors. */
[data-theme="dark"] .af-page{--af-ink:#E8EFFB;--af-blue:#A9C3FF;--af-muted:#AFBED5;--af-line:#34465F;--af-bg:#101827;--af-in:#80DDBA;--af-in-bg:#213D3E;--af-out:#FFA99B;--af-out-bg:#46323B}
[data-theme="dark"] :is(.af-company-select select,.af-company-chips>button,.af-search,.af-filters select,.af-graph-panel,.af-record-list,.af-role-panel,.af-person-card,.af-more,.af-drawer,.af-empty){background:var(--surface);border-color:var(--line);color:var(--ink)}
[data-theme="dark"] .af-company-chips>button[aria-pressed=true]{background:var(--action);border-color:var(--action);color:white}
[data-theme="dark"] :is(.af-person-card:hover,.af-record:hover,.af-role-guide,.af-detail-meta>span,.af-drawer-top button,.af-role-row>div,.af-direction,.af-person-avatar,.af-sample-note){background:var(--surface-tint)}
[data-theme="dark"] :is(.af-hub,.af-leader-card){background:#192B46;color:white}
[data-theme="dark"] .af-hub>span{color:#C0D2EE}
[data-theme="dark"] .af-direction button[aria-pressed=true]{background:#304B77;color:white}
[data-theme="dark"] :is(.af-search input,.af-node-label){color:var(--ink);fill:var(--ink)}
[data-theme="dark"] .af-graph-canvas{background:var(--surface)}
[data-theme="dark"] :is(.af-node-count,.af-node-small){fill:var(--muted)}
[data-theme="dark"] :is(.af-record,.af-person-bottom,.af-annual,.af-panel-intro,.af-sample-note){border-color:var(--line)}
[data-theme="dark"] #af-grid circle{fill:#415475}
[data-theme="dark"] .af-experience-excluded{background:#3C322C;color:#F2CFAD}
[data-theme="dark"] .af-error{background:#422E31;color:#FFC2B6;border-color:#875158}
[data-theme="dark"] :is(.af-network-panel,.af-graph,.af-annual){background:var(--surface);border-color:var(--line)}
[data-theme="dark"] .af-direction button{color:var(--muted)}
[data-theme="dark"] :is(.nx-company-cover h1,.nx-company-cover .nx-inline){color:var(--ink)}
[data-theme="dark"] .nx-company-actions>button{background:var(--surface-tint);color:var(--ink);border-color:#7188AC}
[data-theme="dark"] .nx-rail nav a[aria-current]:hover{background:var(--action)}
@media(max-width:1200px){.nx-key-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nx-toolbar{gap:12px}.nx-theme-toggle{margin-left:auto}.nx-quick-search{margin-left:auto}}
@media(max-width:620px){.nx-toolbar{gap:8px;padding-inline:16px}.nx-quick-search{padding:6px 9px;min-width:0}.nx-quick-search>span{display:none}.nx-theme-toggle{min-height:34px;font-size:11px;padding:4px 9px;margin-left:0}.nx-quick-search{margin-left:auto}.nx-contact>div.nx-contact-grid{grid-template-columns:1fr}.nx-contact-card{padding:20px}.nx-contact-card>strong{font-size:18px}.nx-contact-dialog{padding:18px}.nx-contact-dialog-head{top:-18px}.nx-contact-dialog h2{font-size:17px}.nx-key-grid{gap:10px}.nx-key-grid h3{font-size:14px}.nx-key-grid p{font-size:11px!important}.nx-key-grid .nx-leader-photo img{height:140px}.nx-key-grid .nx-leader-photo figcaption{font-size:9px;padding:6px}.nx-key-grid .nx-leader-photo a{font-size:9px}.nx-company-cover h1>.nx-logo{width:42px;height:42px}.nx-display-switch{align-self:stretch;justify-content:center;margin-bottom:27px}.nx-display-switch button{flex:1}.nx-spatial-stage{height:230px}.nx-spatial-host{min-height:300px}.nx-spatial-controls{gap:4px;padding:8px}.nx-spatial-controls button{font-size:10px;padding:4px 7px}.af-leader-card:has(.nx-leader-photo){display:block}.af-leader-card .nx-leader-photo img{height:240px}.nx-leader-photo.is-event img{height:auto;aspect-ratio:4/3}.nx-logo-heading{gap:9px}}
@media(prefers-reduced-motion:reduce),(hover:none){.nx-depth,.nx-scene-stack:hover,.nx-company-cover figure.nx-depth,.nx-company-visual.nx-depth{transform:none!important}.nx-scene-stack .layer-back{transform:translate(-12px,-12px)}.nx-scene-stack .layer-middle{transform:translate(-6px,-6px)}}
