:root {
  --ink: #0e0e1a;
  --bg: #f2f1ed;
  --warm: #ede8de;
  --p1: #5a4883;
  --light-purple: #e4e0ee;
  --p2: #3c5941;
  --p2-light: #7fa283;
  --light-orange: #e6efe6;
  --p2-dark: #3c5941;
  --p3: #3c5941;
  --light-green: #e1ebe1;
  --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: 0;
  --font: 'Nunito', sans-serif;
  /* Brand (ro:bur logo D4 CP1, green/purple variant) */
  --brand-purple: #5a4883;
  --brand-green: #3c5941;
  --brand-sage: #5f7d63;
  --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[data-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[data-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[data-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;
}

/* Easy-read fonts (chosen in the accessibility panel) */
body.dyslexia-font *,
.ff-atkinson {
  font-family: "Atkinson Hyperlegible", sans-serif !important;
}

body.font-lexend *,
.ff-lexend {
  font-family: "Lexend", sans-serif !important;
}

body.dyslexia-font *,
body.font-lexend * {
  letter-spacing: .04em;
  word-spacing: .1em;
}

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

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

:root[data-font-size="fs-xl"] body.dyslexia-font,
:root[data-font-size="fs-xl"] body.font-lexend,
:root[data-font-size="fs-xl"] body.a11y-spacing {
  --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: 0;
  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: sticky;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  font-size: var(--text-base);
  font-weight: 500;
  opacity: 0;
  transition: all .3s;
  z-index: 999;
  pointer-events: none;
  white-space: normal;
  text-align: center;
  width: max-content;
  max-width: calc(100vw - 2rem);
}

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

/* ── READ ALOUD MINI PLAYER ── */
#tts-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  z-index: 390;
  background: var(--p3);
  color: #fff;
  border-radius: 0;
  padding: .3rem .4rem .3rem .9rem;
  font-size: var(--text-sm);
  font-weight: 600;
  display: none;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 2px 12px rgba(76, 112, 79, .4);
}

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

#tts-bar button {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 0;
  padding: .25rem .7rem;
  font: inherit;
  cursor: pointer;
}

#tts-bar button:hover {
  background: rgba(255, 255, 255, .3);
}

.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);
  }
}

/* What's being read: the block is outlined, the word is highlighted */
.tts-reading {
  outline: 3px solid #c49a2e !important;
  outline-offset: 4px;
  border-radius: 0;
  background-color: rgba(255, 225, 148, .28) !important;
}

::highlight(tts-word) {
  background-color: #ffe08a;
  color: #14121a;
}

body.a11y-click-read .page.active {
  cursor: pointer;
}

/* ── A11Y PANEL ── */
/* Reading tools live in the top bar, on the right, and stay on screen as the page scrolls.
   (They used to float bottom-right, where video-call windows can cover them: UX-05.) */
#a11y-wrap {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

#a11y-toggle {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: 0 1.1rem 0 .85rem;
  background: var(--p3);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 0;
  font-size: var(--text-base);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(76, 112, 79, .3);
}

#a11y-toggle[aria-expanded="true"] {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 2px 8px rgba(76, 112, 79, .3);
}

.a11y-icon {
  width: 34px;
  height: 24px;
  flex-shrink: 0;
}

#a11y-toggle:hover {
  filter: brightness(1.1);
}

#a11y-panel {
  position: absolute;
  top: calc(100% + .6rem);
  right: 0;
  z-index: 400;
  width: 330px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  color: var(--site-ink);
  border: 1px solid var(--site-line);
  border-radius: 0;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .16);
  text-align: left;
}

#a11y-panel[hidden] {
  display: none;
}

.a11y-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .25rem;
}

.a11y-head h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--site-ink);
  margin: 0;
}

.a11y-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--site-ink);
  cursor: pointer;
}

.a11y-close:hover {
  background: var(--site-line);
}

.a11y-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .85rem 0;
  border-top: 1px solid var(--site-line);
}

.a11y-head+.a11y-group {
  border-top: none;
}

.a11y-section {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin: 0;
}

.a11y-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  margin-top: .2rem;
}

.a11y-row {
  display: flex;
  gap: .35rem;
}

.a11y-btn {
  background: var(--site-card);
  color: var(--site-ink);
  border: 1px solid #8a8478;
  cursor: pointer;
  border-radius: 0;
  padding: .5rem .75rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  min-height: 44px;
}

.a11y-btn:hover {
  border-color: var(--brand-purple);
}

.a11y-btn:disabled {
  opacity: .5;
  cursor: default;
}

.a11y-primary {
  flex: 1;
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #fff;
}

.a11y-primary:hover {
  background: var(--site-ink);
}

/* On/off settings show a switch */
.a11y-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.a11y-switch::after {
  content: "";
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border-radius: 0;
  border: 2px solid #6b6672;
  background: radial-gradient(circle at 9px 50%, #6b6672 6px, transparent 6.5px) #fff;
  transition: background .15s;
}

.a11y-switch[aria-pressed="true"] {
  border-color: var(--brand-green);
}

.a11y-switch[aria-pressed="true"]::after {
  border-color: var(--brand-green);
  background: radial-gradient(circle at 25px 50%, #fff 6px, transparent 6.5px) var(--brand-green);
}

.a11y-seg {
  display: flex;
  gap: .3rem;
}

.a11y-seg button,
.a11y-swatches button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  background: var(--site-card);
  color: var(--site-ink);
  border: 1px solid #8a8478;
  border-radius: 0;
  padding: .4rem .3rem;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

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

.a11y-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: .35rem;
}

.a11y-swatches button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .45rem .3rem;
}

.a11y-sw {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, .25);
}

.sw-default {
  background: #f2f1ed;
  color: #5a4883;
}

.sw-cream {
  background: #fbf5e6;
  color: #1f1d24;
}

.sw-blue {
  background: #e7f0f9;
  color: #14213d;
}

.sw-dark {
  background: #17161b;
  color: #eeecf2;
}

.sw-hc {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

.a11y-note {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.a11y-range {
  width: 100%;
  accent-color: var(--brand-purple);
  min-height: 32px;
}

.a11y-reset {
  width: 100%;
  margin-top: .25rem;
  background: none;
  border: none;
  color: var(--brand-purple);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: .5rem;
}

@media (max-width: 480px) {
  #a11y-panel {
    position: fixed;
    top: 4.25rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
  }

  /* Phones: keep the button, drop the label to save room in the bar */
  .a11y-toggle-label {
    display: none;
  }

  #a11y-toggle {
    width: 48px;
    padding: 0;
    justify-content: center;
  }
}

/* ══════════════════════════════════════
   PAGE 1 — WELCOME
══════════════════════════════════════ */
#page-welcome {
  background: linear-gradient(135deg, #3c5941 0%, #534f6e 50%, #5a4883 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(159, 101, 113, .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(76, 112, 79, .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: 0;
  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%, #f0dde1);
  -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: #3c5941;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 1rem 2.5rem;
  border-radius: 0;
  font-size: var(--text-base);
  font-weight: 600;
  transition: all .25s;
  box-shadow: 0 8px 24px rgba(159, 101, 113, .45);
}

.w-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(159, 101, 113, .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: 0;
  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: #3c5941;
}

.form-input,
.form-select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0;
  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: 0;
  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: 0;
  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(76, 112, 79, .05), rgba(90, 72, 131, .04));
  border-radius: 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(76, 112, 79, .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 h1,
.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: 0;
  height: 6px;
  margin-bottom: .5rem;
}

.progress-fill {
  height: 100%;
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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(90, 72, 131, .35);
}

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

.btn-back {
  background: none;
  border: 2px solid var(--border);
  color: var(--muted);
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  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(90, 72, 131, .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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  height: 7px;
}

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

.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: 0;
  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(90, 72, 131, .1);
  color: var(--p1);
}

.lbl-g {
  background: rgba(76, 112, 79, .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: 0;
  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: 0;
  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: 0;
  height: 5px;
}

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

.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: 0;
  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: 0;
  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: 0;
}

.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: 0;
  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: 0;
  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: 0;
}

.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: 0;
  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, #3c5941 0%, #534f6e 50%, #5a4883 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: 0;
  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: 0;
  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: 0;
  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: normal;
  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: 0;
  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: 0;
  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(76, 112, 79, .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: 0;
  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: 0;
}

.wp-pref-item.yes-item {
  background: rgba(76, 112, 79, .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: normal;
}

/* Recommended tools */
.wp-tools-section {
  background: #fff;
  border-radius: 0;
  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: 0;
  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: 0;
  background: rgba(90, 72, 131, .08);
  color: var(--p1);
}

.tool-tag-free {
  background: rgba(76, 112, 79, .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: 0;
  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: 0;
  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 #5f7d63;
  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 .pp-doc-logo {
  display: block;
}

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

.pp-doc-head h2 {
  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: #e9f0ef;
}

.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: #f1f6f1;
  border: 1px solid #d3e2d4;
  border-radius: 0;
  padding: 1.1rem 1.25rem .6rem;
  margin: 1rem 0 .5rem;
}

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

/* Expand / collapse Passport sections */
.pp-collapse-all {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin: .25rem 0 -.25rem;
  font-size: var(--text-sm);
}

.pp-sec-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.pp-sec-head-text {
  flex: 1 1 auto;
  min-width: 0;
}

.pp-collapse {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: -.35rem;
  background: none;
  border: 1px solid var(--site-line, var(--border));
  border-radius: 50%;
  color: var(--brand-purple, var(--p1));
  cursor: pointer;
}

.pp-collapse:hover,
.pp-collapse:focus-visible {
  border-color: var(--site-line, var(--border));
  background: rgba(90, 72, 131, .06);
}

.pp-collapse-count {
  margin-left: auto;
  align-self: center;
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Locked sections: keep the heading and count clear of the bigger padlock */
.pp-doc-section.is-locked .pp-sec-head {
  padding-right: 2.6rem;
}

.pp-collapse-chev {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}

.pp-collapse[aria-expanded="false"] .pp-collapse-chev {
  transform: rotate(-90deg);
}

.is-collapsed .pp-sec-head,
.pp-essentials.is-collapsed .pp-sec-toggle-row {
  margin-bottom: 0;
}

.pp-essentials.is-collapsed {
  padding-bottom: 1rem;
}

@media print {
  .pp-collapse-all,
  .pp-collapse {
    display: none !important;
  }

  .pp-sec-body[hidden] {
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-collapse-chev {
    transition: none;
  }
}

/* Essentials grouped by section, so each keeps its context */
.pp-ess-group + .pp-ess-group {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid #d3e2d4;
}

.pp-ess-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .25rem 0 .35rem;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--site-ink, var(--ink));
}

.pp-ess-head .pp-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.pp-ess-head .pp-icon svg {
  width: 16px;
  height: 16px;
}

.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: 0;
  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: 24px;
  height: 24px;
  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: normal;
  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: 0;
}

.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: 0;
  padding: .15rem .55rem;
  margin-top: .2rem;
  white-space: nowrap;
}

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

/* 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: 0;
  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: 0;
}

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

.pp-add-btn {
  background: transparent;
  color: var(--brand-purple);
  border: 1px solid var(--brand-purple);
  border-radius: 0;
  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: 0;
}

.pp-doc-foot {
  margin-top: 1rem;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-left: 4px solid #5f7d63;
  border-radius: 0;
  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: 0;
  padding: .75rem 1.6rem;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: normal;
  max-width: 100%;
}

.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: 0;
  margin-bottom: 2.5rem;
}

.career-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  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(90, 72, 131, .08);
  border-radius: 0;
  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: 0;
  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: 0;
  margin-bottom: .75rem;
  display: inline-block;
}

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

.cc-match-good {
  background: rgba(90, 72, 131, .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: 0;
  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: 0;
  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: normal;
}

/* ══════════════════════════════════════
   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%, #5a4883 100%);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 0;
  margin-bottom: 2.5rem;
}

.study-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .14);
  border-radius: 0;
  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: 0;
  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: 0;
  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: 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;
  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(90, 72, 131, .04);
  border-radius: 0;
  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: 0;
  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(90, 72, 131, .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: 0;
  background: rgba(76, 112, 79, .12);
  color: #3c5941;
  display: inline-block;
}

/* Notes section */
.study-notes {
  background: #fff;
  border-radius: 0;
  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: 0;
  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: 0;
  margin-left: .5rem;
}

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

.rank-2 {
  background: rgba(90, 72, 131, .1);
  color: var(--light-purple);
}

.rank-3 {
  background: rgba(76, 112, 79, .12);
  color: var(--light-green);
}

.rank-4 {
  background: rgba(159, 101, 113, .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: 0;
  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: normal;
  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(76, 112, 79, .06), rgba(90, 72, 131, .06));
  border-radius: 0;
  padding: 2.5rem;
  margin-top: 2rem;
  border: 1px solid rgba(76, 112, 79, .15);
}

.lj-badge {
  display: inline-block;
  background: rgba(76, 112, 79, .12);
  color: var(--p1);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  background: rgba(0, 0, 0, .05);
  color: #555;
}

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

.lj-tag.regional {
  background: rgba(76, 112, 79, .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: 0;
  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(76, 112, 79, .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: 0;
  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: 0;
  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: #3c5941;
  border: 1px solid rgba(117, 150, 127, .3);
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  padding: .15rem .5rem;
  min-width: 72px;
  text-align: center;
}

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

.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: 0;
  overflow: hidden;
}

.wef-fit-bar-fill {
  height: 100%;
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  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: normal;
  margin-bottom: .65rem;
}

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

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

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



/* ── 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: #3c5941;
  border: 1px solid rgba(117, 150, 127, .3);
  border-radius: 0;
  padding: .15rem .5rem;
  white-space: nowrap;
}

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

.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;
}

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


.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: 0;
  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: 0;
  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: 0;
  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: 0;
}

.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: 0;
  border: 1px solid rgba(90, 72, 131, .2);
  border-left: 4px solid var(--p1);
  box-shadow: 0 2px 12px rgba(90, 72, 131, .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, #5a4883);
  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(90, 72, 131, .12);
}

.atb-badge {
  font-size: var(--text-sm);
  background: rgba(90, 72, 131, .07);
  color: #3c5941;
  border: 1px solid rgba(90, 72, 131, .18);
  border-radius: 0;
  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: 0;
  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: 0;
  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(76, 112, 79, .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: 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: 0;
  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: 0;
  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: 0;
  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: 0;
  padding: .5rem;
  border: 1px solid var(--border);
}

.rec-tab {
  padding: .55rem 1.1rem;
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
}

.ai-interview-box {
  background: linear-gradient(135deg, var(--p1), #1a3a75);
  color: #fff;
  border-radius: 0;
  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: 0;
  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, #3c5941, #1F2E4D);
  color: #fff;
  border-radius: 0;
  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: 0;
  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 — re:think dyslexia */
.sup-featured {
  background: linear-gradient(135deg, #c4383e, #8B0000);
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  padding: 1.1rem;
  background: var(--warm);
  border-top: 3px solid var(--s-color, #3c5941);
  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: 0;
}


.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: 0;
  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: 0;
  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, #3c5941 0%, #5a4883 100%);
  border-radius: 0;
  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: 0;
  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: 0;
  padding: .95rem 1.1rem;
  border-left: 4px solid var(--spc, #3c5941);
  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: 0;
  margin-top: .45rem;
  background: color-mix(in srgb, var(--spc, #3c5941) 12%, white);
  color: var(--spc, #3c5941);
}

.sp-letter-box {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 0;
  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%, #3c5941 100%);
  border-radius: 0;
  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: 0;
  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: 0;
  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(90, 72, 131, .08);
  border-radius: 0;
  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: 0;
}

.prac-view-full-rwi-button {
  background: #c49a2e;
  color: #fff;
  border: none;
  border-radius: 0;
  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: 0;
  padding: .3rem;
  gap: .2rem;
}

.role-btn {
  padding: .45rem 1.25rem;
  border-radius: 0;
  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(90, 72, 131, .25);
}

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

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

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

/* ── Portal header ── */
.portal-header {
  background: linear-gradient(135deg, #3c5941 0%, #534f6e 55%, #5a4883 100%);
  border-radius: 0;
  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: 0;
  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(76, 112, 79, .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: 0;
  text-align: center;
  background: rgba(76, 112, 79, .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(159, 101, 113, .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: 0;
  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: 0;
  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: 0;
  overflow: hidden;
}

.domain-bar-fill {
  height: 100%;
  border-radius: 0;
  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: 0;
  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(76, 112, 79, .15);
  background: linear-gradient(135deg, rgba(76, 112, 79, .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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  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: 0;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.report-header {
  background: linear-gradient(135deg, #3c5941 0%, #534f6e 55%, #5a4883 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: 0;
  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(159, 101, 113, .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: 0;
  overflow: hidden;
}

.rdt-fill {
  height: 100%;
  border-radius: 0;
}

.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: 0;
  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(90, 72, 131, .05);
  border-radius: 0;
  padding: .6rem .75rem;
  border: 1px solid rgba(90, 72, 131, .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(76, 112, 79, .05);
  border: 1.5px solid rgba(76, 112, 79, .2);
  border-radius: 0;
  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: 0;
  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: 0;
  overflow: hidden;
}

.sust-bar-fill {
  height: 100%;
  border-radius: 0;
}

.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%, #3c5941 60%, #3c5941 100%);
  border-radius: 0;
  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: 0;
  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: 0;
  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(90, 72, 131, .08);
  color: var(--p1);
  border-radius: 0;
  padding: .2rem .65rem;
  font-size: var(--text-base);
  font-weight: 600;
  display: inline-block;
}

.employer-notice {
  background: rgba(76, 112, 79, .08);
  border: 1.5px solid rgba(76, 112, 79, .2);
  border-radius: 0;
  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: 0;
  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(76, 112, 79, .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: 0;
  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: 0;
  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: 0;
  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: 0;
  overflow: hidden;
}

.team-bar-fill {
  height: 100%;
  border-radius: 0;
}

.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(76, 112, 79, .08);
  color: var(--p3);
  padding: .2rem .55rem;
  border-radius: 0;
  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: 0;
  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: 0;
  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: 0;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.rwbi-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #3c5941 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: 0;
  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(90, 72, 131, .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: normal;
  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: 0;
  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));
  /* Darkened so every section colour passes WCAG AA as text */
  color: color-mix(in srgb, var(--cat, var(--p1)) 68%, #000);
}

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

.wp-q-text {
  margin: 0;
}

.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: 700;
  font-size: var(--text-md);
  width: fit-content;
  padding: .45rem 1rem;
  border: 2px solid var(--p1);
  border-radius: 0;
  background: rgba(90, 72, 131, .07);
}

.wp-more summary:hover {
  background: rgba(90, 72, 131, .14);
}

.wp-more[open] summary {
  background: var(--p1);
  color: #fff;
}

.wp-more p {
  margin: .5rem 0 0;
  line-height: 1.6;
  background: var(--warm);
  border-radius: 0;
  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: 0;
  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: 0;
  background: linear-gradient(90deg, rgba(90, 72, 131, .14), rgba(90, 72, 131, .06));
  filter: blur(1.5px);
  margin-right: auto;
}

.pp-ghost .pp-tag {
  opacity: .5;
}

.pp-lock {
  position: absolute;
  top: 1.1rem;
  right: .75rem;
  font-size: 1.6rem;
  line-height: 1;
  opacity: .8;
}

.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: 0;
  background: linear-gradient(135deg, rgba(90, 72, 131, .1), rgba(76, 112, 79, .1));
  border: 1.5px solid rgba(90, 72, 131, .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: 0;
  background: rgba(76, 112, 79, .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: 0;
  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: 0;
  padding: 1rem 1.1rem;
}

.unlock-product.is-bundle {
  border-color: rgba(90, 72, 131, .45);
  background: rgba(90, 72, 131, .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: 0;
  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%;
  }
}

/* ── Passport tab: settings rows, guide, download ── */
#page-workprefs-results .wp-wrap {
  max-width: 900px; /* heading and tabs line up with the Passport below */
}

.pp-settings {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 820px;
}

.pp-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: end;
}

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

.pp-guide {
  max-width: 820px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--site-line, var(--border));
  border-radius: 0;
  background: var(--site-card, #fff);
}

.pp-guide summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--p1);
}

.pp-guide-list {
  list-style: none;
  margin: .85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.pp-guide-list li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: .75rem;
  align-items: start;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.pp-guide-list li > .pp-tag {
  justify-self: start;
}

.pp-guide-list li > .pp-tag + .pp-tag {
  margin-top: .3rem;
}

.pp-guide-list li:first-child {
  grid-template-columns: 11rem 1fr;
}

.pp-guide-list li:first-child > span:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.pp-guide-key {
  justify-self: start;
  font-weight: 700;
  color: var(--p1);
  border: 1px solid var(--site-line, var(--border));
  border-radius: 0;
  padding: .05rem .5rem;
  white-space: nowrap;
}

.pp-guide-foot {
  margin: .85rem 0 0;
  font-size: var(--text-sm);
}

.pp-guide-foot:has(#ppHint:empty) {
  margin-top: .6rem;
}

.pp-download-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin: 1.5rem 0 2rem;
}

.wp-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0;
  background: rgba(90, 72, 131, .07);
}

.wp-next p {
  margin: 0;
  flex: 1 1 280px;
  font-size: var(--text-base);
}

.pp-forget {
  flex-basis: 100%;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  text-align: left;
}

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

  .pp-guide-list li,
  .pp-guide-list li:first-child {
    grid-template-columns: 1fr;
    gap: .35rem;
  }

  .pp-guide-list li:first-child > span:last-child {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ── Accounts ── */
.account-step h3 {
  margin: 0 2rem .5rem 0;
  font-size: var(--text-md);
}

.account-step form {
  margin: .75rem 0;
}

.account-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  margin-top: 1rem;
}

.account-delete {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: 0;
  background: rgba(158, 42, 43, .07);
  border: 1px solid rgba(158, 42, 43, .25);
  font-size: var(--text-sm);
}

.account-delete p {
  margin: 0 0 .75rem;
}

.account-delete-yes {
  background: #9e2a2b;
  border-color: #9e2a2b;
  margin-right: .75rem;
}

.pp-sync {
  font-weight: 500;
  color: var(--muted);
  margin-left: .25rem;
}

/* ── 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: 0;
  }

  .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;
  }
}


/* ══════════════════════════════════════
   ACCESSIBILITY SETTINGS
   Applied from the accessibility panel; all stay on this device.
══════════════════════════════════════ */

/* Visible keyboard focus everywhere (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid #7a5c12;
  outline-offset: 2px;
}

/* Extra spacing: WCAG 1.4.12 text spacing, left-aligned text */
body.a11y-spacing #page-content *,
body.a11y-spacing #a11y-panel * {
  line-height: 1.7 !important;
  letter-spacing: .12em !important;
  word-spacing: .16em !important;
}

body.a11y-spacing #page-content p,
body.a11y-spacing #page-content li {
  text-align: left !important;
}

body.a11y-spacing #page-content p {
  margin-bottom: 1em !important;
}

/* Reduce motion: switched on in the panel, or by the device setting */
body.a11y-motion *,
body.a11y-motion *::before,
body.a11y-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reading guide: a clear band across the page with the rest dimmed */
#reading-guide {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4.2em;
  z-index: 350;
  pointer-events: none;
  display: none;
  border-top: 2px solid #c49a2e;
  border-bottom: 2px solid #c49a2e;
  box-shadow: 0 0 0 100vmax rgba(20, 18, 26, .42);
}

body.a11y-guide #reading-guide.show {
  display: block;
}

/* ── Colour themes ──
   Every text colour meets WCAG AAA (7:1 or more) against its background,
   and borders meet 3:1. Brand colours and images are replaced by a single
   calm palette so nothing low-contrast is left behind. */
body[data-theme="cream"] {
  --t-bg: #fbf5e6; --t-surface: #fffcf3; --t-text: #1f1d24; --t-muted: #4a4652; --t-line: #857d6e;
  --t-accent: #4e4170; --t-on-accent: #fff; --t-link: #4e4170; --t-hl: #ffe08a; --t-focus: #4e4170;
}

body[data-theme="blue"] {
  --t-bg: #e7f0f9; --t-surface: #f6fafe; --t-text: #14213d; --t-muted: #3a4a63; --t-line: #6c819b;
  --t-accent: #1f4e79; --t-on-accent: #fff; --t-link: #1f4e79; --t-hl: #ffe08a; --t-focus: #1f4e79;
}

body[data-theme="dark"] {
  --t-bg: #17161b; --t-surface: #232129; --t-text: #eeecf2; --t-muted: #c9c5d1; --t-line: #8f8a99;
  --t-accent: #cfc4ee; --t-on-accent: #17161b; --t-link: #cfc4ee; --t-hl: #5c4a12; --t-focus: #ffd75e;
  color-scheme: dark;
}

body[data-theme="hc"] {
  --t-bg: #fff; --t-surface: #fff; --t-text: #000; --t-muted: #000; --t-line: #000;
  --t-accent: #000; --t-on-accent: #fff; --t-link: #00007a; --t-hl: #ffff00; --t-focus: #000;
}

body[data-theme] {
  background: var(--t-bg) !important;
  color: var(--t-text) !important;
}

body[data-theme] *:not(svg):not(svg *):not(img):not(video):not(canvas) {
  background-color: transparent !important;
  background-image: none !important;
  color: var(--t-text) !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: var(--t-line) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body[data-theme] svg {
  color: var(--t-text) !important;
}

/* Surfaces that need to stand apart from the page */
body[data-theme] :is(nav, #a11y-panel, #toast, #tts-bar, .sr-feature, .sr-card, .sr-crisis, .pp-doc, .pp-essentials, .pp-session-offer, .pp-example, .pp-fund-card, .pp-mine-box, .plan, .plan-help, .plan-banner, .pp-backup, .pp-doc-foot, .wp-q-card,
  .about-tool-block, .wp-result-section, .nav-dropdown-content, input, select, textarea, .notes-area, .form-input) {
  background-color: var(--t-surface) !important;
  border: 1px solid var(--t-line) !important;
}

body[data-theme] :is(button, .btn, [role="button"]) {
  background-color: var(--t-surface) !important;
  border: 1px solid var(--t-line) !important;
}

body[data-theme="hc"] :is(button, .btn, [role="button"], input, select, textarea) {
  border-width: 2px !important;
}

/* Main actions and anything switched on use the accent */
body[data-theme] :is(.w-cta, .btn-fwd, .pp-download-btn, .a11y-primary, #a11y-toggle, [aria-pressed="true"],
  [aria-selected="true"], [aria-current="page"], .nav-btn.active, .wp-tab.active, .wp-opt.yes, .on) {
  background-color: var(--t-accent) !important;
  border-color: var(--t-accent) !important;
}

body[data-theme] :is(.w-cta, .btn-fwd, .pp-download-btn, .a11y-primary, #a11y-toggle, [aria-pressed="true"],
  [aria-selected="true"], [aria-current="page"], .nav-btn.active, .wp-tab.active, .wp-opt.yes, .on),
body[data-theme] :is(.w-cta, .btn-fwd, .pp-download-btn, .a11y-primary, [aria-pressed="true"],
  [aria-selected="true"], [aria-current="page"], .nav-btn.active, .wp-tab.active, .wp-opt.yes, .on) * {
  color: var(--t-on-accent) !important;
}

body[data-theme] #a11y-toggle svg,
body[data-theme] #a11y-toggle * {
  color: var(--t-on-accent) !important;
}

/* Switches keep showing on/off clearly */
body[data-theme] .a11y-switch[aria-pressed="true"] {
  background-color: var(--t-surface) !important;
  border-color: var(--t-accent) !important;
}

body[data-theme] .a11y-switch[aria-pressed="true"],
body[data-theme] .a11y-switch[aria-pressed="true"] * {
  color: var(--t-text) !important;
}

body[data-theme] .a11y-switch::after {
  border-color: var(--t-line) !important;
  background: radial-gradient(circle at 9px 50%, var(--t-line) 6px, transparent 6.5px) var(--t-surface) !important;
}

body[data-theme] .a11y-switch[aria-pressed="true"]::after {
  border-color: var(--t-accent) !important;
  background: radial-gradient(circle at 25px 50%, var(--t-on-accent) 6px, transparent 6.5px) var(--t-accent) !important;
}

/* Colour samples always show their own theme */
body[data-theme] .a11y-sw.sw-default { background-color: #f2f1ed !important; color: #5a4883 !important; }
body[data-theme] .a11y-sw.sw-cream { background-color: #fbf5e6 !important; color: #1f1d24 !important; }
body[data-theme] .a11y-sw.sw-blue { background-color: #e7f0f9 !important; color: #14213d !important; }
body[data-theme] .a11y-sw.sw-dark { background-color: #17161b !important; color: #eeecf2 !important; }
body[data-theme] .a11y-sw.sw-hc { background-color: #fff !important; color: #000 !important; }

body[data-theme] a {
  color: var(--t-link) !important;
  text-decoration: underline !important;
}

body[data-theme] ::placeholder {
  color: var(--t-muted) !important;
  opacity: 1;
}

body[data-theme] :focus-visible {
  outline: 3px solid var(--t-focus) !important;
  outline-offset: 2px;
}

body[data-theme] .tts-reading.tts-reading {
  outline: 3px solid var(--t-text) !important;
  background-color: var(--t-hl) !important;
}

body[data-theme] .tts-reading.tts-reading * {
  color: var(--t-text) !important;
}

body[data-theme="dark"] .tts-reading.tts-reading,
body[data-theme="dark"] .tts-reading.tts-reading * {
  color: #fff !important;
}

body[data-theme] #reading-guide {
  border-color: var(--t-text);
}

/* Locked-preview placeholders stay readable in the accessible themes */
body[data-theme] .pp-ghost .pp-tag {
  opacity: 1 !important;
}

body[data-theme] .pp-ghost-line {
  background-color: var(--t-line) !important;
  opacity: .45;
}


/* ── Passport pages (Adjustments / Practical guide) ── */
.pp-pages {
  display: flex;
  gap: .25rem;
  padding: .75rem 2.25rem 0;
  border-bottom: 1px solid var(--site-line);
  background: #fff;
}

.pp-pages button {
  border: 1px solid transparent;
  border-bottom: none;
  background: none;
  padding: .6rem 1.1rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--muted);
  border-radius: 0;
  cursor: pointer;
  margin-bottom: -1px;
}

.pp-pages button[aria-selected="true"] {
  color: var(--brand-purple);
  border-color: var(--site-line);
  background: #fff;
  box-shadow: inset 0 3px 0 var(--brand-purple);
}

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

.pp-guide-kicker {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.pp-guide-title {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--brand-purple);
  margin: .2rem 0 .5rem;
}

.pp-purpose {
  margin-bottom: 1rem;
}

#ppPage-guide .pp-guide-title:not(#ppGuideTitle) {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--site-line);
}

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

.pp-guide-impacts li {
  position: relative;
  padding: .35rem 0 .35rem 1.1rem;
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.55;
}

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

/* Workplace example under an adjustment */
.pp-example {
  margin: .3rem 0 .1rem;
  padding: .45rem .7rem;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--site-ink);
  background: #f1f6f1;
  border-left: 3px solid var(--brand-sage);
  border-radius: 0;
}

.pp-example span {
  font-weight: 700;
  color: var(--brand-green);
}

@media (max-width: 640px) {
  .pp-pages {
    padding: .5rem .75rem 0;
  }

  .pp-pages button {
    flex: 1;
    padding: .6rem .5rem;
  }
}

/* Session offer for Passport-only buyers */
.pp-session-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: -.5rem 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--brand-purple);
  border-radius: 0;
  background: var(--site-card);
}

.pp-session-offer > div {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.5;
}

.pp-session-offer strong {
  color: var(--brand-purple);
}


/* JobAccess funding: section in the neurodivergent Passport, private card on screen */
.pp-fund-text,
.pp-fund-lead {
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.6;
  margin: .4rem 0;
}

.pp-fund-lead {
  font-weight: 600;
}

.pp-fund-small {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: .5rem 0 0;
}

.pp-fund-card {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 1.25rem 1.4rem;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--brand-green);
  border-radius: 0;
}

.pp-fund-card h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--brand-green);
  margin: 0 0 .5rem;
}

.pp-fund-card p {
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.6;
  margin: .4rem 0;
}

.pp-fund-card .pp-fund-foot {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: .75rem;
}

.pp-fund-card a {
  color: var(--brand-purple);
  font-weight: 700;
  margin-left: .35rem;
}


/* "Ways you get by" tick-box step */
.wa-list {
  border: none;
  margin: .9rem 0 .4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.wa-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--site-line);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--site-ink);
}

.wa-item:hover {
  border-color: var(--brand-purple);
}

.wa-item.is-on {
  border-color: var(--brand-purple);
  background: #f5f2fa;
}

.wa-item input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: .1rem;
  accent-color: var(--brand-purple);
}

.wa-private {
  font-size: var(--text-sm);
}

.wp-q-stage.is-workarounds .wp-q-card-content {
  height: auto;
}

/* ── Passport View / Edit mode ── */
.pp-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto 1rem;
  padding: .85rem 1.1rem;
  border: 1px solid var(--site-line);
  border-radius: 0;
  background: var(--site-card);
}

.pp-mode-bar p {
  flex: 1 1 280px;
  margin: 0;
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.5;
}

.pp-edit-btn {
  background: #fff;
  color: var(--brand-purple);
  border: 1.5px solid var(--brand-purple);
  border-radius: 0;
  padding: .6rem 1.2rem;
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pp-edit-btn:hover,
.pp-edit-btn[aria-pressed="true"] {
  background: var(--brand-purple);
  color: #fff;
}

/* Viewing: the Passport reads like the PDF, with no editing controls */
.pp-doc.is-viewing .pp-item-actions,
.pp-doc.is-viewing .pp-item-info,
.pp-doc.is-viewing .pp-add,
.pp-doc.is-viewing .pp-removed,
.pp-doc.is-viewing .pp-notes.is-empty,
.pp-doc.is-viewing .pp-essentials:has(.pp-empty) {
  display: none !important;
}

.pp-doc.is-viewing .pp-item:hover {
  background: none;
}

.pp-doc.is-viewing .pp-notes .notes-area {
  border: none;
  background: none;
  padding: 0;
  resize: none;
  font-size: var(--text-base);
  color: var(--site-ink);
  min-height: 0;
}

.pp-print-opt {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--text-sm);
  color: var(--site-ink);
  cursor: pointer;
}

.pp-print-opt input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-purple);
}


/* The person's own experience of an adjustment */
.pp-mine {
  background: #f5f2fa;
  border-left-color: var(--brand-purple);
}

.pp-mine span {
  color: var(--brand-purple);
}

.pp-mine-edit {
  margin-top: .3rem;
}

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

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

.pp-mine-box {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .5rem;
  padding: .75rem;
  border: 1px solid var(--site-line);
  border-radius: 0;
  background: var(--site-card);
}

.pp-mine-box label {
  font-size: var(--text-sm);
  color: var(--site-ink);
  font-weight: 600;
}

.pp-mine-starters {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.pp-mine-starters button {
  border: 1px solid var(--brand-purple);
  background: #fff;
  color: var(--brand-purple);
  border-radius: 0;
  padding: .3rem .7rem;
  font-size: var(--text-sm);
  cursor: pointer;
  min-height: 32px;
}

.pp-mine-starters button:hover {
  background: var(--brand-purple);
  color: #fff;
}

.pp-mine-hint {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0;
}

.pp-mine-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.pp-doc.is-viewing .pp-mine-edit {
  display: none !important;
}


/* Answers backup */
.pp-backup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--brand-purple);
  border-radius: 0;
  background: var(--site-card);
}

.pp-backup > div:first-child {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--site-ink);
}

.pp-backup strong {
  color: var(--brand-purple);
}

.pp-backup-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.w-restore {
  margin-top: .5rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .85);
}

.w-restore .link-btn {
  color: #fff;
  font-weight: 700;
}


/* ══════════════════════════════════════
   ACCESSIBILITY AUDIT FIXES (Oct 2026)
══════════════════════════════════════ */

/* Skip link: hidden until it gets keyboard focus */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Headings and <main> that receive focus from script don't need a ring */
#main-content:focus,
.page-heading:focus {
  outline: none;
}

/* Survey: an unanswered question explains itself next to the answers */
.wp-error {
  margin: .75rem 0 0;
  padding: .6rem .85rem;
  border-left: 4px solid #9E2A2B;
  background: #fbeeee;
  color: #6e1c1d;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: 0;
}

/* Passport choices stack when the space is narrow or text is large */
.pp-seg {
  flex-wrap: wrap;
}

.pp-seg button {
  flex: 1 1 12rem;
}

.pp-setting {
  min-width: 0;
}

/* Welcome sits on a dark gradient: use a light focus ring there */
body:not([data-theme]) #page-welcome :focus-visible,
body[data-theme="default"] #page-welcome :focus-visible {
  outline-color: #ffd75e !important;
}

/* Small phones: keep the top bar on one row with the Reading tools button */
@media (max-width: 480px) {
  nav {
    padding: .6rem max(.75rem, env(safe-area-inset-right, 0px)) .6rem max(.75rem, env(safe-area-inset-left, 0px));
    gap: .4rem;
  }

  .nav-logo {
    flex: 0 0 auto;
  }

  /* One row at standard text size; wraps rather than overflows with larger text */
  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    gap: .15rem;
  }

  .nav-links .nav-btn {
    padding: .38rem .55rem;
  }

  #a11y-wrap {
    flex: 0 0 auto;
  }
}

@media (max-width: 360px) {
  .logo-word {
    font-size: 1.25rem;
  }

  .nav-links .nav-btn {
    padding: .38rem .45rem;
  }

  #a11y-toggle {
    width: 44px;
  }
}

/* Welcome on small phones with large text: keep everything inside the screen */
@media (max-width: 480px) {
  .welcome-inner {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    padding: 1.5rem 1rem;
  }

  .welcome-inner * {
    overflow-wrap: break-word;
  }
}

/* The top bar is sticky: keep focused and scrolled-to content clear of it (WCAG 2.4.11) */
html {
  scroll-padding-top: 6rem;
}

/* ── Action plan (just for the person, not in the PDF) ── */
.plan {
  max-width: 820px;
  margin: 1.5rem auto 0;
  padding: 1.4rem 1.5rem;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--brand-green);
  border-radius: 0;
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.plan-title {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--brand-purple);
  margin: 0;
}

.plan-private {
  font-size: var(--text-sm);
  color: var(--muted);
}

.plan-intro,
.plan-block p {
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.55;
  margin: .5rem 0;
}

.plan-summary {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-green);
  margin: .25rem 0 .75rem;
}

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

.plan-item {
  padding: .8rem 0;
  border-top: 1px solid var(--site-line);
}

.plan-item-text {
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.45;
  margin-bottom: .45rem;
}

.plan-date {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
}

.plan-status {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.plan-status button {
  min-height: 36px;
  padding: .3rem .7rem;
  border: 1px solid #8a8478;
  border-radius: 0;
  background: #fff;
  color: var(--site-ink);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.plan-status button[aria-pressed="true"] {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #fff;
}

.plan-item.is-in-place .plan-status button[aria-pressed="true"] {
  background: var(--brand-green);
  border-color: var(--brand-green);
}

.plan-block {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--site-line);
}

.plan-block h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--brand-green);
  margin: 0;
}

.plan-reminders {
  margin: .5rem 0 .9rem;
  padding-left: 1.1rem;
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.7;
}

.plan-cal-more {
  margin-top: .75rem;
  font-size: var(--text-sm);
}

.plan-cal-more summary {
  cursor: pointer;
  color: var(--brand-purple);
  font-weight: 600;
}

.plan-cal-more ul {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.8;
}

.plan-message {
  width: 100%;
  margin: .4rem 0 .6rem;
  font-size: var(--text-base);
  line-height: 1.5;
}

.plan-help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--brand-purple);
  border-radius: 0;
  background: #fff;
  font-size: var(--text-base);
  color: var(--site-ink);
  line-height: 1.5;
}

.plan-help strong {
  color: var(--brand-purple);
}

.plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto 1rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--brand-green);
  border-radius: 0;
  background: #f1f6f1;
  font-size: var(--text-base);
  color: var(--site-ink);
}

.plan-sub {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--brand-purple);
  margin: .75rem 0 .1rem;
}

.plan-group {
  margin-top: .6rem;
  border-top: 1px solid var(--site-line);
}

.plan-group summary {
  cursor: pointer;
  padding: .75rem 0;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--site-ink);
}

.plan-group-count {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 .45em;
  border-radius: 0;
  background: var(--site-line);
  font-size: var(--text-sm);
  text-align: center;
}

.plan-ess {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-green);
}

/* ══════════════════════════════════════
   SUPPORT AND RESOURCES
══════════════════════════════════════ */
#page-support {
  background: var(--site-bg, #f2f1ed);
}

.sr-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.sr-hero-h {
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--brand-purple);
  margin: 0 0 .5rem;
}

.sr-hero-sub {
  font-size: var(--text-md);
  color: var(--site-ink);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 1.75rem;
}

.sr-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sr-feature {
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--site-line);
  border-top: 4px solid var(--brand-purple);
  border-radius: 0;
  color: var(--site-ink);
}

.sr-feature.is-jobaccess {
  border-top-color: var(--brand-green);
}

.sr-feature-badge {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-green);
}

.sr-feature h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--brand-purple);
  margin: .3rem 0 .5rem;
}

.sr-feature p,
.sr-feature li {
  font-size: var(--text-base);
  line-height: 1.55;
}

.sr-feature ul {
  margin: .5rem 0 1rem;
  padding-left: 1.1rem;
}

.sr-feature li {
  margin-bottom: .35rem;
}

.sr-feature-btn {
  display: inline-block;
  margin-top: .5rem;
  padding: .6rem 1.1rem;
  border: 1.5px solid var(--brand-purple);
  border-radius: 0;
  color: var(--brand-purple);
  font-weight: 700;
  text-decoration: none;
}

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

.sr-section {
  padding: 1.5rem 0 .5rem;
  border-top: 1px solid var(--site-line);
}

.sr-sec-h {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--brand-purple);
  margin: 0;
}

.sr-sec-sub {
  font-size: var(--text-base);
  color: var(--muted);
  margin: .25rem 0 1rem;
}

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

.sr-card {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1rem 1.1rem;
  background: var(--site-card);
  border: 1px solid var(--site-line);
  border-radius: 0;
  text-decoration: none;
  color: var(--site-ink);
  transition: border-color .15s;
}

.sr-card:hover,
.sr-card:focus-visible {
  border-color: var(--brand-purple);
}

.sr-card-org {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--brand-purple);
}

.sr-card-desc {
  font-size: var(--text-sm);
  line-height: 1.55;
}

.sr-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: auto;
}

.sr-tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .1rem .5rem;
  border-radius: 0;
  background: #f1f6f1;
  border: 1px solid #d3e2d4;
  color: var(--brand-green);
}

.sr-crisis {
  margin: 1.5rem 0 .75rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--site-line);
  border-left: 4px solid #3c5941;
  border-radius: 0;
  background: #fff;
  font-size: var(--text-base);
  color: var(--site-ink);
}

.sr-note {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Short explainer at the start of each survey section */
.wp-sec-intro {
  margin: 0;
  padding: .8rem 1rem;
  font-size: var(--text-base);
  line-height: 1.55;
  color: inherit;
  text-align: left;
  background: var(--warm);
  border-left: 4px solid var(--cat, var(--p1));
  border-radius: 0;
  max-width: 62ch;
}
.wp-break .wp-sec-intro { margin-inline: auto; }

/* Support cards: who they are, then Information / Support / Resources */
.sr-card-who {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}
.sr-card-rows {
  display: grid;
  gap: .35rem;
  margin-bottom: .2rem;
}
.sr-card-row {
  display: block;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.sr-card-lbl {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-green);
}

/* Section intro page (also marks the end of the previous section) */
.wp-intro-done {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--p3);
}
.wp-intro-tick {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--p3);
  color: #fff;
  font-size: .85em;
  margin-right: .25rem;
}
.wp-intro-head {
  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: 0;
  padding: .85rem 1.1rem;
  min-width: min(100%, 320px);
}
.wp-intro-head .wp-q-text { margin: 0; }

/* "This section" on the question rail opens the section intro */
button.wp-rail-label {
  background: none;
  border: 0;
  padding: .2rem 0;
  font-family: inherit;
  cursor: pointer;
  color: var(--p1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.wp-rail-label:hover { color: var(--p3); }
button.wp-rail-label:focus-visible { outline: 3px solid var(--p1); outline-offset: 2px; border-radius: 0; }

/* "Other" coping strategy on the masking page */
.wa-other {
  display: grid;
  gap: .4rem;
  padding: .2rem .2rem .4rem 2.4rem;
}
.wa-other label {
  font-size: var(--text-sm);
  font-weight: 700;
}
.wa-other-hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
.wa-other textarea {
  width: 100%;
  font: inherit;
  font-size: var(--text-sm);
}
.wa-other textarea {
  padding: .5rem .65rem;
  border: 1.5px solid var(--site-line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

/* What each answer does: on the first section's intro page and under the answers */
.wp-howto {
  display: grid;
  gap: .6rem;
  width: 100%;
  max-width: 62ch;
  text-align: left;
  padding: 1rem 1.15rem;
  border: 2px solid var(--border);
  border-radius: 0;
}
.wp-howto-h {
  margin: 0;
  font-size: var(--text-md);
  color: var(--p1);
}
.wp-howto-sub {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}
.wp-howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.wp-howto-list li {
  font-size: var(--text-sm);
  line-height: 1.5;
}
.wp-howto-opt {
  display: block;
  font-weight: 700;
  font-size: var(--text-base);
}
.wp-opt-hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* ══════════════════════════════════════
   WEBSITE STYLE (re:think dyslexia) with the logo's colours: the website's
   slate teal and organic shapes, the logo's purple and greens, dusty rose as
   the one warm accent, light headings and square corners.
══════════════════════════════════════ */
:root {
  --site-teal: #a84d24;
  --logo-purple: #5a4883;
  --logo-violet: #716a8f;
  --logo-green: #3c5941;
  --logo-green-deep: #2f4733;
  --logo-green-light: #5f7d63;
  --site-rose: #7a1832;
  --site-rose-deep: #b52f57;
  --site-offwhite: #fbfaf7;
  --p1: #5a4883;
  --p2: #3c5941;
  --p2-light: #7fa283;
  --p3: #3c5941;
  --brand-purple: #5a4883;
  --brand-green: #3c5941;
  --brand-sage: #5f7d63;
  --light-purple: #e4e0ee;
  --light-green: #e1ebe1;
  --gold: #f3dfe3;
}

#page-welcome {
  background: var(--site-teal);
  overflow: hidden;
}

.blob-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.banksia-bg { opacity: .55; }

.w-badge {
  background: var(--logo-purple);
  border: 0;
  color: #fff;
}

.w-h1 {
  font-weight: 300;
  letter-spacing: -.01em;
  background: none;
  color: var(--site-offwhite);
  -webkit-text-fill-color: currentColor;
}

.w-sub,
.w-stat-l,
.w-time {
  color: var(--site-offwhite);
}

.w-stat-n {
  color: #f3dfe3;
  font-weight: 300;
}

.w-cta {
  background: var(--logo-green);
  box-shadow: 0 8px 24px rgba(40, 45, 55, .35);
}

.w-cta:hover {
  background: var(--logo-green-deep);
  box-shadow: 0 12px 32px rgba(40, 45, 55, .45);
}

.about-tool-block {
  border-left-color: var(--logo-green);
}

/* Light, larger page headings, as on the website */
.assess-header h1,
.assess-header h2 {
  font-size: var(--text-3xl);
  font-weight: 300;
  color: var(--p1);
}

.pp-doc-head {
  background: var(--logo-purple);
  border-bottom-color: var(--logo-green-light);
}

.pp-doc-kicker,
.pp-doc-meta {
  color: #fff;
}

/* "Where are you heading?": three choices, then the type of work or study */
.wp-opts-3 .wp-opt {
  flex: 1 1 160px;
}

.wp-q-text2 {
  margin-top: .75rem;
  font-size: var(--text-lg);
}

/* Answer buttons with a short description under the label */
.wp-opt.wp-opt-desc {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-align: left;
  align-items: flex-start;
}
.wp-opt-title {
  font-weight: 700;
}
.wp-opt-sub {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
}
.wp-opt.yes .wp-opt-sub {
  color: inherit;
}
.is-onsite .wp-q-text {
  font-size: var(--text-lg);
  font-weight: 600;
}
.wp-heading-note {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--site-ink);
  line-height: 1.45;
  margin: .4rem 0 1.1rem;
}

/* The brand name is always written lower case, even inside capitalised labels */
.brand-name,
.w-badge .brand-name,
.pp-doc-kicker .brand-name {
  text-transform: none !important;
}

/* Larger Expand all / Collapse all buttons on the Adjustments page */
.pp-collapse-all {
  font-size: var(--text-base);
  gap: .6rem;
  margin: .5rem 0 0;
}
.pp-collapse-btn {
  font: inherit;
  font-weight: 700;
  padding: .55rem 1.1rem;
  border: 2px solid var(--p1);
  background: #fff;
  color: var(--p1);
  cursor: pointer;
}
.pp-collapse-btn:hover {
  background: var(--light-purple);
}
.pp-collapse-btn:focus-visible {
  outline: 3px solid var(--p1);
  outline-offset: 2px;
}

/* Pointer from the Passport to the Action plan tab */
.pp-plan-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--p3);
  background: var(--site-card);
}
.pp-plan-link p {
  margin: 0;
  flex: 1 1 280px;
}

/* Action plan: "Is it helping?" and the "How's it going?" check-in */
.plan-help-q {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .75rem;
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px dashed var(--site-line);
}
.plan-help-label {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--p3);
}
.checkin-form {
  display: grid;
  gap: 1rem;
}
.checkin-form h3:focus { outline: none; }
.checkin-q {
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--site-line);
  background: #fff;
}
.checkin-q legend {
  padding: 0 .25rem;
  font-weight: 600;
}
.checkin-area {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--p3);
}
.checkin-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .4rem;
  margin-top: .6rem;
}
.checkin-scale label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
  font-size: var(--text-sm);
  padding: .5rem .25rem;
  border: 1.5px solid var(--site-line);
  cursor: pointer;
}
.checkin-scale label:has(input:checked) {
  border-color: var(--p1);
  background: var(--light-purple);
  font-weight: 700;
}
.checkin-scale input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--p1);
}
.checkin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
@media (max-width: 560px) {
  .checkin-scale { grid-template-columns: 1fr; }
  .checkin-scale label { flex-direction: row; justify-content: flex-start; text-align: left; }
}
.checkin-results:focus { outline: none; }
.ci-list {
  list-style: none;
  margin: .5rem 0;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.ci-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--site-line);
}
.ci-label {
  font-weight: 700;
  min-width: 11rem;
}
.ci-of {
  font-size: var(--text-sm);
  color: var(--muted);
}
.ci-up, .ci-down, .ci-same {
  font-size: var(--text-sm);
  font-weight: 700;
  padding: .05rem .5rem;
}
.ci-up { color: #2f5a33; background: #e6f0e6; }
.ci-down { color: #7a2f3c; background: #f6e4e7; }
.ci-same { color: var(--muted); background: var(--warm); }
.ci-note, .ci-private {
  font-size: var(--text-sm);
  color: var(--muted);
}
.plan-support {
  display: grid;
  gap: .4rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--site-line);
  border-left: 4px solid #8b3e1d;
  background: #fff;
}
.plan-support ul {
  margin: .2rem 0;
  padding-left: 1.2rem;
}

/* Privacy policy page */
.pv-wrap { max-width: 760px; }
.pv-wrap h2 { font-size: var(--text-xl); font-weight: 400; color: var(--brand-purple); margin: 2rem 0 .5rem; }
.pv-wrap h3 { font-size: var(--text-md); margin: 1.25rem 0 .35rem; }
.pv-wrap p, .pv-wrap li { line-height: 1.65; }
.pv-wrap ul { padding-left: 1.25rem; display: grid; gap: .35rem; }
.pv-updated { color: #55505c; font-size: var(--text-sm); }
.pv-draft { padding: .8rem 1rem; border: 1px solid #c49a2e; background: #fff8e1; color: #4a3b0f; margin-bottom: 1.25rem; }
.atb-badge-link { font-family: inherit; cursor: pointer; }
.atb-badge-link:hover { text-decoration: underline; }

/* Research opt-in and purchase consent */
.ci-research { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid var(--site-line); background: #fff; }
.ci-research-opt, .unlock-consent { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.ci-research-opt input, .unlock-consent input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; accent-color: var(--p1); }
.ci-research-more { margin-top: .5rem; font-size: var(--text-sm); }
.ci-research-more summary { cursor: pointer; color: var(--p1); font-weight: 700; }
.ci-research-more p { margin: .45rem 0 0; line-height: 1.55; }
.unlock-consent { font-size: var(--text-sm); margin: .75rem 0; padding: .75rem .85rem; border: 1px solid var(--site-line); background: var(--site-card); }

/* ══ Home page: start button visible without scrolling ══ */
#page-welcome {
  justify-content: flex-start;
}
#page-welcome .welcome-inner {
  padding: 1.75rem 1.25rem 2.5rem;
  max-width: 720px;
}
#page-welcome .w-roundel {
  width: 84px;
  margin-bottom: .75rem;
}
/* The product name as a quiet label, not a box */
.w-kicker {
  margin: 0 0 .6rem;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--site-offwhite);
}
#page-welcome .w-h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  margin-bottom: 1rem;
}
#page-welcome .w-sub {
  margin-bottom: .75rem;
  line-height: 1.6;
}
.w-for {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--site-offwhite);
}
#page-welcome .w-time {
  margin-top: .6rem;
}

/* How it works */
.w-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 0;
  text-align: left;
}
.w-steps li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  background: rgba(30, 28, 45, .28);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--site-offwhite);
  line-height: 1.45;
}
.w-steps strong {
  display: block;
  margin-bottom: .2rem;
}
.w-steps span:not(.w-step-n) {
  font-size: var(--text-sm);
}
.w-step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--site-offwhite);
  color: var(--logo-purple);
  font-weight: 700;
}
@media (max-width: 700px) {
  .w-steps { grid-template-columns: 1fr; }
}

/* Wellbeing support on the Action plan tab, for everyone */
.plan-support-always {
  margin-top: 1.25rem;
  border-left-color: var(--p3);
}

/* Privacy and terms page: parts and jump links */
.pv-toc { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 1.5rem; font-weight: 700; }
.pv-summary { padding: 1rem 1.25rem; border: 1px solid var(--site-line); border-left: 4px solid var(--p3); background: var(--site-card); }
.pv-summary h2 { margin-top: 0; }
.pv-wrap .pv-part { font-size: var(--text-2xl); font-weight: 300; margin-top: 2.75rem; padding-top: 1rem; border-top: 2px solid var(--site-line); scroll-margin-top: 90px; }
.pv-part:focus { outline: none; }
.pv-crisis { margin: 1rem 0; padding: .9rem 1.1rem; border: 1px solid var(--site-line); border-left: 4px solid #8b3e1d; background: #fff; line-height: 1.6; }
.pv-wrap li ul { margin-top: .35rem; }

/* Copyright footer on every page */
.site-foot {
  padding: 1.25rem max(16px, env(safe-area-inset-left, 0px)) 1.5rem;
  border-top: 1px solid var(--site-line);
  background: var(--site-bg);
  text-align: center;
  font-size: var(--text-sm);
  color: #55505c;
}
.site-foot p { margin: 0 auto; max-width: 760px; line-height: 1.6; }

/* ══ UX pass ══ */
/* Profiler: after the first screen, a slim header so the question and answers fit on screen */
#wpAssessWrap.is-compact .assess-header {
  margin-bottom: .75rem;
}
#wpAssessWrap.is-compact .assess-header h1 {
  font-size: var(--text-xl);
  margin-bottom: .2rem;
}
#wpAssessWrap.is-compact .assess-header .wp-lead,
#wpAssessWrap.is-compact .assess-header .wp-time {
  display: none;
}
#wpAssessWrap.is-compact .wp-steps-wrap {
  margin-bottom: .75rem;
}
/* Phones: the section name is already in the progress bar, so the card just shows the question count */
@media (max-width: 640px) {
  .wp-q-card .wp-q-head .wp-q-sec { display: none; }
  .wp-q-card .wp-q-head { justify-content: flex-end; }
  .wp-tab span[aria-hidden="true"] { display: none; }
  .wp-tab { padding-left: .5rem; padding-right: .5rem; }
}

/* Passport settings fold away once a name is entered */
.pp-settings-panel {
  margin-bottom: 1rem;
  border: 1px solid var(--site-line);
  background: var(--site-card);
}
.pp-settings-panel > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  padding: .85rem 1.1rem;
  list-style-position: inside;
}
.pp-settings-title {
  font-weight: 700;
  color: var(--p1);
}
.pp-settings-sum {
  font-size: var(--text-sm);
  color: #55505c;
}
.pp-settings-panel[open] > summary {
  border-bottom: 1px solid var(--site-line);
}
.pp-settings-panel .pp-settings {
  padding: .5rem 1.1rem 1rem;
  margin: 0;
}
@media (max-width: 640px) {
  /* The numbered row above already shows which question this is */
  .wp-q-stage.is-q .wp-q-head { display: none; }
  .wp-q-stage.is-q .wp-q-card-content { padding-top: 1.1rem; }
  #wpAssessWrap.is-compact .assess-header h1 { font-size: var(--text-lg); }
}
@media (max-width: 640px) {
  .wp-tab { font-size: var(--text-sm); white-space: nowrap; }
}

/* ══ Phone menu: links behind a Menu button ══ */
.nav-menu-btn {
  display: none;
}
@media (max-width: 640px) {
  nav {
    position: sticky;
    flex-wrap: nowrap;
    gap: .5rem;
  }
  .nav-logo { flex: 1 1 auto; }
  .nav-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .85rem;
    border: 1.5px solid var(--p1);
    background: #fff;
    color: var(--p1);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .nav-menu-btn[aria-expanded="true"] { background: var(--p1); color: #fff; }
  .nav-menu-icon,
  .nav-menu-icon::before,
  .nav-menu-icon::after {
    display: block;
    width: 1rem;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .nav-menu-icon::before, .nav-menu-icon::after { content: ""; position: absolute; left: 0; }
  .nav-menu-icon::before { top: -5px; }
  .nav-menu-icon::after { top: 5px; }
  .nav-links {
    display: none;
  }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: .5rem max(16px, env(safe-area-inset-left, 0px)) .75rem;
    background: var(--site-bg);
    border-bottom: 1px solid var(--site-line);
    box-shadow: 0 10px 24px rgba(14, 14, 26, .12);
  }
  .nav-links.is-open .nav-btn {
    text-align: left;
    padding: .8rem .75rem;
    font-size: var(--text-md);
    border-bottom: 1px solid var(--site-line);
  }
  /* The Work Style items are listed directly in the menu */
  .nav-links.is-open .nav-dropdown-trigger { display: none; }
  .nav-links.is-open .nav-dropdown-content {
    display: flex;
    position: static;
    transform: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
    backdrop-filter: none;
  }
}

/* ══ Results: summary and next step ══ */
.wp-summary {
  display: grid;
  gap: .85rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.4rem;
  background: #fff;
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--p3);
}
.wp-summary p { margin: 0; line-height: 1.6; }
.wp-summary .pp-download-btn { justify-self: start; }
.wp-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}
.wp-summary-stats > div {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  font-size: var(--text-sm);
  color: #55505c;
}
.wp-summary-n {
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1.1;
  color: var(--p1);
}
@media (max-width: 640px) {
  .nav-links.is-open .nav-dropdown,
  .nav-links.is-open .nav-dropdown-content,
  .nav-links.is-open .nav-dropdown-content .nav-btn { width: 100%; }
}

/* How it works: each step in its own shade so they stand out */
.w-steps li:nth-child(1) { background: #5a4883; border-color: #5a4883; }
.w-steps li:nth-child(2) { background: #5a4883; border-color: #5a4883; }
.w-steps li:nth-child(3) { background: #3c5941; border-color: #3c5941; }
.w-steps li { color: #fff; box-shadow: 0 6px 18px rgba(20, 20, 35, .22); }
.w-steps li:nth-child(1) .w-step-n { color: #5a4883; }
.w-steps li:nth-child(2) .w-step-n { color: #5a4883; }
.w-steps li:nth-child(3) .w-step-n { color: #3c5941; }

/* Free preview: unlock box at the top of the Passport tab */
.pp-unlock-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.25rem;
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--p1);
}
.pp-unlock-top-text {
  flex: 1 1 320px;
  display: grid;
  gap: .25rem;
  line-height: 1.55;
}
.pp-unlock-top .pp-download-btn { flex: 0 0 auto; }
@media (max-width: 640px) {
  .pp-unlock-top .pp-download-btn { width: 100%; }
}

/* ── Line icons (js/icons.js): one style across the platform ── */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}
.icon.icon-fill { fill: currentColor; }
[data-icon] { display: inline-flex; }
/* Icon followed by text: a small even gap */
button > .icon, button > [data-icon], .wp-howto-opt > .icon, .atb-badge > [data-icon], .pp-guide-key > [data-icon],
.plan-ess > .icon, .wp-q-sec > .icon, .pp-unlocked-msg .icon, .pp-download-label > .icon, .pp-download-label > [data-icon],
.pp-mine-edit summary > .icon { margin-right: .4em; }
.atb-badge { display: inline-flex; align-items: center; }
.atb-badge .icon { width: 1em; height: 1em; }

/* Each section keeps its own colour */
.wp-step-dot { color: var(--cat, var(--p1)); }
.wp-step-dot .icon { width: 20px; height: 20px; }
.wp-step.is-done .wp-step-dot { color: #fff; }
.wp-cat-pill { color: #fff; }
.wp-cat-pill .icon { width: 16px; height: 16px; }
.wp-break-emoji { display: inline-grid; place-items: center; width: 52px; height: 52px; color: var(--cat, var(--p1));
  border: 2px solid currentColor; }
.wp-break-emoji .icon { width: 28px; height: 28px; }
.wp-q-sec { display: inline-flex; align-items: center; }
.wp-pref-badge .icon, .wp-rail-dot .icon, .wp-intro-tick .icon { width: 70%; height: 70%; stroke-width: 2.2; }
.wp-opt .icon { margin-right: .45em; }
.pp-lock .icon { width: 26px; height: 26px; }

/* Passport page row: two pages, then a link to the Action plan */
.pp-pages { align-items: flex-end; }
.pp-pages-tabs { display: flex; gap: .25rem; }
.pp-pages .pp-pages-plan { margin-left: auto; display: inline-flex; align-items: center; color: var(--brand-green); }
@media (max-width: 640px) {
  .pp-pages-tabs { flex: 2; }
  .pp-pages .pp-pages-plan { flex: 1; justify-content: center; }
}
/* Section dots: each in its own colour, upcoming ones lighter */
.wp-step.is-todo .wp-step-dot { opacity: 1; filter: none; border-color: color-mix(in srgb, var(--cat, var(--p1)) 35%, #fff);
  background: color-mix(in srgb, var(--cat, var(--p1)) 7%, #fff); }
.wp-step.is-done .wp-step-dot { background: var(--cat, var(--p3)); border-color: var(--cat, var(--p3)); }
/* Result badges: solid, readable colours (purple = already using, green = would help, teal = not sure) */
.wp-pref-badge.wp-badge-already { background: #5a4883; color: #fff; }
.wp-pref-badge.wp-badge-yes { background: #3c5941; color: #fff; }
.wp-pref-badge.wp-badge-unsure { background: #a84d24; color: #fff; }
@media (max-width: 640px) { .pp-pages .pp-pages-plan .icon, .pp-pages .pp-pages-plan [data-icon] { display: none; } }

/* ── Passport summary page (page 1) ── */
.pp-sum-line { font-size: 1.15rem; line-height: 1.55; color: var(--text, #2e2a33); margin: .25rem 0 1.75rem; }
.pp-sum-edit { margin: .25rem 0 1.75rem; }
.pp-sum-edit .notes-area { width: 100%; margin-top: .35rem; }
.pp-sum-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.pp-sum-list li { display: flex; align-items: flex-start; gap: 1rem; justify-content: space-between;
  background: #fff; border: 1px solid var(--site-line); border-left: 3px solid var(--brand-purple); padding: .8rem 1rem;
  font-size: 1.05rem; line-height: 1.45; }
.pp-sum-list li.pp-empty { border-left-color: var(--site-line); color: var(--muted); font-size: var(--text-base); }
.pp-sum-list .pp-tag { flex-shrink: 0; }
.pp-sum-hint { margin-top: .75rem; font-size: var(--text-sm); color: var(--muted); }
.pp-sec-why { display: block; margin-top: .2rem; font-style: normal; color: var(--muted); font-weight: 400; }

/* ── Home: solid block behind the opening text (readable over the shapes) ── */
.w-hero-block {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.25rem 2.5rem 2rem;
  background: #fbf9f5;
  border-top: 5px solid var(--brand-purple, #5a4883);
  box-shadow: 0 10px 30px rgba(30, 24, 48, .18);
  color: #2e2a33;
}
#page-welcome .w-hero-block .w-kicker { color: #3c5941; }
#page-welcome .w-hero-block .w-h1 { color: #5a4883; text-shadow: none; }
#page-welcome .w-hero-block .w-sub { color: #2e2a33; text-shadow: none; }
#page-welcome .w-hero-block .w-for { color: #4a4552; text-shadow: none; }
#page-welcome .w-hero-block .w-time { color: #5f5a66; text-shadow: none; }
#page-welcome .w-hero-block .w-restore { color: #4a4552; }
#page-welcome .w-hero-block .w-restore .link-btn { color: #5a4883; }
#page-welcome .w-hero-block + .w-steps { margin-top: 1.5rem; }
@media (max-width: 640px) {
  .w-hero-block { padding: 1.5rem 1.15rem 1.35rem; }
}

/* ══ Home page in horizontal bands, like the re:think dyslexia website ══ */
#page-welcome { padding: 0; align-items: stretch; }
.w-band { position: relative; width: 100%; box-sizing: border-box; }
.w-band-inner { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 4.5rem 2rem; box-sizing: border-box; }

/* Band 1: the opening over the shapes */
.w-band-hero { overflow: hidden; display: flex; justify-content: center; }
#page-welcome .w-band-hero .welcome-inner { padding: 3rem 1.25rem 4rem; }

/* Band 2: how it works — three columns, no boxes */
.w-band-steps { background: #5a4883; color: #f7f3ea; text-align: center; }
.w-band-kicker { margin: 0 0 .6rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e6eee7; }
.w-band-title { margin: 0 auto 3rem; max-width: 720px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; line-height: 1.3; color: #fff; }
#page-welcome .w-band-steps .w-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; max-width: none; margin: 0 0 3rem; padding: 0; text-align: center; }
#page-welcome .w-band-steps .w-steps li { display: block; padding: 0; background: none !important; border: 0; box-shadow: none; color: #f7f3ea; }
.w-step-word { display: block; margin-bottom: .9rem; font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 300; line-height: 1.1; color: #fff; }
#page-welcome .w-band-steps .w-step-n { display: block; width: auto; height: auto; margin: 0 auto .6rem; background: none; border-radius: 0;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .12em; color: #e6eee7 !important; }
#page-welcome .w-band-steps .w-step-n::before { content: 'Step '; }
.w-step-text { display: block; max-width: 290px; margin: 0 auto; font-size: var(--text-base) !important; line-height: 1.6; color: #f7f3ea; }
.w-cta.w-cta-light { background: #f7f3ea; color: #3c5941; box-shadow: none; }
.w-cta.w-cta-light:hover { background: #fff; }

/* Band 3: about — heading on the left, the story on the right */
#page-welcome .w-band-about { max-width: none; margin: 0; padding: 0; background: #f7f3ea; border: 0; box-shadow: none; text-align: left; color: #2e2a33; }
.w-about-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3.5rem; align-items: start; }
#page-welcome .w-band-about .atb-title { color: #3c5941; }
#page-welcome .w-band-about .atb-heading { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 300; line-height: 1.2; color: #5a4883; margin: 0; }
#page-welcome .w-band-about .atb-body { font-size: 1.05rem; color: #3a3640; line-height: 1.7; margin-bottom: 1rem; }
#page-welcome .w-band-about .atb-offer { color: #2e2a33; }
#page-welcome .w-band-about .atb-footer { border-top-color: #e2ddd8; }
#page-welcome .w-band-about .atb-badge { background: #fff; }

@media (max-width: 760px) {
  .w-band-inner { padding: 3rem 1.15rem; }
  #page-welcome .w-band-hero .welcome-inner { padding: 1.5rem 1rem 2.5rem; }
  #page-welcome .w-band-steps .w-steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .w-band-title { margin-bottom: 2rem; }
  .w-about-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
#page-welcome .w-band-steps .w-steps .w-step-word { font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 300; color: #fff; }
#page-welcome .w-band-steps .w-steps .w-step-word .w-step-n { font-size: var(--text-sm); }

/* Top band: cream, with purple and green shapes at the edges */
#page-welcome .w-band-hero { background: #f7f3ea; }
#page-welcome .w-band-hero .w-hero-block { background: #f7f3ea; border-top: 0; box-shadow: none; }
@media (max-width: 760px) {
  /* Phones: the shapes become a slim strip along the top so the text stays on plain cream */
  #page-welcome .w-band-hero .blob-bg { height: 70px; bottom: auto; }
}
#page-welcome .w-band-hero .w-hero-block { background: transparent; }
@media (max-width: 760px) {
  #page-welcome .w-band-hero .blob-bg { height: 56px; }
  #page-welcome .w-band-hero .welcome-inner { padding-top: 3.25rem; }
}

/* ── Home opening: ro:bur wordmark, tagline, and drifting blobs on cream ── */
#page-welcome .w-band-hero { background: #f7f3ea; min-height: 560px; align-items: center; }
#page-welcome .w-band-hero .welcome-inner { position: relative; z-index: 1; }
#page-welcome .w-hero-block .w-kicker { margin-bottom: .25rem; }
.w-wordmark { margin: 0; font-family: 'Quicksand', 'Nunito', var(--font-body, sans-serif); font-weight: 500;
  font-size: clamp(4rem, 11vw, 7.5rem); line-height: 1; letter-spacing: -.01em; color: #5a4883; }
.w-wordmark .w-colon { color: #3c5941; }
.w-tagline { margin: .9rem auto .5rem; max-width: 560px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 300; line-height: 1.35; color: #2e2a33; }
.w-motto { margin: 0 0 1.4rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #3c5941; }

.w-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.w-blob { position: absolute; display: block; border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%;
  animation: w-blob-drift 22s ease-in-out infinite alternate, w-blob-morph 14s ease-in-out infinite alternate; will-change: transform, border-radius; }
.w-blob.b1 { width: 150px; height: 140px; left: 5%;  top: 12%; background: #5a4883; animation-duration: 26s, 15s; }
.w-blob.b2 { width: 70px;  height: 64px;  left: 17%; top: 58%; background: #3c5941; animation-duration: 19s, 12s; animation-delay: -6s, -3s; }
.w-blob.b3 { width: 110px; height: 100px; left: 3%;  top: 72%; background: #716a8f; animation-duration: 24s, 17s; animation-delay: -10s, -8s; }
.w-blob.b4 { width: 44px;  height: 40px;  left: 22%; top: 20%; background: #7a1832; animation-duration: 17s, 11s; animation-delay: -4s, -2s; }
.w-blob.b5 { width: 170px; height: 155px; right: 4%; top: 8%;  background: #5f7d63; animation-duration: 28s, 16s; animation-delay: -12s, -5s; }
.w-blob.b6 { width: 80px;  height: 74px;  right: 19%; top: 46%; background: #a84d24; animation-duration: 21s, 13s; animation-delay: -8s, -9s; }
.w-blob.b7 { width: 120px; height: 110px; right: 6%; top: 68%; background: #5a4883; animation-duration: 25s, 18s; animation-delay: -3s, -11s; }
.w-blob.b8 { width: 50px;  height: 46px;  right: 24%; top: 80%; background: #3c5941; animation-duration: 18s, 12s; animation-delay: -14s, -6s; }
@keyframes w-blob-drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(18px, -22px) rotate(25deg); }
  100% { transform: translate(-14px, 16px) rotate(-15deg); }
}
@keyframes w-blob-morph {
  0%   { border-radius: 58% 42% 55% 45% / 48% 60% 40% 52%; }
  50%  { border-radius: 40% 60% 45% 55% / 60% 42% 58% 40%; }
  100% { border-radius: 52% 48% 38% 62% / 44% 52% 48% 56%; }
}
/* Still when the person has asked for less movement */
@media (prefers-reduced-motion: reduce) { .w-blob { animation: none; } }
body.a11y-motion .w-blob { animation: none; }

@media (max-width: 760px) {
  #page-welcome .w-band-hero { min-height: 0; }
  #page-welcome .w-band-hero .welcome-inner { padding-top: 2.5rem; }
  /* Phones: fewer, smaller blobs in the corners so the text stays on plain cream */
  .w-blob.b1 { width: 70px; height: 64px; left: -18px; top: 10px; }
  .w-blob.b5 { width: 80px; height: 74px; right: -22px; top: 30px; }
  .w-blob.b4 { width: 28px; height: 26px; left: 50px; top: 70px; }
  .w-blob.b3 { width: 60px; height: 56px; left: -20px; top: auto; bottom: 20px; }
  .w-blob.b7 { width: 64px; height: 60px; right: -20px; top: auto; bottom: 50px; }
  .w-blob.b2, .w-blob.b6, .w-blob.b8 { display: none; }
}

/* Footer: the re:think dyslexia logo links back to the main website */
.site-foot-logo { display: inline-block; margin-bottom: .6rem; }
.site-foot-logo img { display: block; width: 180px; height: auto; }
.site-foot-logo:focus-visible { outline: 3px solid #5a4883; outline-offset: 4px; }
@media (max-width: 760px) {
  .w-blob.b4 { display: none; }
  .w-blob.b1 { width: 56px; height: 52px; left: -22px; top: 6px; }
  .w-blob.b5 { width: 64px; height: 60px; right: -26px; top: 14px; }
  .w-blob.b3 { width: 52px; height: 48px; left: -24px; bottom: -18px; }
  .w-blob.b7 { width: 56px; height: 52px; right: -24px; bottom: -14px; }
  #page-welcome .w-band-hero .welcome-inner { padding-bottom: 3rem; }
}

/* ── Home: shorter bands (less scrolling) and colour blobs in every band ── */
#page-welcome .w-band-hero { min-height: 0; }
#page-welcome .w-band-hero .welcome-inner { padding: 2rem 1.25rem 2.25rem; }
.w-wordmark { font-size: clamp(3.4rem, 8vw, 5.5rem); }
.w-tagline { margin: .6rem auto .4rem; }
.w-motto { margin-bottom: 1rem; }
#page-welcome .w-hero-block .w-sub { margin-bottom: .5rem; }
#page-welcome .w-hero-block .w-for { margin-bottom: 1.1rem; }
.w-band-inner { padding: 2.75rem 2rem; }
.w-band-title { margin-bottom: 1.75rem; }
#page-welcome .w-band-steps .w-steps { gap: 2.5rem; margin-bottom: 1.75rem; }
#page-welcome .w-band-steps .w-steps .w-step-word { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: .5rem; }
#page-welcome .w-band-steps .w-step-n { margin-bottom: .35rem; }
.w-about-grid { gap: 2.5rem; }
#page-welcome .w-band-about .atb-body { margin-bottom: .8rem; }
#page-welcome .w-band-steps, #page-welcome .w-band-about { overflow: hidden; }

/* Teal band: lighter blobs */
.w-blob.s1 { width: 90px;  height: 84px; left: 3%;  top: 14%; background: #716a8f; animation-duration: 23s, 14s; }
.w-blob.s2 { width: 40px;  height: 36px; left: 12%; top: 70%; background: #7a1832; animation-duration: 18s, 12s; animation-delay: -5s, -4s; }
.w-blob.s3 { width: 110px; height: 100px; right: 3%; top: 55%; background: #5f7d63; animation-duration: 26s, 16s; animation-delay: -9s, -6s; }
.w-blob.s4 { width: 46px;  height: 42px; right: 11%; top: 12%; background: #e6eee7; animation-duration: 20s, 13s; animation-delay: -12s, -2s; }
.w-blob.s5 { width: 30px;  height: 28px; left: 24%; top: 8%;  background: #5a4883; animation-duration: 16s, 11s; animation-delay: -3s, -7s; }
/* Cream band */
.w-blob.a1 { width: 70px;  height: 64px; left: 2%;  top: 62%; background: #3c5941; animation-duration: 22s, 15s; animation-delay: -7s, -3s; }
.w-blob.a2 { width: 36px;  height: 34px; left: 8%;  top: 18%; background: #7a1832; animation-duration: 17s, 12s; }
.w-blob.a3 { width: 96px;  height: 88px; right: 2%; top: 8%;  background: #716a8f; animation-duration: 25s, 17s; animation-delay: -11s, -8s; }
.w-blob.a4 { width: 44px;  height: 40px; right: 6%; top: 78%; background: #a84d24; animation-duration: 19s, 13s; animation-delay: -4s, -9s; }
.w-band-steps .w-band-inner, .w-band-about .w-band-inner { position: relative; z-index: 1; }

@media (max-width: 760px) {
  .w-band-inner { padding: 2.25rem 1.15rem; }
  #page-welcome .w-band-steps .w-steps { gap: 1.6rem; }
  /* Phones: just a couple of small blobs tucked into the band corners */
  .w-blob.s1 { width: 50px; height: 46px; left: -20px; top: 18px; }
  .w-blob.s3 { width: 56px; height: 52px; right: -22px; top: auto; bottom: 30px; }
  .w-blob.a3 { width: 52px; height: 48px; right: -22px; top: 10px; }
  .w-blob.a1 { width: 44px; height: 40px; left: -18px; top: auto; bottom: 20px; }
  .w-blob.s2, .w-blob.s4, .w-blob.s5, .w-blob.a2, .w-blob.a4 { display: none; }
}
@media (min-width: 761px) {
  .w-blob.s2 { left: 3%; top: 78%; }
  .w-blob.a2 { left: 3%; top: 8%; }
  .w-blob.b1 { width: 110px; height: 102px; }
  .w-blob.b3 { width: 84px;  height: 78px; }
  .w-blob.b5 { width: 120px; height: 110px; }
  .w-blob.b7 { width: 90px;  height: 84px; }
  .w-blob.b2 { width: 54px;  height: 50px; left: 14%; }
  .w-blob.b6 { width: 60px;  height: 56px; right: 16%; }
}

/* Home opening: bigger text throughout */
#page-welcome .w-band-hero .welcome-inner { max-width: 820px; }
#page-welcome .w-hero-block .w-kicker { font-size: 1.05rem; }
#page-welcome .w-hero-block .w-tagline { max-width: 680px; font-size: clamp(1.55rem, 2.9vw, 2.1rem); }
#page-welcome .w-hero-block .w-motto { font-size: 1.1rem; }
#page-welcome .w-hero-block .w-sub { max-width: 700px; margin-left: auto; margin-right: auto; font-size: clamp(1.2rem, 1.8vw, 1.35rem); }
#page-welcome .w-hero-block .w-for { max-width: 680px; font-size: clamp(1.08rem, 1.5vw, 1.18rem); }
#page-welcome .w-hero-block .w-cta { font-size: 1.15rem; padding: 1.05rem 2.6rem; }
#page-welcome .w-hero-block .w-time, #page-welcome .w-hero-block .w-restore { font-size: 1.02rem; }
@media (max-width: 480px) { #page-welcome .w-hero-block .w-motto { font-size: 1rem; letter-spacing: .05em; } }
#page-welcome .w-hero-block .w-kicker { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: .1em; margin-bottom: .4rem; }
@media (max-width: 480px) { #page-welcome .w-hero-block .w-kicker { letter-spacing: .06em; } }

/* One small, still banksia in the corner of the top band */
.w-banksia { position: absolute; z-index: 0; left: 4%; bottom: 0; width: auto; height: 120px; pointer-events: none; }
@media (min-width: 761px) { .w-blob.b3 { top: 44%; } }
@media (max-width: 760px) {
  .w-banksia { left: 10px; height: 64px; }
  .w-blob.b3 { display: none; }
}

/* ── Home: moving dots of colour (they drift, sway and gently change shape) ── */
.w-blob {
  animation-name: w-leaf-drift, w-blob-morph !important;
  animation-timing-function: ease-in-out !important; animation-iteration-count: infinite !important; animation-direction: alternate !important;
}
@keyframes w-leaf-drift {
  0%   { transform: translate(0, 0) rotate(var(--r, -20deg)); }
  50%  { transform: translate(14px, -18px) rotate(calc(var(--r, -20deg) + 18deg)); }
  100% { transform: translate(-10px, 12px) rotate(calc(var(--r, -20deg) - 14deg)); }
}
.w-blob.b1 { --r: -30deg; } .w-blob.b2 { --r: 25deg; } .w-blob.b3 { --r: 40deg; } .w-blob.b4 { --r: -50deg; }
.w-blob.b5 { --r: 30deg; } .w-blob.b6 { --r: -35deg; } .w-blob.b7 { --r: 20deg; } .w-blob.b8 { --r: -60deg; }
.w-blob.s1 { --r: -25deg; } .w-blob.s2 { --r: 45deg; } .w-blob.s3 { --r: 30deg; } .w-blob.s4 { --r: -40deg; } .w-blob.s5 { --r: 60deg; }
.w-blob.a1 { --r: 35deg; } .w-blob.a2 { --r: -45deg; } .w-blob.a3 { --r: -20deg; } .w-blob.a4 { --r: 50deg; }
@media (prefers-reduced-motion: reduce) { .w-blob { animation: none !important; transform: rotate(var(--r, -20deg)); } }
body.a11y-motion .w-blob { animation: none !important; transform: rotate(var(--r, -20deg)); }
@media (max-width: 760px) {
  .w-blob.b1 { left: 8px; top: 10px; height: 54px; width: 54px !important; }
  .w-blob.b5 { right: 10px; left: auto; top: 14px; height: 58px; width: 58px !important; }
  .w-blob.b7 { right: 12px; left: auto; bottom: 8px; height: 50px; width: 50px !important; }
  .w-blob.s1 { left: 8px; top: 14px; height: 46px; width: 46px !important; }
  .w-blob.s3 { right: 10px; left: auto; bottom: 20px; height: 52px; width: 52px !important; }
  .w-blob.a3 { right: 10px; left: auto; top: 10px; height: 48px; width: 48px !important; }
  .w-blob.a1 { left: 8px; bottom: 12px; height: 42px; width: 42px !important; }
}

/* Small still banksia beside the ro:bur logo, top left on every page */
.nav-logo { display: flex; align-items: center; gap: .45rem; }
.nav-banksia { height: 34px; width: auto; flex: none; }

/* Third band: heading, then the text underneath, in one column */
#page-welcome .w-band-about .w-about-grid { display: block; max-width: 780px; }
#page-welcome .w-band-about .w-about-head { margin-bottom: 1.1rem; }
#page-welcome .w-band-about .atb-heading { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
/* A large banksia in outline, like a faint imprint, on the right of the band */
.w-banksia-outline { position: absolute; z-index: 0; right: 5%; bottom: -10px; height: 340px; width: auto; color: #5a4883; opacity: .22; pointer-events: none; }
@media (max-width: 1100px) { .w-banksia-outline { right: 1%; height: 260px; opacity: .14; } }
@media (max-width: 760px) { .w-banksia-outline { right: -30px; height: 200px; opacity: .1; } }
.nav-banksia { height: 40px; }
@media (max-width: 760px) { .nav-banksia { height: 34px; } }

/* ── ro:bur logo (green box) in the top bar and the opening ── */
.nav-robur-logo { height: 40px; width: auto; flex: none; display: block; }
.w-robur-logo { display: block; height: clamp(110px, 14vw, 150px); width: auto; margin: .4rem auto .2rem; }
/* Leaves: five in the opening, greens, teal and purple only (no pink) */
.w-blob.b3 { background: #3c5941; }
.w-blob.s2 { background: #3c5941; }
@media (max-width: 760px) { .nav-robur-logo { height: 34px; } .w-robur-logo { height: 96px; } }

/* ── ro:bur logo palette: purple and green, with orange, burgundy and pink accents ── */
.w-blob.b6 { background: #c4602d; }
.w-blob.b3 { background: #7a1832; }
.w-blob.s1 { background: #c4602d; }
.w-blob.s5 { background: #f7f3ea; }
.w-blob.s3 { background: #5f7d63; }
.w-blob.s2 { background: #b52f57; }

/* Leaves: a wider, noticeable drift and sway (still calm) */
@keyframes w-leaf-drift {
  0%   { transform: translate(0, 0) rotate(var(--r, -20deg)); }
  25%  { transform: translate(22px, -26px) rotate(calc(var(--r, -20deg) + 22deg)); }
  50%  { transform: translate(40px, -6px) rotate(calc(var(--r, -20deg) + 6deg)); }
  75%  { transform: translate(14px, 22px) rotate(calc(var(--r, -20deg) - 18deg)); }
  100% { transform: translate(-18px, 8px) rotate(calc(var(--r, -20deg) - 6deg)); }
}
.w-blob { animation-duration: 11s !important; }
.w-blob.b3, .w-blob.b6, .w-blob.s2, .w-blob.s4 { animation-duration: 14s !important; }
.w-blob.b5, .w-blob.s3 { animation-duration: 9s !important; }
@media (max-width: 760px) {
  @keyframes w-leaf-drift-sm {
    0% { transform: translate(0, 0) rotate(var(--r, -20deg)); }
    50% { transform: translate(8px, -10px) rotate(calc(var(--r, -20deg) + 18deg)); }
    100% { transform: translate(-6px, 6px) rotate(calc(var(--r, -20deg) - 12deg)); }
  }
  .w-blob { animation-name: w-leaf-drift-sm, w-blob-morph !important; }
}

/* Simpler opening: logo, its name, tagline, one paragraph, button */
#page-welcome .w-hero-block .w-wordmark .w-kicker { display: block; margin: .7rem 0 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: .1em; }
#page-welcome .w-hero-block .w-tagline { margin-top: .9rem; margin-bottom: .9rem; }
#page-welcome .w-hero-block .w-sub { margin-bottom: 1.4rem; }

/* Third band: short points instead of long paragraphs */
.w-points { list-style: none; margin: .4rem 0 1.25rem; padding: 0; display: grid; gap: .7rem; }
.w-points li { position: relative; padding-left: 1.6rem; font-size: 1.08rem; line-height: 1.55; color: #3a3640; }
.w-points li::before { content: ''; position: absolute; left: 0; top: .5em; width: .65rem; height: .65rem; background: #3c5941; }
.w-points strong { color: #2e2a33; }
.site-foot-motto { margin: 0 0 .5rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #3c5941; }
/* Leaves: green, purple and orange only */
.w-blob.b3 { background: #3c5941; }
.w-blob.s2 { background: #c4602d; }
/* Opening heading: the product name (the logo stays top left) */
.w-title { margin: .5rem 0 0; font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 400; line-height: 1.1; color: #5a4883; }

/* ── Middle band in the logo green; dots in purple, orange and cream on it ── */
.w-band-steps { background: #3c5941; }
.w-blob.s1 { background: #c4602d; } .w-blob.s2 { background: #8a7fb0; } .w-blob.s3 { background: #5a4883; }
.w-blob.s4 { background: #f7f3ea; } .w-blob.s5 { background: #c4602d; }
.w-cta.w-cta-light { color: #3c5941; }
@media (min-width: 761px) { .w-blob.s3 { width: 64px; height: 60px; right: 2%; top: 74%; } }
/* Start button lives in the green band */
.w-band-steps .w-time { margin: .75rem 0 0; font-size: 1.02rem; color: #e6eee7; }
.w-band-steps .w-restore { margin-top: .4rem; font-size: 1rem; color: #e6eee7; }
.w-band-steps .w-restore .link-btn { color: #fff; font-weight: 700; }
.w-band-steps .w-cta.w-cta-light { font-size: 1.15rem; padding: 1.05rem 2.6rem; }
#page-welcome .w-hero-block .w-sub { margin-bottom: 0; }
/* Fewer dots: three in each band */
.w-blob.b3, .w-blob.b7, .w-blob.s2, .w-blob.s5 { display: none; }

/* Motto underneath the logo, top left */
.nav-logo { flex-direction: column; align-items: flex-start; gap: .25rem; }
.nav-logo-row { display: flex; align-items: center; gap: .45rem; }
.nav-motto { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3c5941; white-space: nowrap; line-height: 1; }
@media (max-width: 760px) { .nav-motto { font-size: .62rem; letter-spacing: .05em; } }
/* Motto stacked on two lines under the logo */
.nav-motto { display: flex; flex-direction: column; gap: .18rem; font-size: .7rem; }
@media (max-width: 760px) { .nav-motto { font-size: .62rem; } }
/* Top bar: logo and stacked motto, a little bigger, without the banksia */
.nav-robur-logo { height: 48px; }
.nav-motto { font-size: .8rem; gap: .2rem; }
@media (max-width: 760px) { .nav-robur-logo { height: 40px; } .nav-motto { font-size: .7rem; } }
/* Small banksia back in the bottom-left corner of the top band */
.w-banksia { left: 4%; bottom: 0; height: 110px; }
@media (max-width: 760px) { .w-banksia { left: 10px; height: 60px; } }

/* ── Passport page: "What comes next" as a green band, like the home page ── */
.pp-next-band { margin: 2.25rem 0 0; padding: 2.75rem 2rem 2.5rem; background: #3c5941; color: #f7f3ea; text-align: center; }
.pp-next-kicker { margin: 0 0 .5rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e6eee7; }
.pp-next-title { margin: 0 0 .6rem; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 400; line-height: 1.3; color: #fff; }
.pp-next-intro { max-width: 620px; margin: 0 auto 2rem; font-size: 1.05rem; line-height: 1.6; color: #f7f3ea; }
.pp-next-intro .hd-who { color: inherit; }
.pp-next-steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.pp-next-steps li { display: block; }
.pp-next-n { display: block; margin-bottom: .35rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .12em; color: #e6eee7; }
.pp-next-word { display: block; margin-bottom: .5rem; font-size: clamp(2rem, 3.4vw, 2.5rem); font-weight: 300; line-height: 1.1; color: #fff; }
.pp-next-text { display: block; max-width: 290px; margin: 0 auto; font-size: var(--text-base); line-height: 1.6; color: #f7f3ea; }
.pp-next-btn.w-cta { background: #f7f3ea; color: #3c5941; box-shadow: none; font-size: 1.1rem; }
.pp-next-btn.w-cta:hover { background: #fff; }
@media (max-width: 760px) {
  .pp-next-band { padding: 2.25rem 1.15rem 2rem; }
  .pp-next-steps { grid-template-columns: 1fr; gap: 1.6rem; }
}

/* Small banksias sprinkled through the sections (still, decorative) */
.w-banksia.bk-steps { left: 3%; right: auto; bottom: 0; height: 96px; }
.w-banksia.bk-about { left: 4%; right: auto; bottom: 0; height: 96px; }
.pp-next-band { position: relative; overflow: hidden; }
.pp-next-band > *:not(.w-banksia) { position: relative; z-index: 1; }
.w-banksia.bk-next { position: absolute; left: auto; right: 3%; bottom: 0; height: 90px; z-index: 0; }
/* On the green bands: cream leaves and stem so they show */
.w-banksia.on-green > g:first-of-type { fill: #e6eee7; }
.w-banksia.on-green > path { stroke: #e6eee7; }
@media (max-width: 760px) {
  .w-banksia.bk-steps, .w-banksia.bk-about { left: 8px; height: 56px; }
  .w-banksia.bk-next { right: 8px; height: 52px; }
}

/* ── Small still banksias in a few spots through the app (decorative only) ── */
.wp-summary, .pp-doc-foot, .plan, .wp-intro, .sr-hero { position: relative; }
.wp-summary::after, .pp-doc-foot::after, .plan::after, .wp-intro::after, .sr-hero::after {
  content: ''; position: absolute; width: 26px; height: 48px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 112%22%3E%3Cg fill=%22%233c5941%22%3E%3Cpath d=%22M30.0 96.0 L25.0 90.0 L23.5 95.0 L20.0 86.0 L18.5 91.0 L15.0 82.0 L13.5 87.0 L10.0 78.0 L8.5 83.0 L5.0 74.0 L3.5 79.0 L0.0 72.0 L3.0 80.6 L1.0 84.6 L8.0 85.2 L6.0 89.2 L13.0 89.8 L11.0 93.8 L18.0 94.4 L16.0 98.4 L23.0 99.0 L21.0 103.0 Z%22/%3E%3Cpath d=%22M30.0 96.0 L35.0 90.0 L36.5 95.0 L40.0 86.0 L41.5 91.0 L45.0 82.0 L46.5 87.0 L50.0 78.0 L51.5 83.0 L55.0 74.0 L56.5 79.0 L60.0 72.0 L57.0 80.6 L59.0 84.6 L52.0 85.2 L54.0 89.2 L47.0 89.8 L49.0 93.8 L42.0 94.4 L44.0 98.4 L37.0 99.0 L39.0 103.0 Z%22/%3E%3C/g%3E%3Cpath d=%22M30 74V110%22 stroke=%22%233c5941%22 stroke-width=%223%22 stroke-linecap=%22round%22 fill=%22none%22/%3E%3Crect x=%2217%22 y=%228%22 width=%2226%22 height=%2270%22 rx=%2213%22 fill=%22%235a4883%22/%3E%3Cg stroke=%22%23f7f3ea%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 fill=%22none%22%3E%3Cpath d=%22M21 16h3%22/%3E%3Cpath d=%22M27 16h3%22/%3E%3Cpath d=%22M33 16h3%22/%3E%3Cpath d=%22M39 16h3%22/%3E%3Cpath d=%22M24 22h3%22/%3E%3Cpath d=%22M30 22h3%22/%3E%3Cpath d=%22M36 22h3%22/%3E%3Cpath d=%22M21 28h3%22/%3E%3Cpath d=%22M27 28h3%22/%3E%3Cpath d=%22M33 28h3%22/%3E%3Cpath d=%22M39 28h3%22/%3E%3Cpath d=%22M24 34h3%22/%3E%3Cpath d=%22M30 34h3%22/%3E%3Cpath d=%22M36 34h3%22/%3E%3Cpath d=%22M21 40h3%22/%3E%3Cpath d=%22M27 40h3%22/%3E%3Cpath d=%22M33 40h3%22/%3E%3Cpath d=%22M39 40h3%22/%3E%3Cpath d=%22M24 46h3%22/%3E%3Cpath d=%22M30 46h3%22/%3E%3Cpath d=%22M36 46h3%22/%3E%3Cpath d=%22M21 52h3%22/%3E%3Cpath d=%22M27 52h3%22/%3E%3Cpath d=%22M33 52h3%22/%3E%3Cpath d=%22M39 52h3%22/%3E%3Cpath d=%22M24 58h3%22/%3E%3Cpath d=%22M30 58h3%22/%3E%3Cpath d=%22M36 58h3%22/%3E%3Cpath d=%22M21 64h3%22/%3E%3Cpath d=%22M27 64h3%22/%3E%3Cpath d=%22M33 64h3%22/%3E%3Cpath d=%22M39 64h3%22/%3E%3Cpath d=%22M24 70h3%22/%3E%3Cpath d=%22M30 70h3%22/%3E%3Cpath d=%22M36 70h3%22/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-summary::after { right: 18px; bottom: 14px; transform: rotate(8deg); }
.pp-doc-foot::after { right: 16px; bottom: 12px; width: 22px; height: 41px; }
.plan::after { right: 4px; top: -6px; transform: rotate(-10deg); }
.wp-intro::after { right: 16px; bottom: 14px; width: 22px; height: 41px; transform: rotate(6deg); }
.sr-hero::after { right: 4%; bottom: 10px; width: 32px; height: 60px; transform: rotate(-6deg); }
.pp-doc-foot { padding-right: 48px; }
@media print { .wp-summary::after, .pp-doc-foot::after, .plan::after, .wp-intro::after, .sr-hero::after { display: none; } }

/* ── The research behind ro:bur ── */
.rs-key ul { list-style: none; padding: 0; }
.rs-key li { display: block; }
.rs-strength { display: inline-block; margin-right: .5rem; padding: .1rem .5rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .03em; color: #fff; }
.rs-moderate { background: #3c5941; }
.rs-emerging { background: #5a4883; }
.rs-theme { margin: .6rem 0; border: 1px solid var(--site-line); background: #fff; }
.rs-theme > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; cursor: pointer; font-weight: 700; color: #2e2a33; }
.rs-theme > summary .rs-strength { margin-right: 0; flex-shrink: 0; }
.rs-theme[open] > summary { border-bottom: 1px solid var(--site-line); }
.rs-sum { margin: .9rem 1rem; }
.rs-sources { margin: 0 1rem 1rem; padding-left: 1.4rem; display: grid; gap: .8rem; }
.rs-sources li { line-height: 1.5; }
.rs-sources a { color: #5a4883; }
.rs-meta { display: block; margin-top: .2rem; font-size: var(--text-sm); color: #55505c; }
.rs-finding { display: block; margin-top: .2rem; font-size: var(--text-sm); color: #3a3640; }
.rs-note { margin-top: 2rem; font-size: var(--text-sm); color: #55505c; }
.rs-key ul { display: grid; gap: .7rem; margin: .8rem 0; }
/* Question example: labelled, and in plain bold rather than italics (easier to read) */
.wp-q-need { font-style: normal; font-weight: 600; color: #4a3a6e; }
.wp-q-need-label { display: block; margin-bottom: .15rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3c5941; }
/* Answered question numbers are clickable */
.wp-rail-go { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.wp-rail-go:hover { transform: scale(1.12); }
.wp-rail-go:focus-visible { outline: 3px solid #5a4883; outline-offset: 2px; }

/* No italics anywhere: harder to read for many dyslexic readers. Emphasis uses weight instead. */
em, i, cite, dfn, var, address, blockquote, q { font-style: normal; }
em, i { font-weight: 600; }
/* Phones: keep the small banksias clear of the words */
@media (max-width: 760px) {
  .sr-hero { padding-right: 44px; }
  .sr-hero::after { right: 0; top: 6px; bottom: auto; width: 24px; height: 45px; }
  .wp-summary { padding-bottom: 3.2rem; }
  .wp-summary::after { bottom: 10px; }
  .wp-intro::after { display: none; }
  .plan::after { width: 20px; height: 37px; top: -10px; right: 0; }
}
@media (max-width: 760px) { .wp-summary::after { display: none; } .wp-summary { padding-bottom: revert; } }
/* The logo links back to the home page */
.nav-logo-link { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; text-decoration: none; color: inherit; }
.nav-logo-link:focus-visible { outline: 3px solid #5a4883; outline-offset: 4px; }
.nav-logo-link:hover .nav-robur-logo { opacity: .9; }

/* "How I like to work": choose-one answers */
.wp-opts-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wp-opt.c0, .wp-opt.c1, .wp-opt.c2 { border-color: #6b3a5e; background: rgba(107, 58, 94, .08); color: #4e2a45; }
@media (max-width: 640px) { .wp-opts-choice { grid-template-columns: 1fr; } }
.wp-pref-badge.wp-badge-style { background: #6b3a5e; color: #fff; }
/* Passport: work style sentences */
.pp-style { list-style: none; margin: .25rem 0 .9rem; padding: .8rem 1rem; display: grid; gap: .45rem; background: #f7f3ea; border-left: 3px solid #6b3a5e; }
.pp-style li { line-height: 1.5; }

/* Language and identity */
.pp-identity { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--site-line); }
.pp-identity-hint { margin: .2rem 0 .7rem; font-size: var(--text-sm); color: #55505c; }
.pp-id-groups { display: grid; gap: .5rem; margin-bottom: .8rem; }
.pp-id-group { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pp-id-name { min-width: 5.5rem; font-size: var(--text-sm); font-weight: 700; color: #3c5941; }
.pp-id-opt { padding: .45rem .8rem; border: 1px solid var(--site-line); background: #fff; color: #2e2a33; font: inherit; font-size: var(--text-sm); cursor: pointer; }
.pp-id-opt[aria-pressed="true"] { border-color: #5a4883; background: rgba(90, 72, 131, .1); color: #3f3260; font-weight: 700; box-shadow: inset 0 0 0 1px #5a4883; }
.pp-id-own-label { display: block; margin-bottom: .3rem; font-size: var(--text-sm); font-weight: 700; color: #3c5941; }
.pp-identity .form-input { width: 100%; max-width: 460px; }
.pp-aboutme { margin: 0 0 1.25rem; padding: .7rem 1rem; background: #f7f3ea; border-left: 3px solid #5a4883; font-size: 1.05rem; }
.pp-aboutme-label { display: block; font-size: var(--text-sm); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3c5941; }
.rs-cite { color: #2e2a33; }

/* Research opt-ins (results page and action plan) */
#wpResearch .ci-research { margin: 1.5rem 0; }
.ci-research-title { margin: 0 0 .7rem; font-size: var(--text-md); font-weight: 700; color: #3c5941; }
.ci-research .ci-research-opt + .ci-research-opt, .ci-research .ci-research-opt + .ci-contact-on { margin-top: .7rem; }
.ci-research > .ci-research-opt:nth-of-type(2), .ci-contact-on { margin-top: .75rem; }
.ci-contact-form { margin: .6rem 0 0 1.85rem; display: grid; gap: .4rem; max-width: 420px; }
.ci-contact-form label { font-size: var(--text-sm); font-weight: 700; }
.ci-contact-form .pp-add-btn { justify-self: start; }
.ci-contact-on { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .75rem 0 0; line-height: 1.5; }
.ci-contact-on .icon { color: #3c5941; }
.ci-research-fine { margin: .7rem 0 0; font-size: var(--text-sm); color: #55505c; }
.ci-contact-on { display: block; } .ci-contact-on .icon { margin-right: .35rem; } .ci-contact-on .link-btn { margin-left: .35rem; }
/* Situation first, then the solution */
.wp-q-need-first { margin: .2rem 0 1.1rem; padding: .75rem 1rem; background: #f7f3ea; border-left: 3px solid var(--cat, #5a4883); }

/* ── Passport preview header: matches the PDF cover ── */
.pp-doc-head { position: relative; overflow: hidden; background: #f7f3ea; border-bottom: 1px solid var(--site-line); color: #2e2a33; text-align: left; padding: 1.75rem 2.25rem 1.5rem; }
.pp-doc-head.is-branded { background: #f7f3ea; }
.pp-doc-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; margin-bottom: 1.6rem; }
.pp-doc-boxlogo { height: 52px; width: auto; display: block; }
.pp-doc-motto { display: flex; flex-direction: column; gap: .15rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3c5941; line-height: 1; }
.pp-doc-dots { position: absolute; top: 1.1rem; right: 1.6rem; width: 110px; height: 80px; }
.pp-doc-dots i { position: absolute; display: block; border-radius: 50%; }
.pp-doc-dots i:nth-child(1) { width: 52px; height: 48px; right: 0; top: 0; background: #5a4883; }
.pp-doc-dots i:nth-child(2) { width: 30px; height: 28px; right: 64px; top: 34px; background: #5f7d63; }
.pp-doc-dots i:nth-child(3) { width: 20px; height: 19px; right: 6px; top: 58px; background: #c4602d; }
.pp-doc-head .pp-doc-kicker { color: #3c5941; margin-bottom: .35rem; }
.pp-doc-head h2 { color: #5a4883; font-weight: 400; margin-bottom: .35rem; }
.pp-doc-head .pp-doc-meta { color: #55505c; }
.pp-doc-head .pp-doc-logo { display: none; }
@media print { .pp-doc-dots { display: none; } }
@media (max-width: 640px) {
  .pp-doc-head { padding: 1.25rem 1.1rem 1.2rem; }
  .pp-doc-boxlogo { height: 42px; }
  .pp-doc-dots { transform: scale(.7); transform-origin: top right; right: .8rem; }
}

/* Passport page 1: note for managers */
.pp-reader { margin: 0 0 1.4rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--site-line); border-left: 4px solid #3c5941; }
.pp-reader-title { margin: 0 0 .4rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3c5941; }
.pp-reader p { margin: 0 0 .5rem; line-height: 1.55; }
.pp-reader p:last-child { margin-bottom: 0; }

/* Darker supporting text inside the white question cards, easier to read than light grey */
.wp-q-card .wp-q-sub,
.wp-q-card .wp-opt-sub,
.wp-q-card .wa-other-hint,
.wp-q-card .wp-more summary,
.wp-q-card .wp-more p {
  color: #3d3943;
}

/* "None of these apply to me" sits with the other tick boxes, set slightly apart */
.wa-item.wa-none {
  margin-top: .35rem;
}

.wa-other[hidden] {
  display: none;
}

/* ── Answer colours, lowest to highest: Not for me, Maybe, Yes this would help, Already in use ── */
.ans-no { --ans: #6b6672; }
.ans-unsure { --ans: #a84d24; }
.ans-yes { --ans: #3c5941; }
.ans-already { --ans: #5a4883; }
.wp-opt[class*="ans-"] .icon { color: var(--ans); width: 1.3em; height: 1.3em; }
.wp-opt.ans-no.no, .wp-opt.ans-unsure.unsure, .wp-opt.ans-yes.yes, .wp-opt.ans-already.already {
  border-color: var(--ans);
  background: color-mix(in srgb, var(--ans) 10%, #fff);
  color: var(--ans);
}

/* ── How to answer: big heading, medium section headings, smaller body ── */
.wp-howto { gap: .9rem; max-width: 68ch; padding: 1.25rem 1.4rem; }
.wp-howto-lead { margin: 0; font-size: var(--text-md); line-height: 1.55; color: var(--site-ink); }
.wp-howto .wp-howto-h { margin: .5rem 0 0; font-size: var(--text-md); font-weight: 700; color: var(--p1); }
.wp-howto-steps { margin: 0; padding-left: 1.4rem; display: grid; gap: .45rem; font-size: var(--text-base); line-height: 1.5; color: var(--site-ink); }
.wp-howto-list { gap: .75rem; }
.wp-howto-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: var(--text-base); color: var(--site-ink); }
.wp-howto-ico {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border: 2px solid var(--ans);
  background: color-mix(in srgb, var(--ans) 10%, #fff); color: var(--ans);
}
.wp-howto-ico .icon { width: 1.5rem; height: 1.5rem; margin: 0; }
.wp-howto-list .wp-howto-opt { display: block; color: var(--ans); font-size: var(--text-base); }
.wp-howto-small { margin: 0; font-size: var(--text-sm); color: #3d3943; line-height: 1.5; }
.wp-howto-note { padding: .9rem 1.1rem; background: #f7f3ea; border-left: 4px solid #a84d24; }
.wp-howto-note .wp-howto-h { margin: 0 0 .35rem; color: #a84d24; }
.wp-howto-note p { margin: 0; font-size: var(--text-base); line-height: 1.55; color: var(--site-ink); }
.is-howto .wp-q-text { font-size: var(--text-xl, 1.6rem); font-weight: 600; color: var(--p1); }

/* The How to answer page is long: no banksia, so it never sits over the Next button */
.is-howto .wp-intro::after { display: none; }

/* Anything marked hidden stays hidden, whatever display a class gives it */
[hidden] { display: none !important; }

/* Employee bundle: its own small section below the personal options */
.unlock-org { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--site-line); }
.unlock-org-h { margin: 0 0 .5rem; font-size: var(--text-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3c5941; }
.unlock-gst { font-size: var(--text-sm); font-weight: 600; }
.org-code-dialog h4 { margin: 1rem 0 .3rem; color: #3c5941; }
.org-code-dialog ol { margin: 0 0 .8rem; padding-left: 1.3rem; }
.org-code { margin: .6rem 0; padding: .7rem 1rem; font-size: 1.6rem; font-weight: 700; letter-spacing: .08em; text-align: center;
  border: 2px dashed #5a4883; color: #5a4883; background: #f5f2fa; user-select: all; }
#orgCodeCopy { margin-bottom: .9rem; }

/* Access code box on the payment screen */
.unlock-code { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--site-line); background: #fff; }
.unlock-code label { display: block; font-weight: 700; font-size: var(--text-sm); margin-bottom: .4rem; color: var(--site-ink); }
.unlock-code-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.unlock-code-row input { flex: 1 1 200px; text-transform: uppercase; letter-spacing: .04em; }
.unlock-code-msg { margin: .45rem 0 0; font-size: var(--text-sm); min-height: 1.2em; color: #3d3943; }
.unlock-code-msg.is-good { color: #3c5941; font-weight: 700; }
.unlock-code-msg.is-bad { color: #7a1832; font-weight: 700; }
