/* spinal/ — complications section styles. Every selector starts with .spinal-app .cx- or #cx-. */

.spinal-app .cx-sub{padding-top:8px;margin-top:8px}
.spinal-app .cx-sub + .cx-sub{border-top:1px solid var(--sp-line);margin-top:40px;padding-top:4px}
.spinal-app main .cx-h3{margin-top:28px}
.spinal-app main .cx-h4{margin-top:24px}
.spinal-app .cx-list{max-width:68ch;padding-left:1.2em;margin:8px 0 16px}
.spinal-app .cx-list li{margin:0 0 8px}
.spinal-app .cx-list li::marker{color:var(--sp-muted)}
.spinal-app .cx-small{font-size:14px;color:var(--sp-muted)}
.spinal-app .cx-split{display:grid;gap:8px 40px}
@media (min-width:1100px){
  .spinal-app .cx-split{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:start}
  .spinal-app .cx-split .sp-callout:first-child{margin-top:28px}
}
.spinal-app .cx-col{min-width:0}
.spinal-app .cx-ebp{max-width:900px}
.spinal-app #cx-glance{margin:8px 0 24px}
.spinal-app #cx-glance a{color:var(--sp-accent);text-underline-offset:3px}
.spinal-app #cx-pdph-outline{margin-top:8px}

/* ---------------------------------------------------------------- neuro check */
.spinal-app .cx-check{background:var(--sp-surface);border:1px solid var(--sp-line);border-top:3px solid var(--sp-ink);padding:18px 22px 20px;margin:20px 0;max-width:820px}
.spinal-app .cx-check-kicker{font:400 12px/1.6 var(--sp-mono);text-transform:uppercase;letter-spacing:.1em;color:var(--sp-muted);margin:0 0 6px}
.spinal-app .cx-check-intro{margin:0 0 12px;font-size:15px}
.spinal-app .cx-check-list{list-style:none;margin:0;padding:0}
.spinal-app .cx-check-item{border-top:1px solid var(--sp-line);padding:12px 0}
.spinal-app .cx-check-q{border:0;margin:0;padding:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;align-items:center}
.spinal-app .cx-check-legend{float:left;width:100%;padding:0;display:flex;gap:12px;align-items:flex-start;font:500 15px/1.5 var(--sp-sans);color:var(--sp-ink)}
.spinal-app .cx-check-n{flex:0 0 26px;height:26px;display:inline-flex;align-items:center;justify-content:center;background:var(--sp-ink);color:var(--sp-bg);font:500 12px/1 var(--sp-mono)}
.spinal-app .cx-check-hint{grid-column:1;margin:0 0 0 38px;font-size:14px;line-height:1.5;color:var(--sp-muted)}
.spinal-app .cx-check-opts{grid-column:2;grid-row:1 / span 2;display:flex;gap:0}
.spinal-app .cx-check-opt{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;padding:0 14px;border:1px solid var(--sp-line-strong);font:14px/1 var(--sp-sans);cursor:pointer;color:var(--sp-ink);background:transparent;transition:background-color .15s,border-color .15s}
.spinal-app .cx-check-opt + .cx-check-opt{margin-left:-1px}
.spinal-app .cx-check-opt:hover{border-color:var(--sp-accent);z-index:1}
.spinal-app .cx-check-radio{position:absolute;opacity:0;inset:0;margin:0;width:100%;height:100%;cursor:pointer}
.spinal-app .cx-check-opt:has(.cx-check-radio:checked){background:var(--sp-accent-soft);border-color:var(--sp-accent);z-index:2;font-weight:600}
.spinal-app .cx-check-opt:has(.cx-check-radio:checked)::before{content:'';width:8px;height:8px;margin-right:8px;background:var(--sp-accent)}
.spinal-app .cx-check-opt:has(.cx-check-radio:focus-visible){outline:2px solid var(--sp-focus);outline-offset:3px;z-index:3}
.spinal-app .cx-check-result{margin-top:14px}
.spinal-app .cx-check-pending{margin:0;font:13px/1.5 var(--sp-mono);color:var(--sp-muted)}
.spinal-app .cx-check-out{--c:var(--sp-ok);--cb:var(--sp-ok-bg);background:var(--cb);border-left:3px solid var(--c);padding:14px 18px}
.spinal-app .cx-check-out--red{--c:var(--sp-danger);--cb:var(--sp-danger-bg)}
.spinal-app .cx-check-out-label{display:flex;align-items:center;gap:7px;margin:0 0 4px;font:600 12px/1.4 var(--sp-sans);text-transform:uppercase;letter-spacing:.08em;color:var(--c)}
.spinal-app .cx-check-out-label svg{width:16px;height:16px;flex-shrink:0}
.spinal-app .cx-check-out-title{margin:0 0 6px;font:400 20px/1.3 var(--sp-serif);letter-spacing:-.01em;color:var(--sp-ink)}
.spinal-app .cx-check-out-list{margin:0;padding-left:1.2em;font-size:15px}
.spinal-app .cx-check-out-list li{margin:0 0 4px}
.spinal-app .cx-check-out-why{margin:8px 0 0;font:12px/1.4 var(--sp-mono);color:var(--sp-muted)}
.spinal-app .cx-check-actions{margin-top:14px}
@media (max-width:640px){
  .spinal-app .cx-check{padding:14px 14px 16px}
  .spinal-app .cx-check-q{grid-template-columns:minmax(0,1fr)}
  .spinal-app .cx-check-opts{grid-column:1;grid-row:auto;margin:6px 0 0 38px}
  .spinal-app .cx-check-hint{grid-column:1}
}

/* ---------------------------------------------------------------- connectors figure */
.spinal-app .cx-con{padding:16px;background:var(--sp-surface)}
.spinal-app .cx-con-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.spinal-app .cx-con-panel{margin:0;border:1px solid var(--sp-line);background:var(--sp-bg);padding:8px 10px 12px}
.spinal-app .cx-con-svg{display:block;width:100%;height:auto;max-height:180px}
.spinal-app .cx-con-cap{display:flex;flex-direction:column;gap:2px;font-size:14px;line-height:1.45}
.spinal-app .cx-con-cap strong{font-weight:600;color:var(--sp-ink)}
.spinal-app .cx-con-cap span{color:var(--sp-muted)}
.spinal-app .cx-con-body,.spinal-app .cx-con-tip{stroke:var(--sp-ink);stroke-width:1.5;stroke-linejoin:miter}
.spinal-app .cx-con--luer .cx-con-body,.spinal-app .cx-con--luer .cx-con-tip{fill:var(--sp-surface-2)}
.spinal-app .cx-con-hatch-bg{fill:var(--sp-warn-bg)}
.spinal-app .cx-con-hatch-line{stroke:var(--sp-warn);stroke-width:2}
.spinal-app .cx-con-line{stroke:var(--sp-ink);stroke-width:2}
.spinal-app .cx-con-stop{stroke:var(--sp-danger);stroke-width:2;stroke-dasharray:4 3}
.spinal-app .cx-con-ok{fill:none;stroke:var(--sp-ok);stroke-width:3}
.spinal-app .cx-con-bad{fill:none;stroke:var(--sp-danger);stroke-width:3}
.spinal-app .cx-con-verdict{font:600 14px var(--sp-sans);fill:var(--sp-ink)}
.spinal-app .cx-con-key{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:12px 0 0;font-size:14px;color:var(--sp-muted)}
.spinal-app .cx-con-swatch{display:inline-block;width:18px;height:12px;border:1px solid var(--sp-ink);vertical-align:middle}
.spinal-app .cx-con-swatch--luer{background:var(--sp-surface-2)}
.spinal-app .cx-con-swatch--nrfit{background:repeating-linear-gradient(45deg,var(--sp-warn) 0 2px,var(--sp-warn-bg) 2px 5px)}
.spinal-app .cx-con-swatch + *{margin-right:8px}
.spinal-app main .cx-check-item{max-width:none}
