/* NorthStar Clarity layer — contrast, sectioning and guidance.
   Loaded last. Changes color/weight/borders only; no layout rewrites. */
:root{
  --nsc-card-border: rgba(160,148,255,.55);
  --nsc-card-border-soft: rgba(134,205,255,.22);
  --nsc-text-2: #d3d8e1;
  --nsc-text-3: #aeb6c3;
  --nsc-input-border: rgba(255,255,255,.24);
}

/* Section cards: crisp 1px border you can actually see */
html body #main .card{border:1px solid var(--nsc-card-border)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
html body #main .card .card{border-color:var(--nsc-card-border-soft)!important;box-shadow:none}
html body #main .card:hover{border-color:rgba(176,166,255,.72)!important}
html body #main .card .card:hover{border-color:rgba(134,205,255,.4)!important}

/* Section headings inside cards */
html body #main .card > .eyebrow,
html body #main .card .row > div > .eyebrow{color:var(--accent,#86cdff)!important;opacity:1}
html body #main .section-title{color:#fff!important}

/* Secondary text: brighter, normal weight */
html body #main .faint{color:var(--nsc-text-3)!important;font-weight:400!important}
html body #main .muted{color:var(--nsc-text-2)!important}
html body #main .page-desc{color:var(--nsc-text-2)!important}
html body #main .field-label{color:#c6cdd8!important;font-size:12px!important;letter-spacing:.06em}

/* Inputs */
html body #main input:not([type=checkbox]):not([type=radio]),
html body #main select,
html body #main textarea{border:1px solid var(--nsc-input-border)!important}
html body #main input:focus,html body #main select:focus,html body #main textarea:focus{border-color:var(--accent,#86cdff)!important;outline:none;box-shadow:0 0 0 3px rgba(134,205,255,.15)}
html body #main input::placeholder,html body #main textarea::placeholder{color:#7f8796}

/* Tables and divider rows */
html body #main table thead tr{color:var(--nsc-text-3)!important;border-bottom-color:rgba(255,255,255,.18)!important}
html body #main table tbody tr{border-bottom-color:rgba(255,255,255,.10)!important}

/* Tabs */
html body #main .pill-tab{color:var(--nsc-text-3)}
html body #main .pill-tab.active{color:#fff}

/* ---------- How-it-works strip ---------- */
.nsc-steps{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin:14px 0 4px;padding:10px 14px;border:1px solid var(--nsc-card-border-soft);border-radius:12px;background:rgba(134,205,255,.04);font-size:13.5px;color:var(--nsc-text-2)}
.nsc-steps .nsc-label{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent,#86cdff);font-weight:700;margin-right:4px}
.nsc-steps .nsc-step{display:inline-flex;align-items:center;gap:7px}
.nsc-steps .nsc-step i{font-style:normal;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid rgba(134,205,255,.6);color:var(--accent,#86cdff);font-size:11px;font-weight:700;flex:none}
.nsc-steps .nsc-arrow{color:#5f6878}
.nsc-steps a{color:var(--accent,#86cdff)}
.nsc-steps .nsc-x{margin-left:auto;background:none;border:0;color:#7f8796;cursor:pointer;font:inherit;font-size:12px;padding:2px 4px}
.nsc-steps .nsc-x:hover{color:#fff}
.nsc-steps.nsc-min{padding:6px 12px;background:none}
.nsc-steps.nsc-min .nsc-step,.nsc-steps.nsc-min .nsc-arrow{display:none}
@media (max-width:640px){.nsc-steps{font-size:13px}.nsc-steps .nsc-arrow{display:none}.nsc-steps .nsc-step{width:100%}}

/* ---------- Content Engine queue ---------- */
.ce-q-title{font-size:15px;color:#fff}
.ce-q-meta{margin-top:4px;color:var(--nsc-text-3);font-size:13px}
.ce-q-date{color:var(--accent,#86cdff)}
.ce-q.open{border-color:rgba(134,205,255,.7)!important}
.ce-q-body{margin-top:14px;border-top:1px solid rgba(255,255,255,.12);padding-top:14px}
.ce-steps{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:14px;font-size:13px;color:var(--nsc-text-3)}
.ce-step{display:inline-flex;align-items:center;gap:6px}
.ce-step i{font-style:normal;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid #4a5363;font-size:11px;font-weight:700}
.ce-step.now{color:#fff}.ce-step.now i{border-color:var(--accent,#86cdff);color:var(--accent,#86cdff)}
.ce-step.done{color:#9fe3c4}.ce-step.done i{border-color:#3ddc97;color:#3ddc97}
.ce-arrow{color:#5f6878}
.ce-q-preview{max-height:320px;overflow:auto;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:12px 14px;background:rgba(255,255,255,.02)}
.ce-q-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.ce-q-section{border:1px solid var(--nsc-card-border-soft);border-radius:10px;padding:12px}
.ce-q-h{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent,#86cdff);font-weight:700;margin-bottom:8px}
.ce-q-hint{margin-top:8px;font-size:12.5px;line-height:1.5;color:var(--nsc-text-3)}
.ce-q-hint a{color:var(--accent,#86cdff)}
.ce-ok{color:#3ddc97;font-size:13px;align-self:center}
.ce-q-intro{margin:16px 0 12px;color:var(--nsc-text-2);font-size:14px}
@media (max-width:860px){.ce-q-grid{grid-template-columns:1fr}}

/* Strip lives inside .page-desc: reset the header's display font */
html body #main .page-desc .nsc-steps{display:flex}
.nsc-steps .nsc-actions{margin-left:auto;display:inline-flex;gap:4px}
.nsc-steps .nsc-more,.nsc-steps .nsc-x{background:none;border:0;color:#8f98a8;cursor:pointer;font:inherit;font-size:12px;padding:2px 6px;margin:0}
.nsc-steps .nsc-more:hover,.nsc-steps .nsc-x:hover{color:#fff}
.nsc-steps.nsc-min .nsc-more{display:none}
/* The old one-line "About this feature" banner repeats the description; fold it behind Details */
html body #module-body.nsc-on:not(.nsc-details) .nsx-intro{display:none!important}

/* ---------- Body font: clean sans for reading, small caps stay on labels/buttons/nav ---------- */
html body #app #main .page-desc,
html body #app #main .page-desc *,
html body #app #main .muted,
html body #app #main .muted *,
html body #app #main .faint,
html body #app #main .faint *,
html body #app #main .genbody,
html body #app #main .genbody *,
html body #app #main p,
html body #app #main li,
html body #app #main td,
html body #app #main textarea,
html body #app #main input,
html body #app #main select,
html body #app #main .empty-state,
html body #app #main .empty-state *,
html body #app #main .nsc-steps,
html body #app #main .nsc-steps *,
html body #app #main .ce-q-meta,
html body #app #main .ce-q-meta *,
html body #app #main .ce-q-hint,
html body #app #main .ce-q-hint *,
html body #app #main .ce-q-intro,
html body #app #main .ce-q-intro *,
html body #app #main .ce-steps,
html body #app #main .ce-steps *,
html body #app #main .sup-body,
html body #app #main .sup-body *,
html body #app #main .sup-msg-body,
html body #app #main .sup-msg-body *,
html body #app #main .nsx-intro,
html body #app #main .nsx-intro *,
html body #ns-mi .ns-mi-what,
html body #ns-mi .ns-mi-what *,
html body #ns-mi .ns-mi-list li,
html body #ns-mi .ns-mi-tip,
html body #ns-mi .ns-mi-tip *{font-family:"Source Sans 3","Manrope",system-ui,-apple-system,"Segoe UI",sans-serif!important;font-variant:normal!important;text-transform:none!important;letter-spacing:normal}
html body #app #main .page-desc{font-size:16px}
html body #app #main .genbody{font-size:15px;line-height:1.65}
html body #app #main .faint{font-size:13.5px}
html body #app #main .muted{font-size:14.5px}

/* Let the strip use the page width even though it sits inside the narrow description */
html body #main .page-desc .nsc-steps{width:max-content;max-width:min(1100px,calc(100vw - 48px));box-sizing:border-box}
@media (max-width:640px){html body #main .page-desc .nsc-steps{width:auto;max-width:100%}}
html body #app #main .nsc-steps .nsc-label{text-transform:uppercase!important;letter-spacing:.1em!important;font-weight:700}

/* Operations Center: Today is for doing, Executive view is for reading.
   Performance charts live only on Executive view. */
html body #module-body[data-nsc-route="ops"] #nsv-panel{display:none!important}
