/* ==========================================================================
   Tanager / IGNITE+ design system  –  one stylesheet for every template
   Brand:   navy #002F5D (backgrounds) · orange #FF8200 (logo, borders, actions)
            teal #2FCED5 (tertiary)
   Co-brand: Tymax green #51CC4A (subtitles, gender data in infographics)
   Type:    Arial. Grey/black on light surfaces, white/light grey on navy.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy: #002f5d;
  --navy-deep: #002244;
  --navy-mid: #0b4380;
  --orange: #ff8200;
  --orange-dark: #d96d00;
  --orange-pale: #fff3e3;
  --teal: #2fced5;
  --teal-ink: #0b7c82; /* teal for text on light surfaces */
  --green: #51cc4a; /* Tymax green, use on navy */
  --green-ink: #277d22; /* Tymax green for text on light surfaces */
  --green-pale: #e9f8e8;

  --accent: var(--orange);
  --accent-dark: var(--orange-dark);

  --ink: #222222; /* body text on light */
  --grey: #555555; /* secondary text on light */
  --grey-soft: #5b6574;
  --line: #d5dbe3;
  --surface: #ffffff;
  --page: #f3f5f8;

  --on-navy: #ffffff;
  --on-navy-soft: rgba(255, 255, 255, 0.78);
  --on-navy-faint: rgba(255, 255, 255, 0.62);

  --radius: 6px;
  --radius-lg: 10px;
  --nav-h: 64px;
  --font: Arial, Helvetica, sans-serif;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
p {
  max-width: 70ch;
}
[style*="text-align: center"] > p,
.text-center > p {
  margin-left: auto;
  margin-right: auto;
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--navy);
}
button,
input,
select,
textarea {
  font-family: var(--font);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}
.app-nav :focus-visible,
.site-header :focus-visible,
.hero :focus-visible,
.home-hero :focus-visible,
.band-navy :focus-visible,
.training-section :focus-visible,
.site-footer :focus-visible,
.auth-head :focus-visible {
  outline-color: var(--teal);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Subtitle: where the Tymax green lives */
.subtitle {
  color: var(--green-ink);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}
.hero .subtitle,
.home-hero .subtitle,
.band-navy .subtitle,
.training-section .subtitle,
.auth-head .subtitle {
  color: var(--green);
}

/* ---------- 3. Buttons ---------- */
.btn,
.btn-primary,
.btn-secondary,
.btn-light,
.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #ff9a33;
  border-color: #ff9a33;
}
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}
.btn-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-light:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-sm {
  min-height: 36px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
}
button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- 4. Navigation ---------- */
/* App navigation (dashboard, assessment, report) */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
}
.app-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}
.nav-right {
  gap: 0.875rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.nav-link {
  color: var(--on-navy-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover {
  color: #fff;
}
.nav-link.is-active {
  color: #fff;
  border-bottom-color: var(--orange);
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.85rem;
}
.nav-user svg {
  width: 14px;
  height: 14px;
  fill: var(--on-navy-soft);
  flex-shrink: 0;
}
.nav-org {
  font-size: 0.8rem;
  color: var(--on-navy-faint);
}
.nav-logout {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
}
.nav-logout:hover {
  background: #fff;
  color: var(--navy);
}

/* Public header (landing page) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  position: relative;
}
.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle .icon-close {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- 5. Page heroes (app pages) ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.4rem;
}
.hero .subtitle {
  margin-bottom: 0.25rem;
}
.hero p.hero-note {
  color: var(--on-navy-soft);
  font-size: 0.9rem;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 0.875rem 1.1rem;
}
.stat-chip .stat-value {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--grey-soft);
}
.hero .section-label,
.training-section .section-label,
.stat-chip .section-label {
  color: var(--on-navy-soft) !important;
}
.stat-chip .section-label {
  margin-bottom: 0.4rem;
  display: block;
}

/* ---------- 6. Landing page ---------- */
.home-hero {
  background: var(--navy);
  color: #fff;
  padding: 4.5rem 0 5rem;
}
.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.home-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.home-hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.home-hero .lede {
  color: var(--on-navy-soft);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Maturity-stage infographic: Tanager + Tymax colours blended */
.ladder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.25rem;
}
.ladder h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.ladder .ladder-sub {
  color: var(--on-navy-soft);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
.ladder-bars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
  gap: 0.5rem;
  align-items: end;
  height: 190px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}
.ladder-bar {
  border-radius: 4px 4px 0 0;
  position: relative;
}
.ladder-bar:nth-child(1) {
  height: 24%;
  background: var(--orange);
}
.ladder-bar:nth-child(2) {
  height: 42%;
  background: #ffa94d;
}
.ladder-bar:nth-child(3) {
  height: 60%;
  background: var(--teal);
}
.ladder-bar:nth-child(4) {
  height: 80%;
  background: #1fa9b0;
}
.ladder-bar:nth-child(5) {
  height: 100%;
  background: var(--green);
}
.ladder-bar.is-you::after {
  content: "Example";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #fff;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.ladder-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.ladder-labels span {
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}
.ladder-labels small {
  display: block;
  color: var(--on-navy-faint);
  font-weight: 400;
  font-size: 0.7rem;
  margin-top: 2px;
}
.ladder-scores {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}
.score-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2.5rem;
  gap: 0.75rem;
  align-items: center;
  color: #fff;
  font-size: 0.85rem;
}
.score-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 99px;
}
.score-fill.is-gender {
  background: var(--green);
}
.score-fill.is-nutrition {
  background: var(--teal);
}
.score-row b {
  text-align: right;
}
.ladder-foot {
  color: var(--on-navy-faint);
  font-size: 0.75rem;
  margin-top: 1rem;
}

.band {
  padding: 4.5rem 0;
}
.band-white {
  background: #fff;
}
.band-navy {
  background: var(--navy);
  color: #fff;
}
.band-navy h2,
.band-navy h3 {
  color: #fff;
}
.section-head {
  max-width: 760px;
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.section-head p {
  color: var(--grey);
}
.band-navy .section-head p {
  color: var(--on-navy-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.split-col {
  border-left: 4px solid var(--orange);
  padding-left: 1.5rem;
}
.split-col h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.split-col .subtitle {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.split-col p {
  color: var(--grey);
  margin-bottom: 0.75rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pillar {
  padding: 0 2rem;
  border-left: 1px solid var(--line);
}
.pillar:first-child {
  padding-left: 0;
  border-left: 0;
}
.pillar svg {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  stroke: var(--orange);
}
.pillar h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.pillar p {
  color: var(--grey);
}

.steps {
  list-style: none;
  max-width: 760px;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.step-num {
  width: 44px;
  height: 44px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
}
.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}
.steps p {
  color: var(--grey);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.fact b {
  display: block;
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1;
}
.fact span {
  color: var(--grey);
  font-size: 0.9rem;
}
.callout-ref {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--orange-pale);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  max-width: 760px;
}

.cta-band {
  text-align: left;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
  max-width: 20ch;
}
.cta-band p {
  color: var(--on-navy-soft);
  margin-bottom: 1.75rem;
}

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  padding: 3rem 0;
  border-top: 3px solid var(--orange);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}
.footer-inner p {
  font-size: 0.85rem;
  margin-top: 0.75rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.88rem;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.4rem 0;
  display: inline-block;
}
.site-footer a:hover {
  color: var(--teal);
}

/* ---------- 7. Auth pages (login, signup, institution type) ---------- */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--page);
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.auth-head {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.auth-head h1 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.auth-head .subtitle {
  font-size: 0.88rem;
}
.auth-head .brand-logo {
  height: 34px;
}
.auth-head a.home-link {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.auth-main {
  padding: 1.75rem;
}
.auth-foot {
  padding: 1rem 1.75rem;
  background: var(--page);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  color: var(--grey);
}
.auth-alt {
  text-align: center;
  margin-top: 1.25rem;
  color: var(--grey);
  font-size: 0.92rem;
}
.auth-alt a {
  font-weight: 700;
}

.field {
  margin-bottom: 1rem;
}
label,
.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="password"],
select,
.field-input,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #aeb7c2;
  border-radius: var(--radius);
}
input::placeholder,
textarea::placeholder {
  color: #6b7380;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(47, 206, 213, 0.45);
}

.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
  font-size: 0.9rem;
}
.message.error {
  background: #fdecec;
  color: #8f1f1f;
  border-left: 4px solid #c0392b;
}
.message.success {
  background: var(--green-pale);
  color: #1d5e1a;
  border-left: 4px solid var(--green-ink);
}

/* ---------- 8. Assessment ---------- */
.progress-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: calc(var(--nav-h) + 3px);
  z-index: 100;
}
.progress-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-strip-inner > span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--grey);
  white-space: nowrap;
}
.progress-track {
  flex: 1;
  height: 8px;
  background: #e6eaf0;
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 99px;
  transition: width 0.3s;
}
#progress-text {
  color: var(--navy);
  min-width: 2.5rem;
  text-align: right;
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.tip {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--grey);
  font-size: 0.9rem;
  max-width: none;
}
.tip strong {
  color: var(--navy);
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.domain-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.domain-header,
.sub-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.domain-header {
  padding: 1.1rem 1.5rem;
}
.domain-header:hover,
.domain-header.open {
  background: #f7f9fb;
}
.domain-header.open {
  border-bottom: 3px solid var(--orange);
}
.domain-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.domain-hint {
  font-size: 0.78rem;
  color: var(--grey-soft);
  margin-top: 1px;
}
.domain-number {
  width: 40px;
  height: 40px;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.domain-badge {
  display: none;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--green-pale);
  color: #1d5e1a;
  padding: 3px 10px;
  border-radius: 99px;
}
.domain-body {
  display: none;
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
}
.domain-body.open {
  display: flex;
}

.upload-zone {
  background: #f7fbfc;
  border: 1.5px dashed var(--teal-ink);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.upload-zone:hover {
  background: #eef9fa;
}
.upload-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.upload-zone p {
  font-size: 0.85rem;
  max-width: none;
}
.upload-zone .upload-title {
  font-weight: 700;
  color: var(--ink);
}
.upload-zone .upload-note {
  color: var(--grey-soft);
  font-size: 0.78rem;
  margin-top: 2px;
}
input[type="file"] {
  margin-top: 0.5rem;
  display: block;
  font-size: 0.82rem;
  color: var(--grey);
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 10px;
}
input[type="file"]::file-selector-button:hover {
  background: var(--navy-mid);
}

.sub-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.sub-header {
  padding: 0.9rem 1.1rem;
  background: #fafbfc;
}
.sub-header:hover {
  background: #f1f4f7;
}
.sub-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.sub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aeb7c2;
  flex-shrink: 0;
}
.sub-dot.is-active {
  background: var(--green-ink);
}
.sub-body {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
  border-top: 1px solid var(--line);
}
.sub-body.open {
  display: flex;
}
.q-card {
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.q-card label {
  font-size: 0.88rem;
  margin-bottom: 0;
}
.q-card textarea {
  margin-top: 0.6rem;
  resize: vertical;
  font-size: 0.9rem;
}

.chevron {
  width: 20px;
  height: 20px;
  color: var(--grey-soft);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.chevron.open {
  transform: rotate(180deg);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.submit-btn:hover:not(:disabled) {
  background: #ff9a33;
  border-color: #ff9a33;
}
.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey-soft);
  margin-top: 0.75rem;
  max-width: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 47, 93, 0.25);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
.modal-header .spinner,
.btn-navy .spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

/* Overlay + modal (assessment success, dashboard dialogs) */
.overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 22, 44, 0.78);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.overlay {
  display: none;
}
.modal-backdrop {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box,
.dialog {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-top: 4px solid var(--orange);
}
.modal-box {
  transform: translateY(20px);
  transition: transform 0.25s;
  max-height: 94vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal-box {
  transform: translateY(0);
}
.dialog {
  max-width: 460px;
  padding: 2.25rem 2rem;
  text-align: center;
}
.dialog h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.dialog p {
  margin: 0 auto 1.25rem;
  color: var(--grey);
  font-size: 0.9rem;
}
.modal-header {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 1.75rem 2rem 1.25rem;
}
.modal-header h2,
.modal-header h3 {
  color: #fff;
}
.modal-body {
  padding: 1.5rem 2rem;
}
.success-screen {
  display: none;
  text-align: center;
  padding: 2.5rem 2rem;
}
.success-icon,
.check-circle {
  width: 72px;
  height: 72px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.check-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: checkDraw 0.5s 0.2s ease forwards;
}
@keyframes checkDraw {
  to {
    stroke-dashoffset: 0;
  }
}
.status-list {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.status-item.is-pending {
  color: var(--grey-soft);
  font-weight: 400;
}
.status-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #dfe4ea;
}
.status-dot.is-done {
  background: var(--green-ink);
}
.status-dot.is-busy {
  background: var(--navy);
}
.status-dot.is-busy::after {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- 9. Dashboard ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}
.card:hover {
  border-color: var(--navy);
}

.ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}
.ring-wrap svg {
  transform: rotate(-90deg);
}
.ring-track {
  fill: none;
  stroke: #e6eaf0;
  stroke-width: 8;
}
.ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}
.stage-nascent {
  background: #fdecec;
  color: #b3261e;
}
.stage-emergent {
  background: var(--orange-pale);
  color: #a85200;
}
.stage-expanding {
  background: #fff6d6;
  color: #7a5a00;
}
.stage-advanced {
  background: #e1f6f7;
  color: #0b6a70;
}
.stage-institutionalized {
  background: var(--green-pale);
  color: #1d5e1a;
}

.bar-track {
  height: 6px;
  background: #e6eaf0;
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-group {
  display: flex;
  gap: 3px;
  background: #e6eaf0;
  padding: 4px;
  border-radius: var(--radius);
}
.tab-btn {
  padding: 7px 18px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--grey);
  cursor: pointer;
  border: 0;
  background: none;
}
.tab-btn.active {
  background: var(--navy);
  color: #fff;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.skeleton {
  background: linear-gradient(90deg, #eceff3 25%, #dde2e8 50%, #eceff3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

.chart-wrap {
  position: relative;
  height: 200px;
}
.guide-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.35rem 0;
}
.guide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.training-section {
  background: var(--navy);
  padding: 4rem 0;
  border-top: 4px solid var(--orange);
}
.module-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.module-card:hover {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
}
.module-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1.5px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}
.enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.enroll-btn:hover {
  background: #ff9a33;
}

.refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  padding: 4px 10px 4px 6px;
  font-size: 0.75rem;
  color: var(--on-navy-soft);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.refresh-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.refresh-ring-svg {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}
.refresh-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2.5;
}
.refresh-ring-arc {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}
.refresh-pill.refreshing .refresh-ring-arc {
  animation: spin 0.7s linear infinite;
  stroke-dashoffset: 30;
}

@keyframes scanline {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.scoring-banner {
  background: var(--orange-pale);
  border-bottom: 1px solid #ffd7a3;
  padding: 8px 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  color: #7a3f00;
}
.scoring-banner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 130, 0, 0.16),
    transparent
  );
  animation: scanline 2.2s ease-in-out infinite;
}
.scoring-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulseGlow 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.btn-locked-wrap {
  position: relative;
  flex: 1;
}
.btn-locked {
  width: 100%;
  padding: 8px;
  background: #eef1f4;
  border: 1.5px dashed #aeb7c2;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--grey-soft);
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  user-select: none;
}
.btn-locked-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  padding: 8px 11px;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.18s,
    transform 0.18s;
  z-index: 10;
  text-align: center;
  max-width: 200px;
  width: max-content;
}
.btn-locked-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy-deep);
}
.btn-locked-wrap:hover .btn-locked-tooltip,
.btn-locked-wrap:focus-within .btn-locked-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes flashFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#refresh-flash {
  position: fixed;
  top: 76px;
  right: 1.5rem;
  background: var(--navy-deep);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
  display: none;
  align-items: center;
  gap: 7px;
  z-index: 300;
  pointer-events: none;
}
#refresh-flash.show {
  display: flex;
  animation: flashFade 2s ease 0.5s forwards;
}

.dash-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.875rem;
  margin-top: 1.75rem;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.side-promo {
  background: var(--navy);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--orange);
  padding: 1.5rem;
}
.side-promo h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.side-promo p {
  color: var(--on-navy-soft);
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

/* ---------- 10. Report ---------- */
.report-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.report-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.report-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.report-meta small {
  display: block;
  color: var(--grey-soft);
  font-size: 0.78rem;
}
.report-meta b {
  color: var(--ink);
}
.pill-done {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--green-pale);
  color: #1d5e1a;
}
.report-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.report-content p,
.report-content li {
  color: var(--ink);
  line-height: 1.75;
  max-width: 75ch;
}
.report-content h1 {
  font-size: 1.8rem;
  margin-top: 0.75rem;
}
.report-content h2 {
  font-size: 1.35rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--orange);
  margin-top: 1.5rem;
}
.report-content h3 {
  font-size: 1.1rem;
  margin-top: 0.75rem;
  color: var(--navy);
}
.report-content ul,
.report-content ol {
  padding-left: 1.5rem;
}
.report-content li {
  margin-bottom: 0.4rem;
}
.report-content strong {
  color: var(--navy);
}
.report-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}
.report-content th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 0.6rem 0.8rem;
}
.report-content td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
.callout {
  background: var(--page);
  border-left: 4px solid var(--navy);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.insight {
  background: var(--green-pale);
  border-left: 4px solid var(--green-ink);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #1d5e1a;
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1000px) {
  .dash-grid,
  #main-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 900px) {
  .container {
    padding: 0 1.5rem;
  }
  .home-hero {
    padding: 3rem 0 3.5rem;
  }
  .home-hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pillar {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .pillar:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-header .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -1.5rem;
    right: -1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--navy);
    border-bottom: 3px solid var(--orange);
  }
  .site-header .nav-links.open {
    display: flex;
  }
  .site-header .nav-links .nav-link {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .band {
    padding: 3rem 0;
  }
}
@media (max-width: 720px) {
  .nav-user,
  .nav-org {
    display: none;
  }
  .app-nav-inner {
    padding: 0 1rem;
  }
  .nav-left {
    gap: 1rem;
  }
  .brand-logo {
    height: 32px;
  }
  .progress-strip-inner,
  .page-main,
  .wrap,
  .dash-grid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .report-card {
    padding: 1.25rem;
  }
  .modal-header,
  .modal-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .upload-zone {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .score-row {
    grid-template-columns: 6rem 1fr 2.2rem;
  }
  .ladder {
    padding: 1.25rem 1rem 1rem;
  }
  .ladder-labels span {
    font-size: 0.6rem;
  }
  .ladder-bars,
  .ladder-labels {
    gap: 0.3rem;
  }
  .steps li {
    grid-template-columns: 44px 1fr;
    gap: 1rem;
  }
  .footer-inner {
    flex-direction: column;
  }
  .auth-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .app-nav-inner {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .nav-left {
    gap: 0.75rem;
  }
  .nav-right {
    gap: 0.5rem;
  }
  .brand-logo {
    height: 26px;
    flex-shrink: 0;
  }
  .nav-link {
    font-size: 0.8rem;
  }
  .nav-logout {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
  #refresh-countdown {
    display: none;
  }
  .refresh-pill {
    padding: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
