/*
 * Nivåtestet (/nivatest/). Fokuserat flöde: sajtens meny och sidfot döljs,
 * sidan har en egen topprad med stegen Uppgifter, Om dig, Resultat och plan.
 * Markup: page-nivatest.php. Beteende: javascript/nivatest.js.
 */

body.nivatest-page header#header {
  display: none !important;
}

body.nivatest-page {
  margin: 0;
  background: #f8fafc;
}

.nt {
  --nt-ink: var(--ink, #0f172a);
  --nt-muted: #475569;
  --nt-faint: var(--ink-muted, #64748b);
  --nt-line: var(--border, #e2e8f0);
  --nt-line-soft: #eef2f7;
  --nt-blue: var(--blue-600, #2563eb);
  --nt-blue-dark: var(--blue-700, #1d4ed8);
  --nt-blue-bg: var(--blue-50, #eff6ff);
  --nt-shadow: 0 4px 6px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 23, 42, 0.08);
  min-height: 100vh;
  background: linear-gradient(180deg, #eef4ff 0, #f8fafc 420px);
  color: var(--nt-ink);
  font-family: var(--font-ui, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
}

.nt *,
.nt *::before,
.nt *::after {
  box-sizing: border-box;
}

.nt a {
  color: var(--nt-blue);
}

/* Vyerna växlas med hidden; flex- och grid-regler nedan får inte ta över. */
.nt [hidden] {
  display: none !important;
}

.nt-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Topprad --------------------------------------------------------------- */

.nt-top {
  background: #fff;
  border-bottom: 1px solid var(--nt-line);
}

.nt-top__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nt-wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--nt-ink) !important;
  text-decoration: none;
}

.nt-wordmark span {
  color: var(--nt-blue);
}

.nt-steps {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--nt-faint);
}

.nt-steps__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nt-steps__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.nt-steps__dot svg {
  display: none;
}

.nt-steps__item.is-current {
  color: var(--nt-blue);
}

.nt-steps__item.is-current .nt-steps__dot {
  background: var(--nt-blue);
  border-color: var(--nt-blue);
  color: #fff;
}

.nt-steps__item.is-done {
  color: var(--nt-ink);
}

.nt-steps__item.is-done .nt-steps__dot {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.nt-steps__item.is-done .nt-steps__num {
  display: none;
}

.nt-steps__item.is-done .nt-steps__dot svg {
  display: block;
}

.nt[data-nt-view="intro"] .nt-steps {
  visibility: hidden;
}

.nt-top__exit {
  font-size: 14px;
  font-weight: 600;
  color: var(--nt-muted) !important;
  text-decoration: none;
}

.nt-top__exit:hover {
  color: var(--nt-ink) !important;
}

/* --- Gemensamt --------------------------------------------------------------- */

.nt-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  outline: none;
}

.nt-h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  outline: none;
}

.nt-h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  outline: none;
}

.nt-h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nt-h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.nt-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--nt-muted);
}

.nt-sub {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--nt-muted);
}

.nt-note {
  margin: 16px 4px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--nt-faint);
}

.nt-card {
  background: #fff;
  border: 1px solid var(--nt-line);
  border-radius: 20px;
}

.nt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font-ui, "Inter", sans-serif);
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nt-btn--primary {
  background: var(--nt-blue);
  color: #fff !important;
}

.nt-btn--primary:hover {
  background: var(--nt-blue-dark);
}

.nt-btn--primary:disabled {
  background: var(--nt-line);
  color: var(--nt-faint) !important;
  cursor: not-allowed;
}

.nt-btn--ghost {
  background: #fff;
  border-color: #cbd5e1;
  color: var(--nt-ink) !important;
}

.nt-btn--ghost:hover {
  border-color: var(--nt-blue);
}

.nt-btn--text {
  background: transparent;
  color: var(--nt-muted);
  padding: 0 12px;
}

.nt-btn--text:hover {
  color: var(--nt-ink);
}

.nt-btn--lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
  font-weight: 600;
}

.nt-btn--block {
  width: 100%;
}

.nt-btn:focus-visible,
.nt-opt:focus-visible,
.nt-choice:focus-within,
.nt-chip:focus-within,
.nt-input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.nt-error {
  margin: 12px 0 0;
  font-size: 14px;
  color: #b91c1c;
}

.nt-error:empty {
  display: none;
}

/* --- Introduktion ------------------------------------------------------------ */

.nt-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: flex-start;
  padding-top: 24px;
}

.nt-intro__text {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 540px;
}

.nt-intro__text .nt-lead {
  margin-bottom: 26px;
}

.nt-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 30px;
  border-top: 1px solid #dbe4f3;
  border-bottom: 1px solid #dbe4f3;
}

.nt-facts > div {
  padding: 14px 0 14px 18px;
  border-left: 1px solid #dbe4f3;
}

.nt-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.nt-facts dt {
  font-size: 13px;
  color: var(--nt-faint);
}

.nt-facts dd {
  margin: 4px 0 0;
  font-size: 21px;
  font-weight: 700;
}

.nt-gets {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nt-gets li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--nt-line);
  font-size: 15px;
  line-height: 1.5;
  color: #334155;
}

.nt-gets li:last-child {
  border-bottom: 0;
}

.nt-gets svg {
  flex: none;
  margin-top: 2px;
  color: var(--nt-blue);
}

.nt-intro__card {
  flex: 1 1 480px;
  min-width: 0;
  position: relative;
}

.nt-intro__mascot {
  position: absolute;
  right: 4px;
  top: -84px;
  width: 104px;
  height: auto;
  pointer-events: none;
}

/* --- Uppgiftskortet ---------------------------------------------------------- */

.nt-test {
  max-width: 760px;
  margin: 0 auto;
}

.nt-q {
  border-radius: 24px;
  box-shadow: var(--nt-shadow);
  outline: none;
}

.nt-q__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--nt-line);
}

.nt-q__count {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.nt-q__section {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--nt-faint);
}

.nt-q__clock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nt-faint);
  font-variant-numeric: tabular-nums;
}

.nt-q__bar {
  display: flex;
  gap: 4px;
  padding: 14px 26px 0;
}

.nt-q__bar span {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--nt-line);
}

.nt-q__bar span.is-on {
  background: var(--nt-blue);
}

.nt-q__body {
  padding: 24px 26px 8px;
}

.nt-q__prompt {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--nt-muted);
}

.nt-q__word {
  margin: 0 0 22px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nt-q__stem {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
}

.nt-q__info {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 15px;
}

.nt-kva {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--nt-line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.nt-kva > div {
  padding: 18px 20px;
}

.nt-kva > div + div {
  border-left: 1px solid var(--nt-line);
}

.nt-kva__label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nt-faint);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nt-kva__value {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.nt-nog {
  margin: 0 0 18px;
  padding: 14px 18px;
  list-style: none;
  border: 1px solid var(--nt-line);
  border-radius: 14px;
}

.nt-nog li {
  font-size: 16px;
  line-height: 1.55;
  padding: 4px 0;
}

.nt-dtk {
  margin: 0 0 18px;
  border: 1px solid var(--nt-line);
  border-radius: 14px;
  overflow-x: auto;
}

.nt-dtk figcaption {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--nt-line);
  background: #f8fafc;
}

.nt-dtk table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.nt-dtk th,
.nt-dtk td {
  padding: 9px 16px;
  text-align: right;
  border-bottom: 1px solid var(--nt-line-soft);
}

.nt-dtk th:first-child {
  text-align: left;
}

.nt-dtk thead th {
  font-size: 12px;
  color: var(--nt-faint);
  font-weight: 600;
}

.nt-dtk tbody th {
  font-weight: 600;
}

.nt-dtk tr:last-child th,
.nt-dtk tr:last-child td {
  border-bottom: 0;
}

.nt-q__options {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nt-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--nt-line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: 500 16px/1.4 var(--font-ui, "Inter", sans-serif);
  color: var(--nt-ink);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.nt-opt:hover {
  border-color: #93c5fd;
}

.nt-opt__key {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--nt-muted);
}

.nt-opt.is-selected {
  border-color: var(--nt-blue);
  box-shadow: inset 0 0 0 1px var(--nt-blue);
  background: var(--nt-blue-bg);
}

.nt-opt.is-selected .nt-opt__key {
  background: var(--nt-blue);
  color: #fff;
}

.nt-q__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 26px 22px;
  flex-wrap: wrap;
}

.nt-q__hint {
  font-size: 13px;
  color: var(--nt-faint);
}

.nt-test .nt-q__foot {
  border-top: 1px solid var(--nt-line);
  margin-top: 16px;
}

.nt-groups {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.nt-group__bars {
  display: flex;
  gap: 3px;
  margin-bottom: 6px;
}

.nt-group__bars span {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: #dbe4f3;
}

.nt-group__bars span.is-done {
  background: var(--nt-blue);
}

.nt-group__bars span.is-current {
  background: #93c5fd;
}

.nt-group__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--nt-faint);
}

.nt-group.is-done .nt-group__name {
  color: var(--nt-ink);
}

.nt-group.is-current .nt-group__name {
  color: var(--nt-blue);
}

/* --- Om dig ---------------------------------------------------------------- */

.nt-about {
  max-width: 760px;
  margin: 0 auto;
}

.nt-about__form {
  border-radius: 24px;
  box-shadow: var(--nt-shadow);
}

.nt-field {
  border: 0;
  margin: 0;
  padding: 24px 26px;
  border-bottom: 1px solid var(--nt-line);
  min-width: 0;
}

.nt-field:last-of-type {
  border-bottom: 0;
}

.nt-field__legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
}

.nt-field__help {
  clear: both;
  margin: -8px 0 14px;
  font-size: 13px;
  color: var(--nt-faint);
}

.nt-choices {
  clear: both;
  display: grid;
  gap: 10px;
}

.nt-choices--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nt-choices--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nt-choices--goal {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.nt-choice,
.nt-chip {
  position: relative;
  cursor: pointer;
}

.nt-choice input,
.nt-chip input,
.nt-linkish input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.nt-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70px;
  padding: 12px 16px;
  border: 1px solid var(--nt-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.nt-choice--short {
  min-height: 52px;
  align-items: center;
}

.nt-choice:hover,
.nt-chip:hover span {
  border-color: #93c5fd;
}

.nt-choice:has(input:checked) {
  border-color: var(--nt-blue);
  box-shadow: inset 0 0 0 1px var(--nt-blue);
  background: var(--nt-blue-bg);
}

.nt-choice__label {
  font-size: 15px;
  font-weight: 600;
}

.nt-choice__sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--nt-faint);
}

.nt-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--nt-line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nt-chip input:checked + span {
  background: var(--nt-blue);
  border-color: var(--nt-blue);
  color: #fff;
}

.nt-linkish {
  display: inline-block;
  margin-top: 10px;
  cursor: pointer;
}

.nt-linkish span {
  font-size: 13px;
  font-weight: 600;
  color: var(--nt-blue);
  padding: 8px 0;
  display: inline-block;
}

.nt-linkish input:checked + span {
  color: var(--nt-ink);
  text-decoration: underline;
}

.nt-linkish:focus-within span {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.nt-warn {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  line-height: 1.5;
}

.nt-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

/* --- Laddning ---------------------------------------------------------------- */

.nt-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 120px 0;
  color: var(--nt-muted);
  font-size: 15px;
}

.nt-loading[hidden] {
  display: none;
}

.nt-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #dbe4f3;
  border-top-color: var(--nt-blue);
  animation: nt-spin 0.8s linear infinite;
}

@keyframes nt-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Resultat ---------------------------------------------------------------- */

.nt-result {
  max-width: 1040px;
  margin: 0 auto;
}

.nt-result__head {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 26px;
}

.nt-result__intro {
  flex: 1 1 520px;
  min-width: 0;
}

.nt-result__intro .nt-h1 {
  margin-bottom: 10px;
}

.nt-keyfacts {
  display: flex;
  margin: 0;
  background: #fff;
  border: 1px solid var(--nt-line);
  border-radius: 16px;
}

.nt-keyfacts > div {
  padding: 12px 18px;
}

.nt-keyfacts > div + div {
  border-left: 1px solid var(--nt-line);
}

.nt-keyfacts dt {
  font-size: 12px;
  color: var(--nt-faint);
}

.nt-keyfacts dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.nt-sections {
  border-radius: 24px;
  padding: 6px 26px 20px;
  margin-bottom: 20px;
}

.nt-sections__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 6px;
}

.nt-sections__top .nt-h3 {
  margin: 0;
}

.nt-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--nt-faint);
}

.nt-legend__bar {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--nt-blue);
}

.nt-legend__tick {
  width: 2px;
  height: 12px;
  margin-left: 10px;
  background: var(--nt-ink);
}

.nt-table-wrap {
  overflow-x: auto;
}

.nt-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

.nt-table thead th {
  padding: 10px 0;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--nt-faint);
}

.nt-table thead th:first-child {
  width: 200px;
}

.nt-table thead th:nth-child(2) {
  width: 130px;
}

.nt-table thead th:last-child {
  width: 180px;
  padding-left: 20px;
}

.nt-table tbody tr {
  border-top: 1px solid var(--nt-line-soft);
}

.nt-table tbody th,
.nt-table tbody td {
  padding: 13px 0;
  text-align: left;
  vertical-align: middle;
}

.nt-table tbody td:last-child {
  padding-left: 20px;
}

.nt-row__code {
  display: block;
  font-weight: 600;
}

.nt-row__name {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--nt-faint);
}

.nt-row__muted {
  color: var(--nt-muted);
}

.nt-row__score {
  margin-left: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.nt-row__skip {
  display: block;
  font-size: 12px;
  color: var(--nt-faint);
}

.nt-dots {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}

.nt-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
}

.nt-dot.is-on {
  background: var(--nt-blue);
  border-color: var(--nt-blue);
}

.nt-tempo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nt-tempo__track {
  position: relative;
  flex: 1;
  height: 10px;
  background: #f1f5f9;
  border-radius: 6px;
}

.nt-tempo__bar {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 6px;
  background: var(--nt-blue);
}

.nt-tempo__bar.is-slow {
  background: #ea580c;
}

.nt-tempo__tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--nt-ink);
}

.nt-tempo__text {
  width: 96px;
  font-size: 13px;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.nt-verdict {
  font-size: 13px;
  font-weight: 600;
  color: var(--nt-muted);
}

.nt-verdict--good {
  color: #15803d;
}

.nt-verdict--focus {
  display: inline-block;
  font-weight: 600;
  color: #c2410c;
  background: #fff7ed;
  padding: 4px 10px;
  border-radius: 8px;
}

.nt-focus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.nt-focus__card {
  padding: 24px;
}

.nt-focus__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nt-muted);
}

.nt-focus__card .nt-focus__kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nt-blue);
}

.nt-focus__card .nt-h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.nt-phases {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.nt-phases[hidden] {
  display: none;
}

.nt-phase__bar {
  display: block;
  height: 8px;
  border-radius: 6px;
  background: var(--nt-blue);
}

.nt-phase--target .nt-phase__bar {
  background: #93c5fd;
}

.nt-phase--final .nt-phase__bar {
  background: #dbeafe;
}

.nt-phase__name {
  margin: 10px 0 2px;
  font-size: 14px;
  font-weight: 600;
}

.nt-phase__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--nt-faint);
}

.nt-week {
  overflow: hidden;
}

.nt-week__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--nt-line);
  font-size: 13px;
  color: var(--nt-faint);
}

.nt-week__head .nt-h4 {
  color: var(--nt-ink);
}

.nt-sessions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nt-session {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.nt-session--empty {
  display: block;
  font-size: 15px;
  color: var(--nt-muted);
}

.nt-session__day {
  font-size: 13px;
  font-weight: 600;
  color: var(--nt-faint);
}

.nt-session__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.nt-session__desc {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nt-faint);
}

.nt-session__min {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}

/* Leadgrinden: suddiga veckor bakom formuläret. */
.nt-gate {
  position: relative;
  min-height: 560px;
}

.nt-gate[hidden] {
  display: none;
}

.nt-gate__ghost {
  filter: blur(5px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.nt-ghost__head {
  display: flex;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
}

.nt-ghost__row {
  padding: 15px 24px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
}

.nt-gate__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.88) 40%);
}

.nt-gate--plain {
  min-height: 0;
}

.nt-gate--plain .nt-gate__overlay {
  position: static;
  background: none;
}

.nt-gate__form {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--nt-line);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1), 0 24px 60px rgba(15, 23, 42, 0.14);
  padding: 26px 28px;
}

.nt-gate__text {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--nt-muted);
}

.nt-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.nt-gate__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nt-input {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: 500 16px var(--font-ui, "Inter", sans-serif);
  color: var(--nt-ink);
  background: #fff;
}

.nt-gate__row .nt-btn {
  min-height: 48px;
  font-weight: 600;
}

.nt-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.nt-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--nt-muted);
  cursor: pointer;
}

.nt-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--nt-blue);
}

.nt-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  font-size: 12px;
  color: var(--nt-faint);
}

.nt-or::before,
.nt-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--nt-line);
}

.nt-fine {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--nt-faint);
}

/* Grinden för utloggade: konto primärt (Google + e-post), mejl som textlänk. */
.nt-btn--google {
  min-height: 48px;
  background: #fff;
  border-color: #cbd5e1;
  color: var(--nt-ink) !important;
  font-weight: 600;
}

.nt-btn--google:hover {
  border-color: var(--nt-blue);
  background: #f8fbff;
}

.nt-signup .nt-gate__text,
.nt-lead .nt-gate__text {
  margin-bottom: 16px;
}

.nt-signup .nt-or {
  margin: 16px 0 12px;
}

.nt-textlink {
  display: block;
  margin: 14px auto 0;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--nt-blue);
  font: 600 14px/1.4 var(--font-ui, "Inter", sans-serif);
  cursor: pointer;
}

.nt-textlink:hover {
  text-decoration: underline;
}

.nt-textlink:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
  border-radius: 6px;
}

.nt-error a {
  margin-left: 4px;
  font-weight: 600;
}

/* Inloggad: spara planen på kontot i stället för e-postgrinden. */
.nt-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 24px;
  border-top: 1px solid var(--nt-line);
  background: #f5f9ff;
}

.nt-account__text {
  flex: 1 1 320px;
  min-width: 0;
}

.nt-account__text .nt-h3 {
  margin-bottom: 4px;
}

.nt-account__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--nt-muted);
}

.nt-account__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.nt-account__keep {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nt-account__keep:hover {
  text-decoration: underline;
}

.nt-account .nt-error {
  flex-basis: 100%;
  margin: 0;
}

.nt-sent {
  padding: 24px;
  border-top: 1px solid var(--nt-line);
}

.nt-sent[hidden] {
  display: none;
}

.nt-sent__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #15803d;
}

.nt-sent__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dcfce7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nt-sent__text {
  margin: 0 0 16px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--nt-muted);
}

.nt-review {
  margin-top: 48px;
}

.nt-review[hidden] {
  display: none;
}

.nt-review__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--nt-line);
}

.nt-review__item {
  padding: 18px 0;
  border-bottom: 1px solid var(--nt-line);
}

.nt-review__meta {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nt-faint);
}

.nt-review__item.is-wrong .nt-review__meta {
  color: #c2410c;
}

.nt-review__item.is-right .nt-review__meta {
  color: #15803d;
}

.nt-review__q {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.nt-review__answers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0 0 8px;
  font-size: 14px;
  color: #334155;
}

.nt-review__solution {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--nt-muted);
}

.nt-noscript {
  padding: 40px 0;
  font-size: 16px;
}

/* --- Mobil ------------------------------------------------------------------- */

@media (max-width: 760px) {
  .nt-top__inner {
    padding: 12px 16px;
  }

  .nt-steps {
    display: none;
  }

  .nt-main {
    padding: 24px 16px 56px;
  }

  .nt-intro {
    gap: 32px;
    padding-top: 0;
  }

  .nt-intro__mascot {
    display: none;
  }

  .nt-facts dd {
    font-size: 17px;
  }

  .nt-q__head,
  .nt-q__body,
  .nt-q__foot {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nt-q__bar {
    padding: 12px 16px 0;
  }

  .nt-test .nt-q__foot {
    flex-wrap: nowrap;
  }

  .nt-q__foot .nt-btn--text {
    padding: 0 4px;
    line-height: 1.3;
    text-align: left;
  }

  .nt-q__foot .nt-btn--primary {
    flex: 0 0 auto;
  }

  .nt-kva {
    grid-template-columns: minmax(0, 1fr);
  }

  .nt-kva > div + div {
    border-left: 0;
    border-top: 1px solid var(--nt-line);
  }

  .nt-groups {
    gap: 4px;
  }

  .nt-field {
    padding: 20px 16px;
  }

  .nt-choices--3,
  .nt-choices--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nt-choices--goal {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nt-actions .nt-btn {
    width: 100%;
  }

  .nt-keyfacts {
    width: 100%;
  }

  .nt-keyfacts > div {
    flex: 1;
    padding: 10px 12px;
  }

  .nt-sections {
    padding: 4px 16px 16px;
  }

  .nt-session {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 14px 16px;
  }

  .nt-session__min {
    grid-column: 2;
  }

  .nt-week__head {
    padding: 16px;
  }

  /* På mobil räcker formuläret; de suddiga veckorna tar bara plats. */
  .nt-gate {
    min-height: 0;
  }

  .nt-gate__ghost {
    display: none;
  }

  .nt-gate__overlay {
    position: static;
    padding: 16px;
    background: #f8fafc;
  }

  .nt-gate__form {
    padding: 22px 18px;
    box-shadow: none;
  }

  .nt-gate__row .nt-btn {
    flex: 1 1 100%;
  }

  .nt-btn--block {
    min-height: 48px;
    padding: 10px 16px;
    line-height: 1.3;
    text-align: center;
  }

  .nt-phases {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  .nt-account {
    padding: 18px 16px;
  }

  .nt-account__actions,
  .nt-account__actions .nt-btn {
    width: 100%;
  }
}
