/* Homepage showcase (content/home-showcase.html, behaviour in crmng-showcase.js). Every rule under .ngs. */
.ngs{background:#0D1C29;color:#fff;font-family:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;letter-spacing:normal}
.ngs *{box-sizing:border-box}
.ngs [hidden]{display:none!important}
.ngs p:empty{display:none} /* WordPress adds an empty paragraph after the map drawing, which took the details column */
.ngs-wrap{max-width:1240px;margin:0 auto;padding:80px 24px}
.ngs-head{max-width:760px;margin-bottom:36px}
.ngs .ngs-h2{margin:0 0 12px;font-size:clamp(32px,4.4vw,54px);line-height:1.06;font-weight:800;color:#fff;text-transform:none;font-family:inherit}
.ngs .ngs-lede{margin:0;font-size:19px;color:#B9C4CF}
.ngs-body{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;align-items:start}

/* the five features */
.ngs-rail{display:flex;flex-direction:column;gap:4px}
.ngs .ngs-tab{display:block;width:100%;text-align:left;background:none;border:0;border-left:3px solid #2B3F52;padding:14px 16px;color:#B9C4CF;cursor:pointer;font:inherit;border-radius:0 8px 8px 0}
.ngs .ngs-tab strong{display:block;font-size:19px;font-weight:700;color:#fff}
.ngs .ngs-tab span{display:block;font-size:15px;margin-top:2px}
.ngs .ngs-tab:hover{background:#16283A}
.ngs .ngs-tab.ngs-on{border-left-color:#ED1F24;background:#16283A}
.ngs .ngs-tab:focus-visible,.ngs .ngs-btn:focus-visible,.ngs .ngs-node:focus-visible,.ngs input:focus-visible,.ngs a:focus-visible{outline:3px solid #ED1F24;outline-offset:2px}

/* the stage: one light app window */
.ngs-stage{background:#fff;color:#0D1C29;border-radius:14px;overflow:hidden;min-height:520px;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.ngs-panel{display:flex;flex-direction:column;min-height:520px}
.ngs-bar{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid #D5DCE3;background:#F6F8FA;font-size:15px;color:#4A5866}
.ngs-bar b{font-size:17px;color:#0D1C29}
.ngs-hint{margin-left:auto;font-weight:700;color:#B9141A}
.ngs-split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);flex:1}
.ngs-split--rev{grid-template-columns:minmax(0,1fr) minmax(0,1.9fr)}
.ngs-side{padding:18px 20px;border-left:1px solid #D5DCE3;background:#F6F8FA;font-size:15px}
.ngs-split--rev .ngs-side{border-left:0;border-right:1px solid #D5DCE3}
.ngs .ngs-side p{margin:0 0 10px;color:#0D1C29}
.ngs .ngs-side h3{margin:0 0 10px;font-size:20px;font-weight:800;color:#0D1C29;text-transform:none;font-family:inherit}
.ngs .ngs-k{font-size:13px;font-weight:700;color:#4A5866}
.ngs .ngs-note{font-size:14px;color:#4A5866}
.ngs .ngs-flag{font-weight:700;color:#8A5300;background:#FCEFD9;padding:8px 10px;border-radius:8px}
.ngs-side dl{margin:0 0 12px;display:grid;grid-template-columns:auto 1fr;gap:6px 12px}
.ngs-side dt{color:#4A5866}
.ngs-side dd{margin:0;font-weight:600}
.ngs .ngs-foot{margin:0;padding:12px 20px;border-top:1px solid #D5DCE3;font-size:15px;color:#4A5866}
.ngs .ngs-foot a{color:#B9141A;font-weight:700}
.ngs .ngs-btn{font:inherit;font-size:14px;font-weight:700;min-height:36px;padding:0 14px;border-radius:8px;border:1px solid #0D1C29;background:#fff;color:#0D1C29;cursor:pointer;white-space:nowrap}
.ngs .ngs-btn:hover{background:#0D1C29;color:#fff}
.ngs .ngs-btn.ngs-red{background:#D4181F;border-color:#D4181F;color:#fff}
.ngs .ngs-btn.ngs-red:hover{background:#B9141A}

/* network map */
.ngs-map{width:100%;height:auto;padding:18px;align-self:center}
.ngs-edges path{stroke:#B9C4CF;stroke-width:2.5}
.ngs-edges .ngs-wifi{stroke-dasharray:4 5}
.ngs-edges .ngs-lit{stroke:#D4181F;stroke-width:4}
.ngs-node{cursor:pointer}
.ngs-node rect{fill:#fff;stroke:#0D1C29;stroke-width:1.5}
.ngs-node text{font-size:14.5px;font-weight:600;fill:#0D1C29;text-anchor:middle;font-family:inherit}
.ngs-node circle{fill:#D4181F;stroke:#fff;stroke-width:2}
.ngs-cols text{font-size:12.5px;font-weight:600;fill:#4A5866;font-family:inherit}
.ngs-node:hover rect{fill:#EEF1F4}
.ngs-node.ngs-sel rect{fill:#0D1C29}
.ngs-node.ngs-sel text{fill:#fff}

/* vault */
.ngs-list{padding:8px 20px}
.ngs-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #EEF1F4}
.ngs-row b{display:block}
.ngs-row small,.ngs-card small,.ngs-tile small,.ngs-flow small{display:block;font-size:13px;color:#4A5866}
.ngs-val{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;color:#4A5866;background:none;padding:0}
.ngs-open .ngs-val{color:#0D1C29;font-weight:700;background:#FCEFD9;padding:3px 6px;border-radius:4px}
.ngs-confirm{margin:6px 0 10px;padding:14px;border:2px solid #0D1C29;border-radius:10px;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ngs .ngs-confirm p{margin:0;flex:1 1 240px;font-size:15px;color:#0D1C29}
.ngs-log{list-style:none;margin:0 0 16px;padding:0}
.ngs-log li{margin:0;padding:7px 0;border-bottom:1px solid #D5DCE3}
.ngs-log small{display:block;font-size:13px;color:#4A5866}

/* one client record */
.ngs-sw{display:flex;gap:10px;align-items:center;padding:7px 0;cursor:pointer;font-weight:600}
.ngs-sw input{width:20px;height:20px;accent-color:#D4181F;margin:0}
.ngs-rec{padding:18px 20px}
.ngs-tabs{display:flex;gap:6px 18px;flex-wrap:wrap;border-bottom:1px solid #D5DCE3;padding-bottom:10px;margin-bottom:16px;font-weight:600;color:#4A5866}
.ngs-tabs span:first-child{color:#0D1C29;box-shadow:0 12px 0 -9px #D4181F}
.ngs-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}
.ngs-tile{border:1px solid #D5DCE3;border-radius:10px;padding:12px 14px}
.ngs-tile b{display:block;font-size:18px;margin:2px 0}
.ngs-tile span{font-size:14px;color:#4A5866}

/* projects */
.ngs-meter{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px 20px;font-size:15px;font-weight:600}
.ngs-track{flex:1 1 200px;height:10px;border-radius:5px;background:#EEF1F4;overflow:hidden}
.ngs-track i{display:block;height:100%;background:#1E7A46;transition:width .3s}
.ngs-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 20px 16px;flex:1}
.ngs-col{background:#EEF1F4;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px;align-content:start}
.ngs .ngs-col h3{margin:0 0 2px;font-size:14px;font-weight:700;color:#4A5866;text-transform:none;font-family:inherit}
.ngs-card{background:#fff;border:1px solid #D5DCE3;border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.ngs-card b{font-size:15px;line-height:1.3}
.ngs-card.ngs-done b{color:#1E7A46}
.ngs-bill{margin:0 20px 16px;padding:14px;border-radius:10px;background:#E3F3EA;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.ngs .ngs-bill p{margin:0;flex:1 1 260px;color:#0D1C29}
.ngs-bill span{font-weight:700;color:#1E7A46}

/* workflow */
.ngs-flow{list-style:none;margin:0;padding:18px 20px;display:flex;flex-direction:column;gap:22px}
.ngs-flow li{position:relative;margin:0;border:1px solid #D5DCE3;border-left:4px solid #B9C4CF;border-radius:8px;padding:10px 14px}
.ngs-flow li + li::before{content:"";position:absolute;left:24px;top:-23px;height:22px;border-left:2px solid #B9C4CF}
.ngs-flow b{display:block}
.ngs-flow em{display:block;font-style:normal;font-size:14px;color:#1E7A46;font-weight:600}
.ngs-flow em:empty{display:none}
.ngs-flow .ngs-ran{border-left-color:#1E7A46;background:#F3FAF6}
.ngs-flow .ngs-stop{border-left-color:#8A5300;background:#FCEFD9}
.ngs-flow .ngs-stop em{color:#8A5300}
.ngs-flow .ngs-skip{opacity:.45}

/* workflow builder */
.ngs-seg{margin-left:auto;display:inline-flex;border:1px solid #0D1C29;border-radius:8px;overflow:hidden}
.ngs .ngs-seg button{font:inherit;font-size:14px;font-weight:700;min-height:34px;padding:0 14px;border:0;background:#fff;color:#0D1C29;cursor:pointer}
.ngs .ngs-seg button.ngs-on{background:#0D1C29;color:#fff}
.ngs-canvas{padding:20px;display:flex;flex-direction:column;align-items:center;background:#F6F8FA radial-gradient(#C9D2DB 1px,transparent 1.5px) 0 0/18px 18px}
.ngs .ngs-wfn{font:inherit;display:block;width:100%;max-width:340px;text-align:left;background:#fff;color:#0D1C29;border:1px solid #D5DCE3;border-radius:10px;padding:9px 14px;cursor:pointer}
.ngs .ngs-wfn small{display:block;font-size:13px;color:#4A5866}
.ngs .ngs-wfn b{display:block;font-size:15px;line-height:1.3}
.ngs .ngs-wfn:hover{border-color:#0D1C29}
.ngs .ngs-wfn.ngs-sel{border-color:#D4181F;box-shadow:0 0 0 2px #D4181F}
.ngs .ngs-wf-start{background:#FDF3E3}
.ngs .ngs-wf-if{background:#FBEDED}
.ngs .ngs-wf-email{background:#E6F3F8}
.ngs .ngs-wf-task{background:#EFEBF8}
.ngs .ngs-wf-new{border-style:dashed}
.ngs .ngs-wf-add{font:inherit;font-size:18px;line-height:1;width:28px;height:28px;margin:5px 0;border-radius:50%;border:1.5px solid #4A5866;background:#fff;color:#0D1C29;cursor:pointer;position:relative}
.ngs .ngs-wf-add:hover{background:#0D1C29;color:#fff}
.ngs-wf-branch{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:14px;width:100%;max-width:520px;margin-top:8px;border-top:2px solid #B9C4CF;padding-top:10px}
.ngs-wf-arm{display:flex;flex-direction:column;align-items:center}
.ngs-wf-yes,.ngs-wf-no{font-size:13px;font-weight:700;padding:2px 12px;border-radius:12px;background:#fff;border:1.5px solid #1E7A46;color:#1E7A46}
.ngs-wf-no{border-color:#B9141A;color:#B9141A;margin-bottom:8px}
.ngs .ngs-wf-end{margin:0;font-size:14px;color:#4A5866;text-align:center}
.ngs-wf-menu{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;max-width:340px;margin:2px 0 6px;padding:10px;background:#fff;border:2px solid #0D1C29;border-radius:10px}
.ngs-wf-menu span{flex-basis:100%;text-align:center;font-size:13px;font-weight:700;color:#4A5866}
.ngs .ngs-seg button:focus-visible,.ngs .ngs-wfn:focus-visible,.ngs .ngs-wf-add:focus-visible{outline:3px solid #ED1F24;outline-offset:2px}

@media (max-width:980px){
	.ngs-wrap{padding:56px 16px}
	.ngs-body{grid-template-columns:minmax(0,1fr)}
	.ngs-rail{flex-direction:row;overflow-x:auto;gap:8px;padding-bottom:6px}
	.ngs .ngs-tab{flex:0 0 auto;width:auto;border-left:0;border-bottom:3px solid #2B3F52;border-radius:8px 8px 0 0;padding:10px 14px}
	.ngs .ngs-tab.ngs-on{border-bottom-color:#ED1F24}
	.ngs .ngs-tab span{display:none}
	.ngs-split,.ngs-split--rev{grid-template-columns:minmax(0,1fr)}
	.ngs-side,.ngs-split--rev .ngs-side{border:0;border-top:1px solid #D5DCE3}
	.ngs-split--rev .ngs-side{border-top:0;border-bottom:1px solid #D5DCE3}
	.ngs-hint{margin-left:0;flex-basis:100%}
	.ngs-board{grid-template-columns:minmax(0,1fr)}
	.ngs-row{grid-template-columns:minmax(0,1fr) auto}
	.ngs-row .ngs-val{grid-column:1;grid-row:2}
	.ngs-map{padding:8px}
}
@media (prefers-reduced-motion:reduce){.ngs-track i{transition:none}}
