/* ==========================================================================
   Nursing Study OS — non-critical global styles
   Components, articles, sections, forms, product UI and utilities.
   Colour/spacing/radius values all come from design.nsg-ts via CSS custom properties;
   never hard-code a brand colour here.
   ========================================================================== */

/* Utilities ---------------------------------------------------------------- */
.nsg-section { padding-block: var(--nsg-section-pad, clamp(44px, 6vw, 84px)); }
.nsg-section--tint { background: var(--nsg-ink-50); }
.nsg-section--teal { background: linear-gradient(160deg, var(--nsg-teal-800), var(--nsg-teal-900)); color: #fff; }
.nsg-section--teal h2, .nsg-section--teal h3 { color: #fff; }
.nsg-section--tight { padding-block: clamp(32px, 4vw, 52px); }

.nsg-section__head { max-width: 780px; margin-inline: auto; text-align: center; margin-block-end: 44px; }
.nsg-section__eyebrow {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--nsg-teal-600); background: var(--nsg-teal-50); padding: 6px 14px; border-radius: 50px;
  margin-block-end: 16px;
}
.nsg-section--teal .nsg-section__eyebrow { color: #fff; background: rgba(255,255,255,.16); }
.nsg-section__lead { font-size: 1.12rem; color: var(--nsg-ink-500); margin-block-start: 14px; }
.nsg-section--teal .nsg-section__lead { color: rgba(255,255,255,.86); }

.nsg-text-center { text-align: center; }
.nsg-mt-lg { margin-block-start: 40px; }
.nsg-mt-md { margin-block-start: 24px; }
.nsg-narrow { max-width: 760px; margin-inline: auto; }
.nsg-grid { display: grid; gap: var(--nsg-grid-gap, 24px); }
.nsg-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nsg-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.nsg-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Cards -------------------------------------------------------------------- */
.nsg-card {
  background: #fff; border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius);
  padding: 26px; box-shadow: var(--nsg-shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%;
}
.nsg-card:hover { transform: translateY(-3px); box-shadow: var(--nsg-shadow-lg); border-color: var(--nsg-teal-500); }
[data-cards='outline'] .nsg-card { box-shadow: none; border-color: var(--nsg-ink-300); }
[data-cards='outline'] .nsg-card:hover { box-shadow: none; border-color: var(--nsg-teal-600); }
.nsg-card__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  background: var(--nsg-teal-50); color: var(--nsg-teal-700); margin-block-end: 16px; font-size: 24px;
}
.nsg-card h3 { margin-block-end: 10px; }
.nsg-card p { color: var(--nsg-ink-700); }
.nsg-card__link { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 14px; font-weight: 700; min-block-size: 44px; }
.nsg-card__link::after { content: '→'; }

/* Article cards ------------------------------------------------------------ */
.nsg-article-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nsg-ink-100);
  border-radius: var(--nsg-radius); overflow: hidden; box-shadow: var(--nsg-shadow);
  transition: transform .2s, box-shadow .2s;
}
.nsg-article-card:hover { transform: translateY(-3px); box-shadow: var(--nsg-shadow-lg); }
.nsg-article-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nsg-article-card__cat {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--nsg-teal-700);
  background: var(--nsg-teal-50); padding: 4px 11px; border-radius: 50px; letter-spacing: .02em;
}
.nsg-article-card__title { font-size: 1.13rem; line-height: 1.3; }
.nsg-article-card__title a { color: var(--nsg-ink-900); }
.nsg-article-card__title a:hover { color: var(--nsg-teal-700); text-decoration: none; }
.nsg-article-card__excerpt { color: var(--nsg-ink-500); font-size: .95rem; flex: 1; }
.nsg-article-card__meta { display: flex; gap: 14px; font-size: 13px; color: var(--nsg-ink-500); margin-block-start: 6px; }

/* Stats -------------------------------------------------------------------- */
.nsg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.nsg-stat { text-align: center; }
.nsg-stat__num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--nsg-teal-600); line-height: 1.05; letter-spacing: -.03em; }
.nsg-section--teal .nsg-stat__num { color: #fff; }
.nsg-stat__label { color: var(--nsg-ink-500); margin-block-start: 8px; font-weight: 600; font-size: .93rem; }
.nsg-section--teal .nsg-stat__label { color: rgba(255,255,255,.82); }

/* Steps -------------------------------------------------------------------- */
.nsg-steps { counter-reset: step; display: grid; gap: 22px; }
.nsg-step { position: relative; padding-inline-start: 60px; }
.nsg-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; inset-block-start: 0;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--nsg-teal-700); color: #fff; font-weight: 800; font-size: 17px;
}
.nsg-step h3 { margin-block-end: 6px; }
.nsg-step p { color: var(--nsg-ink-700); }

/* FAQ accordion ------------------------------------------------------------ */
.nsg-faq { max-width: 840px; margin-inline: auto; display: grid; gap: 12px; }
.nsg-faq__item { border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius-sm); background: #fff; overflow: hidden; }
.nsg-faq__item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 1.05rem; color: var(--nsg-ink-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-block-size: 56px;
}
.nsg-faq__item summary::-webkit-details-marker { display: none; }
.nsg-faq__item summary::after { content: '+'; font-size: 1.5rem; color: var(--nsg-teal-600); font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.nsg-faq__item[open] summary::after { transform: rotate(45deg); }
.nsg-faq__item summary:hover { color: var(--nsg-teal-700); }
.nsg-faq__answer { padding: 0 22px 20px; color: var(--nsg-ink-700); }
.nsg-faq__answer > * + * { margin-block-start: .8em; }

/* Footer ------------------------------------------------------------------- */
.nsg-site-footer { background: var(--nsg-ink-900); color: #cbd5e1; padding-block: 52px 26px; margin-block-start: 40px; }
.nsg-site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(auto-fit, minmax(150px, 1fr)); gap: 36px; }
.nsg-site-footer__brand .nsg-brand__name { color: #fff; font-size: 21px; display: inline-block; margin-block-end: 12px; }
.nsg-site-footer__brand p { color: #94a3b8; margin-block-end: 18px; font-size: .93rem; }
.nsg-site-footer__title { color: #fff; font-size: .98rem; margin-block-end: 14px; }
.nsg-site-footer__col ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.nsg-site-footer__col a { color: #94a3b8; font-size: .92rem; }
.nsg-site-footer__col a:hover { color: #fff; text-decoration: none; }
/* Measured 3.75:1 against the #0f172a footer at #64748b — below the 4.5:1 WCAG AA floor
   for body text. This is the educational disclaimer and the NCLEX trademark notice, which
   are exactly the lines a reader must be able to read. #94a3b8 measures ~6.1:1. */
.nsg-site-footer__legal {
  border-block-start: 1px solid #1e293b; margin-block-start: 36px; padding-block-start: 22px;
  display: grid; gap: 10px; font-size: .82rem; line-height: 1.6; color: #94a3b8; max-width: 96ch;
}
.nsg-site-footer__legal strong { color: #94a3b8; }
.nsg-site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-block-start: 1px solid #1e293b; margin-block-start: 22px; padding-block-start: 20px;
  font-size: .88rem; color: #94a3b8; /* 4.5:1 minimum against the footer background */
}
.nsg-site-footer__contact { display: flex; gap: 10px; align-items: center; }
.nsg-site-footer__contact a { color: #94a3b8; }
@media (max-width: 780px) { .nsg-site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .nsg-site-footer__grid { grid-template-columns: 1fr; } }

/* Breadcrumbs -------------------------------------------------------------- */
.nsg-breadcrumbs { background: var(--nsg-ink-50); border-block-end: 1px solid var(--nsg-ink-100); font-size: 13.5px; }
.nsg-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; padding-block: 11px; margin: 0; }
.nsg-breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--nsg-ink-500); }
.nsg-breadcrumbs a { color: var(--nsg-ink-700); }
.nsg-breadcrumbs [aria-current='page'] { color: var(--nsg-teal-700); font-weight: 600; }
.nsg-breadcrumbs__sep { color: var(--nsg-ink-300); }

/* Hero --------------------------------------------------------------------- */
.nsg-hero { position: relative; overflow: hidden; background: linear-gradient(168deg, var(--nsg-teal-50), #fff 62%); }
.nsg-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding-block: clamp(40px, 6vw, 78px); }
.nsg-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  color: var(--nsg-teal-700); background: #fff; padding: 7px 14px; border-radius: 50px; box-shadow: var(--nsg-shadow); margin-block-end: 18px;
}
.nsg-hero h1 { margin-block-end: 16px; }
.nsg-hero__lead { font-size: 1.16rem; color: var(--nsg-ink-700); margin-block-end: 24px; max-width: 58ch; }
.nsg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-end: 20px; }
.nsg-hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--nsg-ink-500); }
.nsg-hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.nsg-hero__trust span::before { content: '✓'; color: var(--nsg-teal-600); font-weight: 800; }
.nsg-hero__card {
  background: #fff; border-radius: var(--nsg-radius); box-shadow: var(--nsg-shadow-lg); padding: 26px;
  border: 1px solid var(--nsg-ink-100);
}
.nsg-hero__card h2 { font-size: 1.15rem; margin-block-end: 14px; }
@media (max-width: 900px) { .nsg-hero__inner { grid-template-columns: 1fr; gap: 28px; } }

/* Mobile hero: stacking doubles the height, so compress the rhythm and drop the
   trust row — its promises are repeated verbatim in the card directly below it. */
/* Measured on a 375x812 device: the stacked hero came out 1294px tall — 1.59 screens
   before the first section. Most of that was the eight full-width teaser options. A
   two-column chip grid halves the rows and brings the hero close to one screen without
   removing a single entry point. Do not revert to a single column here. */
@media (max-width: 640px) {
  .nsg-hero__inner { padding-block: 22px; gap: 16px; }
  .nsg-hero h1 { line-height: 1.16; }
  .nsg-hero__lead { font-size: 1rem; margin-block-end: 16px; }
  .nsg-hero__actions { gap: 10px; margin-block-end: 12px; }
  .nsg-hero__actions .nsg-btn { flex: 1 1 100%; }
  .nsg-hero__trust { display: none; }
  .nsg-hero__card { padding: 16px; }
  .nsg-hero__card h2 { font-size: 1.05rem; margin-block-end: 8px; }
  .nsg-hero__card > p { font-size: .88rem !important; margin-block-end: 10px !important; }
  .nsg-hero__card .nsg-check-list { gap: 10px; }

  .nsg-hero__card .nsg-quiz__options { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nsg-hero__card .nsg-quiz__option {
    padding: 11px 12px; font-size: 14.5px; min-block-size: 48px; line-height: 1.25;
  }
  /* The last chip ("Something else / not sure") spans the row so it reads as the fallback. */
  .nsg-hero__card .nsg-quiz__options li:last-child { grid-column: 1 / -1; }
}

/* CTA band ----------------------------------------------------------------- */
.nsg-cta-band { text-align: center; }
.nsg-cta-band h2 { margin-block-end: 14px; }
.nsg-cta-band p { max-width: 660px; margin: 0 auto 24px; font-size: 1.08rem; }
.nsg-cta-band .nsg-btn { font-size: 17px; padding: 15px 32px; }

/* Article prose ------------------------------------------------------------ */
.nsg-prose { max-width: 760px; margin-inline: auto; }
.nsg-prose > * + * { margin-block-start: 1.2em; }
/* scroll-margin must derive from --nsg-header-h: the header is sticky, and a hard-coded
   value hides the heading underneath it when jumping from the table of contents. */
.nsg-prose h2 { margin-block-start: 1.7em; padding-block-end: .3em; border-block-end: 2px solid var(--nsg-teal-50); scroll-margin-top: calc(var(--nsg-header-h, 68px) + 16px); }
.nsg-prose h3 { margin-block-start: 1.4em; color: var(--nsg-teal-800); scroll-margin-top: calc(var(--nsg-header-h, 68px) + 16px); }
.nsg-prose p, .nsg-prose li { color: var(--nsg-ink-700); }
.nsg-prose ul, .nsg-prose ol { padding-inline-start: 1.35em; display: grid; gap: .45em; }
.nsg-prose li { padding-inline-start: 4px; }
.nsg-prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nsg-prose strong { color: var(--nsg-ink-900); }
.nsg-prose blockquote {
  border-inline-start: 4px solid var(--nsg-teal-600); background: var(--nsg-teal-50);
  padding: 16px 20px; border-radius: 0 var(--nsg-radius-sm) var(--nsg-radius-sm) 0; color: var(--nsg-ink-700); font-style: normal;
}
.nsg-prose blockquote p { margin: 0; }
.nsg-prose img { border-radius: var(--nsg-radius-sm); margin-block: 1.4em; box-shadow: var(--nsg-shadow); }
.nsg-prose code {
  background: var(--nsg-ink-100); padding: 2px 6px; border-radius: 6px; font-size: .9em;
  font-family: var(--font-mono);
}
.nsg-prose hr { border: 0; border-block-start: 1px solid var(--nsg-ink-100); margin-block: 2em; }

/* Responsive tables -------------------------------------------------------- */
.nsg-table-wrap { overflow-x: auto; margin-block: 1.4em; border-radius: var(--nsg-radius-sm); border: 1px solid var(--nsg-ink-100); }
.nsg-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.nsg-prose thead { background: var(--nsg-teal-700); color: #fff; }
.nsg-prose th, .nsg-prose td { padding: 12px 15px; text-align: start; border-block-end: 1px solid var(--nsg-ink-100); vertical-align: top; }
.nsg-prose tbody tr:nth-child(even) { background: var(--nsg-ink-50); }
.nsg-prose tbody tr:hover { background: var(--nsg-teal-50); }

/* Critical on mobile: min-width 460px makes every table wider than the ~335px article
   column, so each one needs horizontal dragging. Drop the floor on narrow screens. */
@media (max-width: 560px) {
  .nsg-prose table { min-width: 0; font-size: .82rem; }
  /* Measured: at 9px/10px padding a five-column comparison table came out 339px wide in a
     335px column — four pixels of horizontal drag on every table on the page. Tighter
     padding and a wrap-anywhere fallback reclaim more than that. */
  .nsg-prose th, .nsg-prose td { padding: 8px 7px; overflow-wrap: anywhere; }
  .nsg-table-wrap { border-inline-width: 0; border-radius: 0; }
}

/* Answer box (featured-snippet target) ------------------------------------- */
.nsg-answer-box {
  background: var(--nsg-teal-50); border: 1px solid var(--nsg-teal-500); border-inline-start-width: 5px;
  border-radius: var(--nsg-radius-sm); padding: 18px 22px; margin-block: 1.5em;
}
.nsg-answer-box strong { color: var(--nsg-teal-800); }

/* Table of contents -------------------------------------------------------- */
.nsg-toc { background: var(--nsg-ink-50); border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius); padding: 20px 24px; margin-block: 1.8em; }
.nsg-toc h2 { font-size: 1.05rem; margin: 0 0 12px; border: 0; padding: 0; }
.nsg-toc ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 7px; }
.nsg-toc a { color: var(--nsg-ink-700); text-decoration: none; font-size: .95rem; }
.nsg-toc a:hover { color: var(--nsg-teal-700); text-decoration: underline; }

/* Article header ----------------------------------------------------------- */
.nsg-article-header { max-width: 780px; margin-inline: auto; padding-block: 36px 8px; }
.nsg-article-header__cat { color: var(--nsg-teal-700); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.nsg-article-header h1 { margin-block: 12px 16px; }
.nsg-article-header__meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
  color: var(--nsg-ink-500); font-size: .88rem;
}
.nsg-article-header__meta time, .nsg-article-header__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Author box (E-E-A-T) ----------------------------------------------------- */
.nsg-author-box {
  display: flex; gap: 16px; align-items: center; max-width: 760px; margin: 44px auto 0;
  padding: 22px; background: var(--nsg-ink-50); border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius);
}
.nsg-author-box__avatar {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--nsg-teal-600), var(--nsg-teal-900)); color: #fff; font-size: 23px; font-weight: 800;
}
.nsg-author-box__name { font-weight: 800; color: var(--nsg-ink-900); }
.nsg-author-box__title { color: var(--nsg-ink-500); font-size: .9rem; }

.nsg-related { border-block-start: 1px solid var(--nsg-ink-100); margin-block-start: 44px; padding-block-start: 36px; }

/* Forms -------------------------------------------------------------------- */
.nsg-form-field { display: grid; gap: 6px; margin-block-end: 16px; }
.nsg-form-field label { font-weight: 700; font-size: .93rem; }
.nsg-form-field input, .nsg-form-field textarea, .nsg-form-field select {
  font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--nsg-ink-300);
  border-radius: var(--nsg-radius-sm); background: #fff; color: var(--nsg-ink-900); width: 100%;
  min-block-size: 46px;
}
.nsg-form-field input:focus, .nsg-form-field textarea:focus, .nsg-form-field select:focus {
  outline: none; border-color: var(--nsg-teal-600); box-shadow: 0 0 0 3px rgba(67,56,202,.16);
}
.nsg-form-hint { font-size: .85rem; color: var(--nsg-ink-500); }

/* Check list --------------------------------------------------------------- */
.nsg-check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.nsg-check-list li { display: flex; gap: 11px; align-items: flex-start; }
.nsg-check-list li::before {
  content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  background: var(--nsg-teal-50); color: var(--nsg-teal-700); display: grid; place-items: center; font-weight: 800; font-size: 13px;
  margin-block-start: 2px;
}

/* ==========================================================================
   Product UI — assessment, results, roadmap, pricing
   ========================================================================== */

/* Quiz --------------------------------------------------------------------- */
.nsg-quiz { max-width: 680px; margin-inline: auto; }
.nsg-quiz__progress { display: flex; align-items: center; gap: 12px; margin-block-end: 22px; }
.nsg-quiz__bar { flex: 1; height: 7px; background: var(--nsg-ink-100); border-radius: 50px; overflow: hidden; }
.nsg-quiz__bar span { display: block; height: 100%; background: var(--nsg-teal-600); border-radius: 50px; transition: width .3s ease; }
.nsg-quiz__count { font-size: .88rem; font-weight: 700; color: var(--nsg-ink-500); white-space: nowrap; }

.nsg-quiz__step { display: none; }
.nsg-quiz__step.nsg-is-active { display: block; animation: nsoFade .25s ease; }
@keyframes nsoFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.nsg-quiz__q { font-size: clamp(1.35rem, 3.4vw, 1.85rem); font-weight: 800; line-height: 1.25; margin-block-end: 8px; letter-spacing: -.02em; }
.nsg-quiz__hint { color: var(--nsg-ink-500); font-size: .95rem; margin-block-end: 20px; }

.nsg-quiz__options { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.nsg-quiz__option {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  padding: 15px 18px; border: 2px solid var(--nsg-ink-100); border-radius: var(--nsg-radius-sm);
  background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: var(--nsg-ink-900);
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
  min-block-size: 56px;
}
.nsg-quiz__option:hover { border-color: var(--nsg-teal-500); background: var(--nsg-teal-50); }
.nsg-quiz__option:focus-visible { outline: 3px solid var(--nsg-teal-500); outline-offset: 2px; }
.nsg-quiz__option[aria-pressed='true'] { border-color: var(--nsg-teal-600); background: var(--nsg-teal-50); }
.nsg-quiz__option[aria-pressed='true']::after { content: '✓'; margin-inline-start: auto; color: var(--nsg-teal-700); font-weight: 800; }

.nsg-quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block-start: 22px; }
.nsg-quiz__back {
  background: none; border: 0; font: inherit; font-size: .94rem; font-weight: 600; color: var(--nsg-ink-500);
  cursor: pointer; padding: 12px 4px; min-block-size: 44px;
}
.nsg-quiz__back:hover { color: var(--nsg-teal-700); }
.nsg-quiz__back[hidden] { visibility: hidden; display: block; }

/* Results ------------------------------------------------------------------ */
.nsg-result-hero { background: linear-gradient(165deg, var(--nsg-teal-50), #fff 70%); padding-block: clamp(32px, 5vw, 56px); }
.nsg-gap-callout {
  background: #fff; border: 1px solid var(--nsg-ink-100); border-inline-start: 5px solid var(--nsg-teal-600);
  border-radius: var(--nsg-radius); padding: 24px 26px; box-shadow: var(--nsg-shadow);
}
.nsg-gap-callout__label { font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--nsg-ink-500); }
.nsg-gap-callout__value { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; color: var(--nsg-teal-800); line-height: 1.2; margin-block: 6px 12px; letter-spacing: -.02em; }
.nsg-gap-callout p { color: var(--nsg-ink-700); margin: 0; }

/* Priority list ------------------------------------------------------------ */
.nsg-priority-list { display: grid; gap: 14px; counter-reset: pri; list-style: none; padding: 0; }
.nsg-priority-item {
  position: relative; background: #fff; border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius);
  padding: 20px 22px 20px 66px; box-shadow: var(--nsg-shadow);
}
.nsg-priority-item::before {
  counter-increment: pri; content: counter(pri);
  position: absolute; inset-inline-start: 20px; inset-block-start: 20px;
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--nsg-teal-700); color: #fff; font-weight: 800; font-size: 15px;
}
.nsg-priority-item h3 { font-size: 1.12rem; margin-block-end: 6px; }
.nsg-priority-item p { color: var(--nsg-ink-700); font-size: .96rem; margin: 0; }
.nsg-priority-item a { font-weight: 700; font-size: .92rem; display: inline-block; margin-block-start: 10px; }

/* Study mix ---------------------------------------------------------------- */
.nsg-mix { display: grid; gap: 14px; }
.nsg-mix__row { display: grid; grid-template-columns: minmax(120px, 150px) 1fr auto; gap: 14px; align-items: center; }
.nsg-mix__label { font-weight: 700; font-size: .93rem; }
.nsg-mix__track { height: 12px; background: var(--nsg-ink-100); border-radius: 50px; overflow: hidden; }
/* Modifiers are attribute selectors, not extra class names: these bars are rendered from
   JavaScript, and a class name assembled at runtime cannot be namespaced at build time. */
.nsg-mix__fill { display: block; height: 100%; border-radius: 50px; background: var(--nsg-teal-600); }
.nsg-mix__fill[data-i='2'] { background: var(--nsg-teal-500); }
.nsg-mix__fill[data-i='3'] { background: var(--nsg-teal-700); }
.nsg-mix__fill[data-i='4'] { background: var(--nsg-ink-300); }
.nsg-mix__value { font-weight: 800; font-size: .95rem; color: var(--nsg-ink-900); min-width: 44px; text-align: end; }
@media (max-width: 520px) {
  .nsg-mix__row { grid-template-columns: 1fr auto; }
  .nsg-mix__track { grid-column: 1 / -1; }
}

/* Session cards ------------------------------------------------------------ */
.nsg-session { background: #fff; border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius); padding: 24px; box-shadow: var(--nsg-shadow); }
.nsg-session__head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-block-end: 6px; }
.nsg-session__label { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nsg-teal-700); background: var(--nsg-teal-50); padding: 4px 10px; border-radius: 50px; }
.nsg-session__time { font-size: .85rem; color: var(--nsg-ink-500); font-weight: 600; }
.nsg-session h3 { font-size: 1.18rem; margin-block-end: 8px; }
.nsg-session__goal { color: var(--nsg-ink-500); font-size: .95rem; margin-block-end: 14px; }
.nsg-session ol { padding-inline-start: 1.2em; display: grid; gap: 8px; color: var(--nsg-ink-700); font-size: .96rem; }
.nsg-session__check {
  margin-block-start: 16px; padding: 12px 15px; background: var(--nsg-ink-50);
  border-radius: var(--nsg-radius-sm); font-size: .92rem; color: var(--nsg-ink-700); border-inline-start: 3px solid var(--nsg-teal-500);
}
.nsg-session__check strong { color: var(--nsg-ink-900); }

/* Banner (dynamic, weakness-specific) -------------------------------------- */
.nsg-banner {
  background: var(--nsg-teal-900); color: #fff; border-radius: var(--nsg-radius); padding: 24px 26px;
}
.nsg-banner h3 { color: #fff; font-size: 1.2rem; margin-block-end: 8px; }
.nsg-banner p { color: rgba(255,255,255,.86); margin: 0; }

/* Pricing ------------------------------------------------------------------ */
.nsg-price-card {
  background: #fff; border: 2px solid var(--nsg-teal-600); border-radius: var(--nsg-radius);
  padding: 30px; box-shadow: var(--nsg-shadow-lg); max-width: 560px; margin-inline: auto;
}
.nsg-price-card__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-block-end: 6px; }
.nsg-price-card__amount { font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 800; color: var(--nsg-ink-900); line-height: 1; letter-spacing: -.04em; }
.nsg-price-card__note { font-size: 1rem; color: var(--nsg-ink-500); font-weight: 600; }
.nsg-price-card__billing { color: var(--nsg-ink-500); font-size: .93rem; margin-block-end: 20px; }
.nsg-price-card .nsg-btn { width: 100%; }
.nsg-price-card__fine { font-size: .85rem; color: var(--nsg-ink-500); margin-block-start: 14px; text-align: center; }

.nsg-value-stack { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 22px; }
.nsg-value-stack li { display: flex; gap: 9px; align-items: flex-start; font-size: .95rem; color: var(--nsg-ink-700); }
.nsg-value-stack li::before { content: '✓'; color: var(--nsg-teal-600); font-weight: 800; flex-shrink: 0; }

/* Module grid -------------------------------------------------------------- */
.nsg-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.nsg-module {
  background: #fff; border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius); padding: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.nsg-module__num { font-size: .78rem; font-weight: 800; color: var(--nsg-teal-600); letter-spacing: .08em; }
.nsg-module h3 { font-size: 1.03rem; }
.nsg-module p { color: var(--nsg-ink-500); font-size: .9rem; margin: 0; }
.nsg-module__reason { font-size: .82rem; color: var(--nsg-teal-700); font-weight: 600; margin-block-start: 4px; }

/* Roadmap tiers ------------------------------------------------------------ */
.nsg-tier { margin-block-end: 34px; }
.nsg-tier__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-block-end: 14px; }
.nsg-tier__head h3 { font-size: 1.3rem; }
.nsg-tier__count { font-size: .88rem; color: var(--nsg-ink-500); font-weight: 600; }
.nsg-tier-badge {
  font-size: .7rem; font-weight: 800; letter-spacing: .09em; padding: 4px 9px; border-radius: 5px;
  text-transform: uppercase; white-space: nowrap;
}
/* Never signal status by colour alone — each badge carries its own text label.
   Attribute selectors rather than modifier classes, because these are rendered from JS. */
.nsg-tier-badge[data-tier='must-know'] { background: #fee2e2; color: #991b1b; }
.nsg-tier-badge[data-tier='should-know'] { background: #fef3c7; color: #92400e; }
.nsg-tier-badge[data-tier='if-time'] { background: var(--nsg-teal-50); color: var(--nsg-teal-800); }
.nsg-tier-badge[data-tier='skip-for-now'] { background: var(--nsg-ink-100); color: var(--nsg-ink-500); }

.nsg-roadmap-item {
  background: #fff; border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius-sm);
  padding: 16px 18px; display: grid; gap: 8px; margin-block-end: 10px;
}
.nsg-roadmap-item__top { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.nsg-roadmap-item__title { font-weight: 700; font-size: 1.02rem; color: var(--nsg-ink-900); }
.nsg-roadmap-item__mins { font-size: .84rem; color: var(--nsg-ink-500); margin-inline-start: auto; font-weight: 600; white-space: nowrap; }
.nsg-roadmap-item__why { display: flex; flex-wrap: wrap; gap: 6px; }
.nsg-roadmap-item__why span {
  font-size: .78rem; background: var(--nsg-ink-50); color: var(--nsg-ink-700);
  padding: 3px 9px; border-radius: 50px; border: 1px solid var(--nsg-ink-100);
}
.nsg-roadmap-item__method { font-size: .89rem; color: var(--nsg-ink-700); }

/* Weakness map ------------------------------------------------------------- */
.nsg-wmap { display: grid; gap: 12px; }
.nsg-wmap__row { display: grid; grid-template-columns: minmax(120px, 170px) 1fr auto auto; gap: 12px; align-items: center; }
.nsg-wmap__label { font-weight: 700; font-size: .93rem; }
.nsg-wmap__track { height: 12px; background: var(--nsg-ink-100); border-radius: 50px; overflow: hidden; }
.nsg-wmap__fill { display: block; height: 100%; border-radius: 50px; background: var(--nsg-teal-600); }
.nsg-wmap__pct { font-weight: 800; font-size: .93rem; min-width: 48px; text-align: end; }
/* Band is conveyed by text, not only by the bar length or colour. */
.nsg-wmap__band { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.nsg-wmap__band[data-band='stronger'] { background: #dcfce7; color: #166534; }
.nsg-wmap__band[data-band='mixed'] { background: #fef3c7; color: #92400e; }
.nsg-wmap__band[data-band='weaker'] { background: #fee2e2; color: #991b1b; }
@media (max-width: 620px) {
  .nsg-wmap__row { grid-template-columns: 1fr auto auto; }
  .nsg-wmap__track { grid-column: 1 / -1; }
}

/* Day plan ----------------------------------------------------------------- */
.nsg-day { background: #fff; border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius); padding: 20px 22px; margin-block-end: 12px; }
.nsg-day__title { font-size: 1.1rem; font-weight: 800; margin-block-end: 4px; }
.nsg-day__meta { font-size: .84rem; color: var(--nsg-ink-500); margin-block-end: 14px; }
.nsg-day__blocks { display: grid; gap: 10px; }
.nsg-day__block { display: grid; grid-template-columns: 108px 1fr auto; gap: 12px; align-items: start; font-size: .93rem; }
.nsg-day__kind { font-weight: 800; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--nsg-teal-700); padding-block-start: 3px; }
.nsg-day__detail { color: var(--nsg-ink-700); }
.nsg-day__mins { font-size: .82rem; color: var(--nsg-ink-500); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .nsg-day__block { grid-template-columns: 1fr auto; }
  .nsg-day__kind { grid-column: 1 / -1; }
}

/* Review status badge ------------------------------------------------------ */
.nsg-review-status {
  display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--nsg-radius-sm); font-size: .88rem; line-height: 1.55; margin-block: 1.4em;
  border: 1px solid;
}
.nsg-review-status--pending { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.nsg-review-status--verified { background: #f0fdf4; border-color: #86efac; color: #14532d; }
.nsg-review-status strong { display: block; margin-block-end: 2px; }
.nsg-review-status__icon { flex-shrink: 0; font-weight: 800; }

/* Source list -------------------------------------------------------------- */
.nsg-sources { display: grid; gap: 10px; list-style: none; padding: 0; margin-block-start: 14px; }
.nsg-sources li { font-size: .9rem; color: var(--nsg-ink-700); padding-inline-start: 16px; position: relative; }
.nsg-sources li::before { content: '·'; position: absolute; inset-inline-start: 4px; font-weight: 800; color: var(--nsg-teal-600); }
.nsg-sources__org { color: var(--nsg-ink-500); }

/* Notice / disclaimer panels ----------------------------------------------- */
.nsg-notice {
  border: 1px solid var(--nsg-ink-300); border-inline-start: 4px solid var(--nsg-ink-500);
  background: var(--nsg-ink-50); border-radius: var(--nsg-radius-sm); padding: 16px 18px; font-size: .93rem;
  color: var(--nsg-ink-700);
}
.nsg-notice strong { color: var(--nsg-ink-900); }
.nsg-notice--warn { border-color: #fcd34d; border-inline-start-color: #d97706; background: #fffbeb; color: #78350f; }
.nsg-notice--warn strong { color: #78350f; }

/* Pill / tag rows ---------------------------------------------------------- */
.nsg-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
/* 44px minimum: these are primary navigation chips on mobile, and 38px was measurably
   under the comfortable touch-target floor. */
.nsg-pills a, .nsg-pills span {
  display: inline-flex; align-items: center; font-size: .88rem; font-weight: 600; padding: 8px 14px;
  border-radius: 50px; background: #fff; border: 1px solid var(--nsg-ink-100); color: var(--nsg-ink-700);
  min-block-size: 44px; line-height: 1.35;
}
.nsg-pills a:hover { border-color: var(--nsg-teal-500); color: var(--nsg-teal-700); background: var(--nsg-teal-50); text-decoration: none; }

/* "Built around" panel ----------------------------------------------------- */
.nsg-built { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; background: var(--nsg-ink-100); border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius); overflow: hidden; }
.nsg-built__cell { background: #fff; padding: 16px 18px; }
.nsg-built__label { font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--nsg-ink-500); }
.nsg-built__value { font-weight: 700; font-size: 1rem; color: var(--nsg-ink-900); margin-block-start: 4px; line-height: 1.35; }

/* Generation progress ------------------------------------------------------ */
.nsg-gen-steps { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 460px; margin-inline: auto; }
.nsg-gen-steps li { display: flex; gap: 11px; align-items: center; font-size: .98rem; color: var(--nsg-ink-500); transition: color .3s; }
.nsg-gen-steps li::before { content: '○'; font-weight: 800; color: var(--nsg-ink-300); width: 20px; }
.nsg-gen-steps li.nsg-is-done { color: var(--nsg-ink-900); font-weight: 600; }
.nsg-gen-steps li.nsg-is-done::before { content: '✓'; color: var(--nsg-teal-600); }

/* Comparison table (used by comparison guides) ----------------------------- */
.nsg-compare th:first-child { width: 24%; }

/* Search ------------------------------------------------------------------- */
.nsg-search-box { display: flex; gap: 10px; max-width: 560px; margin-inline: auto; }
.nsg-search-box input { flex: 1; }
.nsg-search-results { display: grid; gap: 12px; max-width: 760px; margin: 28px auto 0; }
.nsg-search-result { background: #fff; border: 1px solid var(--nsg-ink-100); border-radius: var(--nsg-radius-sm); padding: 16px 18px; }
.nsg-search-result h3 { font-size: 1.05rem; margin-block-end: 4px; }
.nsg-search-result p { font-size: .92rem; color: var(--nsg-ink-500); margin: 0; }
.nsg-search-empty { text-align: center; color: var(--nsg-ink-500); padding-block: 32px; }

/* Print -------------------------------------------------------------------- */
@media print {
  .nsg-site-header, .nsg-site-footer, .nsg-breadcrumbs, .nsg-no-print, .nsg-btn { display: none !important; }
  body { font-size: 11pt; }
  .nsg-card, .nsg-session, .nsg-day, .nsg-roadmap-item { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .nsg-section { padding-block: 12px; }
  a { text-decoration: none; color: #000; }
}

/* Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
