/* The platform graph is generated from the public catalogue. No column frames. */
.nx-platform-hero { padding-top: 38px; padding-bottom: 34px; }
.nx-platform-hero h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 18px; }
.nx-platform-hero p.lead { font-size: 16px; max-width: 780px; margin-bottom: 22px; }
.nx-composition { padding: 38px var(--gutter) 56px; scroll-margin-top: 78px; }
.nx-composition .what-inner { max-width: 1336px; }
.nx-composition .what-head { max-width: 800px; margin-bottom: 24px; }
.nx-composition .what-head h2 { font-size: clamp(27px, 3vw, 38px); }
.nx-composition .what-head p { font-size: 15px; }
.nx-composition a:not(.btn):not(.nx-graph-tile) { color: var(--accent); }
.nx-composition-note { color: var(--fg-soft); margin-top: 18px; font-size: 13px; line-height: 1.65; }
.nx-graph { min-width: 0; }
.nx-graph [hidden] { display: none !important; }
.nx-graph-help { color: var(--fg-soft); font-size: 12px; line-height: 1.6; margin: 12px 0; }
.nx-graph-controls { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.nx-graph-search-field { flex: 1 1 240px; max-width: 420px; }
.nx-graph-search-field label { display: block; color: var(--fg); font-size: 12px; margin-bottom: 5px; }
.nx-graph-search-field input { width: 100%; min-height: 42px; border: 1px solid var(--border-bright); border-radius: 8px; background: var(--bg); padding: 9px 12px; font: inherit; font-size: 14px; color: var(--fg); }
.nx-graph-search-field input::placeholder { color: var(--fg-mute); }
#nx-graph-search-help { color: var(--fg-soft); font-size: 12px; flex: 1 1 210px; max-width: 400px; }
.nx-graph-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 11px; color: var(--fg-soft); }
.nx-graph-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.nx-graph-key { width: 16px; height: 16px; display: inline-grid; place-items: center; font-style: normal; font: 11px var(--font-mono); }
.nx-graph-key-selected { color: var(--bg); background: var(--accent); border: 1px solid var(--accent); border-radius: 3px; }
.nx-graph-key-dependency { color: var(--accent); border: 1px dashed var(--accent); border-radius: 3px; }
.nx-graph-viewport { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-color: #37594e #111719; scrollbar-width: thin; padding-bottom: 12px; }
.nx-graph-stage { --nx-tile: 96px; --nx-gap: 12px; --nx-column-gap: 24px; position: relative; isolation: isolate; display: grid; grid-template-columns: 438px 222px 330px 114px; gap: var(--nx-column-gap); width: max-content; min-width: 100%; padding: 8px 16px 8px 6px; }
.nx-graph-column { min-width: 0; position: relative; z-index: 1; }
.nx-graph-column h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; font-weight: 500; color: var(--fg-soft); line-height: 1.3; height: 32px; margin: 0 0 48px; }
.nx-graph-column h3 > span { font: 600 18px var(--font-mono); color: var(--fg); }
.nx-graph-column h3 small { font: 11px var(--font-mono); color: var(--fg-soft); }
.nx-graph-nodes { display: grid; grid-template-columns: repeat(4, var(--nx-tile)); grid-auto-rows: var(--nx-tile); align-content: start; gap: var(--nx-gap); height: 540px; overflow-y: auto; overflow-x: hidden; padding: 6px 6px 6px 0; scrollbar-width: thin; scrollbar-gutter: stable; scrollbar-color: #37594e transparent; overscroll-behavior-y: contain; scroll-behavior: auto; }
.nx-graph-column[data-level="N2"] .nx-graph-nodes { grid-template-columns: repeat(2, var(--nx-tile)); }
.nx-graph-column[data-level="N1"] .nx-graph-nodes { grid-template-columns: repeat(3, var(--nx-tile)); }
.nx-graph-column[data-level="N0"] .nx-graph-nodes { grid-template-columns: var(--nx-tile); }
.nx-graph-tile { width: var(--nx-tile); height: var(--nx-tile); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; border: 1px solid #354139; border-radius: 9px; background: #161d1a; color: var(--fg); text-align: center; text-decoration: none; line-height: 1.2; cursor: pointer; transition: border-color 120ms, background-color 120ms, color 120ms; }
.nx-graph-tile:hover { background: #1d2923; border-color: var(--accent); }
.nx-graph-monogram { font: 500 18px/1 var(--font-mono); color: #8bbaa8; letter-spacing: -.05em; }
.nx-graph-label { display: block; width: 100%; font-size: 12px; line-height: 14px; font-weight: 500; overflow-wrap: anywhere; }
.nx-graph-status { font: 9px/11px var(--font-mono); color: #a0afa8; }
.nx-graph-tile[data-status="partial"] .nx-graph-status,
.nx-graph-tile[data-status="unit_verified"] .nx-graph-status { color: #f1c36d; }
.nx-graph-tile[data-status="blocked"] .nx-graph-status { color: #ffabae; }
.nx-graph-state-mark { position: absolute; right: 4px; top: 4px; display: none; width: 15px; height: 15px; border-radius: 3px; font: 11px/15px var(--font-mono); }
.nx-graph-tile[data-state="selected"] { border: 2px solid var(--accent); background: #15392d; }
.nx-graph-tile[data-state="selected"] .nx-graph-state-mark { display: block; background: var(--accent); color: var(--bg); }
.nx-graph-tile[data-state="selected"] .nx-graph-state-mark::before { content: "✓"; }
.nx-graph-tile[data-state="dependency"] { border: 1px dashed var(--accent); background: #172b23; }
.nx-graph-tile[data-state="dependency"] .nx-graph-state-mark { display: block; color: var(--accent); border: 1px dashed var(--accent); line-height: 13px; }
.nx-graph-tile[data-state="dependency"] .nx-graph-state-mark::before { content: "+"; }
.nx-graph-tile[data-state="selected"] .nx-graph-monogram,
.nx-graph-tile[data-state="dependency"] .nx-graph-monogram { color: var(--accent); }
.nx-graph-tile[data-state="muted"],
.nx-graph-tile[data-state="idle"][data-match="false"] { background: #111714; border-color: #26322c; color: #829087; }
.nx-graph-tile[data-state="muted"] .nx-graph-monogram,
.nx-graph-tile[data-state="idle"][data-match="false"] .nx-graph-monogram { color: #5c7869; }
.nx-graph-tile[data-state="muted"] .nx-graph-status,
.nx-graph-tile[data-state="idle"][data-match="false"] .nx-graph-status { color: #7f8d84; }
.nx-graph[data-searching="true"] .nx-graph-tile[data-match="true"] { box-shadow: inset 0 -3px var(--cyan); }
.nx-graph-selection { margin-top: 10px; padding: 16px 0 4px; border-top: 1px solid var(--border-strong); }
.nx-graph-selection-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.nx-graph-selection h3 { font-size: 21px; line-height: 1.2; }
.nx-graph-selected-status { font-size: 12px; color: var(--accent); }
.nx-graph-selected-status[data-status="partial"] { color: #f1c36d; }
.nx-graph-selected-status[data-status="blocked"] { color: #ffabae; }
#nx-graph-selected-scope { color: var(--fg-soft); font-size: 13px; line-height: 1.6; margin-top: 9px; max-width: 1040px; }
.nx-graph-counts { font-size: 12px; margin-top: 12px; color: var(--fg-soft); }
.nx-graph-counts strong { color: var(--fg); font-family: var(--font-mono); }
.nx-graph-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nx-graph-actions .btn { font-size: 12px; white-space: normal; }
.nx-graph-empty { color: #f1c36d; font-size: 13px; padding: 10px 0; }
.nx-graph-announcement { font-size: 12px; color: var(--fg-soft); min-height: 19px; margin-top: 6px; }
.nx-graph :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.nx-graph-tile:focus-visible { outline-offset: -4px; }
@media (max-width: 700px) {
  .nx-platform-hero { padding-top: 26px; padding-bottom: 28px; }
  .nx-platform-hero h1 { font-size: 37px; }
  .nx-platform-hero p.lead { font-size: 14px; }
  .nx-composition { padding-top: 28px; }
  .nx-composition .what-head { text-align: left; margin-bottom: 18px; }
  .nx-composition .section-eyebrow { justify-content: flex-start !important; }
  .nx-graph-controls { gap: 8px; }
  .nx-graph-search-field { flex-basis: 180px; }
  #nx-graph-search-help { flex-basis: 100%; max-width: none; }
  .nx-graph-selection h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-graph-tile { transition: none; }
  html { scroll-behavior: auto; }
}
