/* NetShow split shell (line 1873, netshow-split-shell-kit-r1): layouts/netshow-stage.blade.php.
   The planes, splitter, sliver and tight bar are lifted from Michael's ACT home_iframe container
   format in the voice repo's public/wcis-site/index.html (:21-160); the full-width top bar follows
   the one-top-menu pattern of Rose's alive page. Colours are NetShow's landing-v4 dark and gold.
   Line 1986: the palette is declared on the top menu and the footer index too, so layouts.landing
   draws them (behind landing_top_menu) with the same colours outside the shell. */
.ns-stage-body, .ns-tm, .ns-foot {
    --ns-bg: #060610;
    --ns-bg-deep: #0a0a14;
    --ns-surface: #12121e;
    --ns-elevated: #1a1a2a;
    --ns-card: #161624;
    --ns-text: #f0f0f5;
    --ns-text-2: #b4b4c8;
    --ns-gold: #f5a623;
    --ns-gold-light: #ffcf73;
    --ns-gold-deep: #c7851a;
    --ns-gold-glow: rgba(245, 166, 35, .25);
    --ns-gold-border: rgba(245, 166, 35, .28);
    --ns-border: rgba(255, 255, 255, .08);
    --ns-border-strong: rgba(255, 255, 255, .14);
    --ns-radius: 14px;
    --ns-tm-h: 64px;
    --ns-bar-h: 56px;
    --ns-panebar-h: 44px;
}
.ns-stage-body {
    margin: 0;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--ns-bg);
    color: var(--ns-text);
    font: 16px/1.55 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.ns-stage-body *, .ns-stage-body *::before, .ns-stage-body *::after { box-sizing: border-box; }
.ns-stage-body [hidden] { display: none !important; }
.ns-stage-body a { color: var(--ns-gold-light); }
.ns-stage-body :focus-visible { outline: 2px solid var(--ns-gold); outline-offset: 2px; }
.ns-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ns-gold); color: #1a1206 !important; padding: 8px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.ns-skip:focus { top: 8px; }

/* ---- the one top menu: full width, above both planes ---- */
.ns-tm, .ns-foot { font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.ns-tm { position: sticky; top: 0; z-index: 50; flex: 0 0 var(--ns-tm-h); height: var(--ns-tm-h); display: flex; align-items: center; gap: 18px; padding: 0 20px; background: rgba(10, 10, 20, .96); border-bottom: 1px solid var(--ns-border); }
.ns-tm-logo { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; color: var(--ns-text) !important; font-weight: 800; font-size: 19px; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.ns-tm-mark { color: var(--ns-gold); flex: none; }
.ns-tm-nav { flex: 1 1 auto; min-width: 0; }
.ns-tm-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.ns-tm-item > a, .ns-tm-group summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ns-text-2) !important; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ns-tm-item > a:hover, .ns-tm-group summary:hover, .ns-tm-group details[open] > summary { color: var(--ns-text) !important; background: var(--ns-elevated); }
.ns-tm-group { position: relative; }
.ns-tm-group summary { list-style: none; }
.ns-tm-group summary::-webkit-details-marker { display: none; }
.ns-tm-caret { transition: transform .15s ease; }
.ns-tm-group details[open] .ns-tm-caret { transform: rotate(180deg); }
.ns-tm-drop { list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--ns-surface); border: 1px solid var(--ns-border-strong); border-radius: 12px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .8); }
.ns-tm-drop a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--ns-text) !important; font-weight: 600; font-size: 15px; text-decoration: none; }
.ns-tm-drop a:hover { background: var(--ns-elevated); color: var(--ns-gold-light) !important; }
.ns-tm-cta { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--ns-gold); color: #1a1206 !important; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 30px -10px var(--ns-gold-glow); }
.ns-tm-cta:hover { background: var(--ns-gold-light); }
.ns-tm-toggle { display: none; flex: none; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 10px; background: var(--ns-elevated); color: var(--ns-text); border: 1px solid var(--ns-border-strong); font-weight: 700; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; }
@media (max-width: 899px) {
    .ns-tm { gap: 10px; padding: 0 12px; }
    .ns-tm-toggle { display: inline-flex; }
    .ns-tm-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--ns-tm-h)); overflow-y: auto; padding: 10px 12px 16px; background: var(--ns-surface); border-bottom: 1px solid var(--ns-border-strong); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
    .ns-tm.is-open .ns-tm-nav { display: block; }
    .ns-tm-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .ns-tm-item > a, .ns-tm-group summary { width: 100%; justify-content: space-between; min-height: 48px; font-size: 16px; }
    .ns-tm-drop { position: static; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 6px 12px; }
    .ns-tm-cta { margin-left: auto; }
    .ns-tm-nav + .ns-tm-toggle { margin-left: auto; } /* no filled button: the menu button still sits at the edge */
}
@media (max-width: 420px) {
    .ns-tm-logo span { font-size: 17px; }
    .ns-tm-cta { padding: 9px 12px; font-size: 14px; }
    .ns-tm-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .ns-tm-toggle { padding: 8px 10px; }
}
@media (max-width: 359px) {
    .ns-tm-logo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- the two planes and the splitter (template :25-30) ---- */
.ns-planes { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: row; width: 100%; }
.ns-host { position: relative; flex: 0 0 var(--ns-host-size, 380px); min-width: 84px; max-width: 70vw; height: 100%; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 50% 20%, #1c1a2e 0%, var(--ns-bg-deep) 70%); overflow: hidden; }
.ns-splitter { flex: 0 0 10px; cursor: col-resize; background: linear-gradient(to right, var(--ns-surface), #2a2638, var(--ns-surface)); display: flex; align-items: center; justify-content: center; touch-action: none; user-select: none; z-index: 5; }
.ns-splitter:hover, .ns-splitter:focus-visible { background: linear-gradient(to right, var(--ns-surface), var(--ns-gold-deep), var(--ns-surface)); }
.ns-nub { width: 4px; height: 46px; border-radius: 3px; background: var(--ns-gold-border); pointer-events: none; }
.ns-content { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; overflow-y: auto; overflow-x: hidden; background: var(--ns-bg); scroll-behavior: smooth; }
.ns-main { outline: none; }
.ns-planes.ns-swapped { flex-direction: row-reverse; }
.ns-planes.ns-host-min .ns-host { flex-basis: 84px !important; min-width: 84px; }

/* ---- the host plane: name and role, the still face, the tight bar ---- */
.ns-panebar { flex: 0 0 var(--ns-panebar-h); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; background: rgba(10, 10, 20, .85); border-bottom: 1px solid var(--ns-border); }
.ns-host-id { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.ns-host-name { font-weight: 800; font-size: 15px; color: var(--ns-text); }
.ns-host-role { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ns-gold); overflow: hidden; text-overflow: ellipsis; }
.ns-swap { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 32px; border-radius: 8px; background: var(--ns-elevated); color: var(--ns-text); border: 1px solid var(--ns-border-strong); cursor: pointer; }
.ns-swap:hover { border-color: var(--ns-gold); color: var(--ns-gold-light); }
.ns-face { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ns-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ns-bar { flex: 0 0 var(--ns-bar-h); display: flex; align-items: stretch; gap: 1px; background: var(--ns-bg); border-top: 1px solid var(--ns-border); z-index: 45; }
.ns-bar button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--ns-surface); color: var(--ns-text); border: 0; font-weight: 800; font-size: 10.5px; line-height: 1.1; font-family: inherit; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ns-bar button:hover, .ns-bar button[aria-pressed="true"], .ns-bar button[aria-expanded="true"] { background: var(--ns-elevated); color: var(--ns-gold-light); }
.ns-bar button svg { flex: none; }
.ns-bar-slot { display: contents; }
.ns-pop { position: absolute; left: 10px; right: 10px; bottom: calc(var(--ns-bar-h) + 8px); z-index: 47; max-height: calc(100% - var(--ns-bar-h) - var(--ns-panebar-h) - 20px); overflow-y: auto; padding: 12px; background: var(--ns-surface); border: 1px solid var(--ns-border-strong); border-radius: 12px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .85); font-size: 14px; color: var(--ns-text-2); }
.ns-pop p { margin: 0 0 8px; }
.ns-pop-hd { font-size: 11px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ns-gold) !important; margin: 6px 0 6px !important; }
.ns-pop button { display: block; width: 100%; text-align: left; margin: 2px 0; padding: 9px 10px; border-radius: 8px; background: none; border: 0; color: var(--ns-text); font-weight: 700; font-size: 14px; line-height: 1.3; font-family: inherit; cursor: pointer; }
.ns-pop button span { font-weight: 600; color: var(--ns-text-2); font-size: 12px; margin-left: 6px; }
.ns-pop button:hover, .ns-pop button[aria-pressed="true"] { background: var(--ns-elevated); color: var(--ns-gold-light); }
.ns-reach-list { list-style: none; margin: 0; padding: 0; }
.ns-reach-list a { display: block; padding: 9px 10px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.ns-reach-list a:hover { background: var(--ns-elevated); }
.ns-debug { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--ns-border-strong); }
.ns-vol { position: absolute; left: 30%; bottom: calc(var(--ns-bar-h) + 8px); z-index: 60; padding: 10px 12px; background: var(--ns-surface); border: 1px solid var(--ns-border-strong); border-radius: 10px; }
.ns-vol input { width: 140px; accent-color: var(--ns-gold); }

/* width classes (template :661-666): mid and icons fold the labels, narrow is the icon column */
.ns-host.ns-w-icons .ns-bar button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ns-host.ns-w-narrow .ns-panebar { display: none; }
.ns-host.ns-w-narrow .ns-face { flex: none; aspect-ratio: 1 / 1; }
.ns-host.ns-w-narrow .ns-bar { flex: 1 1 auto; flex-direction: column; }
.ns-host.ns-w-narrow .ns-bar button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- the page plane footer: the full public index, a person to reach, the legal links ---- */
.ns-foot { margin-top: 48px; padding: 36px 24px 28px; background: var(--ns-bg-deep); border-top: 1px solid var(--ns-border); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ns-foot-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.ns-foot ul { list-style: none; margin: 0; padding: 0; }
.ns-foot li { margin: 0 0 6px; }
.ns-foot a { color: var(--ns-text-2); text-decoration: none; font-weight: 600; }
.ns-foot a:hover { color: var(--ns-gold-light); text-decoration: underline; }
.ns-foot-hd { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ns-gold); }
.ns-foot-legal { margin: 0; padding-top: 16px; border-top: 1px solid var(--ns-border); font-size: 14px; color: var(--ns-text-2); }
/* layouts.landing (line 1986): the footer index inside the page footer, no second panel */
.ns-foot--page { margin-top: 0; padding: 28px 0 20px; background: transparent; border-top: 0; text-align: left; }
.ns-foot--page a { display: inline-block; min-height: 44px; padding: 10px 0; line-height: 24px; }
.ns-foot--page li { margin: 0; }

/* ---- PORTRAIT / PHONE (template :152-160): the page on top, the host a living strip at the bottom ---- */
@media (max-width: 700px), (orientation: portrait) and (max-width: 1024px) {
    .ns-planes, .ns-planes.ns-swapped { flex-direction: column; }
    .ns-content { order: 1; flex: 1 1 auto; height: auto; min-height: 0; }
    .ns-splitter { order: 2; flex: 0 0 14px; cursor: row-resize; background: linear-gradient(to bottom, var(--ns-surface), #2a2638, var(--ns-surface)); }
    .ns-splitter:hover, .ns-splitter:focus-visible { background: linear-gradient(to bottom, var(--ns-surface), var(--ns-gold-deep), var(--ns-surface)); }
    .ns-nub { width: 46px; height: 4px; }
    .ns-host { order: 3; flex: 0 0 var(--ns-host-size-m, 46dvh); width: 100%; min-width: 0; max-width: none; height: auto; min-height: 96px; max-height: 78dvh; }
    .ns-planes.ns-host-min .ns-host { flex-basis: var(--ns-host-size-m, 46dvh) !important; }
    .ns-panebar { flex-basis: 40px; }
    /* the living sliver: face, name and TALK stay; the page takes the rest */
    .ns-planes.ns-host-sliver .ns-host { flex-basis: 96px !important; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; grid-template-rows: 1fr; cursor: pointer; }
    .ns-planes.ns-host-sliver .ns-face { grid-column: 1; grid-row: 1; height: 96px; }
    .ns-planes.ns-host-sliver .ns-panebar { grid-column: 2; grid-row: 1; border: 0; background: none; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 12px; }
    .ns-planes.ns-host-sliver .ns-host-id { flex-direction: column; gap: 2px; }
    .ns-planes.ns-host-sliver .ns-swap { display: none; }
    .ns-planes.ns-host-sliver .ns-bar { grid-column: 3; grid-row: 1; border: 0; background: none; align-items: center; padding-right: 10px; }
    .ns-planes.ns-host-sliver .ns-bar button { display: none; }
    .ns-planes.ns-host-sliver .ns-bar button[data-ns-stage-btn="talk"] { display: flex; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--ns-gold); color: #1a1206; }
    .ns-planes.ns-host-sliver .ns-pop { display: none !important; }
    .ns-foot { padding: 28px 16px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .ns-content { scroll-behavior: auto; }
    .ns-tm-caret { transition: none; }
}

/* Line 1874: the host's live face, invitation line, captions and backup-voice label (netshow-stage-voice.js).
   The live face sits over the still in the same box; the still stays under it until the face reports ready. */
.ns-face-live { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ns-face-live > * { width: 100%; height: 100%; }
.ns-host[data-face="live"] .ns-face img[data-ns-stage-face] { visibility: hidden; }
.ns-invite { position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(6, 6, 16, .78); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.35; text-align: center; }
.ns-backup { position: absolute; top: 10px; left: 10px; margin: 0; padding: 3px 9px; border-radius: 999px; background: rgba(6, 6, 16, .78); color: var(--ns-gold, #f5c451); font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.ns-captions { position: absolute; left: 12px; right: 12px; bottom: 12px; max-height: 40%; overflow: hidden; padding: 8px 12px; border-radius: 12px; background: rgba(6, 6, 16, .78); color: #fff; font-size: .95rem; line-height: 1.4; }
.ns-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ns-host.ns-speaking .ns-face { animation: ns-speak 0.9s ease-in-out infinite; }
@keyframes ns-speak { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.08); } }
.ns-planes.ns-host-sliver .ns-invite, .ns-planes.ns-host-sliver .ns-captions { display: none; }
@media (prefers-reduced-motion: reduce) {
    .ns-host.ns-speaking .ns-face { animation: none; }
}
