/* Brand theme — matched to elipsum.com's design system
   navy #1c2448 · teal #147e7c / #226160 · body text #555 · white bg · Poppins · pill buttons */
:root {
    --ns-navy: #1c2448;        /* elipsum dark navy (primary) */
    --ns-navy-deep: #15172f;   /* elipsum deepest navy */
    --ns-blue: #147e7c;        /* elipsum teal (accent / CTA) */
    --ns-blue-dark: #226160;   /* elipsum teal, darker */
    --ns-teal-light: #468584;  /* elipsum teal, lighter (hover) */
    --ns-grey: #ffffff;        /* elipsum page bg is white */
    --ns-ink: #555555;         /* elipsum body text */
    --ns-border: #e3eaf0;
    --ns-font: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    background: var(--ns-grey);
    font-family: var(--ns-font);
    color: var(--ns-ink);
}

/* Top header bar — navy with the logo (matches elipsum.com chrome) */
.ns-header { background: var(--ns-navy); border-bottom: 3px solid var(--ns-blue); }
.ns-header-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
}
.ns-brandgroup { display: flex; align-items: center; gap: 14px; }
.ns-vertical { color: #fff; font-size: .82rem; font-weight: 600; letter-spacing: .3px; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); }
.ns-logo { display: block; line-height: 0; }
.ns-logo img { height: 38px; display: block; }
.ns-nav { display: flex; align-items: center; gap: 24px; }
.ns-nav a { color: #fff; text-decoration: none; font-size: .84rem; font-weight: 500; }
.ns-nav a:hover { color: var(--ns-teal-light); }
/* elipsum.com signature CTA: white pill, dark navy text, 20px radius */
.ns-cta {
    background: #fff; color: var(--ns-navy) !important;
    padding: 9px 20px; border-radius: 20px;
    font-size: .76rem; font-weight: 600; letter-spacing: .3px;
    transition: background .15s, color .15s;
}
.ns-cta:hover { background: var(--ns-blue); color: #fff !important; }

/* White content shell on the page */
.ns-main { max-width: 1180px; margin: 22px auto; }
.ns-footer {
    max-width: 1180px; margin: 8px auto 28px; padding: 14px 32px;
    color: #7a8a99; font-size: .72rem; border-top: 1px solid var(--ns-border);
    display: flex; justify-content: space-between;
}

/* Responsive: the page <style> blocks use fixed multi-column grids; collapse them
   on tablets/phones so nothing overflows. Class names are shared across pages. */
@media (max-width: 1000px) {
    .ns-header-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 18px; }
    .ns-nav { flex-wrap: wrap; gap: 14px; }
    .ns-main { padding: 0 4px; }
    /* KPI / figure / card rows → two-up */
    .kpis, .track, .figs, .mono-cards { grid-template-columns: 1fr 1fr !important; }
    /* Two-column layouts → stack */
    .cols, .grid2, .strat-cols, .refs-cols { grid-template-columns: 1fr !important; }
    .inc-grid { columns: 1 !important; }
    /* Worker-group grid can scroll rather than crush */
    .groups { overflow-x: auto; }
    .grp-head, .grp-row { min-width: 640px; }
    /* Maturity staircase → flat stacked column on small screens (no offset) */
    .rm-cols5 { grid-template-columns: 1fr !important; align-items: stretch !important; }
    .rm-col.step1, .rm-col.step2, .rm-col.step3, .rm-col.step4, .rm-col.step5 { margin-top: 0 !important; }
    .rm-yaxis { display: none; }
    .disc-banner, .mav-cta, .regsub-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    .kpis, .track, .figs, .mono-cards { grid-template-columns: 1fr !important; }
    .asmt, .wvci, .pa, .ad, .disc-mgr { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Print: drop the site chrome so the PDF cover + content stand alone. */
@media print {
    .ns-header, .ns-footer { display: none !important; }
    .ns-main { margin: 0; max-width: none; }
    body { background: #fff; }
}
