/* NOTWEN Node — V9.9.0: targeted RP Chat demo and buyer docs presentation. */
/* Demo mirrors the wide in-game HUD preview; actual original NUI runs on top. */
#rpchat-demo{scroll-margin-top:95px}
#rpchat-demo .nw-rp-live-demo{border:1px solid #1c343d;border-radius:14px;overflow:hidden;background:#080f12;box-shadow:0 20px 56px rgba(0,0,0,.20)}
#rpchat-demo .nw-rp-live-banner{display:flex;align-items:center;justify-content:space-between;gap:10px 24px;padding:13px 20px;border-bottom:1px solid #1c343d;background:#102027;color:#91a6ae;font:500 11px/1.5 var(--font-ui)}
#rpchat-demo .nw-rp-live-banner strong{font-size:10px;letter-spacing:.085em;color:#24ec70}
#rpchat-demo .nw-rp-live-viewport{position:relative!important;display:block!important;width:100%!important;aspect-ratio:16 / 9!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden;background:#101c21!important;isolation:isolate}
#rpchat-demo .nw-rp-live-viewport>.nw-rp-demo-background{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center center;filter:brightness(.76) saturate(.85)}
#rpchat-demo .nw-rp-live-viewport::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(6,15,18,.18),rgba(8,15,18,.05) 48%,rgba(4,12,16,.18))}
#rpchat-demo .nw-rp-live-viewport>iframe{display:block!important;position:absolute!important;inset:0!important;z-index:2!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;border:0!important;background:transparent!important}
#rpchat-demo .nw-rp-stage-tag{position:absolute;bottom:14px;right:16px;z-index:3;display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(120,220,203,.18);border-radius:7px;background:rgba(8,15,18,.82);backdrop-filter:blur(8px);color:#b7d0d2;font:800 9px/1 var(--font-ui);letter-spacing:.06em;pointer-events:none}
#rpchat-demo .nw-rp-stage-tag small{margin-left:8px;color:#6d9292;font:700 8px/1 var(--font-ui)}
#rpchat-demo .nw-rp-stage-dot{width:6px;height:6px;border-radius:50%;background:#24ec70;box-shadow:0 0 9px rgba(36,236,112,.4)}
#rpchat-demo .nw-rp-live-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:14px 18px;background:#0c171d;border-top:1px solid #1c343d}
#rpchat-demo .nw-rp-live-actions button,#rpchat-demo .nw-rp-live-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:8px 12px;min-width:0;border:1px solid #1c343d;border-radius:7px;background:#102027;color:#f2f6f7;font:750 11px/1.2 var(--font-ui);text-decoration:none;cursor:pointer;transition:color .15s,border-color .15s,background .15s}
#rpchat-demo .nw-rp-live-actions button:hover,#rpchat-demo .nw-rp-live-actions a:hover,#rpchat-demo .nw-rp-live-actions button:focus-visible,#rpchat-demo .nw-rp-live-actions a:focus-visible{color:#24ec70;border-color:#24ec70}
#rpchat-demo .nw-rp-live-help{margin:0;padding:1px 18px 17px;color:#91a6ae;background:#0c171d;font:500 11px/1.7 var(--font-ui)}
#rpchat-demo .nw-rp-live-state{color:#24ec70;font-weight:750}#rpchat-demo .nw-rp-live-state.is-error{color:#f26b7b}
@media(max-width:720px){#rpchat-demo .nw-rp-live-viewport{aspect-ratio:auto!important;height:520px!important}#rpchat-demo .nw-rp-stage-tag{bottom:9px;right:10px;font-size:8px}#rpchat-demo .nw-rp-stage-tag small{display:none}#rpchat-demo .nw-rp-live-banner{padding:12px 14px}#rpchat-demo .nw-rp-live-actions{padding:12px;gap:6px}#rpchat-demo .nw-rp-live-actions button,#rpchat-demo .nw-rp-live-actions a{min-height:36px;padding:7px 9px;font-size:10px}#rpchat-demo .nw-rp-live-help{padding:5px 14px 16px}}

/* RP Chat documentation: product hero, consistent sections, readable editorial rhythm. */
body.nw-docs .v46-doc-article:has(.nw-rp-documentation){min-width:0}
body.nw-docs .v46-article-shell:has(.nw-rp-documentation){width:min(1536px,calc(100% - 48px));grid-template-columns:minmax(224px,262px) minmax(0,1fr) minmax(175px,198px);gap:24px}
body.nw-docs .nw-rp-documentation{display:flex;flex-direction:column;gap:0;min-width:0;width:100%;font-family:var(--font-ui)}
body.nw-docs .nw-rp-documentation .nw-rp-guide-hero{display:grid;grid-template-columns:minmax(0,1.38fr) minmax(190px,.62fr);gap:24px;align-items:center;min-width:0;padding:29px 30px;margin:0 0 12px;border:1px solid #1c343d;border-radius:14px;background:radial-gradient(circle at 93% 0%,rgba(36,236,112,.09),transparent 45%),linear-gradient(140deg,#102027,#091418 75%);box-shadow:0 14px 40px rgba(0,0,0,.14)}
body.nw-docs .nw-rp-guide-hero-copy{min-width:0}
body.nw-docs .nw-rp-guide-ident{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:21px;color:#96b2b7;font:800 9px/1.4 var(--font-ui);letter-spacing:.09em}
body.nw-docs .nw-rp-pulse{width:6px;height:6px;border-radius:50%;background:#24ec70;box-shadow:0 0 8px rgba(36,236,112,.4)}
body.nw-docs .nw-rp-guide-version{padding:5px 7px;border:1px solid rgba(36,236,112,.22);border-radius:5px;background:rgba(36,236,112,.05);color:#24ec70;font:800 9px/1 var(--font-ui)}
body.nw-docs .nw-rp-documentation .nw-rp-guide-hero .eyebrow{display:none!important}
body.nw-docs .nw-rp-documentation .nw-rp-guide-hero h1{width:100%;margin:0 0 15px!important;padding:0!important;font:800 clamp(32px,3.4vw,53px)/1.06 var(--font-ui)!important;letter-spacing:-.05em;color:#f2f6f7}
body.nw-docs .nw-rp-documentation .nw-rp-guide-hero h1::before{display:none!important}
body.nw-docs .nw-rp-documentation .nw-rp-guide-hero .doc-lead{width:100%;max-width:570px;margin:0!important;color:#afc2c7;font:500 13px/1.75 var(--font-ui)!important}
body.nw-docs .nw-rp-documentation .nw-rp-guide-hero .nw-doc-article-meta{display:none!important}
body.nw-docs .nw-rp-guide-flags{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px}
body.nw-docs .nw-rp-guide-flags span{padding:6px 8px;border:1px solid rgba(121,200,207,.13);border-radius:5px;background:rgba(7,17,21,.62);color:#84a2a9;font:750 9px/1 var(--font-ui)}
body.nw-docs .nw-rp-guide-visual{display:grid;align-self:stretch;align-content:center;min-width:0;gap:8px;padding:9px;text-decoration:none;border:1px solid rgba(115,201,204,.16);border-radius:10px;background:#071115;transition:border-color .15s ease}
body.nw-docs .nw-rp-guide-visual:hover{border-color:#24ec70}
body.nw-docs .nw-rp-guide-visual img{display:block;width:100%;height:auto;max-height:175px;object-fit:contain;border-radius:5px;background:#0c171d}
body.nw-docs .nw-rp-guide-visual span{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 2px 2px;color:#a2c2c0;font:800 8px/1.3 var(--font-ui);letter-spacing:.06em}
body.nw-docs .nw-rp-guide-visual b{color:#24ec70;font-size:14px}
body.nw-docs .nw-rp-guide-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 25px}
body.nw-docs .nw-rp-guide-shortcuts a{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:48px;padding:12px 11px;border:1px solid #1c343d;border-radius:8px;background:#0c171d;color:#739097;font:700 9px/1.2 var(--font-ui);text-decoration:none;transition:border-color .15s,color .15s}
body.nw-docs .nw-rp-guide-shortcuts a strong{color:#d7e7ea;font:800 10px/1.2 var(--font-ui)}
body.nw-docs .nw-rp-guide-shortcuts a:hover{border-color:#24ec70;color:#24ec70}
body.nw-docs .nw-rp-documentation>p:not(.doc-lead){width:min(100%,850px);margin:0 0 23px!important;color:#a7b9bf!important;font:500 13px/1.85 var(--font-ui)!important}
body.nw-docs .nw-rp-documentation>.nw-rp-doc-block{display:block!important;position:relative;width:100%;margin:0 0 11px!important;padding:26px 29px 25px!important;border:1px solid #1c343d!important;border-radius:11px!important;background:linear-gradient(155deg,#0d1a20,#09151a)!important;box-shadow:none!important;scroll-margin-top:104px}
body.nw-docs .nw-rp-documentation>.nw-rp-doc-block::before{content:''!important;display:block!important;position:absolute;inset:21px auto 21px 0;width:2px;background:linear-gradient(#24ec70,rgba(36,236,112,.05))}
body.nw-docs .nw-rp-documentation .nw-rp-doc-section-index{display:inline-flex;align-items:center;gap:9px;margin:0 0 13px;color:#49f38b;font:850 9px/1.2 var(--font-ui);letter-spacing:.11em}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block>h2{margin:0 0 16px!important;padding:0!important;font:800 clamp(19px,2vw,23px)/1.24 var(--font-ui)!important;letter-spacing:-.035em;color:#f2f6f7!important}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block>h2::before{display:none!important}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block>p,body.nw-docs .nw-rp-documentation .nw-rp-doc-block>ul,body.nw-docs .nw-rp-documentation .nw-rp-doc-block>ol{margin:0 0 14px!important;color:#b3c4c9!important;font:500 13px/1.85 var(--font-ui)!important;max-width:100%}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block ul,body.nw-docs .nw-rp-documentation .nw-rp-doc-block ol{padding-left:20px!important}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block li{padding-left:3px;margin-bottom:9px!important}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block li::marker{color:#24ec70}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block p:last-child,body.nw-docs .nw-rp-documentation .nw-rp-doc-block li:last-child{margin-bottom:0!important}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block pre{max-width:100%;overflow:auto;margin:17px 0 16px!important;padding:20px!important;border:1px solid #1c343d;border-radius:8px;background:#080f12}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block pre code{padding:0!important;border:none!important;background:transparent!important;color:#cae4e0;font:550 12px/1.75 var(--font-code-docs)}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block :not(pre)>code{padding:2px 5px;border:1px solid rgba(36,236,112,.10);border-radius:4px;background:#102027;color:#84edab}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block table{display:block;max-width:100%;overflow-x:auto;border:1px solid #1c343d;border-radius:8px;border-collapse:separate;border-spacing:0}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block th,body.nw-docs .nw-rp-documentation .nw-rp-doc-block td{padding:13px 12px;border:0;border-bottom:1px solid #1c343d;text-align:left}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block th{background:#102027;color:#85dab0}
body.nw-docs .nw-rp-documentation .nw-rp-doc-block a{color:#6eefaa}
body.nw-docs .nw-rp-documentation .doc-page-nav{margin-top:15px}
body.nw-docs [data-rp-guide=overview] .nw-rp-doc-block:first-of-type>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0!important;list-style:none}
body.nw-docs [data-rp-guide=overview] .nw-rp-doc-block:first-of-type>ul>li{position:relative;margin:0!important;padding:13px 13px 13px 26px;border:1px solid rgba(111,195,204,.13);border-radius:8px;background:rgba(8,15,18,.62);font:500 12px/1.65 var(--font-ui)!important}
body.nw-docs [data-rp-guide=overview] .nw-rp-doc-block:first-of-type>ul>li::before{content:'✓';position:absolute;left:11px;top:12px;color:#24ec70;font-weight:900}
@media(max-width:1220px){body.nw-docs .v46-article-shell:has(.nw-rp-documentation){grid-template-columns:250px minmax(0,1fr);gap:24px}body.nw-docs .v46-doc-toc:has(.toc-note){display:none}}
@media(max-width:850px){body.nw-docs .v46-article-shell:has(.nw-rp-documentation){grid-template-columns:1fr;gap:14px;width:calc(100% - 28px)}body.nw-docs .nw-rp-documentation .nw-rp-guide-hero{grid-template-columns:1fr;padding:22px}body.nw-docs .nw-rp-guide-visual img{max-height:175px}body.nw-docs .nw-rp-guide-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){body.nw-docs .nw-rp-documentation .nw-rp-guide-hero{padding:19px;gap:17px}body.nw-docs .nw-rp-documentation>.nw-rp-doc-block{padding:19px 17px!important}body.nw-docs .nw-rp-documentation .nw-rp-doc-block>p,body.nw-docs .nw-rp-documentation .nw-rp-doc-block>li{font-size:12.5px!important}body.nw-docs [data-rp-guide=overview] .nw-rp-doc-block:first-of-type>ul{grid-template-columns:1fr}body.nw-docs .nw-rp-guide-shortcuts a{padding:11px 9px}}
@media(prefers-reduced-motion:reduce){body.nw-docs .nw-rp-guide-visual,#rpchat-demo .nw-rp-live-actions button{transition:none}}

/* Mobile documentation: show the article before the long desktop resource tree. */
body.nw-docs .nw-rp-mobile-chapters{display:none}
@media(max-width:850px){
body.nw-docs .v46-article-shell:has(.nw-rp-documentation)>.v46-doc-article{order:1}
body.nw-docs .v46-article-shell:has(.nw-rp-documentation)>.v46-docs-sidebar{order:2;margin-top:32px}
body.nw-docs .nw-rp-mobile-chapters{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;margin:0 0 22px;padding:0 0 7px}
body.nw-docs .nw-rp-mobile-chapters a{flex:0 0 auto;padding:9px 11px;border:1px solid #1c343d;border-radius:6px;background:#0c171d;color:#9fb6b9;font:750 10px/1 var(--font-ui);text-decoration:none}
body.nw-docs .nw-rp-mobile-chapters a[aria-current=page]{border-color:#24ec70;color:#24ec70;background:rgba(36,236,112,.08)}
body.nw-docs .nw-rp-mobile-chapters a:hover{color:#24ec70;border-color:#24ec70}
}
