/*
 * NAVLE Workspace Shell — scoped workspace chrome and route composition.
 *
 * Scope: app header, left workspace rail, mobile bottom navigation, mobile
 * drawer, account-state display, and approved workspace route composition.
 * All selectors are namespaced with .nws- so the shell never restyles page
 * content rendered by existing page JavaScript. Do not merge these rules into
 * site-chrome.css; keep the shell scoped (see SHELL-CONTRACT).
 *
 * Synchronized markup comes from scripts/lib/navle-workspace-shell.mjs via
 * scripts/sync-navle-workspace-shell.mjs.
 */

.nws-app,
.nws-drawer {
  --nws-navy-950: #0b2036;
  --nws-navy-900: #102a43;
  --nws-navy-800: #173b5e;
  --nws-slate-600: #52667a;
  --nws-slate-500: #697b8d;
  --nws-slate-400: #8b9aaa;
  --nws-slate-300: #c6d0d9;
  --nws-slate-200: #dce4ea;
  --nws-slate-150: #e8edf1;
  --nws-slate-100: #f1f5f7;
  --nws-paper: #ffffff;
  --nws-teal-800: #0b5f5a;
  --nws-teal-700: #0f766e;
  --nws-teal-600: #149188;
  --nws-teal-100: #dff3ef;
  --nws-teal-50: #eef8f6;
  --nws-blue-700: #2563a8;
  --nws-blue-50: #f0f6fb;
  --nws-amber-800: #9a5507;
  --nws-amber-600: #d9860b;
  --nws-amber-50: #fff8e8;
  --nws-shadow-xs: 0 1px 2px rgba(16, 42, 67, 0.05);
  --nws-shadow-md: 0 18px 48px rgba(16, 42, 67, 0.12);
  --nws-radius-md: 14px;
  --nws-rail-w: 252px;
  --nws-header-h: 72px;
  --nws-transition: 160ms ease;
}

.nws-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nws-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#nws-icon-paw,
#nws-icon-spark {
  fill: currentColor;
  stroke: none;
}

.nws-app :where(a, button):focus-visible,
.nws-drawer :where(a, button):focus-visible {
  outline: 3px solid rgba(20, 125, 117, 0.28);
  outline-offset: 2px;
}

/* ---- App frame ---------------------------------------------------------- */

.nws-app {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--nws-rail-w) minmax(0, 1fr);
  grid-template-rows: var(--nws-header-h) minmax(0, 1fr);
}

.nws-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  height: var(--nws-header-h);
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: var(--nws-rail-w) minmax(0, 1fr) auto;
  align-items: center;
  padding-right: 26px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--nws-slate-150);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nws-brand {
  display: inline-flex;
  height: 100%;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  color: var(--nws-navy-900);
  text-decoration: none;
}

.nws-brand__logo {
  display: block;
  width: 148px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}

.nws-header__context {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 12px;
  padding-left: 28px;
}

.nws-eyebrow {
  margin: 0;
  color: var(--nws-teal-700);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nws-header__context strong {
  font-size: 1rem;
}

.nws-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nws-header__menu {
  display: none;
}

.nws-icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  color: var(--nws-navy-900);
  background: #fff;
  border: 1px solid var(--nws-slate-200);
  border-radius: 12px;
  cursor: pointer;
}

.nws-icon-button:hover {
  border-color: var(--nws-slate-300);
  box-shadow: var(--nws-shadow-xs);
}

/* Keep the drawer trigger hidden on desktop despite .nws-icon-button display. */
.nws-header .nws-header__menu {
  display: none;
}

.nws-access-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  color: var(--nws-teal-800);
  background: var(--nws-teal-50);
  border: 1px solid #cde8e3;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.nws-access-pill__dot {
  width: 7px;
  height: 7px;
  background: var(--nws-teal-600);
  border-radius: 999px;
}

body[data-nws-account-state="free"] .nws-access-pill,
body[data-nws-account-state="signedout"] .nws-access-pill {
  color: var(--nws-blue-700);
  background: var(--nws-blue-50);
  border-color: #d5e4f1;
}

body[data-nws-account-state="free"] .nws-access-pill__dot,
body[data-nws-account-state="signedout"] .nws-access-pill__dot {
  background: var(--nws-blue-700);
}

body[data-nws-account-state="expired"] .nws-access-pill {
  color: var(--nws-amber-800);
  background: var(--nws-amber-50);
  border-color: #f2dca9;
}

body[data-nws-account-state="expired"] .nws-access-pill__dot {
  background: var(--nws-amber-600);
}

.nws-header__auth {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 6px 8px;
  color: var(--nws-navy-800);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nws-header__auth:hover {
  color: var(--nws-teal-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nws-header__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  color: #fff;
  background: var(--nws-teal-700);
  border: 1px solid var(--nws-teal-700);
  border-radius: 10px;
  box-shadow: 0 7px 16px rgba(15, 118, 110, 0.15);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--nws-transition),
    border-color var(--nws-transition);
}

.nws-header__cta:hover {
  color: #fff;
  background: var(--nws-teal-800);
  border-color: var(--nws-teal-800);
}

/* ---- Left rail ---------------------------------------------------------- */

.nws-rail {
  position: sticky;
  top: var(--nws-header-h);
  z-index: 20;
  display: flex;
  height: calc(100vh - var(--nws-header-h));
  min-height: 0;
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow-y: auto;
  padding: 22px 16px 18px;
  background: #fff;
  border-right: 1px solid var(--nws-slate-150);
}

.nws-nav-section + .nws-nav-section {
  margin-top: 20px;
}

.nws-nav-section__label {
  margin: 0 0 7px 12px;
  color: var(--nws-slate-500);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.nws-nav-link {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  color: var(--nws-slate-600);
  text-align: left;
  border-radius: 10px;
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--nws-transition),
    background var(--nws-transition);
}

.nws-nav-link:hover {
  color: var(--nws-navy-900);
  background: var(--nws-slate-100);
}

.nws-nav-link.is-active {
  color: var(--nws-teal-800);
  background: var(--nws-teal-50);
  font-weight: 720;
}

.nws-rail .nws-nav-link.is-active::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -16px;
  width: 3px;
  background: var(--nws-teal-700);
  border-radius: 0 3px 3px 0;
  content: "";
}

.nws-nav-link--soon {
  color: var(--nws-slate-500);
}

.nws-nav-badge {
  margin-left: auto;
  padding: 3px 7px;
  color: var(--nws-slate-600);
  background: var(--nws-slate-100);
  border: 1px solid var(--nws-slate-150);
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.nws-rail__access {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 14px;
  background: var(--nws-teal-50);
  border: 1px solid #d1e9e5;
  border-radius: var(--nws-radius-md);
}

.nws-rail__access > .nws-icon {
  color: var(--nws-teal-700);
}

.nws-rail__access strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.86rem;
}

.nws-rail__access p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.nws-rail__access .nws-text-link {
  grid-column: 2;
  justify-self: start;
}

body[data-nws-account-state="free"] .nws-rail__access,
body[data-nws-account-state="signedout"] .nws-rail__access {
  background: var(--nws-blue-50);
  border-color: #d9e7f2;
}

body[data-nws-account-state="free"] .nws-rail__access > .nws-icon,
body[data-nws-account-state="signedout"] .nws-rail__access > .nws-icon {
  color: var(--nws-blue-700);
}

body[data-nws-account-state="expired"] .nws-rail__access {
  background: var(--nws-amber-50);
  border-color: #f0d9a7;
}

body[data-nws-account-state="expired"] .nws-rail__access > .nws-icon {
  color: var(--nws-amber-800);
}

.nws-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: var(--nws-teal-700);
  font-size: 0.82rem;
  font-weight: 720;
  text-decoration: none;
}

.nws-text-link:hover {
  color: var(--nws-teal-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Main column -------------------------------------------------------- */

.nws-main {
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
}

/* ---- Bottom navigation (phone) ------------------------------------------ */

.nws-bottom-nav {
  display: none;
}

/* ---- Drawer -------------------------------------------------------------- */

.nws-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 20, 34, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nws-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: min(88vw, 350px);
  overflow-y: auto;
  padding: 0 16px 28px;
  background: #fff;
  box-shadow: var(--nws-shadow-md);
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 220ms ease;
}

.nws-drawer[aria-hidden="false"] {
  transform: translateX(0);
  visibility: visible;
}

.nws-drawer__header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--nws-slate-150);
}

.nws-drawer__header .nws-brand {
  min-height: 44px;
  padding: 0;
}

.nws-drawer .nws-nav-section__label {
  margin-top: 22px;
}

.nws-drawer__account {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--nws-slate-150);
}

.nws-drawer__account .nws-header__auth {
  padding: 6px 11px;
}

body.nws-scroll-locked {
  overflow: hidden;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1180px) {
  .nws-app,
  .nws-drawer {
    --nws-rail-w: 232px;
  }
}

@media (max-width: 900px) {
  .nws-app,
  .nws-drawer {
    --nws-header-h: 64px;
  }

  .nws-app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--nws-header-h) minmax(0, 1fr);
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .nws-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 16px;
  }

  .nws-header > .nws-brand {
    display: none;
  }

  .nws-header > .nws-header__menu {
    display: inline-grid;
    margin-right: 12px;
  }

  .nws-header__context {
    padding: 0;
  }

  .nws-header__context .nws-eyebrow {
    display: none;
  }

  .nws-header__context strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .nws-header__actions .nws-header__auth {
    display: none;
  }

  .nws-rail {
    display: none;
    visibility: hidden;
  }

  .nws-main {
    grid-column: 1;
    grid-row: 2;
  }

  .nws-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    min-height: 68px;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px max(8px, env(safe-area-inset-right))
      calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--nws-slate-200);
    box-shadow: 0 -8px 22px rgba(16, 42, 67, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nws-bottom-nav__item {
    display: grid;
    min-height: 52px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 4px;
    color: var(--nws-slate-500);
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 650;
    text-decoration: none;
  }

  .nws-bottom-nav__item .nws-icon {
    width: 21px;
    height: 21px;
  }

  .nws-bottom-nav__item.is-active {
    color: var(--nws-teal-800);
    background: var(--nws-teal-50);
  }

  .nws-bottom-nav__item .nws-nav-badge {
    margin-left: 2px;
    padding: 1px 5px;
    font-size: 0.56rem;
  }
}

@media (max-width: 720px) {
  .nws-access-pill {
    display: none;
  }
}

@media (max-width: 430px) {
  .nws-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nws-header__menu {
    margin-right: 8px;
  }

  .nws-header__cta {
    padding: 9px 12px;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nws-app *,
  .nws-app *::before,
  .nws-app *::after,
  .nws-drawer,
  .nws-drawer *,
  .nws-drawer-overlay {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .nws-header,
  .nws-rail,
  .nws-bottom-nav,
  .nws-drawer,
  .nws-drawer-overlay {
    display: none !important;
  }

  .nws-app,
  .nws-main {
    display: block;
  }
}

/* ==========================================================================
   Batch 1B approved production visual contract
   ========================================================================== */

body[data-analytics-page="navle_dashboard"],
body[data-analytics-page="navle_qbank"] {
  margin: 0;
  color: #0b1d3a;
  background: #f4f7f8;
  font-family:
    "Source Sans 3",
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.nws-app,
.nws-drawer {
  --nws-navy-950: #0b1d3a;
  --nws-navy-900: #102847;
  --nws-navy-800: #173b5e;
  --nws-slate-600: #4e6179;
  --nws-slate-500: #718096;
  --nws-slate-300: #c8d3de;
  --nws-slate-200: #dbe3ea;
  --nws-slate-150: #e8edf1;
  --nws-slate-100: #f4f7f9;
  --nws-teal-800: #0b625c;
  --nws-teal-700: #0f766e;
  --nws-teal-600: #188d84;
  --nws-teal-100: #dff3ef;
  --nws-teal-50: #edf8f6;
  --nws-blue-700: #315f85;
  --nws-blue-50: #f0f6fb;
  --nws-amber-800: #8a651c;
  --nws-amber-600: #c9a24a;
  --nws-amber-50: #fff9ea;
  --nws-radius-sm: 10px;
  --nws-radius-md: 14px;
  --nws-radius-lg: 18px;
  --nws-rail-w: 226px;
  --nws-header-h: 66px;
  --nws-shadow-xs: 0 1px 2px rgba(11, 29, 58, 0.04);
  --nws-shadow-sm: 0 7px 20px rgba(11, 29, 58, 0.06);
}

.nws-app {
  background: #f4f7f8;
}

.nws-header {
  grid-template-columns: var(--nws-rail-w) minmax(0, 1fr) auto;
  height: var(--nws-header-h);
  padding-right: 18px;
  border-color: #e6ebef;
  box-shadow: 0 1px 0 rgba(11, 29, 58, 0.02);
}

.nws-header > .nws-brand {
  padding: 0 18px;
}

.nws-brand__logo {
  width: 150px;
  max-height: 38px;
}

.nws-top-nav {
  display: flex;
  height: 100%;
  min-width: 0;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
}

.nws-top-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--nws-navy-950);
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nws-top-nav a:hover {
  color: var(--nws-teal-700);
}

.nws-top-nav a.is-active {
  color: var(--nws-teal-700);
}

.nws-top-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--nws-teal-700);
  border-radius: 3px 3px 0 0;
  content: "";
}

.nws-header__context {
  display: none;
}

.nws-header__actions {
  gap: 7px;
}

.nws-header__auth {
  gap: 7px;
  padding: 6px 10px;
  border-radius: 10px;
}

.nws-header__auth .nws-icon {
  width: 18px;
  height: 18px;
}

.nws-header__cta {
  padding-right: 14px;
  padding-left: 14px;
}

.nws-access-pill {
  min-height: 34px;
  font-size: 0.74rem;
}

.nws-rail {
  padding: 20px 14px 16px;
  border-color: #e6ebef;
}

.nws-nav-section + .nws-nav-section {
  margin-top: 14px;
}

.nws-nav-section__label {
  margin-left: 10px;
  font-size: 0.62rem;
}

.nws-nav-link {
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.nws-rail .nws-nav-link.is-active::before {
  left: -14px;
}

.nws-rail__access {
  padding: 12px;
}

.nws-main {
  min-height: calc(100vh - var(--nws-header-h));
  overflow: clip;
  background:
    radial-gradient(circle at 95% 0%, rgba(201, 162, 74, 0.08), transparent 26rem),
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.06), transparent 28rem),
    #f4f7f8;
}

.nws-content {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 24px 24px 30px;
}

.nws-section-kicker {
  display: block;
  margin: 0 0 5px;
  color: var(--nws-teal-700);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nws-hero {
  position: relative;
  display: grid;
  min-height: 184px;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 18%, rgba(15, 118, 110, 0.13), transparent 30%),
    linear-gradient(105deg, #fffdfb 0%, #f8fbfa 58%, #faf5ef 100%);
  border: 1px solid #dfe7eb;
  border-radius: var(--nws-radius-lg);
  box-shadow: var(--nws-shadow-sm);
}

.nws-hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--nws-teal-700);
  content: "";
}

.nws-hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 28px 20px 28px 30px;
}

.nws-hero h1 {
  max-width: 590px;
  margin: 0;
  color: var(--nws-navy-950);
  font-size: clamp(2rem, 3vw, 2.72rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.nws-hero__copy > p {
  max-width: 590px;
  margin: 11px 0 0;
  color: #465a73;
  font-size: 0.98rem;
  line-height: 1.48;
}

.nws-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.nws-hero__actions .button {
  min-height: 44px;
}

.nws-hero__actions .nws-icon {
  width: 17px;
  height: 17px;
}

.nws-hero__art {
  position: absolute;
  right: -2%;
  bottom: -1px;
  z-index: 1;
  width: min(46%, 520px);
  height: 96%;
  object-fit: contain;
  object-position: right bottom;
}

.nws-hero--qbank {
  min-height: 162px;
}

.nws-hero--qbank .nws-hero__actions {
  position: absolute;
  width: 1px;
  height: 44px;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.nws-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.nws-metric {
  display: grid;
  min-width: 0;
  min-height: 102px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px;
  background: var(--nws-metric-bg, #f7f9fc);
  border: 1px solid var(--nws-metric-border, #dce5ee);
  border-radius: var(--nws-radius-md);
  box-shadow: var(--nws-shadow-xs);
}

.nws-metric__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--nws-metric-ink, var(--nws-navy-800));
  background: var(--nws-metric-icon, #eaf0f7);
  border-radius: 11px;
}

.nws-metric__icon .nws-icon {
  width: 20px;
  height: 20px;
}

.nws-metric div {
  display: grid;
  min-width: 0;
}

.nws-metric div > span {
  color: #3c4d65;
  font-size: 0.72rem;
  font-weight: 700;
}

.nws-metric strong {
  margin-top: 1px;
  color: var(--nws-navy-950);
  font-size: 1.48rem;
  letter-spacing: -0.035em;
  line-height: 1;
}

.nws-metric small {
  margin-top: 6px;
  color: #718096;
  font-size: 0.66rem;
  line-height: 1.25;
}

.nws-metric--navy {
  --nws-metric-bg: #f5f8fc;
  --nws-metric-border: #dce5ef;
  --nws-metric-icon: #e7eef8;
  --nws-metric-ink: #173b5e;
}

.nws-metric--blue {
  --nws-metric-bg: #f3f8fc;
  --nws-metric-border: #d9e8f2;
  --nws-metric-icon: #dff0f7;
  --nws-metric-ink: #315f85;
}

.nws-metric--teal {
  --nws-metric-bg: #f0faf8;
  --nws-metric-border: #d3ebe6;
  --nws-metric-icon: #d9f1ec;
  --nws-metric-ink: #0f766e;
}

.nws-metric--amber {
  --nws-metric-bg: #fffaf0;
  --nws-metric-border: #f0dfb7;
  --nws-metric-icon: #f7eccd;
  --nws-metric-ink: #9a7423;
}

.nws-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(280px, 0.78fr);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.nws-panel,
.nws-context-card,
.nws-coming-soon,
.nws-filter-panel,
.nws-block-section,
.nws-premium-library {
  background: #fff;
  border: 1px solid #dfe6eb;
  border-radius: var(--nws-radius-md);
  box-shadow: var(--nws-shadow-xs);
}

.nws-panel,
.nws-block-section,
.nws-premium-library {
  padding: 18px;
}

.nws-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.nws-section-heading h2,
.nws-context-heading h2 {
  margin: 0;
  color: var(--nws-navy-950);
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.nws-section-heading p {
  margin: 4px 0 0;
  color: #687991;
  font-size: 0.75rem;
}

.nws-section-heading > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--nws-teal-700);
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.nws-section-heading > a .nws-icon {
  width: 16px;
  height: 16px;
}

.nws-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nws-route-card {
  position: relative;
  display: flex;
  min-height: 212px;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  background: var(--nws-route-bg);
  border: 1px solid var(--nws-route-border);
  border-radius: 12px;
}

.nws-route-card::after {
  position: absolute;
  top: -34px;
  right: -22px;
  width: 116px;
  height: 92px;
  background: var(--nws-route-orb);
  border-radius: 50%;
  content: "";
  opacity: 0.55;
}

.nws-route-card--navy {
  --nws-route-bg: #f4f7fb;
  --nws-route-border: #dbe4ef;
  --nws-route-orb: #d8e2f0;
  --nws-route-ink: #173b5e;
}

.nws-route-card--blue {
  --nws-route-bg: #eff7fb;
  --nws-route-border: #d6e8f2;
  --nws-route-orb: #cce7f1;
  --nws-route-ink: #315f85;
}

.nws-route-card--teal {
  --nws-route-bg: #eef9f7;
  --nws-route-border: #d2ebe6;
  --nws-route-orb: #c6e7e1;
  --nws-route-ink: #0f766e;
}

.nws-route-card--amber {
  --nws-route-bg: #fff9ed;
  --nws-route-border: #efdfb8;
  --nws-route-orb: #f2ddb0;
  --nws-route-ink: #8f6d27;
}

.nws-route-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nws-route-card__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--nws-route-ink);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
}

.nws-route-card__badge {
  padding: 4px 7px;
  color: var(--nws-route-ink);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 800;
}

.nws-route-card__eyebrow {
  margin-top: 10px;
  color: var(--nws-route-ink);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nws-route-card h3 {
  margin: 2px 0 0;
  color: var(--nws-navy-950);
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.nws-route-card p {
  margin: 7px 0 12px;
  color: #566880;
  font-size: 0.76rem;
  line-height: 1.38;
}

.nws-route-card > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--nws-route-ink);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
}

.nws-route-card > a .nws-icon {
  width: 15px;
  height: 15px;
}

.nws-context-column,
.nws-qbank-aside {
  display: grid;
  gap: 10px;
}

.nws-context-card {
  padding: 14px;
}

.nws-context-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nws-context-heading h2 {
  font-size: 0.98rem;
}

.nws-context-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: #173b5e;
  background: #e8eef7;
  border-radius: 10px;
}

.nws-context-icon--teal {
  color: #0f766e;
  background: #dff3ef;
}

.nws-empty-state {
  display: grid;
  justify-items: center;
  margin-top: 12px;
  padding: 13px;
  text-align: center;
  background: #f7f9fb;
  border: 1px dashed #cfd9e3;
  border-radius: 11px;
}

.nws-empty-state__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #7a8aa0;
  background: #fff;
  border-radius: 50%;
}

.nws-empty-state strong {
  margin-top: 8px;
  font-size: 0.84rem;
}

.nws-empty-state p {
  margin: 3px 0 8px;
  color: #6a7b91;
  font-size: 0.68rem;
  line-height: 1.35;
}

.nws-empty-state .button {
  min-height: 40px;
  padding: 7px 11px;
  font-size: 0.7rem;
}

.nws-step-list,
.nws-check-list,
.nws-plain-list {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.nws-step-list li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
}

.nws-step-list li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #0f766e;
  background: #e3f4f0;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
}

.nws-step-list strong,
.nws-step-list small {
  display: block;
}

.nws-step-list strong {
  color: #233954;
  font-size: 0.74rem;
}

.nws-step-list small {
  margin-top: 1px;
  color: #77879a;
  font-size: 0.63rem;
}

.nws-coming-soon {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fffaf0;
  border-color: #eeddb4;
}

.nws-coming-soon__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #8a651c;
  background: #f6e9c7;
  border-radius: 10px;
}

.nws-coming-soon strong,
.nws-coming-soon p {
  display: block;
}

.nws-coming-soon strong {
  color: #253751;
  font-size: 0.76rem;
}

.nws-coming-soon p {
  margin: 2px 0 0;
  color: #7a6b4c;
  font-size: 0.63rem;
  line-height: 1.3;
}

.nws-coming-soon__badge {
  padding: 5px 8px;
  color: #8a651c;
  background: #fff;
  border: 1px solid #ead59f;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nws-truth-banner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #edf8f6;
  border: 1px solid #d3eae6;
  border-radius: var(--nws-radius-md);
}

.nws-truth-banner__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #0f766e;
  background: #d9f0eb;
  border-radius: 10px;
}

.nws-truth-banner strong {
  color: #15314b;
  font-size: 0.78rem;
}

.nws-truth-banner p {
  margin: 2px 0 0;
  color: #61758a;
  font-size: 0.66rem;
}

.nws-truth-banner > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: #0f766e;
  background: #fff;
  border: 1px solid #cae2de;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.nws-truth-banner > a .nws-icon {
  width: 15px;
  height: 15px;
}

.nws-state-detail,
.nws-workspace-history {
  padding-top: 0;
}

.nws-workspace-history {
  margin-top: 0;
}

/* QBank */

.nws-resume-panel {
  margin-bottom: 14px;
}

.nws-filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px;
}

.nws-search-field {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #f9fbfc;
  border: 1px solid #d7e0e8;
  border-radius: 10px;
}

.nws-search-field:focus-within {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.11);
}

.nws-search-field .nws-icon {
  color: #7a8a9d;
}

.nws-search-field input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0;
  color: #0b1d3a;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.84rem;
}

.nws-search-field .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.nws-filter-actions {
  display: flex;
  gap: 7px;
}

.nws-filter-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  color: #596a80;
  background: #fff;
  border: 1px solid #d8e1e8;
  border-radius: 9px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.nws-filter-button:hover,
.nws-filter-button.is-selected,
.nws-filter-button[aria-pressed="true"] {
  color: #0f766e;
  background: #edf8f6;
  border-color: #bfe0da;
}

.nws-filter-button .nws-icon {
  width: 17px;
  height: 17px;
}

.nws-qbank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.nws-qbank-primary {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.nws-inventory-note {
  padding: 5px 8px;
  color: #6d7d91;
  background: #f3f6f8;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.nws-block-section .navle-block-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

#timed-blocks.nws-block-section {
  background: #fff;
}

#timed-blocks.nws-block-section::before {
  display: none !important;
}

#timed-blocks > .nws-section-heading {
  margin-bottom: 14px;
  padding: 0 !important;
  color: var(--nws-navy-950) !important;
  background: transparent !important;
  border-radius: 0 !important;
}

#timed-blocks > .nws-section-heading h2 {
  color: var(--nws-navy-950) !important;
  font-size: 1.18rem !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
}

#timed-blocks > .nws-section-heading p {
  color: #687991 !important;
}

.nws-block-section .navle-block-card {
  min-width: 0;
  min-height: 260px;
  padding: 13px;
  border-radius: 11px;
  box-shadow: none;
}

.nws-block-section .navle-block-card::before {
  height: 3px;
}

.nws-block-section .navle-block-card__header {
  align-items: flex-start;
  gap: 6px;
}

.nws-block-section .navle-block-card__header > div:last-child {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nws-block-section .navle-block-card h3 {
  font-size: 0.9rem;
}

.nws-block-section .section-kicker {
  font-size: 0.58rem;
}

.nws-block-section .navle-chip {
  padding: 3px 6px;
  font-size: 0.56rem;
}

.nws-block-section .navle-block-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.nws-block-section .navle-block-card__meta span {
  padding: 4px 6px;
  font-size: 0.61rem;
}

.navle-block-card__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.navle-block-card__topics span {
  padding: 4px 6px;
  color: #66778d;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e1e7ec;
  border-radius: 999px;
  font-size: 0.55rem;
  line-height: 1.1;
}

.nws-block-section .navle-block-card__footer {
  margin-top: auto;
}

.nws-block-section .navle-block-card__actions .button {
  width: 100%;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 0.66rem;
}

.nws-no-blocks {
  grid-column: 1 / -1;
  margin: 0;
  padding: 34px 20px;
  color: #62758b;
  text-align: center;
  background: #f7f9fb;
  border: 1px dashed #cdd8e1;
  border-radius: 10px;
}

.nws-premium-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nws-range-card {
  display: grid;
  min-height: 74px;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  padding: 10px;
  color: #243953;
  text-align: left;
  background: #f8fafb;
  border: 1px solid #dfe6eb;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}

.nws-range-card:hover {
  background: #f1f7f6;
  border-color: #cbe2de;
}

.nws-range-card__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #947128;
  background: #f7eccf;
  border-radius: 9px;
}

.nws-range-card__icon--teal {
  color: #0f766e;
  background: #ddf1ed;
}

.nws-range-card strong,
.nws-range-card small {
  display: block;
}

.nws-range-card strong {
  font-size: 0.74rem;
}

.nws-range-card small {
  margin-top: 2px;
  color: #718096;
  font-size: 0.6rem;
  line-height: 1.3;
}

.nws-access-status {
  display: inline-flex;
  margin-top: 10px;
  padding: 4px 7px;
  color: #0f766e;
  background: #e8f6f3;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
}

.nws-access-card > p {
  margin: 8px 0 0;
  color: #64768c;
  font-size: 0.7rem;
  line-height: 1.4;
}

.nws-access-total {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  color: #0f766e;
  background: #eaf7f4;
  border-radius: 9px;
  font-size: 1.18rem;
}

.nws-access-total span {
  font-size: 0.66rem;
  font-weight: 700;
}

.nws-check-list {
  gap: 6px;
}

.nws-check-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #51647a;
  font-size: 0.68rem;
}

.nws-check-list .nws-icon {
  width: 14px;
  height: 14px;
  color: #0f766e;
}

.nws-access-card > .button {
  width: 100%;
  min-height: 42px;
  margin-top: 11px;
  font-size: 0.7rem;
}

.nws-plain-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
}

.nws-plain-list li > span {
  color: #a27b2a;
  font-size: 0.62rem;
  font-weight: 800;
}

.nws-plain-list p {
  margin: 0;
  color: #5e7086;
  font-size: 0.68rem;
  line-height: 1.35;
}

.nws-simulation-promo {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 11px;
  color: #6d5420;
  background: #fff8e8;
  border: 1px solid #eddaaa;
  border-radius: var(--nws-radius-md);
  text-decoration: none;
}

.nws-simulation-promo > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #f5e7c3;
  border-radius: 9px;
}

.nws-simulation-promo small,
.nws-simulation-promo strong {
  display: block;
}

.nws-simulation-promo small {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nws-simulation-promo strong {
  color: #263a52;
  font-size: 0.75rem;
}

.nws-simulation-promo p {
  margin: 2px 0 0;
  font-size: 0.61rem;
}

.nws-qbank-legacy-modes {
  display: none;
}

.nws-qbank-page .qbank-progress-insights,
.nws-qbank-page .qbank-recent,
.nws-qbank-page .qbank-premium-proof {
  margin-top: 14px;
}

@media (max-width: 1180px) {
  .nws-top-nav {
    gap: 18px;
  }

  .nws-access-pill {
    display: none;
  }

  .nws-block-section .navle-block-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nws-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 12px;
  }

  .nws-header > .nws-brand {
    display: inline-flex;
    min-width: 0;
    justify-self: start;
    padding: 0;
  }

  .nws-header > .nws-header__menu {
    display: inline-grid;
    margin-right: 10px;
  }

  .nws-top-nav,
  .nws-header__context,
  .nws-header__actions .nws-access-pill {
    display: none;
  }

  .nws-header .nws-header__cta {
    display: none !important;
  }

  .nws-header__actions .nws-header__auth:not([hidden]) {
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: var(--nws-navy-950);
    border-radius: 50%;
  }

  .nws-header__auth span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nws-content {
    padding: 16px 16px 24px;
  }

  .nws-workspace-grid,
  .nws-qbank-layout {
    grid-template-columns: 1fr;
  }

  .nws-qbank-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nws-simulation-promo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .nws-content {
    padding: 12px 12px 22px;
  }

  .nws-hero {
    min-height: 430px;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .nws-hero__copy {
    padding: 24px 18px 18px;
  }

  .nws-hero h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.25rem);
    line-height: 1;
  }

  .nws-hero__copy > p {
    font-size: 0.9rem;
  }

  .nws-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nws-hero__actions .button {
    justify-content: center;
    width: 100%;
  }

  .nws-hero--workspace .nws-hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .nws-hero--workspace .nws-hero__actions .button {
    width: auto;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.76rem;
  }

  .nws-hero__art {
    right: -4%;
    bottom: 0;
    width: 108%;
    max-width: none;
    height: 47%;
    object-position: right bottom;
  }

  .nws-hero--qbank {
    min-height: 330px;
  }

  .nws-hero--qbank .nws-hero__art {
    height: 52%;
  }

  .nws-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .nws-metric {
    min-height: 132px;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px;
  }

  .nws-route-grid,
  .nws-premium-range-grid,
  .nws-qbank-aside {
    grid-template-columns: 1fr;
  }

  .nws-route-card {
    min-height: 206px;
  }

  .nws-filter-panel {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .nws-filter-actions {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nws-block-section .navle-block-grid {
    grid-template-columns: 1fr;
  }

  .nws-block-section .navle-block-card {
    min-height: 0;
  }

  .nws-section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .nws-section-heading > a {
    align-self: flex-start;
  }

  .nws-inventory-note {
    align-self: flex-start;
  }

  .nws-coming-soon {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .nws-coming-soon__badge {
    grid-column: 2;
    justify-self: start;
  }

  .nws-truth-banner {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .nws-truth-banner > a {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 390px) {
  .nws-brand__logo {
    width: 136px;
    max-height: 34px;
  }

  .nws-metric strong {
    font-size: 1.36rem;
  }
}

/* Phase 2A — shared full-workspace destinations */
body:has([data-nws-app]) > .skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1200;
  padding: 10px 14px;
  color: #102a43;
  font-weight: 700;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(109, 70, 229, 0.28);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 30, 55, 0.14);
  transform: translateY(calc(-100% - 18px));
}

body:has([data-nws-app]) > .skip-link:focus {
  transform: translateY(0);
}

.nws-fidelity-hero {
  position: relative;
  display: grid;
  min-height: 184px;
  grid-template-columns: minmax(0, 1.16fr) minmax(280px, 0.84fr);
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(15, 118, 110, 0.13), transparent 30%),
    linear-gradient(105deg, #fffdfb 0%, #f8fbfa 58%, #faf5ef 100%);
  border: 1px solid #dfe7eb;
  border-radius: var(--nws-radius-lg);
  box-shadow: var(--nws-shadow-sm);
  text-align: left;
}

.nws-fidelity-hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--nws-teal-700);
  content: "";
}

.nws-fidelity-hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 28px 20px 28px 30px;
}

.nws-fidelity-hero h1,
.nws-fidelity-hero .calc-v2-title {
  max-width: 590px;
  margin: 0;
  color: var(--nws-navy-950);
  font-size: clamp(2rem, 3vw, 2.72rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.nws-fidelity-hero__copy > p,
.nws-fidelity-hero .calc-v2-subtitle {
  max-width: 590px;
  margin: 11px 0 0;
  color: #465a73;
  font-size: 0.98rem;
  line-height: 1.48;
}

.nws-fidelity-hero__image {
  position: absolute;
  right: -2%;
  bottom: -1px;
  z-index: 1;
  width: min(46%, 520px);
  height: 96%;
  object-fit: contain;
  object-position: right bottom;
}

.nws-practice-page .container,
.nws-daily-page .dq-container,
.nws-daily-page .related-tools-section {
  width: 100%;
  max-width: none;
}

.nws-practice-page .practice-hero {
  padding: 0;
}

.nws-practice-page .practice-hero__actions {
  position: relative;
  z-index: 2;
}

.nws-practice-page .practice-stats-bar {
  margin-top: 0;
  border-color: #dfe7eb;
  border-radius: var(--nws-radius-md);
  box-shadow: var(--nws-shadow-xs);
}

.nws-practice-page .practice-setup-card {
  border-color: #dfe7eb;
  border-radius: var(--nws-radius-lg);
  box-shadow: var(--nws-shadow-sm);
}

.nws-simulation-page .nws-content {
  width: min(100%, 1220px);
}

.nws-simulation-page .sim-stats,
.nws-simulation-page .sim-sections,
.nws-simulation-page #sim-gate,
.nws-simulation-page #sim-ready,
.nws-simulation-page .sim-disclaimer {
  max-width: none;
}

.nws-simulation-page .sim-stats {
  margin: 0 0 16px;
}

.nws-simulation-page .sim-stat,
.nws-simulation-page .sim-sections,
.nws-simulation-page .sim-gate,
.nws-simulation-page .sim-ready-panel,
.nws-simulation-page .sim-form-card {
  border-color: #dfe7eb;
  box-shadow: var(--nws-shadow-xs);
}

.nws-simulation-page .sim-sections {
  margin-bottom: 16px;
}

.nws-simulation-page .sim-sections ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nws-simulation-page .sim-disclaimer {
  margin-bottom: 0;
}

.nws-daily-page .page,
.nws-daily-page .dose-workspace-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.nws-daily-page .calc-v2-header {
  display: grid;
}

.nws-daily-page .tool-tag {
  width: fit-content;
  margin-bottom: 10px;
}

.nws-daily-page .dq-email-card,
.nws-daily-page .related-tools-section,
.nws-daily-page .dq-card,
.nws-daily-page .dq-empty {
  border-color: #dfe7eb;
  box-shadow: var(--nws-shadow-xs);
}

.nws-daily-page .related-tools-section {
  margin-top: 20px;
}

body:has(.nws-daily-page) #cookie-banner > div {
  height: auto !important;
}

body:has(.nws-daily-page) #cookie-banner span {
  flex: 0 0 auto !important;
  height: auto !important;
}

body:has(.nws-daily-page) #cookie-banner > div > div {
  flex: 0 0 auto !important;
  height: auto !important;
}

body:has(.nws-daily-page) #cookie-banner button,
body:has(.nws-daily-page) #cookie-banner a {
  height: auto !important;
  min-height: 44px !important;
}

.nws-coming-soon-page .nws-content {
  display: grid;
  min-height: calc(100vh - var(--nws-header-h));
  align-items: center;
}

.nws-coming-soon-page .access-shell {
  position: relative;
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 5vw, 58px);
  background:
    radial-gradient(circle at 82% 18%, rgba(15, 118, 110, 0.13), transparent 30%),
    linear-gradient(105deg, #fffdfb 0%, #f8fbfa 58%, #faf5ef 100%);
  border: 1px solid #dfe7eb;
  border-radius: var(--nws-radius-lg);
  box-shadow: var(--nws-shadow-sm);
}

.nws-coming-soon-page .access-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 610px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.nws-coming-soon-page .access-panel h1 {
  color: var(--nws-navy-950);
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
}

.nws-coming-soon-page .nws-coming-soon-art {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: min(52%, 620px);
  height: 82%;
  object-fit: contain;
  object-position: right bottom;
}

@media (max-width: 900px) {
  .nws-simulation-page .sim-sections ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nws-fidelity-hero {
    min-height: 410px;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .nws-fidelity-hero__copy {
    padding: 24px 18px 18px;
  }

  .nws-fidelity-hero h1,
  .nws-fidelity-hero .calc-v2-title {
    font-size: clamp(1.8rem, 8.5vw, 2.25rem);
  }

  .nws-fidelity-hero__image {
    right: -4%;
    width: 108%;
    max-width: none;
    height: 47%;
  }

  .nws-practice-page .practice-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nws-practice-page .practice-hero__actions .button {
    justify-content: center;
    width: 100%;
  }

  .nws-practice-page .practice-stats-bar {
    grid-template-columns: 1fr;
  }

  .nws-simulation-page .sim-sections ul {
    grid-template-columns: 1fr;
  }

  body:has(.nws-daily-page) #cookie-banner > div > div {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) !important;
  }

  body:has(.nws-daily-page) #cookie-banner #cookie-accept {
    flex: 0 0 auto !important;
  }

  .nws-coming-soon-page .nws-content {
    min-height: auto;
  }

  .nws-coming-soon-page .access-shell {
    min-height: 640px;
    grid-template-columns: 1fr;
    align-content: start;
    padding: 28px 20px;
  }

  .nws-coming-soon-page .nws-coming-soon-art {
    right: -8%;
    width: 116%;
    max-width: none;
    height: 42%;
  }
}

/* ---- Phase 2B: evidence and review routes ------------------------------ */

.nws-performance-page,
.nws-results-page,
.nws-wrong-page,
.nws-review-page {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.nws-performance-page .nws-content,
.nws-results-page .nws-content,
.nws-wrong-page .nws-content,
.nws-review-page .nws-content {
  width: min(100%, 1260px);
}

.nws-review-path {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: var(--nws-slate-500);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--nws-slate-150);
  border-radius: var(--nws-radius-md);
  box-shadow: var(--nws-shadow-xs);
}

.nws-review-path a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 7px 11px;
  color: var(--nws-slate-600);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color var(--nws-transition),
    background-color var(--nws-transition);
}

.nws-review-path a:hover {
  color: var(--nws-teal-800);
  background: var(--nws-teal-50);
}

.nws-review-path a.is-current {
  color: var(--nws-teal-800);
  background: var(--nws-teal-100);
}

.nws-review-path > span {
  color: var(--nws-slate-300);
  font-size: 0.9rem;
}

.nws-page-guidance {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 15px 18px;
  color: var(--nws-navy-900);
  background:
    linear-gradient(110deg, rgba(238, 248, 246, 0.96), rgba(240, 246, 251, 0.9));
  border: 1px solid #d9e9e7;
  border-radius: var(--nws-radius-md);
}

.nws-page-guidance > .nws-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--nws-teal-700);
  background: #fff;
  border: 1px solid #d7e7e4;
  border-radius: 12px;
}

.nws-page-guidance div {
  display: grid;
  gap: 3px;
}

.nws-page-guidance strong {
  font-size: 0.96rem;
}

.nws-page-guidance span {
  color: var(--nws-slate-600);
  font-size: 0.86rem;
  line-height: 1.5;
}

.nws-review-hero {
  position: relative;
  display: grid;
  min-height: 230px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: 32px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(circle at 86% 15%, rgba(132, 204, 196, 0.18), transparent 28%),
    linear-gradient(112deg, #fffdfb 0%, #f4faf8 62%, #f0f6fb 100%);
  border: 1px solid #dce8e6;
  border-radius: 22px;
  box-shadow: var(--nws-shadow-xs);
}

.nws-review-hero::after {
  position: absolute;
  right: -32px;
  bottom: -56px;
  width: 220px;
  height: 220px;
  background: rgba(15, 118, 110, 0.06);
  border-radius: 999px;
  content: "";
}

.nws-review-hero h1 {
  margin: 8px 0 10px;
  color: var(--nws-navy-950);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.nws-review-hero p {
  max-width: 690px;
  margin: 0;
  color: var(--nws-slate-600);
  font-size: 1rem;
  line-height: 1.65;
}

.nws-review-hero__note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 3px 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dce7e5;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 42, 67, 0.07);
}

.nws-review-hero__note .nws-icon {
  width: 44px;
  height: 44px;
  grid-row: 1 / 3;
  padding: 10px;
  color: var(--nws-blue-700);
  background: var(--nws-blue-50);
  border-radius: 12px;
}

.nws-review-hero__note strong {
  align-self: end;
  color: var(--nws-navy-900);
  font-size: 0.9rem;
}

.nws-review-hero__note span {
  color: var(--nws-slate-600);
  font-size: 0.8rem;
  line-height: 1.45;
}

.nws-performance-page .wd-grid {
  gap: 18px;
}

.nws-performance-page :is(.wd-card, .wd-panel, .wd-empty) {
  background: #fff;
  border-color: var(--nws-slate-150);
  border-radius: 16px;
  box-shadow: var(--nws-shadow-xs);
}

.nws-performance-page .wd-empty {
  min-height: 280px;
  align-content: center;
  padding: 36px 24px;
}

.nws-results-page :is(
  .results-hero,
  .results-section,
  .results-priority-path,
  .results-review-preview,
  .results-system-card,
  .results-support-card,
  .results-next-card
),
.nws-wrong-page :is(
  .review-hero,
  .review-controls,
  .review-card,
  .navle-empty-shell
),
.nws-review-page :is(
  .review-hero,
  .review-controls,
  .review-card,
  .review-empty-state
) {
  border-color: var(--nws-slate-150);
  border-radius: 16px;
  box-shadow: var(--nws-shadow-xs);
}

.nws-results-page .results-hero,
.nws-wrong-page .review-hero,
.nws-review-page .review-hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(15, 118, 110, 0.1), transparent 30%),
    #fff;
}

.nws-app--compact {
  grid-template-columns: minmax(0, 1fr);
}

.nws-app--compact .nws-header {
  grid-template-columns: minmax(190px, var(--nws-rail-w)) minmax(0, 1fr) auto;
}

.nws-app--compact .nws-rail {
  display: none;
}

.nws-app--compact .nws-main {
  grid-column: 1;
}

.nws-app--compact .nws-content--review {
  width: min(100%, 1180px);
}

.nws-compact-review-bar {
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--nws-slate-150);
  border-radius: var(--nws-radius-md);
  box-shadow: var(--nws-shadow-xs);
}

.nws-compact-review-bar > a,
.nws-compact-review-bar nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--nws-teal-800);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: none;
}

.nws-compact-review-bar > a {
  justify-self: start;
  background: var(--nws-teal-50);
}

.nws-compact-review-bar > div {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.nws-compact-review-bar > div strong {
  color: var(--nws-navy-950);
  font-size: 1rem;
}

.nws-compact-review-bar nav {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.nws-compact-review-bar nav a:hover,
.nws-compact-review-bar > a:hover {
  background: var(--nws-teal-100);
}

@media (max-width: 900px) {
  body:has(.nws-app) #cookie-banner {
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }

  body.is-navle-session-active:has(.nws-app--focus) #cookie-banner {
    bottom: calc(184px + env(safe-area-inset-bottom)) !important;
  }

  .nws-review-path {
    flex-wrap: wrap;
  }

  .nws-review-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nws-compact-review-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nws-compact-review-bar > div {
    justify-items: end;
    text-align: right;
  }

  .nws-compact-review-bar nav {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .nws-compact-review-bar nav a {
    flex: 1;
  }
}

@media (max-width: 700px) {
  .nws-review-path {
    gap: 3px;
    padding: 6px;
  }

  .nws-review-path a {
    flex: 1 1 auto;
    justify-content: center;
    padding-inline: 7px;
    font-size: 0.78rem;
  }

  .nws-review-path > span {
    display: none;
  }

  .nws-page-guidance {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .nws-page-guidance > .nws-icon {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .nws-review-hero {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .nws-review-hero h1 {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .nws-review-hero__note {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  .nws-review-hero__note .nws-icon {
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .nws-compact-review-bar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .nws-compact-review-bar > a {
    width: 100%;
    justify-self: stretch;
  }

  .nws-compact-review-bar > div {
    grid-row: 1;
    justify-items: center;
    text-align: center;
  }

  .nws-compact-review-bar nav {
    grid-column: 1;
    flex-direction: column;
  }

  .nws-compact-review-bar nav a {
    background: var(--nws-slate-100);
  }
}

/* ---- Phase 3: active question-session focus mode ----------------------- */

.nws-focus-page {
  min-width: 0;
  padding: 24px 24px 42px;
}

.nws-focus-page > :is(
  .exam-entry-shell,
  .exam-retake-shell,
  .locked-shell,
  [data-block-error]
) {
  width: min(100%, 1080px);
  margin-right: auto;
  margin-left: auto;
}

.nws-focus-page .exam-entry-shell {
  margin-top: 22px;
}

.nws-focus-page .exam-shell {
  width: min(100%, 1440px);
  margin-right: auto;
  margin-left: auto;
}

.nws-focus-page .exam-toolbar__actions .button,
.nws-focus-page .exam-review-chip,
.nws-focus-page .exam-nav-pill {
  min-height: 44px;
}

.nws-focus-page > [data-email-capture-section] {
  width: min(100%, 1080px);
}

html:has(body.is-navle-session-active .nws-app--focus) {
  scroll-behavior: auto;
}

body.is-navle-session-active .nws-app--focus {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 64px minmax(0, 1fr);
  padding-bottom: 0;
}

body.is-navle-session-active .nws-app--focus .nws-header {
  height: 64px;
  grid-template-columns: var(--nws-rail-w) minmax(0, 1fr);
  padding-right: 20px;
}

body.is-navle-session-active .nws-app--focus :is(
  .nws-top-nav,
  .nws-header__actions,
  .nws-header__menu,
  .nws-rail,
  .nws-bottom-nav
) {
  display: none;
}

body.is-navle-session-active .nws-app--focus .nws-header__context {
  display: flex;
  padding-left: 28px;
}

body.is-navle-session-active .nws-app--focus .nws-main {
  grid-column: 1;
  grid-row: 2;
}

body.is-navle-session-active .nws-app--focus .exam-command-bar {
  top: 74px;
}

body.is-navle-session-active .nws-app--focus .exam-sidebar {
  top: 168px;
}

@media (min-width: 1181px) {
  body.is-navle-session-active .nws-app--focus .exam-command-bar {
    position: fixed;
    right: 24px;
    left: 24px;
    width: auto;
  }

  body.is-navle-session-active .nws-app--focus .exam-toolbar {
    padding-top: 96px;
  }

  body.is-navle-session-active .nws-app--focus .exam-workspace {
    scroll-margin-top: 180px;
  }
}

@media (max-width: 900px) {
  .nws-focus-page {
    padding: 14px 12px 28px;
  }

  body.is-navle-session-active .nws-app--focus .nws-header {
    position: fixed;
    right: 0;
    left: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 0 12px;
  }

  body.is-navle-session-active .nws-app--focus .nws-header > .nws-brand {
    display: flex;
    width: 100%;
    min-height: 64px;
    justify-self: stretch;
    justify-content: center;
    padding: 0;
  }

  body.is-navle-session-active .nws-app--focus .nws-header__context {
    display: none;
  }

  body.is-navle-session-active .nws-app--focus .exam-command-bar {
    top: 72px;
  }

  body.is-navle-session-active .nws-app--focus .exam-toolbar__stats {
    display: none;
  }
}

@media (max-width: 759px) {
  body.is-navle-session-active .nws-app--focus .exam-toolbar {
    padding-top: 248px;
  }

  body.is-navle-session-active .nws-app--focus .exam-workspace {
    scroll-margin-top: 254px;
  }
}
