:root {
  --ink: #0e0e1a;
  --bg: #f2f1ed;
  --warm: #ede8de;
  --p1: #615380;
  --light-purple: #ddd6ea;
  --p2: #8b3e1d;
  --p2-light: #c46a32;
  --light-orange: #f0d9c8;
  --p2-dark: #6f3016;
  --p3: #425d46;
  --light-green: #c9dccd;
  --gold: #c49a2e;
  --light-gold: #ffe194;
  --dark-gold: #917122;
  --dark-grey: #4B4B53;
  --muted: #6b6672;
  --light-grey: #ffffff80;
  --lightest-grey: #ffffffb8;
  --card: #fff;
  --border: rgba(14, 14, 26, 0.1);
  --shadow: 0 2px 20px rgba(14, 14, 26, 0.08);
  --radius: 16px;
  --font: 'Nunito', sans-serif;
  /* Brand (ro:bur logo D4 CP1, green/purple variant) */
  --brand-purple: #615380;
  --brand-green: #425d46;
  --brand-sage: #75967f;
  --font-logo: 'Quicksand', 'Nunito', sans-serif;
  /* Website style (shared with the Robur site): warm off-white, thin rules, light headings */
  --site-bg: #f2f1ed;
  --site-card: #faf9f6;
  --site-line: #e2ddd8;
  --site-ink: #2e2a33;
}

:root[font-size="fs-normal"] {

  --assess-content-width: 695px;
  --survey-card-height: 460px;
  --domain-bar-height: 64px;

  /* Font size scale — Vision Australia inclusive design: 16px min for body */
  --text-xs: 0.75rem;
  /* 12px — tags, badges, category labels */
  --text-sm: 0.875rem;
  /* 14px — captions, metadata, supporting text */
  --text-base: 1rem;
  /* 16px — body text minimum */
  --text-md: 1.125rem;
  /* 18px — emphasized body, form inputs */
  --text-lg: 1.25rem;
  /* 20px — H4, subheadings */
  --text-xl: 1.5rem;
  /* 24px — H3 */
  --text-2xl: 1.875rem;
  /* 30px — H2 */
  --text-3xl: 2.25rem;
  /* 36px — H1, stat display numbers */
  --text-4xl: 2.75rem;
  /* 44px — large feature icons, emoji display */
}

:root[font-size="fs-lg"] {
  --assess-content-width: 850px;
  --survey-card-height: 460px;
  --domain-bar-height: 70px;
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-md: 1.25rem;
  --text-lg: 1.5rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.25rem;
}

:root[font-size="fs-xl"] {

  --assess-content-width: 1100px;
  --survey-card-height: 460px;
  --domain-bar-height: 78px;

  --text-xs: 1rem;
  --text-sm: 1.125rem;
  --text-base: 1.25rem;
  --text-md: 1.5rem;
  --text-lg: 1.75rem;
  --text-xl: 2.25rem;
  --text-2xl: 2.75rem;
  --text-3xl: 3.25rem;
  --text-4xl: 3.75rem;
}

body.hc #page-content {
  filter: contrast(1.3);
}

body.dyslexia-font * {
  font-family: "Atkinson Hyperlegible", sans-serif !important;
  letter-spacing: .06em;
  word-spacing: .1em;
}

:root[font-size="fs-normal"] body.dyslexia-font {
  --assess-content-width: 740px;
  --survey-card-height: 480px;
  --domain-bar-height: 64px;
}

:root[font-size="fs-lg"] body.dyslexia-font {
  --assess-content-width: 880px;
  --survey-card-height: 510px;
  --domain-bar-height: 64px;
}

:root[font-size="fs-xl"] body.dyslexia-font {
  --assess-content-width: 980px;
  --survey-card-height: 510px;
  --domain-bar-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.lightest-grey-base-text {
  font-size: var(--text-base);
  color: var(--lightest-grey);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.icon-with-margin {
  margin-left: 0.3rem;
}

.external-link-button {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 700;
}

/* ── PAGES ── */
.page {
  display: none;
  min-height: 100vh;
}

.page.active {
  display: block;
  animation: fadeUp .4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bold-base-text {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
}

/* ── NAV ── */
nav {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(245, 242, 236, .95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  margin-right: 0.75rem
}

.logo-word {
  font-family: var(--font-logo);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
}

.logo-colon {
  color: var(--brand-sage);
  margin: 0 .04em;
}

.w-roundel {
  width: 132px;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
}

.nav-links {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .45rem 1.1rem;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--dark-grey);
  transition: all .2s;
  white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
  background: var(--p1);
  color: #fff;
}

.nav-role-switcher-container {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  width: fit-content;
}

.nav-role-button {
  padding: .28rem .85rem;
  border-radius: 100px;
  border: none;
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--dark-grey);
  transition: all .2s;
}

/* -- NAV DROPDOWN -- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
}

/* Trigger inherits .nav-btn; add flex so chevron sits inline */
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Animated chevron */
.nav-dropdown-chevron {
  flex-shrink: 0;
  pointer-events: none;
  transition: transform 0.2s ease;
}

/* Open state — mirror the active nav-btn colour */
.nav-dropdown-trigger[aria-expanded="true"] {
  background: var(--p1);
  color: #fff;
}

.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel — matches nav background/blur */
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245, 242, 236, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(14, 14, 26, 0.14);
  z-index: 300;
  /* min-width: 160px; */
  padding: 0.35rem;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-dropdown-content.show {
  display: flex;
}

/* Dropdown items */
.nav-dropdown-item {
  width: 100%;
  text-align: left;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--dark-grey);
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background: var(--p1);
  color: #fff;
  outline: none;
}

.nav-dropdown-item.active {
  background: var(--p1);
  color: #fff;
}

.show {
  display: block;
}

.card-muted-text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
}

.red-card-title-text {
  font-size: var(--text-base);
  font-weight: 700;
  color: #9E2A2B;
  margin-bottom: .3rem;
}

.orange-card-title-text {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p2);
  margin-bottom: .25rem;
}

/* ── TOAST ── */
#toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 500;
  opacity: 0;
  transition: all .3s;
  z-index: 999;
  pointer-events: none;
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── TTS INDICATOR ── */
#tts-bar {
  position: fixed;
  top: 72px;
  right: 1rem;
  z-index: 300;
  background: var(--p3);
  color: #fff;
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: var(--text-sm);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 2px 12px rgba(66, 93, 70, .4);
}

#tts-bar.show {
  display: flex;
}

.tts-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: tpulse 1s ease-in-out infinite;
}

@keyframes tpulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

/* ── A11Y PANEL ── */
#a11y-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
}

#a11y-toggle {
  background: var(--p3);
  color: #fff;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: var(--text-lg);
  box-shadow: 0 4px 16px rgba(97, 83, 128, .4);
  transition: all .2s;
}

.a11y-icon {
  fill: var(--lightest-grey);
}

#a11y-toggle:hover {
  transform: scale(1.08);
}

#a11y-panel {
  display: none;
  background: #fff;
  border-radius: 14px;
  padding: .85rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
  min-width: 210px;
}

#a11y-panel.open {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.a11y-section {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .2rem .4rem .1rem;
}

.a11y-btn {
  background: var(--warm);
  color: var(--ink);
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: .45rem .9rem;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all .2s;
  text-align: left;
}

.a11y-btn:hover {
  background: var(--p1);
  color: #fff;
}

.a11y-btn.on {
  background: var(--p3);
  color: #fff;
}

hr.a11y-hr {
  border: none;
  border-top: 1px solid #eee;
  margin: .1rem 0;
}


/* ══════════════════════════════════════
   PAGE 1 — WELCOME
══════════════════════════════════════ */
#page-welcome {
  background: linear-gradient(135deg, #425d46 0%, #534f6e 50%, #615380 100%);
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  /* overflow: hidden; */
}

#page-welcome.active {
  display: flex;
}

.banksia-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.welcome-inner {
  position: relative;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: drift 10s ease-in-out infinite alternate;
}

.o1 {
  width: 560px;
  height: 560px;
  background: rgba(196, 106, 50, .18);
  top: -180px;
  left: -180px;
}

.o2 {
  width: 380px;
  height: 380px;
  background: rgba(196, 154, 46, .13);
  bottom: -80px;
  right: -80px;
  animation-delay: -4s;
}

.o3 {
  width: 260px;
  height: 260px;
  background: rgba(66, 93, 70, .12);
  top: 40%;
  left: 65%;
  animation-delay: -7s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(18px, 14px) scale(1.05);
  }
}

.welcome-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 2rem;
}

.w-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 100px;
  padding: .35rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, .8);
}

.w-h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, #b9d3bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w-sub {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, .7);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.w-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.w-stat-n {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gold);
}

.w-stat-l {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .75);
  margin-top: .15rem;
}

.w-cta {
  background: #8b3e1d;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all .25s;
  box-shadow: 0 8px 24px rgba(196, 106, 50, .45);
}

.w-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(196, 106, 50, .55);
}

/* ══════════════════════════════════════
   PAGE 2 — ONBOARDING / SIGN-UP
══════════════════════════════════════ */
#page-signup {
  background: var(--bg);
  padding: 1rem 1.5rem 4rem;
}

#page-signup.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.signup-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 8px 48px rgba(14, 14, 26, .1);
}

.signup-step {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: .75rem;
}

.signup-h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: .4rem;
}

.signup-desc {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--ink);
}

.form-label .req {
  color: #8b3e1d;
}

.form-input,
.form-select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: var(--text-base);
  color: var(--ink);
  background: #fff;
  transition: border-color .2s;
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--p1);
}

.form-input::placeholder {
  color: var(--muted);
}

.btn-submit {
  width: 100%;
  padding: .9rem;
  background: var(--p1);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  margin-top: .25rem;
}

.btn-submit:hover {
  background: var(--ink);
}

.likert-btn {
  padding: .45rem .85rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: #fff;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  color: var(--ink);
}

.likert-btn:hover {
  border-color: var(--p1);
  color: var(--p1);
}

.likert-btn.likert-selected {
  background: var(--p1);
  color: #fff;
  border-color: var(--p1);
}

.post-measure-block {
  background: linear-gradient(135deg, rgba(66, 93, 70, .05), rgba(97, 83, 128, .04));
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(66, 93, 70, .12);
}

.post-measure-block h4 {
  font-size: var(--text-md);
  margin-bottom: .3rem;
}

.post-likert-wrap {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

.consent {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
  margin-top: .9rem;
  text-align: center;
}

/* ══════════════════════════════════════
   PAGE 3 — ASSESSMENT
══════════════════════════════════════ */
#page-assessment {
  background: var(--bg);
}

.assess-wrap {
  max-width: var(--assess-content-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.assess-header {
  margin-bottom: 1.75rem;
}

.assess-header h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: .35rem;
}

.assess-header p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

.progress-bg {
  background: rgba(14, 14, 26, .1);
  border-radius: 100px;
  height: 6px;
  margin-bottom: .5rem;
}

.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--p1), var(--p2));
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.domain-bar {
  border-radius: 12px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #fff;
  transition: background .5s;
  height: calc(var(--domain-bar-height) + 1.8rem);
}

.db-emoji {
  font-size: var(--text-xl);
}

.db-name {
  font-weight: 700;
  font-size: var(--text-base);
}

.db-desc {
  font-size: var(--text-sm);
  opacity: .82;
  margin-top: .1rem;
}

/* Likert card */
.q-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.q-card-content {
  display: flex;
  flex-direction: column;
  height: calc(var(--survey-card-height) - 64px);
  justify-content: space-between;
}

.q-card-text-container {
  display: flex;
  flex-direction: column;
  flex-basis: 180px;
}

.q-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--warm);
  border-radius: 100px;
  padding: .28rem .85rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .85rem;
}

.q-num {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: .65rem;
}

.q-text {
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: .5rem;
}

.q-strength {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: .4rem;
}

.q-strength b {
  color: var(--p1);
}

.q-read-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .22rem .65rem;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all .2s;
  /* margin-bottom: 1.5rem; */
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.q-read-btn:hover {
  border-color: var(--p3);
  color: var(--p3);
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: .4rem;
}

.likert {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.lk-btn {
  flex: 1;
  max-width: 78px;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--muted);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .12rem;
}

.lk-btn span {
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: .7;
  text-align: center;
  line-height: 1.2;
}

.lk-btn:hover {
  border-color: var(--p1);
  color: var(--p1);
  transform: translateY(-2px);
}

.lk-btn.sel {
  background: var(--p1);
  border-color: var(--p1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(97, 83, 128, .35);
}

.q-nav {
  display: flex;
  gap: .85rem;
}

.btn-back {
  background: none;
  border: 2px solid var(--border);
  color: var(--muted);
  border-radius: 100px;
  padding: .6rem 1.4rem;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all .2s;
}

.btn-back:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-back:disabled {
  opacity: .3;
  cursor: default;
}

.btn-fwd {
  flex: 1;
  background: var(--p1);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: .72rem 2rem;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all .2s;
}

.btn-fwd:hover {
  background: var(--ink);
}

/* Forced choice card */
.fc-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  height: var(--survey-card-height);
}

.fc-card-content {
  display: flex;
  flex-direction: column;
  height: calc(var(--survey-card-height) - 64px);
  justify-content: space-between;
}

.fc-card-text-container {
  display: flex;
  flex-direction: column;
}

.fc-eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}

.fc-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: .4rem;
}

.fc-desc {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: .4rem;
}

.fc-opts {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  /* margin: .4rem 0 1.5rem; */
}

.fc-opt {
  background: var(--warm);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  width: 100%;
}

.fc-opt:hover {
  border-color: var(--p1);
}

.fc-opt.sel {
  border-color: var(--p1);
  background: rgba(97, 83, 128, .06);
}

.fc-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  flex-shrink: 0;
  transition: all .2s;
}

.fc-opt.sel .fc-letter {
  background: var(--p1);
  border-color: var(--p1);
  color: #fff;
}

.fc-opt-main {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: .18rem;
  line-height: 1.4;
}

.fc-opt-sub {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

/* ══════════════════════════════════════
   PAGE 4 — RESULTS
══════════════════════════════════════ */
#page-results {
  background: var(--bg);
}

.rh {
  background: var(--p1);
  color: #fff;
  padding: 3.5rem 2rem 3.5rem;
  text-align: center;
}

.rh-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: var(--text-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.rh-name {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: .4rem;
}

.rh-type {
  font-size: var(--text-md);
  color: var(--lightest-grey);
  margin-bottom: .5rem;
}

.rh-meta {
  font-size: var(--text-base);
  color: var(--lightest-grey);
}

.rh-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.rh-stat-n {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gold);
}

.rh-stat-l {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .6);
}

.rb {
  max-width: 80%;
  margin: 0 auto;
  padding: 2.5rem 2.5rem;
}

.sec-eye {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: .4rem;
}

.sec-h {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: .4rem;
}

.sec-desc {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

/* Export bar */
.export-bar {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.export-bar h4 {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: .2rem;
}

.export-bar p {
  color: var(--muted);
  font-size: var(--text-base);
}

.btn-export {
  background: var(--p2-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: .65rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--text-base);
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
}

.btn-export:hover {
  background: var(--ink);
}

/* Domain bars */
.domain-bars {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2.5rem;
}

.dbi {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: grid;
  grid-template-columns: 2.2rem 1fr 7.5rem;
  align-items: center;
  gap: .9rem;
  box-shadow: var(--shadow);
}

.dbi-icon {
  font-size: var(--text-lg);
  text-align: center;
}

.dbi-name {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: .45rem;
}

.dbi-bar-bg {
  background: var(--warm);
  border-radius: 100px;
  height: 7px;
}

.dbi-bar-fill {
  height: 100%;
  border-radius: 100px;
}

.dbi-right {
  text-align: right;
}

.dbi-score {
  font-size: var(--text-lg);
  font-weight: 700;
}

.dbi-lbl {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: .18rem .55rem;
  margin-top: .18rem;
  display: inline-block;
  text-align: center;
}

.lbl-p {
  background: rgba(196, 154, 46, .15);
  color: #7a6010;
}

.lbl-s {
  background: rgba(97, 83, 128, .1);
  color: var(--p1);
}

.lbl-g {
  background: rgba(66, 93, 70, .1);
  color: var(--p3);
}

.lbl-su {
  background: rgba(14, 14, 26, .06);
  color: var(--muted);
}

/* Strength cards */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}

.sc {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.sc-rank {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .65rem;
}

.sc-emoji {
  font-size: var(--text-2xl);
  display: block;
  margin-bottom: .65rem;
}

.sc-name {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: .45rem;
}

.sc-insight {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.sc-apply {
  font-size: var(--text-base);
  line-height: 1.5;
  padding: .55rem .75rem;
  background: var(--warm);
  border-radius: 8px;
  margin-bottom: .75rem;
}

.sc-apply b {
  color: var(--ink);
}

.sc-bar-row {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.sc-bar-bg {
  flex: 1;
  background: var(--warm);
  border-radius: 100px;
  height: 5px;
}

.sc-bar-fill {
  height: 100%;
  border-radius: 100px;
}

.sc-score {
  font-weight: 700;
  font-size: var(--text-base);
}

/* FC summary */
.fc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
  gap: .7rem;
}

.fcr {
  background: var(--warm);
  border-radius: 10px;
  padding: .85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}

.fcr-icon {
  font-size: var(--text-md);
  flex-shrink: 0;
  margin-top: .1rem;
}

.fcr-domain {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}

.fcr-choice {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
}

/* Score key */
.score-key {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.score-key h4 {
  font-size: var(--text-md);
  margin-bottom: .9rem;
}

.score-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .65rem;
}

.sk-item {
  padding: .65rem;
  border-radius: 10px;
}

.sk-lbl {
  margin-bottom: .3rem;
}

.sk-desc {
  font-size: var(--text-sm);
  color: var(--muted);
}

.score-key-note {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-top: .9rem;
}

/* ── VIDEO EMBEDS ── */
.video-section {
  display: flex;
  flex-direction: column;
  margin: 1.75rem 0 2rem;
}

.video-container {
  display: flex;
  width: 100%;
  justify-content: center
}

.video-anchor {
  text-decoration: none;
  width: 60%;
}

.video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f0f0f;
  aspect-ratio: 16/9;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(14, 14, 26, .22);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-label {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: .6rem;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(14, 14, 26, .14);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

.video-caption {
  font-size: var(--text-base);
  color: var(--muted);
  margin-top: .6rem;
  line-height: 1.55;
}

/* CSS-only video thumbnail card */
.video-thumb-link {
  display: block;
  text-decoration: none;
}

.video-thumb-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(14, 14, 26, .18);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.video-thumb-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(14, 14, 26, .28);
}

.video-thumb-css {
  background: linear-gradient(135deg, #425d46 0%, #534f6e 50%, #615380 100%);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.video-play-circle {
  transition: transform .2s;
}

.video-thumb-wrap:hover .video-play-circle {
  transform: scale(1.12);
}

.video-thumb-title {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.video-thumb-cta {
  font-size: var(--text-base);
  font-weight: 600;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .9);
  border-radius: 100px;
  padding: .4rem 1.1rem;
  letter-spacing: .04em;
  transition: background .2s;
}

.video-thumb-wrap:hover .video-thumb-cta {
  background: rgba(255, 255, 255, .25);
}

/* ══════════════════════════════════════
   PAGE 5 — WORKING PREFERENCES
══════════════════════════════════════ */
#page-workprefs {
  background: var(--bg);
}

#page-workprefs-results {
  background: var(--bg);
}

.wp-wrap {
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  max-width: 80%
}

.wp-assess-wrap {
  max-width: var(--assess-content-width);
  margin: 0 auto;
}

.wp-cat-bar {
  border-radius: 12px;
  padding: .85rem 1.1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #fff;
  transition: background .5s;
}

.wp-q-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  /* min-height, not height: long help text and larger text sizes must grow the card */
  min-height: var(--survey-card-height);
}

.wp-q-card-content {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--survey-card-height) - 64px);
  justify-content: space-between;
  gap: 1.25rem;
}

.wp-q-text-container {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.wp-q-num {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: .6rem;
}

.wp-q-text {
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.65;
}

.wp-q-prompt {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.wp-q-need {
  font-size: var(--text-base);
  font-style: italic;
  color: var(--p1);
  line-height: 1.5;
}

.wp-q-ctx {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  background: var(--warm);
  border-radius: 8px;
  padding: .65rem .85rem;
}

.wp-opts {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.wp-opt {
  flex: 1;
  min-width: 100px;
  padding: .7rem .5rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all .2s;
  text-align: center;
}

.wp-opt:hover {
  border-color: var(--p1);
}

.wp-opt.yes {
  border-color: var(--p3);
  background: rgba(66, 93, 70, .08);
  color: var(--p3);
}

.wp-opt.already {
  border-color: #c49a2e;
  background: rgba(196, 154, 46, .12);
  color: #8a6a00;
}

.wp-opt.no {
  border-color: var(--border);
  background: var(--warm);
  color: var(--muted);
}

.wp-opt.unsure {
  border-color: var(--gold);
  background: rgba(196, 154, 46, .08);
  color: #7a6010;
}

/* WP Results */
.wp-results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.wp-result-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

details.wp-result-section {
  padding: 0;
}

.wp-result-section summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  list-style: none;
}

.wp-result-section summary::-webkit-details-marker {
  display: none;
}

.wp-result-section summary::after {
  content: '▾';
  margin-left: auto;
  color: var(--muted);
  transition: transform .2s;
}

.wp-result-section[open] summary::after {
  transform: rotate(180deg);
}

.wp-result-name {
  font-size: var(--text-md);
  font-weight: 700;
}

.wp-result-counts {
  font-size: var(--text-sm);
  color: var(--muted);
}

details.wp-result-section > :not(summary) {
  margin: 0 1.4rem 1.1rem;
}

.wp-result-group-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}

.wp-pref-item.already-item {
  background: rgba(196, 154, 46, .08);
}

.wp-badge-already {
  background: var(--gold);
  color: #fff;
}

.wp-pref-tools {
  color: var(--p1);
}

.wp-result-section h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.wp-cat-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.wp-pref-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.wp-pref-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .6rem .75rem;
  border-radius: 10px;
}

.wp-pref-item.yes-item {
  background: rgba(66, 93, 70, .06);
}

.wp-pref-item.unsure-item {
  background: rgba(196, 154, 46, .06);
}

.wp-pref-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
}

.wp-badge-yes {
  background: var(--p3);
  color: #fff;
}

.wp-badge-unsure {
  background: var(--gold);
  color: #fff;
}

.wp-pref-name {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: .15rem;
}

.wp-pref-note {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.4;
}

.wp-empty {
  font-size: var(--text-base);
  color: var(--muted);
  font-style: italic;
}

/* Recommended tools */
.wp-tools-section {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.wp-tools-section h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: .35rem;
}

.wp-tools-sub {
  font-size: var(--text-base);
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.55;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}

.tool-card {
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 2px solid var(--border);
  background: var(--warm);
  transition: border-color .2s;
}

.tool-card:hover {
  border-color: var(--p1);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .4rem;
}

.tool-icon {
  font-size: var(--text-lg);
}

.tool-name {
  font-weight: 700;
  font-size: var(--text-base);
}

.tool-type {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: .4rem;
}

.tool-desc {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: .55rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.tool-tag {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 100px;
  background: rgba(97, 83, 128, .08);
  color: var(--p1);
}

.tool-tag-free {
  background: rgba(66, 93, 70, .1);
  color: var(--p3);
}

.tool-tag-paid {
  background: rgba(196, 154, 46, .12);
  color: #7a6010;
}

/* ── Passport settings (version + voice) ── */
.pp-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}

.pp-setting-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}

.pp-seg {
  display: flex;
  gap: .6rem;
}

.pp-seg button {
  flex: 1;
  min-width: 0;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-radius: 4px;
  padding: .75rem .9rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--site-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}

.pp-seg button span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--muted);
  margin-top: .15rem;
}

.pp-seg button:hover {
  border-color: var(--brand-purple);
}

.pp-seg button[aria-pressed="true"] {
  border-color: var(--brand-purple);
  box-shadow: inset 0 0 0 1px var(--brand-purple);
  background: #fff;
}

/* ── Toolbar above the document ── */
.pp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--site-line);
}

.pp-hint {
  font-size: var(--text-sm);
  color: var(--site-ink);
  line-height: 1.6;
  margin: 0;
}

.pp-count {
  font-weight: 700;
  color: var(--brand-green);
  margin-left: .25rem;
}

.pp-version-note {
  display: block;
  color: var(--muted);
  margin-top: .2rem;
}

/* ── Document preview: mirrors the PDF ── */
.pp-doc {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--site-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(46, 42, 51, .04), 0 8px 24px rgba(46, 42, 51, .06);
}

.pp-doc-head {
  background: var(--brand-purple);
  border-bottom: 6px solid #75967f;
  color: #fff;
  text-align: center;
  padding: 2.25rem 1.5rem 2rem;
}

.pp-doc-logo {
  display: none;
  width: 64px;
  height: auto;
  margin: 0 auto .9rem;
}

.pp-doc-head.is-branded .pp-doc-logo {
  display: block;
}

.pp-doc-kicker {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b9d3bf;
  margin-bottom: .5rem;
}

.pp-doc-head h3 {
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 .5rem;
}

.pp-doc-meta {
  font-size: var(--text-base);
  color: #ddeae0;
}

.pp-doc-body {
  padding: 1.75rem 2.25rem 2rem;
}

.pp-doc-intro {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 .5rem;
}

.pp-doc-section {
  padding: 1.4rem 0 1rem;
  border-top: 1px solid var(--site-line);
}

.pp-doc-section:first-child {
  border-top: none;
}

.pp-sec-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .6rem;
}

.pp-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--brand-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-purple);
}

.pp-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pp-sec-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin: 0;
}

.pp-sec-intro {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--site-ink);
  margin: .1rem 0 0;
}

.pp-essentials {
  background: #f4f7f4;
  border: 1px solid #d5e2d8;
  border-radius: 4px;
  padding: 1.1rem 1.25rem .6rem;
  margin: 1rem 0 .5rem;
}

.pp-essentials .pp-sec-intro {
  margin-bottom: .5rem;
}

.pp-empty {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: .25rem 0 .6rem;
}

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

.pp-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .55rem .5rem .55rem 1.1rem;
  margin: 0 -.5rem;
  border-radius: 4px;
  position: relative;
}

.pp-item::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-purple);
}

.pp-item:hover,
.pp-item:focus-within {
  background: var(--site-bg, #f2f1ed);
}

.pp-item-main {
  flex: 1;
  min-width: 0;
}

.pp-item-text {
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.5;
}

.pp-item-info {
  display: inline;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.pp-item-info summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  margin-left: .3rem;
  vertical-align: 1px;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: pointer;
  color: var(--brand-purple);
  font-size: .7rem;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  list-style: none;
  opacity: .55;
}

.pp-item-info summary::-webkit-details-marker {
  display: none;
}

.pp-item-info[open] summary,
.pp-item-info summary:hover {
  opacity: 1;
  text-decoration: underline;
}

.pp-item-info p {
  display: block;
  margin: .3rem 0 .1rem;
  padding: .5rem .7rem;
  background: var(--site-card);
  border-left: 2px solid var(--brand-purple);
  border-radius: 2px;
}

.pp-tag {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-purple);
  border: 1px solid #d6d0e2;
  border-radius: 100px;
  padding: .15rem .55rem;
  margin-top: .2rem;
  white-space: nowrap;
}

.pp-tag.is-current {
  color: var(--brand-green);
  border-color: #d5e2d8;
}

/* Editing controls stay quiet until the row is hovered or focused */
.pp-item-actions {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex-shrink: 0;
  opacity: .35;
  transition: opacity .15s;
}

.pp-item:hover .pp-item-actions,
.pp-item:focus-within .pp-item-actions,
.pp-item.is-essential .pp-item-actions {
  opacity: 1;
}

@media (hover: none) {
  .pp-item-actions {
    opacity: 1;
  }
}

.pp-ess {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: .2rem .45rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.pp-ess:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.pp-ess[aria-pressed="true"] {
  color: var(--brand-green);
}

.pp-remove {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.pp-remove:hover {
  background: var(--site-line);
  color: var(--site-ink);
}

.pp-removed {
  font-size: var(--text-sm);
  color: var(--muted);
  padding: .8rem 0;
  border-top: 1px solid var(--site-line);
  line-height: 1.6;
}

.pp-restore {
  background: none;
  border: none;
  color: var(--brand-purple);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.pp-add {
  margin-top: .35rem;
}

.pp-add summary {
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-purple);
  width: fit-content;
  list-style: none;
  opacity: .8;
}

.pp-add summary::-webkit-details-marker {
  display: none;
}

.pp-add summary:hover,
.pp-add[open] summary {
  opacity: 1;
}

.pp-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}

.pp-add .form-input {
  flex: 1 1 220px;
  padding: .45rem .75rem;
  font-size: var(--text-sm);
  border-width: 1px;
  border-radius: 4px;
}

.pp-add-group {
  padding: .4rem .5rem;
  font-size: var(--text-sm);
  border: 1px solid var(--site-line);
  border-radius: 4px;
  background: #fff;
  color: var(--site-ink);
}

.pp-add-btn {
  background: transparent;
  color: var(--brand-purple);
  border: 1px solid var(--brand-purple);
  border-radius: 4px;
  padding: .4rem 1rem;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.pp-add-btn:hover {
  background: var(--brand-purple);
  color: #fff;
}

.pp-notes .pp-sec-label {
  margin-bottom: .6rem;
}

.pp-notes .notes-area {
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-radius: 4px;
}

.pp-doc-foot {
  margin-top: 1rem;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-left: 4px solid #75967f;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  font-size: var(--text-sm);
  color: var(--site-ink);
  line-height: 1.6;
}

.pp-doc-foot p {
  margin: 0;
}

.pp-about {
  color: var(--muted);
  margin-top: .6rem !important;
}

.pp-download-btn {
  background: var(--brand-purple);
  color: #fff;
  border: 1px solid var(--brand-purple);
  border-radius: 4px;
  padding: .75rem 1.6rem;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
}

.pp-download-btn:hover {
  background: var(--site-ink);
  border-color: var(--site-ink);
}

@media (max-width: 640px) {
  #page-workprefs-results .wp-wrap {
    max-width: 100%;
    padding: 1.5rem 1rem;
  }

  .pp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pp-doc-body {
    padding: 1.25rem 1rem 1.5rem;
  }

  .pp-item {
    flex-wrap: wrap;
  }

  .pp-item-main {
    flex-basis: 100%;
  }

  .pp-item-actions {
    margin-left: auto;
  }
}

/* ══════════════════════════════════════
   PAGE 6 — CAREER MAPPING
══════════════════════════════════════ */
#page-career {
  background: var(--bg);
}

.career-wrap {
  max-width: 80%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.career-hero {
  background: var(--p1);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 2.5rem;
}

.career-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: var(--text-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.career-hero-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: .5rem;
}

.career-hero-sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* NST section */
.nst-intro-box {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.nst-badge-box {
  background: var(--p1);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
  min-width: 120px;
}

.nst-badge-flag {
  font-size: var(--text-2xl);
  margin-bottom: .3rem;
}

.nst-badge-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}

.nst-badge-sub {
  font-size: var(--text-sm);
  opacity: .7;
}

/* ASC Competencies */
.asc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.asc-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
}

.asc-icon {
  font-size: var(--text-xl);
  margin-bottom: .4rem;
}

.asc-name {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: .25rem;
}

.asc-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: .5rem;
}

.asc-nd-tag {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--p1);
  background: rgba(97, 83, 128, .08);
  border-radius: 100px;
  padding: .15rem .55rem;
  display: inline-block;
}

/* Personalised career clusters */
.career-clusters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cc-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
}

.cc-card-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .75rem;
}

.cc-emoji {
  font-size: var(--text-xl);
}

.cc-name {
  font-size: var(--text-base);
  font-weight: 700;
}

.cc-match {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 100px;
  margin-bottom: .75rem;
  display: inline-block;
}

.cc-match-high {
  background: rgba(196, 154, 46, .15);
  color: #7a6010;
}

.cc-match-good {
  background: rgba(97, 83, 128, .1);
  color: var(--p1);
}

.cc-jobs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.cc-jobs li {
  font-size: var(--text-base);
  color: var(--muted);
  padding: .2rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.cc-jobs li::before {
  content: '→';
  color: var(--p2);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

/* Skills passport */
.skills-passport {
  background: var(--p1);
  color: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.sp-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: .4rem;
}

.sp-sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, .65);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
}

.sp-card {
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 1rem;
}

.sp-label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .45rem;
}

.sp-quote {
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  font-style: italic;
}

/* ══════════════════════════════════════
   PAGE: STUDY PATHWAYS
══════════════════════════════════════ */
#page-study {
  background: var(--bg);
}

.study-wrap {
  max-width: 80%;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.study-hero {
  background: linear-gradient(135deg, #534f6e 0%, #615380 100%);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 2.5rem;
}

.study-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: var(--text-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}

.study-hero-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: .5rem;
}

.study-hero-sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.study-overview {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.study-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .6rem;
  margin-top: 1rem;
}

.study-ov-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: 10px;
  background: var(--warm);
}

.study-ov-em {
  font-size: var(--text-lg);
  flex-shrink: 0;
  line-height: 1;
}

.study-ov-label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
}

.study-ov-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: .1rem;
  line-height: 1.4;
}

/* Domain pathway cards */
.study-domain-section {
  margin-bottom: 2.5rem;
}

.study-domain-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--p1);
  color: #fff;
  padding: 1.1rem 1.5rem;
  border-radius: 14px 14px 0 0;
}

.study-domain-emoji {
  font-size: var(--text-xl);
}

.study-domain-name {
  font-size: var(--text-md);
  font-weight: 700;
}

.study-domain-meta {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .65);
  margin-top: .1rem;
}

.study-domain-body {
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-top: none;
}

.study-domain-blurb {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  background: rgba(97, 83, 128, .04);
  border-radius: 8px;
  border-left: 3px solid var(--p1);
}

.study-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.study-tab {
  padding: .35rem .9rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: #fff;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  color: var(--muted);
}

.study-tab.active {
  background: var(--p1);
  color: #fff;
  border-color: var(--p1);
}

.study-tab-content {
  display: none;
}

.study-tab-content.active {
  display: block;
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.study-table th {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .6rem .75rem;
  border-bottom: 2px solid var(--border);
  text-align: left;
}

.study-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.45;
}

.study-table tr:last-child td {
  border-bottom: none;
}

.study-table tr:hover td {
  background: rgba(97, 83, 128, .03);
}

.study-q-code {
  font-family: monospace;
  font-size: var(--text-sm);
  color: var(--p2);
  font-weight: 600;
  white-space: nowrap;
}

.study-where {
  font-size: var(--text-sm);
  color: var(--muted);
}

.study-path-tag {
  font-size: var(--text-sm);
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 100px;
  background: rgba(66, 93, 70, .12);
  color: #425d46;
  display: inline-block;
}

/* Notes section */
.study-notes {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}

.study-notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.study-note-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: var(--warm);
  border-left: 3px solid var(--p1);
}

.study-note-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
}

.study-note-text {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}

/* Domain rank badge */
.study-rank-badge {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: .12rem .55rem;
  border-radius: 100px;
  margin-left: .5rem;
}

.rank-1 {
  background: rgba(196, 154, 46, .2);
  color: var(--light-gold);
}

.rank-2 {
  background: rgba(97, 83, 128, .1);
  color: var(--light-purple);
}

.rank-3 {
  background: rgba(66, 93, 70, .12);
  color: var(--light-green);
}

.rank-4 {
  background: rgba(196, 106, 50, .12);
  color: var(--light-orange);
}

@media(max-width:600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .likert {
    gap: .4rem;
  }

  .nav-links .nav-btn {
    padding: .38rem .65rem;
    font-size: var(--text-base);
  }

  .rh-stats {
    gap: 1.2rem;
  }
}

.nd-conditions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 30%));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.nd-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}

.nd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color, var(--p2));
}

.nd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.nd-card.expanded {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.nd-icon {
  font-size: var(--text-3xl);
  margin-bottom: .75rem;
}

.nd-name {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: .3rem;
}

.nd-tagline {
  font-size: var(--text-base);
  color: var(--muted);
  font-style: italic;
  margin-bottom: .9rem;
}

.nd-summary {
  font-size: var(--text-base);
  color: #555;
  line-height: 1.65;
}

.nd-expand {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: none;
}

.nd-card.expanded .nd-expand {
  display: block;
}

.nd-strengths-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nd-strengths-list li {
  padding: .35rem 0;
  font-size: var(--text-base);
  color: #444;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nd-strengths-list li::before {
  content: '✦';
  color: var(--card-color, var(--p2));
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.nd-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--card-color, var(--p2));
  margin-top: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ─── LOCAL JOBS / DEWR ─── */
.lj-section {
  background: linear-gradient(135deg, rgba(66, 93, 70, .06), rgba(97, 83, 128, .06));
  border-radius: 20px;
  padding: 2.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(66, 93, 70, .15);
}

.lj-badge {
  display: inline-block;
  background: rgba(66, 93, 70, .12);
  color: var(--p1);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: .9rem;
}

.lj-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .6rem;
}

.lj-desc {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.lj-region-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--border);
  border-left: 5px solid var(--p1);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.lj-region-label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p1);
  width: 100%;
  margin-bottom: -.5rem;
}

.lj-region-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  flex: 1;
}

.lj-region-meta {
  font-size: var(--text-base);
  color: var(--muted);
}

.lj-region-link {
  background: var(--p1);
  color: #fff;
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 700;
  padding: .5rem 1.1rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity .2s;
}

.lj-region-link:hover {
  opacity: .85;
}

.seek-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  padding: .42rem .9rem;
  background: var(--p3);
  color: #fff;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}

.seek-btn:hover {
  opacity: .85;
}

.seek-btn svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  flex-shrink: 0;
}

.lj-role-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .5rem;
}

.indeed-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .9rem;
  background: var(--p1);
  color: #fff;
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}

.indeed-btn:hover {
  opacity: .85;
}

.lj-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lj-role-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.lj-role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rc, var(--p2));
}

.lj-role-domain {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rc, var(--p2));
  margin-bottom: .4rem;
}

.lj-role-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
}

.lj-role-sector {
  font-size: var(--text-base);
  color: var(--muted);
  margin-bottom: .6rem;
}

.lj-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.lj-tag {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, .05);
  color: #555;
}

.lj-tag.shortage {
  background: rgba(196, 154, 46, .15);
  color: #8a6600;
}

.lj-tag.regional {
  background: rgba(66, 93, 70, .1);
  color: var(--p1);
}

.lj-footer {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.lj-footer a {
  color: var(--p2);
  text-decoration: none;
  font-weight: 600;
}

.lj-footer a:hover {
  text-decoration: underline;
}


/* ── Binary answer buttons ── */
.binary-btns {
  display: flex;
  gap: .65rem;
}

.bin-btn {
  flex: 1;
  padding: 1.1rem .75rem;
  border-radius: 16px;
  border: 2px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transition: all .2s;
  color: var(--muted);
}

.bin-btn:hover {
  border-color: var(--p1);
  color: var(--p1);
  transform: translateY(-2px);
}

.bin-btn.sel.bin-more {
  background: var(--p1);
  border-color: var(--p1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(66, 93, 70, .3);
}

.bin-btn.sel.bin-not {
  background: #64748b;
  border-color: #64748b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(100, 116, 139, .25);
}

.bin-btn.sel.bin-less {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #475569;
  transform: translateY(-2px);
}

.bin-icon {
  font-size: var(--text-xl);
  line-height: 1;
}

.bin-label {
  font-size: var(--text-base);
  font-weight: 700;
}


.rh-sensory-note {
  font-size: var(--text-base);
  color: var(--gold);
  background: rgba(191, 143, 0, .12);
  border: 1px solid rgba(191, 143, 0, .3);
  border-radius: 8px;
  padding: .5rem .9rem;
  margin: 2.6rem auto 0 auto;
  line-height: 1.5;
  width: fit-content;
}


/* ── WEF Future Roles ── */
.wef-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.wef-role-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.wef-role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--p1), var(--p2));
}

.wef-role-rank {
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}

.wef-role-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .2rem;
}

.wef-role-sector {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: .4rem;
}

.wef-role-growth {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  background: rgba(117, 150, 127, .12);
  color: #425d46;
  border: 1px solid rgba(117, 150, 127, .3);
  border-radius: 20px;
  padding: .15rem .6rem;
  margin-bottom: .75rem;
}

.wef-nd-fit {
  font-size: var(--text-base);
  color: #444;
  line-height: 1.55;
  margin-bottom: .85rem;
  border-left: 2px solid var(--p1);
  padding-left: .7rem;
}

.wef-domains-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .6rem;
}

.wef-dom-tag {
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 20px;
  padding: .2rem .55rem;
}

.wef-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .85rem;
}

.wef-skill-tag {
  font-size: var(--text-sm);
  background: #f0f4f8;
  color: #555;
  border-radius: 20px;
  padding: .18rem .5rem;
}

.wef-fit-bar-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.wef-fit-label {
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 20px;
  padding: .15rem .5rem;
  min-width: 72px;
  text-align: center;
}

.wef-fit-strong {
  background: rgba(117, 150, 127, .15);
  color: #425d46;
}

.wef-fit-good {
  background: rgba(55, 86, 35, .12);
  color: #375623;
}

.wef-fit-dev {
  background: rgba(0, 0, 0, .06);
  color: var(--muted);
}

.wef-fit-bar-bg {
  flex: 1;
  height: 6px;
  background: #eef0f3;
  border-radius: 6px;
  overflow: hidden;
}

.wef-fit-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width .6s ease;
}

.wef-fit-pct {
  font-size: var(--text-sm);
  font-weight: 700;
  min-width: 30px;
  text-align: right;
}

/* ── WEF Skills × ND ── */
.wef-skills-section {
  margin-top: 2rem;
}

.wef-skills-grid {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-top: 1rem;
}

.wef-skill-row {
  background: #fff;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .25rem .75rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
  border: 1px solid var(--border);
}

.wef-skill-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
}

.wef-skill-nd {
  font-size: var(--text-base);
  font-weight: 600;
  text-align: right;
}

.wef-skill-note {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.5;
  grid-column: 1/-1;
}

/* ── Made by Dyslexia ── */
.mbd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.mbd-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  border: 1px solid var(--border);
}

.mbd-icon {
  font-size: var(--text-2xl);
  margin-bottom: .4rem;
}

.mbd-skill-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
}

.mbd-skill-desc {
  font-size: var(--text-base);
  color: #555;
  line-height: 1.55;
  margin-bottom: .75rem;
}

.mbd-domain-tag {
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: 20px;
  padding: .2rem .6rem;
  display: inline-block;
  margin-bottom: .4rem;
}

.mbd-wef-tag {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: .3rem;
}

.mbd-example {
  font-size: var(--text-sm);
  color: var(--muted);
  font-style: italic;
  margin-bottom: .65rem;
}

.mbd-score-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mbd-bar-bg {
  flex: 1;
  height: 5px;
  background: #eef0f3;
  border-radius: 5px;
  overflow: hidden;
}

.mbd-bar-fill {
  height: 100%;
  border-radius: 5px;
}



/* ── WEF inline elements on cluster cards and passport ── */
.cc-wef-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-top: .55rem;
  padding-top: .5rem;
  border-top: 1px dashed rgba(117, 150, 127, .3);
  font-size: var(--text-sm);
  color: #444;
}

.cc-wef-badge {
  font-size: var(--text-sm);
  font-weight: 700;
  background: rgba(117, 150, 127, .12);
  color: #425d46;
  border: 1px solid rgba(117, 150, 127, .3);
  border-radius: 20px;
  padding: .15rem .5rem;
  white-space: nowrap;
}

.cc-wef-roles {
  color: var(--muted);
  font-style: italic;
}

.sp-wef {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  border-left: 2px solid rgba(255, 255, 255, .4);
  padding: .4rem .6rem;
  margin-top: .6rem;
  line-height: 1.55;
  border-radius: 0 6px 6px 0;
}

.sp-research {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .55);
  margin-top: .4rem;
  line-height: 1.55;
  font-style: italic;
}


.wp-tool-link {
  font-size: var(--text-sm);
  color: var(--p1);
  text-decoration: none;
  margin-left: .35rem;
  opacity: .75;
}

.wp-tool-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── ND Resources ── */
.wp-resources-wrap h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .3rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.resource-cat-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  border: 1px solid var(--border);
}

.resource-cat-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
}

.resource-cat-emoji {
  font-size: var(--text-lg);
}

.resource-cat-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
}

.resource-items {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.resource-item {
  display: block;
  text-decoration: none;
  padding: .65rem .75rem;
  background: #f8f9fb;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}

.resource-item:hover {
  background: #f0f4f8;
  border-color: var(--p1);
}

.resource-item-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .2rem;
}

.resource-item-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: .4rem;
}

.resource-item-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
}

.resource-tag {
  font-size: var(--text-sm);
  background: #eef0f3;
  color: #555;
  border-radius: 20px;
  padding: .1rem .45rem;
}

.resource-link-arrow {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--p1);
  font-weight: 700;
}


/* ── Tools grouped subheads and highlighted ── */
.wp-tools-subhead {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 .6rem;
  padding-left: .2rem;
}

.tool-highlighted {
  border: 1.5px solid var(--p1) !important;
  background: rgba(117, 150, 127, .04);
}

.tool-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--p1);
  text-decoration: none;
  margin-left: auto;
  padding: .15rem .45rem;
  border: 1px solid var(--p1);
  border-radius: 20px;
}

.tool-link:hover {
  background: var(--p1);
  color: #fff;
}


/* ── About tool block ── */
.about-tool-block {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(13, 107, 122, .2);
  border-left: 4px solid var(--p1);
  box-shadow: 0 2px 12px rgba(13, 107, 122, .08);
}

.about-tool-block {
  text-align: left;
}

.atb-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p1);
  margin-bottom: .75rem;
}

.atb-heading {
  font-size: var(--text-xl, 1.4rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--brand-purple, #615380);
  margin: 0 0 .75rem;
}

.atb-offer {
  color: var(--site-ink, #2e2a33);
}

.atb-fine {
  font-size: var(--text-xs, .8rem);
  color: var(--muted);
  line-height: 1.5;
  margin: .6rem 0 0;
}

.atb-body {
  font-size: var(--text-base);
  color: #444;
  line-height: 1.7;
  margin: 0 0 .65rem;
}

.atb-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(13, 107, 122, .12);
}

.atb-badge {
  font-size: var(--text-sm);
  background: rgba(13, 107, 122, .07);
  color: #425d46;
  border: 1px solid rgba(13, 107, 122, .18);
  border-radius: 20px;
  padding: .2rem .55rem;
  font-weight: 600;
}

/* PATHWAY SELECTOR */
#page-pathway {
  background: var(--bg);
  padding: 1rem 1.5rem 4rem;
}

#page-pathway.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.pathway-wrap {
  max-width: 880px;
  width: 100%;
}

.pathway-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.pathway-badge-label {
  display: inline-block;
  background: var(--p2);
  color: #fff;
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pathway-h {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--p1);
  margin-bottom: .5rem;
}

.pathway-sub {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.pathway-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.pw-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: none;
}

.pw-card:hover {
  border-color: var(--p1);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(66, 93, 70, .14);
}

.pw-card.selected {
  border-color: var(--light-purple);
  background: var(--light-purple);
}

.pw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--pw-color, var(--p1));
  border-radius: 20px 20px 0 0;
}

.pw-emoji {
  font-size: var(--text-3xl);
  margin-bottom: .85rem;
  max-height: 10%
}

.pw-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: .4rem;
  max-height: 10%;
}

.pw-desc {
  font-size: var(--text-base);
  color: var(--dark-grey);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  min-height: 22%;
}

.pw-steps {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1.5rem;
  min-height: 35%
}

.pw-step {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
}

.pw-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pw-color, var(--p1));
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pw-cta {
  width: 100%;
  padding: .7rem;
  background: var(--pw-color, var(--p1));
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.pw-card:hover .pw-cta {
  filter: brightness(1.1);
}

/* RECRUITMENT PAGE */
#page-recruitment {
  background: var(--bg);
  padding: 1rem 1.5rem 4rem;
}

#page-recruitment.active {
  display: block;
}

.rec-wrap {
  max-width: 80%;
  margin: 0 auto;
}

.rec-hero {
  background: linear-gradient(135deg, var(--p2), #b04a14);
  color: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.rec-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.rec-hero-h {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: .5rem;
}

.rec-hero-sub {
  color: rgba(255, 255, 255, .8);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

.rec-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 14px;
  padding: .5rem;
  border: 1px solid var(--border);
}

.rec-tab {
  padding: .55rem 1.1rem;
  border-radius: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--muted);
  transition: all .2s;
}

.rec-tab.active {
  background: var(--p1);
  color: #fff;
}

.rec-panel {
  display: none;
}

.rec-panel.active {
  display: block;
}

.rec-section {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.rec-sec-eye {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: .35rem;
}

.rec-sec-h {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: .5rem;
}

.rec-sec-p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.75;
  margin-bottom: .85rem;
}

.rec-tips {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.rec-tip {
  background: var(--warm);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.6;
  border-left: 3px solid var(--p2);
}

.rec-tip strong {
  color: var(--p1);
}

.rec-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
  gap: .85rem;
  margin-top: .85rem;
}

.rec-tool {
  background: var(--warm);
  border-radius: 12px;
  padding: 1.1rem;
  border-top: 3px solid var(--t-color, var(--p3));
}

.rec-tool-name {
  font-weight: 700;
  font-size: var(--text-md);
  margin-bottom: .25rem;
}

.rec-tool-desc {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: .5rem;
}

.rec-tool-tag {
  display: inline-block;
  background: var(--p1);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 100px;
}

.ai-interview-box {
  background: linear-gradient(135deg, var(--p1), #1a3a75);
  color: #fff;
  border-radius: 18px;
  padding: 2rem;
  margin-top: 1.25rem;
}

.ai-int-h {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: .5rem;
}

.ai-int-p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, .8);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.ai-int-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: .7rem 1.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all .2s;
}

.ai-int-btn:hover {
  filter: brightness(1.1);
}

/* SUPPORT SERVICES PAGE */
#page-support {
  background: var(--bg);
  padding: 1rem 1.5rem 4rem;
}

#page-support.active {
  display: block;
}

.sup-wrap {
  max-width: 80%;
  margin: 0 auto;
}

.sup-hero {
  background: linear-gradient(135deg, #425d46, #1F2E4D);
  color: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.sup-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
  padding: .3rem .85rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.sup-hero-h {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: .5rem;
}

.sup-hero-sub {
  color: rgba(255, 255, 255, .8);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Featured card — ReThink Dyslexia */
.sup-featured {
  background: linear-gradient(135deg, #c4383e, #8B0000);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: #fff;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.sup-featured-badge {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 100px;
  padding: .25rem .75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
  display: inline-block;
}

.sup-featured-name {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: .4rem;
}

.sup-featured-desc {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1rem;
}

.sup-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.1rem;
}

.sup-featured-tag {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
  padding: .2rem .6rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.sup-featured-btn {
  display: inline-block;
  background: #fff;
  color: #c4383e;
  border: none;
  border-radius: 100px;
  padding: .6rem 1.4rem;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

.sup-featured-btn:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}

.sup-featured-icon {
  font-size: var(--text-4xl);
  flex-shrink: 0;
  margin-top: .25rem;
}

/* JobAccess highlight card */
.sup-jobaccess {
  background: linear-gradient(135deg, #1F2E4D, #2d4a8a);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  color: #fff;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.sup-jobaccess-icon {
  font-size: var(--text-3xl);
  flex-shrink: 0;
}

.sup-jobaccess-badge {
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
  padding: .25rem .75rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  display: inline-block;
}

.sup-jobaccess-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: .35rem;
}

.sup-jobaccess-desc {
  font-size: var(--text-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
  margin-bottom: .9rem;
}

.sup-jobaccess-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}

.sup-ja-service {
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: .6rem .8rem;
  font-size: var(--text-sm);
  line-height: 1.4;
}

.sup-ja-service strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: .15rem;
}

.sup-ja-btn {
  display: inline-block;
  background: #BF8F00;
  color: #fff;
  border-radius: 100px;
  padding: .6rem 1.4rem;
  font-weight: 700;
  font-size: var(--text-base);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

.sup-ja-btn:hover {
  filter: brightness(1.1);
}

/* Category sections */
.sup-section {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.sup-sec-eye {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}

.sup-sec-h {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 1rem;
}

.sup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .75rem;
}

.sup-card {
  border-radius: 12px;
  padding: 1.1rem;
  background: var(--warm);
  border-top: 3px solid var(--s-color, #425d46);
  text-decoration: none;
  display: block;
  transition: all .2s;
}

.sup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.sup-card-org {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
  margin-bottom: .25rem;
}

.sup-card-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: .55rem;
}

.sup-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.sup-card-tag {
  display: inline-block;
  background: var(--p1);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: .12rem .45rem;
  border-radius: 100px;
}


.wp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  justify-content: center;
}

.wp-tab {
  background: none;
  border: none;
  padding: .75rem 1.25rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .18s;
  white-space: nowrap;
}

.wp-tab:hover {
  color: var(--p3);
}

.wp-tab.active {
  color: var(--p3);
  border-bottom-color: var(--p3);
}

.wp-tab-panel {
  display: none;
}

.wp-tab-panel.active {
  display: block;
}

.sp-challenge-cat {
  font-size: var(--text-sm);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--p3);
  margin: 1.25rem 0 .5rem;
}

.sp-challenge-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1rem;
  cursor: pointer;
  transition: all .18s;
  margin-bottom: .45rem;
}

.sp-challenge-item:hover {
  border-color: #a8d5d0;
}

.sp-challenge-item.selected {
  border-color: var(--p3);
  background: #f0faf8;
}

.sp-challenge-item.selected .sp-ci-check {
  background: var(--p3);
  border-color: var(--p3);
  color: #fff;
}

.sp-ci-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  transition: all .15s;
  margin-top: 1px;
}

.sp-ci-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .15rem;
}

.sp-ci-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.sp-reframe-box {
  background: linear-gradient(135deg, #425d46 0%, #615380 100%);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.sp-reframe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}

.sp-reframe-item {
  background: rgba(255, 255, 255, .09);
  border-radius: 8px;
  padding: .65rem .85rem;
}

.sp-ri-ch {
  font-size: var(--text-sm);
  color: var(--lightest-grey);
  margin-bottom: .15rem;
}

.sp-ri-str {
  font-size: var(--text-sm);
  color: #fff;
  font-weight: 600;
}

.sp-plan-section {
  margin-bottom: 1.75rem;
}

.sp-plan-sec-title {
  font-size: var(--text-sm);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .75rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}

.sp-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .7rem;
}

.sp-plan-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .95rem 1.1rem;
  border-left: 4px solid var(--spc, #425d46);
  animation: spFadeUp .3s ease both;
}

@keyframes spFadeUp {
  from {
    opacity: 0;
    transform: translateY(7px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.sp-pc-icon {
  font-size: var(--text-md);
  margin-bottom: .35rem;
}

.sp-pc-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .3rem;
}

.sp-pc-body {
  font-size: var(--text-base);
  color: #3a3a5c;
  line-height: 1.6;
}

.sp-pc-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .15rem .4rem;
  border-radius: 4px;
  margin-top: .45rem;
  background: color-mix(in srgb, var(--spc, #425d46) 12%, white);
  color: var(--spc, #425d46);
}

.sp-letter-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  font-size: var(--text-base);
  line-height: 1.75;
  color: #3a3a5c;
  max-width: 640px;
  white-space: pre-wrap;
}

.sp-resource-featured {
  background: linear-gradient(135deg, #1a1a2e 0%, #425d46 100%);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  margin-bottom: .85rem;
  color: #fff;
}


/* ── DEV TOOLBAR (hidden unless ?dev=1) ── */
#dev-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a2e;
  border-top: 2px solid #c49a2e;
  padding: .5rem 1.25rem;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
}

#dev-bar.show {
  display: flex;
}

#dev-bar span {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c49a2e;
  margin-right: .25rem;
}

.dev-btn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  padding: .3rem .85rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background .15s;
}

.dev-btn:hover {
  background: rgba(196, 154, 46, .3);
  border-color: #c49a2e;
}

.dev-btn.danger {
  border-color: #c4383e;
}

.dev-btn.danger:hover {
  background: rgba(196, 56, 62, .3);
}

.dev-sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .15);
  margin: 0 .25rem;
}



/* ══ PRACTITIONER PORTAL ══════════════════════════════════════════════════ */

#page-portal {
  background: var(--bg);
  min-height: 100vh;
}

.portal-wrap {
  max-width: 80%;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.practitioner-rwi-lozenge {
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 100px;
  padding: .15rem .55rem;
  white-space: nowrap;
  width: fit-content;
}

.prac-rwi-clinical-use-note-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p1);
  margin-bottom: .3rem;
}

.prac-rwi-clinical-use-note-body {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}

.prac-report-includes {
  font-size: var(--text-base);
  color: var(--ink);
}

.prac-wpp-months-lozenge {
  background: rgba(97, 83, 128, .08);
  border-radius: 6px;
  padding: .35rem .6rem;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p1);
  white-space: nowrap;
}

.prac-wpp-energy-maps-content {
  font-size: var(--text-base);
  color: var(--ink);
  padding: .15rem 0;
}

.prac-energy-map-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: .4rem;
}

.prac-card-subtext {
  font-size: var(--text-base);
  color: var(--muted);
  margin-bottom: .5rem;
  line-height: 1.5;
}

.prac-ws-card-text {
  font-size: var(--text-base);
  color: var(--ink);
  padding: .2rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.prac-ws-card-titles {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: .45rem;
}

.prac-wpp-header-background {
  background: linear-gradient(135deg, #33473a, #534f6e);
  padding: 1.25rem 1.4rem;
  margin: 1rem 0;
  border-radius: 10px 10px;
}

.prac-view-full-rwi-button {
  background: #c49a2e;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: .38rem .9rem;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
}

.practitioner-session-title {
  font-size: var(--text-base);
  color: var(--lightest-grey);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.discussion-questions-text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .3rem;
  padding-left: .7rem;
  border-left: 2px solid var(--border);
}

.practitioner-session-section-header {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}

.practitioner-watch-for-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p2);
  margin-bottom: .3rem;
}

.practitioner-notes {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p1);
  margin-bottom: .4rem;
}

.practitioner-session-time {
  margin-left: auto;
  font-size: var(--text-base);
  color: var(--lightest-grey);
}

.practitioner-activity-discussion-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .4rem;
}

.practitioner-activity-text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .6rem;
}

.practitioner-between-sessions-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--p3);
  margin-bottom: .25rem;
}

.prac-rwi-clinical-text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: .65rem;
}

.prac-rwi-clinical-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem;
}

/* ── Role switcher ── */
.role-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .9);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: .3rem;
  gap: .2rem;
}

.role-btn {
  padding: .45rem 1.25rem;
  border-radius: 100px;
  border: none;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.role-btn.active {
  background: var(--p1);
  color: #fff;
  box-shadow: 0 2px 8px rgba(97, 83, 128, .25);
}

.role-btn.active.pract {
  background: var(--p3);
  box-shadow: 0 2px 8px rgba(66, 93, 70, .25);
}

/* ── Portal views ── */
.portal-view {
  display: none;
  animation: fadeUp .3s ease;
}

.portal-view.active {
  display: block;
}

/* ── Portal header ── */
.portal-header {
  background: linear-gradient(135deg, #425d46 0%, #534f6e 55%, #615380 100%);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.portal-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 46, .2) 0%, transparent 70%);
  pointer-events: none;
}

.portal-eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(196, 154, 46, .9);
  margin-bottom: .5rem;
}

.portal-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: .4rem;
  line-height: 1.15;
}

.portal-sub {
  font-size: var(--text-base);
  color: var(--lightest-grey);
  line-height: 1.6;
}

.portal-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.pstat-n {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.pstat-l {
  font-size: var(--text-base);
  color: var(--lightest-grey);
  margin-top: .2rem;
  letter-spacing: .03em;
}

/* ── Section title ── */
.portal-section-title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.portal-base-header {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .65rem;
}

.portal-base-header-md {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .65rem;
}

.portal-workplace-passport-card {
  font-size: var(--text-base);
  color: var(--ink);
  padding: .2rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.portal-manager-resources-link {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: .25rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.portal-card-muted-text {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.5;
}

/* ── Client list ── */
.client-grid {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}

.client-row {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: grid;
  grid-template-columns: 48px 1fr 1fr 200px 150px;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all .2s;
}

.client-row:hover {
  border-color: var(--p3);
  box-shadow: 0 4px 18px rgba(66, 93, 70, .1);
  transform: translateY(-1px);
}

.client-row.selected {
  border-color: var(--p3);
  background: #f0faf8;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.client-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .2rem;
}

.client-meta {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.client-domain {
  font-size: var(--text-base);
  font-weight: 600;
}

.client-session {
  font-size: var(--text-sm);
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 20px;
  text-align: center;
  background: rgba(66, 93, 70, .1);
  color: var(--p3);
  white-space: nowrap;
  margin-right: auto;
}

.client-session.done {
  background: rgba(90, 160, 72, .1);
  color: #3d8b3d;
}

.client-session.new {
  background: rgba(196, 106, 50, .1);
  color: var(--p2);
}

/* ── Client profile ── */
.client-profile {
  display: none;
}

.client-profile.active {
  display: block;
  animation: fadeUp .3s ease;
}

.profile-back {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: .45rem 1.1rem;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.profile-back:hover {
  border-color: var(--muted);
  color: var(--ink);
}

/* ── Two-col profile header ── */
.profile-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
}

.profile-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}

/* ── Domain bars ── */
.domain-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}

.domain-bar-label {
  font-size: var(--text-base);
  width: 170px;
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 500;
}

.domain-bar-bg {
  flex: 1;
  height: 9px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.domain-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width .6s ease;
}

.domain-bar-score {
  font-size: var(--text-base);
  font-weight: 700;
  width: 34px;
  text-align: right;
}

/* ── Session tracker ── */
.session-tracker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.session-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  min-height: 110px;
}

.session-card:hover {
  border-color: var(--p3);
  transform: translateY(-2px);
}

.session-card.active-session {
  border-color: var(--p3);
  box-shadow: 0 4px 18px rgba(66, 93, 70, .15);
  background: linear-gradient(135deg, rgba(66, 93, 70, .03), #fff);
}

.session-card.completed {
  border-color: #5aa048;
  background: rgba(90, 160, 72, .03);
}

.session-num {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}

.session-icon {
  font-size: var(--text-lg);
  margin-bottom: .4rem;
  display: block;
}

.session-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: .3rem;
}

.session-status {
  font-size: var(--text-base);
  margin-top: .2rem;
}

.session-tick {
  position: absolute;
  top: .75rem;
  right: .85rem;
  font-size: var(--text-base);
}

/* ── Session detail ── */
.session-detail {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}

.session-notes-header {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p3);
  margin-bottom: .85rem;
}

.notes-area {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: var(--text-base);
  color: var(--ink);
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.notes-area:focus {
  outline: none;
  border-color: var(--p3);
}

.notes-area::placeholder {
  color: var(--muted);
}

/* ── Portal tab bar ── */
.portal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.portal-tab {
  background: none;
  border: none;
  padding: .8rem 1.4rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .18s;
  white-space: nowrap;
}

.portal-tab:hover {
  color: var(--p3);
}

.portal-tab.active {
  color: var(--p3);
  border-bottom-color: var(--p3);
}

.portal-tab-panel {
  display: none;
}

.portal-tab-panel.active {
  display: block;
  animation: fadeUp .25s ease;
}

.portal-white-header {
  font-size: var(--text-md);
  font-weight: 700;
  color: #fff;
}

/* ── IEA report ── */
.iea-report {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--ink);
}

.iea-section-title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p2);
  margin: 1.25rem 0 .5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ── Workplace Partnership Plan embed ── */
.wpp-embed {
  background: var(--bg);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1.5px solid var(--border);
}

.wpp-embed p {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

/* ── Action buttons ── */
.portal-action-btn {
  background: var(--p3);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: .6rem 1.4rem;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all .2s;
}

.portal-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.portal-action-btn.secondary {
  background: #fff;
  border: 1.5px solid var(--p3);
  color: var(--p3);
}

@media (max-width: 700px) {
  .client-row {
    grid-template-columns: 44px 1fr auto;
  }

  .client-row> :nth-child(3),
  .client-row> :nth-child(4) {
    display: none;
  }

  .session-tracker {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-header-grid {
    grid-template-columns: 1fr;
  }
}


/* ══ PRINTABLE REPORT ═════════════════════════════════════════════════════ */
.report-wrap {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.report-header {
  background: linear-gradient(135deg, #425d46 0%, #534f6e 55%, #615380 100%);
  padding: 2rem 2.25rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.report-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(196, 154, 46, .12);
  pointer-events: none;
}

.report-logo-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.report-logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
}

.report-logo span {
  color: var(--gold);
}

.report-doc-type {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(196, 154, 46, .9);
  border: 1px solid rgba(196, 154, 46, .3);
  border-radius: 4px;
  padding: .25rem .6rem;
}

.report-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: .35rem;
}

.report-subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, .65);
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.report-meta-item {}

.report-meta-label {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: .2rem;
}

.report-meta-value {
  font-size: var(--text-base);
  color: #fff;
  font-weight: 600;
}

.report-body {
  padding: 1.75rem 2rem;
}

.report-section {
  margin-bottom: 1.75rem;
}

.report-section-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--p2);
  padding-bottom: .5rem;
  border-bottom: 2px solid rgba(196, 106, 50, .15);
  margin-bottom: .9rem;
}

.report-section p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: #2a2a3a;
  margin-bottom: .65rem;
}

.report-section p:last-child {
  margin-bottom: 0;
}

/* Domain score table */
.report-domain-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.report-domain-table th {
  text-align: left;
  padding: .55rem .75rem;
  background: #f5f2ec;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.report-domain-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.report-domain-table tr:last-child td {
  border-bottom: none;
}

.rdt-bar-cell {
  width: 140px;
}

.rdt-bar {
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.rdt-fill {
  height: 100%;
  border-radius: 4px;
}

.rdt-score {
  font-weight: 700;
  font-size: var(--text-base);
}

/* Barrier / adjustment boxes */
.report-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.report-list-box {
  background: #f9f7f4;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
}

.report-list-box-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}

.report-list-item {
  font-size: var(--text-base);
  color: #2a2a3a;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  line-height: 1.5;
}

.report-list-item:last-child {
  border-bottom: none;
}

.report-list-dot {
  color: var(--p3);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* NST mapping grid */
.report-nst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

.report-nst-item {
  background: rgba(97, 83, 128, .05);
  border-radius: 8px;
  padding: .6rem .75rem;
  border: 1px solid rgba(97, 83, 128, .1);
}

.report-nst-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--p1);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .2rem;
}

.report-nst-val {
  font-size: var(--text-sm);
  color: #2a2a3a;
  line-height: 1.4;
}

/* Consent block */
.report-consent {
  background: rgba(66, 93, 70, .05);
  border: 1.5px solid rgba(66, 93, 70, .2);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: var(--text-base);
  color: #2a2a3a;
  line-height: 1.7;
}

.report-consent strong {
  color: var(--p3);
}

/* Signature block */
.report-sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.25rem;
}

.report-sig-box {}

.report-sig-line {
  border-bottom: 1.5px solid var(--border);
  height: 36px;
  margin-bottom: .4rem;
}

.report-sig-label {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Disclaimer */
.report-disclaimer {
  background: #f5f2ec;
  border-top: 2px solid var(--border);
  padding: 1rem 2rem;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}

/* Print styles */
@media print {
  body>*:not(#page-portal) {
    display: none !important;
  }

  #page-portal {
    display: block !important;
    padding: 0;
  }

  .portal-wrap {
    padding: 0;
    max-width: 100%;
  }

  .portal-header,
  .portal-tabs,
  .profile-back,
  #portal-client-list,
  .client-profile:not(.active) {
    display: none !important;
  }

  .client-profile.active {
    display: block !important;
  }

  .portal-tab-panel:not(.active),
  #ptab-c1-sessions,
  #ptab-c1-capacity,
  #ptab-c2-sessions,
  #ptab-c2-capacity,
  #ptab-c3-sessions,
  #ptab-c3-capacity,
  #ptab-c4-sessions,
  #ptab-c4-capacity {
    display: none !important;
  }

  .portal-tab-panel.active {
    display: block !important;
  }

  .report-wrap {
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  nav,
  #dev-bar,
  #nav-role-switcher,
  .role-switcher {
    display: none !important;
  }

  @page {
    margin: 15mm 15mm 20mm;
    size: A4;
  }
}


/* ── SUSTAINABILITY INDICATOR ── */
.sust-widget {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.sust-title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.sust-item {
  text-align: center;
}

.sust-dial {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto .4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: 700;
  border: 3px solid;
}

.sust-label {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.35;
}

.sust-bar-wrap {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.sust-bar-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .4rem;
}

.sust-bar-label {
  font-size: var(--text-sm);
  width: 130px;
  flex-shrink: 0;
  color: var(--ink);
}

.sust-bar-bg {
  flex: 1;
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.sust-bar-fill {
  height: 100%;
  border-radius: 4px;
}

.sust-high {
  border-color: #c4383e;
  color: #c4383e;
  background: rgba(196, 56, 62, .06);
}

.sust-med {
  border-color: #e8632a;
  color: #e8632a;
  background: rgba(232, 99, 42, .06);
}

.sust-good {
  border-color: #5aa048;
  color: #5aa048;
  background: rgba(90, 160, 72, .06);
}

/* ── EMPLOYER PORTAL ── */
.employer-header {
  background: linear-gradient(135deg, #534f6e 0%, #425d46 60%, #425d46 100%);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.emp-rec-mod-step-title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}

.emp-mgr-module-header {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lightest-grey);
}

.emp-adjust-commit-header {
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--p3);
  margin-bottom: .5rem;
}

.emp-card-header {
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.emp-rec-role-btn {
  background: var(--warm);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .38rem .9rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
}

.emp-rec-role-btn:hover {
  background: var(--p1);
  color: #fff;
  border-color: var(--p1);
}

.emp-rec-role-btn.active {
  background: var(--p1);
  color: #fff;
  border-color: var(--p1);
}

.emp-rec-check-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: .3rem;
  border: 1px solid transparent;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
}

.emp-rec-check-item:hover {
  background: var(--warm);
  border-color: var(--border);
}

.emp-rec-check-box {
  font-size: var(--text-base);
  flex-shrink: 0;
  margin-top: .1rem;
  color: var(--p3);
}

.emp-rec-chip {
  background: rgba(97, 83, 128, .08);
  color: var(--p1);
  border-radius: 100px;
  padding: .2rem .65rem;
  font-size: var(--text-base);
  font-weight: 600;
  display: inline-block;
}

.employer-notice {
  background: rgba(66, 93, 70, .08);
  border: 1.5px solid rgba(66, 93, 70, .2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.65;
}

.emp-employee-row {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 44px 1fr 160px 120px 120px;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: .6rem;
}

.emp-employee-row:hover {
  border-color: var(--p3);
  box-shadow: 0 3px 12px rgba(66, 93, 70, .1);
}

.emp-employee-row.selected {
  border-color: var(--p3);
  background: #f0faf8;
}

.emp-profile-back {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: .45rem 1.1rem;
  border-radius: 100px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: all .2s;
}

.emp-wpp-agreement-lozenge {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  padding: .15rem .55rem;
  border-radius: 10px;
  font-size: var(--text-base);
}


.wpp-iea-tab-header {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: .25rem;
  text-transform: uppercase;
  color: rgba(196, 154, 46, .9);
}

.emp-prac-client-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
}

.team-agg-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.team-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .55rem;
}

.team-bar-label {
  font-size: var(--text-sm);
  width: 200px;
  flex-shrink: 0;
  color: var(--ink);
}

.team-bar-bg {
  flex: 1;
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.team-bar-fill {
  height: 100%;
  border-radius: 5px;
}

.wp-cat-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
}

.wp-cat-row:last-child {
  border-bottom: none;
}

.wp-cat-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  width: 180px;
  flex-shrink: 0;
}

.wp-tool-chip {
  display: inline-block;
  background: rgba(66, 93, 70, .08);
  color: var(--p3);
  padding: .2rem .55rem;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin: .15rem;
}

/* ── PARTNER PLAN ── */
.wpp-section {
  margin-bottom: 1.5rem;
}

.wpp-section-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p2);
  margin-bottom: .65rem;
  padding-bottom: .4rem;
  border-bottom: 1.5px solid var(--border);
}

.energy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
}

.energy-item {
  border-radius: 10px;
  padding: .6rem .85rem;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
}

.energy-energising {
  background: rgba(90, 160, 72, .1);
  color: #3d8b3d;
  border: 1px solid rgba(90, 160, 72, .2);
}

.energy-neutral {
  background: rgba(107, 102, 114, .08);
  color: var(--muted);
  border: 1px solid var(--border);
}

.energy-draining {
  background: rgba(196, 56, 62, .07);
  color: #c4383e;
  border: 1px solid rgba(196, 56, 62, .15);
}

.growth-task-row {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
  margin-bottom: .5rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .75rem;
}


/* ── ROBUR WELLBEING INDEX ── */
.rwbi-wrap {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.rwbi-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #425d46 100%);
  padding: 1rem 1.25rem;
}

.rwbi-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .2rem;
}

.rwbi-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: #fff;
  letter-spacing: .03em;
  margin-bottom: .1rem;
}

.rwbi-subtitle {
  font-size: var(--text-base);
  color: var(--lightest-grey);
}

.rwbi-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-top: .85rem;
}

.rwbi-score-box {
  background: rgba(255, 255, 255, .07);
  border-radius: 8px;
  padding: .5rem .6rem;
  text-align: center;
}

.rwbi-score-n {
  font-size: var(--text-md);
  font-weight: 700;
}

.rwbi-score-l {
  font-size: var(--text-base);
  color: var(--lightest-grey);
  margin-top: .1rem;
  line-height: 1.3;
}

.rwbi-body {
  background: #fff;
  padding: 1.1rem 1.25rem;
}

.rwbi-domain {
  margin-bottom: 1rem;
}

.rwbi-domain-title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--border);
}

.rwbi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(220, 215, 205, .4);
}

.rwbi-item:last-child {
  border-bottom: none;
}

.rwbi-q {
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.45;
  flex: 1;
}

.rwbi-btns {
  display: flex;
  gap: .3rem;
  flex-shrink: 0;
}

.rwbi-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.rwbi-btn:hover {
  border-color: var(--p3);
  color: var(--p3);
}

.rwbi-btn.selected {
  background: var(--p1);
  border-color: var(--p1);
  color: #fff;
}

.rwbi-btn.selected.good {
  background: #5aa048;
  border-color: #5aa048;
}

.rwbi-btn.selected.warn {
  background: #e8632a;
  border-color: #e8632a;
}

.rwbi-btn.selected.risk {
  background: #c4383e;
  border-color: #c4383e;
}

.rwbi-score-band {
  font-size: var(--text-sm);
  font-weight: 700;
}

.rwbi-band-high {
  color: #5aa048;
}

.rwbi-band-mod {
  color: #c49a2e;
}

.rwbi-band-low {
  color: #e8632a;
}

.rwbi-band-risk {
  color: #c4383e;
}

.rwbi-delta {
  font-size: var(--text-sm);
  margin-left: .3rem;
}

.rwbi-delta-up {
  color: #5aa048;
}

.rwbi-delta-down {
  color: #c4383e;
}

.rwbi-footer {
  background: rgba(97, 83, 128, .04);
  border-top: 1px solid var(--border);
  padding: .85rem 1.25rem;
  font-size: var(--text-base);
}

.rwbi-citation {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
  margin-top: .65rem;
}
/* ── Saved-on-this-device note ── */
.assess-header p.save-note {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: .5rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: .35rem;
  font: inherit;
  color: var(--p1);
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover,
.link-btn:focus-visible {
  color: var(--p3);
}

.save-note-confirm {
  display: none;
  color: var(--ink);
  font-weight: 600;
}

.save-note.confirming .save-note-default {
  display: none;
}

.save-note.confirming .save-note-confirm {
  display: inline;
}

/* ── Work Style survey: sections, rail, breaks ── */
.wp-time {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: .35rem;
}

.w-time {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .75);
  margin-top: .75rem;
}

.wp-steps-wrap {
  margin: 1.25rem 0 1rem;
  scroll-margin-top: 90px;
}

.wp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .25rem;
}

.wp-step {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

/* connecting line between section dots */
.wp-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: var(--border);
}

.wp-step.is-done:not(:last-child)::after {
  background: var(--p3);
}

.wp-step button {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  font: inherit;
  color: inherit;
}

.wp-step button:disabled {
  cursor: default;
}

.wp-step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  background: #fff;
  border: 2px solid var(--border);
  transition: all .2s;
}

.wp-step.is-todo .wp-step-dot {
  opacity: .55;
  filter: grayscale(1);
}

.wp-step.is-current .wp-step-dot {
  border-color: var(--cat, var(--p1));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat, var(--p1)) 18%, transparent);
  transform: scale(1.08);
}

.wp-step.is-done .wp-step-dot {
  background: var(--p3);
  border-color: var(--p3);
  color: #fff;
  font-weight: 700;
}

.wp-step button:not(:disabled):hover .wp-step-dot {
  transform: scale(1.08);
}

.wp-step-name {
  font-size: .75rem;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}

.wp-step.is-current .wp-step-name {
  color: var(--ink);
  font-weight: 700;
}

.wp-steps-label {
  display: none;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  margin-top: .6rem;
}

/* Question layout: this section's questions as a separate track beside the card */
.wp-q-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.wp-q-layout > .wp-q-card {
  flex: 1 1 auto;
  min-width: 0;
}

.wp-rail-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: .9rem .55rem;
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: sticky;
  top: 90px;
}

.wp-rail-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.wp-rail {
  list-style: none;
  margin: 0;
  padding: .25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  position: relative;
}

.wp-rail::before {
  content: '';
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--border);
}

.wp-rail-dot {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--muted);
}

.wp-rail-dot.is-done,
.wp-rail-dot[data-answered] {
  background: var(--p3);
  border-color: var(--p3);
  color: #fff;
}

.wp-rail-dot.is-current {
  border-color: var(--cat, var(--p1));
  background: var(--cat, var(--p1));
  color: #fff;
  transform: scale(1.12);
}

.wp-q-card .wp-q-card-content {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: .85rem;
}

.wp-q-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}

.wp-q-sec {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--cat, var(--p1));
}

.wp-q-count {
  font-size: var(--text-sm);
  color: var(--muted);
}

h3.wp-q-text {
  margin: 0;
}

h3.wp-q-text:focus {
  outline: none;
}

.wp-q-sub {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.wp-more {
  font-size: var(--text-base);
  color: var(--muted);
}

.wp-more summary {
  cursor: pointer;
  color: var(--p1);
  font-weight: 600;
  width: fit-content;
}

.wp-more p {
  margin: .5rem 0 0;
  line-height: 1.6;
  background: var(--warm);
  border-radius: 8px;
  padding: .65rem .85rem;
}

.wp-q-card .q-read-btn {
  align-self: flex-start;
}

.wp-q-card .q-nav {
  margin-top: .25rem;
}

.wp-skip {
  align-self: center;
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.wp-opts-2 .wp-opt {
  flex: 1 1 200px;
}

/* Break between sections */
.wp-break {
  align-items: center;
  text-align: center;
}

.wp-break-tick {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--p3);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.wp-break-count {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
}

.wp-break-next {
  display: flex;
  align-items: center;
  gap: .9rem;
  text-align: left;
  border: 2px solid var(--border);
  border-left: 5px solid var(--cat, var(--p1));
  border-radius: 12px;
  padding: .85rem 1.1rem;
  min-width: min(100%, 320px);
}

.wp-break-emoji {
  font-size: 1.6rem;
}

.wp-break-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
}

.wp-break-name {
  font-size: var(--text-md);
  font-weight: 700;
}

.wp-break-meta {
  font-size: var(--text-sm);
  color: var(--muted);
}

.wp-break .q-nav {
  width: 100%;
}

/* ── Passport preview: locked sections and unlock ── */
.pp-doc.is-locked .pp-notes {
  display: none;
}

.pp-doc-section.is-locked {
  position: relative;
}

.pp-doc-section.is-locked .pp-sec-intro {
  font-weight: 600;
  color: var(--p1);
}

.pp-ghost .pp-item {
  pointer-events: none;
}

.pp-ghost-line {
  display: block;
  height: .8rem;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(97, 83, 128, .14), rgba(97, 83, 128, .06));
  filter: blur(1.5px);
  margin-right: auto;
}

.pp-ghost .pp-tag {
  opacity: .5;
}

.pp-lock {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1rem;
  opacity: .7;
}

.pp-unlock-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(97, 83, 128, .1), rgba(66, 93, 70, .1));
  border: 1.5px solid rgba(97, 83, 128, .25);
}

.pp-unlock-cta-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1 1 260px;
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.5;
}

.pp-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  background: rgba(66, 93, 70, .1);
  color: var(--p3);
  font-weight: 600;
  font-size: var(--text-base);
}

.pp-purchase a.pp-download-btn {
  text-decoration: none;
}

/* Unlock panel */
.unlock-dialog {
  margin: auto; /* the global reset removes the browser's centring */
  border: none;
  border-radius: 18px;
  padding: 1.75rem;
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  box-shadow: 0 20px 60px rgba(14, 14, 26, .25);
  color: var(--ink);
  background: #fff;
}

.unlock-dialog::backdrop {
  background: rgba(14, 14, 26, .45);
}

.unlock-dialog h3 {
  margin: 0 2rem .75rem 0;
  font-size: var(--text-md);
}

.unlock-close {
  position: absolute;
  top: .75rem;
  right: .9rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.unlock-list {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
  font-size: var(--text-base);
  line-height: 1.6;
}

.unlock-products {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1rem;
}

.unlock-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.unlock-product.is-bundle {
  border-color: rgba(97, 83, 128, .45);
  background: rgba(97, 83, 128, .04);
}

.unlock-product-main {
  flex: 1 1 220px;
}

.unlock-product-name {
  font-weight: 700;
  font-size: var(--text-base);
}

.unlock-product-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
  margin-top: .2rem;
}

.unlock-product-buy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
}

.unlock-price {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--p1);
}

.unlock-small {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
  margin: .5rem 0;
}

.unlock-note {
  margin: 0;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: var(--warm);
  font-size: var(--text-base);
}

.unlock-restore summary {
  cursor: pointer;
  color: var(--p1);
  font-weight: 600;
  font-size: var(--text-sm);
}

.unlock-restore-row {
  display: flex;
  gap: .5rem;
}

.unlock-restore-row .form-input {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 640px) {
  .unlock-dialog {
    padding: 1.25rem;
  }

  .unlock-product-buy {
    align-items: stretch;
    width: 100%;
  }
}

/* ── Work Style: small screens ── */
@media (max-width: 900px) {
  .wp-wrap {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .wp-wrap {
    padding: 1.5rem 1rem;
  }

  .wp-q-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .wp-q-card-content {
    min-height: 0;
  }

  /* Four answers as an even 2 × 2 grid */
  .wp-opt {
    flex: 1 1 calc(50% - .375rem);
  }

  /* Section names don't fit across a phone: show dots, plus the current one below */
  .wp-step-name {
    display: none;
  }

  .wp-steps-label {
    display: block;
  }

  .wp-step-dot {
    width: 34px;
    height: 34px;
    font-size: .95rem;
  }

  .wp-step:not(:last-child)::after {
    top: 16px;
    left: calc(50% + 19px);
    right: calc(-50% + 19px);
  }

  /* Question track runs across above the card on phones */
  .wp-q-layout {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
  }

  .wp-rail-wrap {
    position: static;
    flex-direction: row;
    justify-content: center;
    padding: .5rem .75rem;
  }

  .wp-rail-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .wp-rail {
    flex-direction: row;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0;
    flex-wrap: wrap;
  }

  .wp-rail::before {
    top: 50%;
    bottom: auto;
    left: .5rem;
    right: .5rem;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
  }

  /* Results tabs share the width and wrap, instead of being cut off at the left */
  .wp-tab {
    flex: 1 1 0;
    white-space: normal;
    padding: .75rem .5rem;
    text-align: center;
  }
}
