/* Remove the rectangular treatments, retaining the diagram's numeric circles. */
#main .ncs.ncs--linko .ncs__hub-list > .ncs__hub-item,
[data-theme=dark] #main .ncs.ncs--linko .ncs__hub-list > .ncs__hub-item {
  background: none; box-shadow: none; border: 0;
}
#main .ncs--linko :is(.ncs__journey-wrap, .ncs__zoom) { cursor: zoom-in; }
/* Keep the vector secondary to its text. On phones its frame follows content. */
#main .ncs .qbox__svg { opacity: .45; }
@media (max-width:1000px) {
  #main .ncs .qbox.qbox--tall {
    aspect-ratio:auto; max-width:440px;
    padding:var(--q-top-pad,246px) 11% var(--q-bottom-pad,36px);
  }
  #main .ncs .qbox__text {
    position:relative; left:auto; top:auto; width:auto; height:auto;
  }
  #main .ncs .qbox__svg--d { display:none; }
  #main .ncs .qbox__svg--m { display:block; height:100%; }
}
/* Vinnie's accent is brick red, paired with warm cream and brown. */
#main .ncs.ncs--vinnie {
  --nblue: #a84532; --nblue-soft: #f1e9de; --acc-light: #e8dfd3;
  --dark-bg: #3a2420; --hero-bg: linear-gradient(135deg,#81584e,#3a2420);
  --glow: 168,69,50; --muted-c: #e8dfd3;
}
[data-theme=dark] #main .ncs.ncs--vinnie {
  --nblue: #e8aa98; --nblue-soft: #44312c; --muted-c: #44312c;
}
#main .ncs--vinnie :is(.ncs__jstep-i,.ncs__jtbd-step) { color:var(--nblue); }
#main .ncs--vinnie .ncs__jstep-i { background:var(--nblue-soft); }
#main .ncs--vinnie .ncs__jtbd-node { background-color:var(--nblue-soft); }
#main .ncs--vinnie .ncs__jtbd-node--main { background-color:#a84532; }
#main .ncs--vinnie .ncs__jtbd-node:not(.ncs__jtbd-node--main) b { color:var(--nblue); }
#main .ncs--vinnie :is(.ncs__jtbd-flow,ol.ncs__journey--grid) { max-width:800px; }
#main .ncs--vinnie .ncs__jtbd-node { padding:20px 16px; }
#main .ncs--vinnie .ncs__jstep { padding:16px; grid-template-columns:40px minmax(0,1fr); gap:12px; }
#main .ncs--vinnie .ncs__jstep-i { width:40px; height:40px; }
#main .ncs--vinnie .ncs__jstep-i svg { width:22px; height:22px; }
@media(max-width:900px) {
  #main .ncs--vinnie ol.ncs__journey--grid { max-width:560px; }
  #main .ncs--vinnie .ncs__journey--grid .ncs__jstep:not(:last-child)::after { left:35px; }
}
@media(max-width:760px) {
  #main .ncs--vinnie .ncs__jtbd-flow { max-width:420px; }
}
/* Keep only the navigation controls, without the wide header backdrop. */

/* Full-width photo, preserving its natural proportions. */
#main .ncs[data-study="noty"] > .ncs__bleed--dark:has(img[src="noty/publish-high-resolution.png"]) {
  min-height:0; width:100%; max-width:none; margin-inline:0;
}
#main .ncs[data-study="noty"] .ncs__bleed-img[src="noty/publish-high-resolution.png"] {
  position:relative; width:100%; height:auto; object-fit:contain; display:block;
}

/* Center the closing description beneath the Noty mark. */
#main .ncs[data-study="noty"] .ncs__closing-line {
  text-align:center;
}

/* Impact screenshots should remain complete at narrow and intermediate widths. */
@media(max-width:1000px) {
  #main .ncs[data-study="noty"] #impact ~ .ncs__row {
    grid-template-columns:minmax(0,1fr); gap:0;
  }
  #main .ncs[data-study="noty"] #impact ~ .ncs__row .ncs__media { order:-1; min-width:0; }
  #main .ncs[data-study="noty"] #impact ~ .ncs__row .ncs__shot {
    width:100%; height:auto; object-fit:contain; border-radius:0; box-shadow:none;
  }
}

/* Diagram artwork needs a white canvas, including in dark mode. */
[data-theme=dark] #main .ncs img:is([src="Linko/Sitemap.png"],[src="Vinnie/Sitemap.webp"]) {
  background:#fff !important; border-radius:16px;
}
[data-theme=dark] #main .ncs .ncs__zoom:has(img[src="Linko/Sitemap.png"]) { background:#fff; }
/* Use the project palette with explicit readable ink on dark cards. */
[data-theme=dark] #main .ncs--linko .ncs__pin-note {
  background:linear-gradient(145deg,#ffffff0c,transparent 65%),var(--nblue-soft);
  border:1px solid #667760;
}
[data-theme=dark] #main .ncs--linko :is(.ncs__pin-title,.ncs__pin-body b) { color:var(--nink); }
[data-theme=dark] #main .ncs--linko .ncs__pin-body { color:#d2ddcd; }
[data-theme=dark] #main .ncs--linko .ncs__pin-num { color:var(--nblue); opacity:1; }
[data-theme=dark] #main .ncs--vinnie .ncs__jtbd-node:not(.ncs__jtbd-node--main) { background:var(--nblue-soft); }
[data-theme=dark] #main .ncs--vinnie .ncs__jtbd-node:not(.ncs__jtbd-node--main) b { color:var(--nblue); }
[data-theme=dark] #main .ncs :is(.ncs__gain-delta,.ncs__mq-final-badge) { color:#202630 !important; }
[data-theme=dark] #main .ncs .ncs__fstat figcaption { color:#d2ddcd; }
[data-theme=dark] #main .ncs .ncs__fdrop :is(.n,.l) { color:#263025; }
[data-theme=dark] #main .ncs--vinnie .ncs__itr-cta--ghost { color:var(--nblue); border-color:var(--nblue); }
[data-theme=dark] #main .ncs--vinnie .ncs__itr-new { color:#963b2b; }
[data-theme=dark] #main .ncs--vinnie .ncs__jtbd-node--main :is(b,p) { color:#fff; opacity:1; }
