/* NoxTLS: an illustrative configuration, not a footprint calculator. */
.canvas .sec.nxc-section { padding: var(--sec-y) 0; }
.canvas .nxc-section .wrap { display: grid; gap: 20px; }
.nxc-intro { max-width: 700px; }
.nxc-intro .h2 { margin: 0 0 10px; }
.nxc-intro p { margin: 0; }
.nxc { --nxc-line: #dce7ef; color: #102d4f; background: #f5f7fa; border: 1px solid var(--nxc-line); border-radius: 28px; overflow: hidden; }
.nxc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-bottom: 1px solid var(--nxc-line); }
.nxc-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.nxc-dot { width: 8px; height: 8px; border-radius: 50%; background: #00aff0; }
.nxc-controls { display: flex; align-items: center; gap: 14px; }
.nxc-demo-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #526479; }
.nxc-play { border: 1px solid #ccdae5; border-radius: 100px; padding: 7px 14px; background: white; color: #102d4f; font: inherit; font-size: 13px; cursor: pointer; min-width: 88px; white-space: nowrap; flex-shrink: 0; }
.nxc-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.nxc-components { position: relative; padding: 20px 22px; border-right: 1px solid var(--nxc-line); }
.nxc-label { margin: 0 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #526479; font-weight: 500; }
.nxc-list { display: grid; gap: 6px; }
.nxc-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 8px 12px; border: 1px solid #e1e8ef; border-radius: 12px; background: #fff; color: #102d4f; text-align: left; font: inherit; cursor: pointer; transition: background 200ms ease, border-color 200ms ease; }
.nxc-row[aria-checked="true"] { border-color: #a9dcef; background: #f4fbff; }
.nxc-row:focus-visible, .nxc-play:focus-visible { outline: 3px solid #007fae; outline-offset: 3px; }
.nxc-code { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: #526479; background: #edf2f6; font: 600 13px/1 monospace; flex-shrink: 0; transition: color 200ms ease, background 200ms ease; }
.nxc-row[aria-checked="true"] .nxc-code { background: #dff4fe; color: #006a96; }
.nxc-name { display: grid; gap: 3px; }
.nxc-name strong { font-size: 16px; font-weight: 600; line-height: 1.2; }
.nxc-name small { color: #526479; font-size: 12px; line-height: 1.2; }
.nxc-switch { width: 34px; height: 20px; border-radius: 20px; background: #c7d3df; margin-left: auto; padding: 3px; flex-shrink: 0; transition: background 200ms ease; }
.nxc-switch::after { content: ''; display: block; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #102d4f22; transition: transform 250ms var(--ease-out); }
.nxc-row[aria-checked="true"] .nxc-switch { background: #00a6e5; }
.nxc-row[aria-checked="true"] .nxc-switch::after { transform: translateX(14px); }
.nxc-cursor { position: absolute; top: 0; left: 0; z-index: 2; width: 30px; height: 36px; pointer-events: none; opacity: 0; filter: drop-shadow(0 3px 3px #102d4f33); transition: transform 750ms var(--ease-in-out), opacity 200ms ease; }
.nxc-cursor svg { width: 100%; height: 100%; overflow: visible; transition: transform 120ms var(--ease-out); transform-origin: 3px 3px; }
.nxc-cursor.is-clicking svg { transform: scale(.85); }
.nxc-output { display: flex; flex-direction: column; padding: 20px 26px; justify-content: center; }
.nxc-chip { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #d6e6ef; background: white; border-radius: 16px; margin-bottom: 14px; color: #008ac0; }
.nxc-chip svg { width: 30px; height: 30px; }
.nxc-metric + .nxc-metric { margin-top: 18px; }
.nxc-metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.nxc-metric-head > span { font-size: 15px; }
.nxc-value { font-size: clamp(28px, 3vw, 38px); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; }
.nxc-value small { font-size: 16px; margin-left: 3px; color: #526479; }
.nxc-track { height: 9px; background: #dfe7ef; border-radius: 9px; overflow: hidden; }
.nxc-fill { width: 100%; height: 100%; border-radius: inherit; background: #00aff0; transform-origin: left; transition: transform 650ms var(--ease-out); }
.nxc-metric--ram .nxc-fill { background: #153e65; }
.nxc-scale { font-size: 11px; color: #526479; margin-top: 8px; }
.nxc-status { margin: 18px 0 0; min-height: 22px; color: #006a96; font-size: 13px; }
.nxc-note { margin: 0; padding: 12px 22px; border-top: 1px solid var(--nxc-line); font-size: 12px; line-height: 1.6; color: #526479; background: #fff; }
.nxc .nxc-note { max-width: none; }
@media (max-width: 640px) {
 .canvas .nxc-section .wrap { gap: 16px; }
 .nxc { border-radius: 20px; }
 .nxc-top { padding: 10px 16px; }
 .nxc-brand { font-size: 13px; }
 .nxc-demo-tag { display: none; }
 .nxc-body { grid-template-columns: 1fr; }
 .nxc-components { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--nxc-line); }
 .nxc-row { min-height: 44px; padding: 6px 10px; gap: 10px; }
 .nxc-code { width: 28px; height: 28px; font-size: 11px; }
 .nxc-name { gap: 2px; }
 .nxc-name strong { font-size: 14px; }
 .nxc-name small { font-size: 11px; }
 .nxc-output { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
 .nxc-chip { display: none; }
 .nxc-output > .nxc-label { grid-column: 1 / -1; margin: 0; }
 .nxc-metric + .nxc-metric { margin-top: 0; }
 .nxc-status { grid-column: 1 / -1; margin: 0; }
 .nxc-note { padding: 10px 16px; font-size: 11px; }
}

/* Editorial porting story: tangible hardware beside the engineering work. */
.canvas .sec.nxt-port { padding: var(--sec-y) 0; background: var(--bg); }
.nxt-port-layout { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(28px, 4.5vw, 64px); }
.nxt-port-copy { min-width: 0; }
.nxt-port-copy .kick { margin: 0 0 16px; font-size: 11px; letter-spacing: .13em; }
.canvas .nxt-port-copy .h2 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 24px; text-wrap: pretty; }
.nxt-port-copy .h2 span { display: block; color: var(--cyan-ink); }
.nxt-port-copy > p:not(.kick) { font-size: 15px; line-height: 1.7; margin: 0 0 16px; max-width: 57ch; }
.nxt-port-link { display: inline-flex; align-items: center; gap: 18px; padding: 8px 0; margin-top: 4px; font-size: 14px; }
.nxt-port-link span { font-size: 22px; line-height: 1; transition: transform 200ms var(--ease-out); }
.nxt-port-link:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 5px; }
.nxt-port-visual { margin: 0; border-radius: 24px; overflow: hidden; background: #0a1c30; border: 1px solid #20394f; box-shadow: 0 18px 48px -32px #102d4f70; }
.nxt-port-photo { aspect-ratio: 3 / 2; overflow: hidden; }
.nxt-port-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) { .nxt-port-link:hover span { transform: translate(2px, -2px); } }
@media (max-width: 900px) {
 .nxt-port-layout { grid-template-columns: 1fr; gap: 24px; }
 .nxt-port-copy > p:not(.kick) { max-width: 70ch; }
 .nxt-port-visual { width: 100%; max-width: 680px; }
 .nxt-port-photo { aspect-ratio: 16 / 9; }
 .nxt-port-copy .h2 span { display: inline; }
}
@media (max-width: 480px) {
 .nxt-port-visual { border-radius: 18px; }
 .nxt-port-copy .kick { font-size: 10px; }
}

/* Grouped specifications put the detail into the grid instead of a long empty side column. */
.nxt-spec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.nxt-spec-head .h2 { margin: 0 0 10px; }
.nxt-spec-head p { margin: 0; max-width: 62ch; font-size: 14px; }
.nxt-spec-head > a { white-space: nowrap; font-size: 13px; }
.canvas dl.nxt-spec-grid { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.nxt-spec-item { padding: 16px 0; border-top: 1px solid var(--border); min-width: 0; }
.nxt-spec-item dt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text); font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.nxt-spec-item dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.nxt-spec-tag { display: inline-block; padding: 2px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 10px; font-weight: 500; }
.canvas dl.nxt-spec-meta { flex: none; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.nxt-spec-note { color: var(--muted); font-size: 12px; margin-top: 8px; }
@media (max-width: 1000px) {
 .canvas dl.nxt-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .nxt-spec-head { align-items: start; flex-direction: column; gap: 12px; }
}
@media (max-width: 540px) {
 .canvas dl.nxt-spec-grid, .canvas dl.nxt-spec-meta { grid-template-columns: minmax(0, 1fr); gap: 0; }
 .nxt-spec-item { padding: 14px 0; }
}
