:root {
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-soft: #eef5f2;
  --ink: #18231f;
  --muted: #64716c;
  --line: #dce5df;
  --green: #2f7d5c;
  --green-dark: #1f5e46;
  --coral: #e26450;
  --mustard: #d49a28;
  --blue: #3178b9;
  --violet: #7a5aa8;
  --eu-blue: #003399;
  --eu-blue-dark: #0d1b3e;
  --eu-yellow: #ffcc00;
  --shadow: 0 20px 60px rgba(29, 48, 41, 0.12);
  --shadow-card: 0 18px 48px rgba(29, 48, 41, 0.1);
  --shadow-hover: 0 24px 70px rgba(29, 48, 41, 0.16);
  --radius: 8px;
  --sidebar: 292px;
  --active-role: var(--green);
  --active-role-soft: #dff4e8;
  --active-role-mid: #9fd8b7;
  --active-role-dark: #173d2f;
  --theme-bg-start: #fbfcf8;
  --theme-bg-end: #eef5f0;
  --theme-glow: rgba(47, 125, 92, 0.32);
  --theme-panel: rgba(255, 255, 255, 0.82);
  --theme-panel-strong: #ffffff;
  --theme-line: #d5e3db;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 51, 153, 0.13), transparent 32rem),
    radial-gradient(circle at 100% 10%, rgba(255, 204, 0, 0.14), transparent 28rem),
    linear-gradient(180deg, #f8fbf8 0%, var(--theme-bg-end) 44%, #f3f7f4 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.role-mentor {
  --active-role: var(--green);
  --active-role-soft: #dff4e8;
  --active-role-mid: #9fd8b7;
  --active-role-dark: #173d2f;
  --theme-bg-start: #fbfcf8;
  --theme-bg-end: #edf6f1;
  --theme-glow: rgba(47, 125, 92, 0.34);
  --theme-panel: rgba(255, 255, 255, 0.84);
  --theme-panel-strong: #ffffff;
  --theme-line: #d5e4db;
}

body.role-teacher {
  --active-role: var(--blue);
  --active-role-soft: #dcebff;
  --active-role-mid: #9bc7ef;
  --active-role-dark: #173f65;
  --theme-bg-start: #fbfdff;
  --theme-bg-end: #eaf3fb;
  --theme-glow: rgba(49, 120, 185, 0.34);
  --theme-panel: rgba(255, 255, 255, 0.86);
  --theme-panel-strong: #ffffff;
  --theme-line: #d2e2ee;
}

body.role-director {
  --active-role: #6f5820;
  --active-role-soft: #f3e6bd;
  --active-role-mid: #dbc06a;
  --active-role-dark: #2f2d28;
  --theme-bg-start: #fffdf7;
  --theme-bg-end: #f1ead6;
  --theme-glow: rgba(111, 88, 32, 0.34);
  --theme-panel: rgba(255, 255, 255, 0.88);
  --theme-panel-strong: #ffffff;
  --theme-line: #e3d6ad;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-right: 1px solid color-mix(in srgb, var(--eu-blue) 16%, var(--theme-line));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: 12px 0 42px rgba(13, 27, 62, 0.08);
  z-index: 20;
}

.project-logo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
}

.project-logo-row img {
  width: 100%;
  height: 42px;
  object-fit: contain;
}

.project-logo-row img:last-child {
  grid-column: 1 / -1;
  height: 48px;
  padding: 6px;
  border-radius: 6px;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--active-role);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #3e4c46;
}

.nav-link svg,
.mobile-nav svg,
.icon-button svg,
.ghost-button svg,
button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-link:hover,
.nav-link.active {
  background: var(--active-role-soft);
  color: var(--active-role);
}

.sidebar-panel {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--active-role);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.role-switch,
.view-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--active-role-soft) 72%, #ffffff);
}

.role-switch {
  grid-template-columns: repeat(3, 1fr);
}

.view-toggle {
  grid-template-columns: repeat(3, 1fr);
}

.role-option,
.view-button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.role-option.active,
.view-button.active {
  background: var(--surface);
  color: var(--active-role);
  box-shadow: 0 8px 22px rgba(29, 48, 41, 0.09);
}

main {
  min-width: 0;
  overflow-x: hidden;
  padding: 0 36px 64px;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  background: color-mix(in srgb, var(--theme-bg-end) 80%, rgba(255, 255, 255, 0.88));
  backdrop-filter: blur(18px);
  z-index: 10;
}

.topbar .menu-toggle {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 560px;
  padding: 0 14px;
  min-height: 46px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.role-status {
  display: grid;
  align-content: center;
  min-height: 46px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--active-role) 36%, var(--line));
  border-radius: var(--radius);
  background: var(--active-role-soft);
}

.role-status span,
.zone-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.role-status strong {
  color: var(--active-role);
  font-size: 0.92rem;
  line-height: 1.15;
}

.section {
  max-width: 1180px;
  margin: 0 auto 34px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--eu-blue) 10%, var(--theme-line));
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 38px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 204, 0, 0.28), transparent 18rem),
    linear-gradient(135deg, var(--eu-blue-dark) 0%, #1a3a7c 54%, var(--eu-blue) 100%);
  border-color: transparent;
  color: #fff;
  overflow: hidden;
}

.hero-section h1,
.hero-section .hero-copy > p:not(.eyebrow) {
  color: #fff;
}

.hero-section .eyebrow {
  color: var(--eu-yellow);
}

.journey-graphic {
  grid-column: 1 / -1;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
}

.journey-graphic svg {
  display: block;
  width: 100%;
  height: auto;
}

.journey-graphic img,
.wide-visual img,
.tool-visual,
.stage-visual img,
.knowledge-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.journey-graphic img,
.wide-visual img,
.stage-visual img,
.knowledge-visual img {
  border-radius: var(--radius);
}

.journey-stage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.journey-stage-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--active-role) 22%, var(--theme-line));
  border-radius: 999px;
  background: #fff;
  color: var(--active-role-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.journey-path {
  fill: none;
  stroke: var(--active-role);
  stroke-width: 12;
  stroke-linecap: round;
}

.journey-point circle {
  fill: var(--active-role-dark);
  stroke: #fff;
  stroke-width: 5;
}

.journey-point text {
  fill: #fff;
  font-size: 16px;
  font-weight: 900;
  text-anchor: middle;
}

.journey-label {
  fill: var(--active-role-dark);
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.05rem, 4.2vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.section-heading > p,
.module-detail p {
  color: var(--muted);
  max-width: 720px;
}

.hero-copy,
.section-heading,
.focus-card,
.mini-card,
.task-card,
.stage-card,
.knowledge-detail-card {
  min-width: 0;
}

.hero-actions,
.note-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  padding: 0 18px;
  background: var(--active-role);
  color: #fff;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--active-role-dark);
}

.secondary-button,
.ghost-button {
  padding: 0 16px;
  border-color: var(--theme-line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.hero-section .secondary-button {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-section .primary-button {
  background: var(--eu-yellow);
  color: var(--eu-blue-dark);
}

.hero-section .primary-button:hover {
  background: #ffe033;
}

.ghost-button {
  margin-left: auto;
}

.text-button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--active-role);
  font-weight: 800;
}

.icon-button {
  width: 44px;
  border-color: var(--theme-line);
  background: var(--surface);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.persona-card:hover,
.process-node:hover,
.download-card:hover {
  transform: translateY(-2px);
}

.role-cards {
  display: grid;
  gap: 12px;
}

.persona-card,
.mini-card,
.focus-card,
.tool-card,
.download-card,
.module-detail,
.scenario-card {
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.persona-card {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
  text-align: left;
  color: var(--ink);
}

.hero-section .persona-card {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-section .persona-card span {
  color: rgba(255, 255, 255, 0.82);
}

.persona-card.active {
  border-color: color-mix(in srgb, var(--active-role) 48%, var(--line));
  background: var(--active-role-soft);
  box-shadow: var(--shadow);
  border-left: 8px solid var(--active-role);
}

.hero-section .persona-card.active {
  border-color: rgba(255, 204, 0, 0.65);
  border-left-color: var(--eu-yellow);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.persona-card svg {
  width: 28px;
  height: 28px;
  color: var(--active-role);
}

.hero-section .persona-card svg {
  color: var(--eu-yellow);
}

.role-zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide-visual {
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: #fff;
}

.role-zone-card {
  padding: 20px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--surface);
  opacity: 0.68;
}

.role-zone-card.active {
  opacity: 1;
  border-color: color-mix(in srgb, var(--active-role) 46%, var(--line));
  background: var(--active-role-soft);
  box-shadow: var(--shadow);
  border-left: 8px solid var(--active-role);
}

.role-zone-card ul,
.material-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: #34413c;
}

.mentor-zone .zone-label {
  color: var(--green-dark);
}

.teacher-zone .zone-label {
  color: var(--blue);
}

.persona-card span,
.mini-card p,
.focus-card p,
.download-card p,
.scenario-card p,
.tool-card p,
.accordion-panel p {
  color: var(--muted);
}

.now-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active-role-soft) 55%, #ffffff), var(--theme-panel-strong));
  border-color: color-mix(in srgb, var(--active-role) 26%, var(--theme-line));
}

.stage-picker,
.question-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}

.stage-pill,
.question-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--theme-line);
  border-radius: 999px;
  background: var(--surface);
  color: #405049;
  font-weight: 800;
}

.stage-pill.active,
.question-chip.active {
  background: var(--active-role);
  color: #fff;
}

.now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(210px, 0.75fr));
  gap: 14px;
}

.focus-card,
.mini-card {
  padding: 22px;
}

.focus-card {
  background: linear-gradient(135deg, #ffffff 0%, var(--active-role-soft) 100%);
  border-left: 8px solid var(--active-role);
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--active-role-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-card svg {
  color: var(--active-role);
  margin-bottom: 16px;
}

.risk-card svg {
  color: var(--coral);
}

.progress-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(135deg, var(--active-role-dark), color-mix(in srgb, var(--active-role) 48%, var(--ink)));
  color: #fff;
}

.progress-section .eyebrow {
  color: color-mix(in srgb, var(--active-role-mid) 72%, #ffffff);
}

.progress-wrap {
  display: grid;
  grid-template-columns: auto minmax(180px, 320px);
  align-items: center;
  gap: 16px;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 8px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--mustard);
  border-radius: 50%;
}

.progress-ring strong {
  font-size: 1.28rem;
  line-height: 1;
}

.progress-ring span {
  font-size: 0.74rem;
  color: #cbd6d1;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mustard), color-mix(in srgb, var(--active-role) 64%, #ffffff));
  transition: width 220ms ease;
}

.section-heading {
  margin-bottom: 20px;
}

.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.compact {
  margin-bottom: 10px;
}

.process-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.process-node {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.process-node span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--active-role-soft);
  color: var(--active-role);
  font-weight: 900;
}

.process-node small {
  color: var(--muted);
}

.process-node.active {
  border-color: color-mix(in srgb, var(--active-role) 46%, var(--line));
  background: var(--active-role-soft);
  box-shadow: inset 0 4px 0 var(--active-role);
}

.journey-link {
  cursor: pointer;
  outline: none;
}

.journey-link circle,
.journey-link rect {
  transition: transform 160ms ease, filter 160ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.journey-link:hover circle,
.journey-link:focus-visible circle,
.journey-link:hover rect,
.journey-link:focus-visible rect {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 12px rgba(24, 35, 31, 0.22));
}

.module-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--active-role-soft);
  color: #4c5a54;
  font-size: 0.86rem;
  font-weight: 800;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.task-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--active-role-soft) 30%, #ffffff) 100%);
}

.task-card header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.task-card header span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--active-role-soft);
  color: var(--active-role);
  font-weight: 900;
}

.task-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--active-role);
  font-weight: 900;
}

.task-link svg {
  width: 17px;
  height: 17px;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: #2f3b36;
}

.check-item input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--active-role);
}

.check-item:has(input:checked) span {
  color: var(--muted);
  text-decoration: line-through;
}

.conversation-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.scenario-tabs {
  display: grid;
  gap: 8px;
}

.scenario-tab {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: #3d4c45;
  text-align: left;
  font-weight: 800;
}

.scenario-tab.active {
  background: var(--active-role);
  color: #fff;
}

.scenario-card {
  padding: 22px;
}

.scenario-card ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 22px;
}

.question-bank {
  padding: 18px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--active-role-soft) 42%, #ffffff);
}

.question-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.question-card {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--theme-line);
}

.tools-grid,
.library-grid,
.materials-grid,
.faq-grid,
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-card,
.download-card,
.material-card,
.procedure-card,
.faq-card,
.knowledge-card {
  padding: 20px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.knowledge-card {
  min-height: 220px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--active-role-soft) 45%, #ffffff), #ffffff);
}

.knowledge-card svg {
  width: 30px;
  height: 30px;
  color: var(--active-role);
  margin-bottom: 14px;
}

.knowledge-card p,
.journal-card p,
.journal-card li {
  color: var(--muted);
}

.journal-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.card-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.card-title svg,
.download-card svg,
.material-card svg {
  color: var(--active-role);
}

.self-check {
  display: grid;
  gap: 16px;
}

.tool-visual {
  margin: 0 0 16px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: #fff;
}

.self-check label {
  display: grid;
  gap: 8px;
  color: #34413c;
  font-weight: 750;
}

.self-check input {
  width: 100%;
  accent-color: var(--active-role);
}

.score-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--active-role-soft);
}

.score-box strong {
  color: var(--active-role);
  font-size: 1.5rem;
}

.triage-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.triage-card {
  grid-column: 1 / -1;
}

.triage-list button {
  min-height: 46px;
  padding: 8px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: #fff;
  color: #3b4943;
  font-weight: 800;
}

.triage-list button.active {
  border-color: rgba(226, 100, 80, 0.45);
  background: #fff3f1;
  color: #9b392c;
}

.triage-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: #fbf7ef;
}

.download-card,
.material-card {
  min-height: 210px;
}

.download-card svg,
.material-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
}

.procedure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.procedure-card h3,
.faq-card h3 {
  margin-bottom: 10px;
}

.procedure-card ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #34413c;
}

.faq-grid {
  margin-top: 16px;
}

.faq-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.local-card {
  border-color: rgba(212, 154, 40, 0.45);
  background: #fffaf0;
}

.accordion {
  margin-top: 16px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--theme-line);
  background: linear-gradient(90deg, #ffffff, color-mix(in srgb, var(--active-role-soft) 34%, #ffffff));
  color: var(--ink);
  font-weight: 900;
}

.accordion-panel {
  display: none;
  padding: 0 16px 16px;
  background: color-mix(in srgb, var(--active-role-soft) 34%, #ffffff);
}

.accordion-trigger.open + .accordion-panel {
  display: block;
}

.mobile-nav {
  display: none;
}

.hidden-by-search {
  display: none !important;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

.stage-page {
  min-height: 100vh;
}

.stage-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.project-site-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--eu-blue) 14%, var(--theme-line));
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.project-strip-home {
  display: grid;
  gap: 2px;
}

.project-strip-home strong {
  color: var(--eu-blue-dark);
  font-size: 1rem;
  line-height: 1.1;
}

.project-strip-home span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.project-strip-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.project-strip-logos img {
  display: block;
  width: auto;
  max-width: min(150px, 100%);
  height: 38px;
  object-fit: contain;
}

.project-strip-logos img:nth-child(3) {
  height: 54px;
  padding: 4px;
  border-radius: 6px;
  background: #fff;
}

.stage-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 204, 0, 0.26), transparent 18rem),
    linear-gradient(135deg, var(--eu-blue-dark) 0%, #1a3a7c 55%, var(--eu-blue) 100%);
  box-shadow: var(--shadow);
  color: #fff;
}

.stage-header h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.stage-header p,
.stage-header .eyebrow {
  color: rgba(255, 255, 255, 0.84);
}

.stage-header .eyebrow {
  color: var(--eu-yellow);
}

.stage-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.stage-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--theme-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--active-role-dark);
  font-weight: 800;
}

.stage-visual {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--active-role);
  overflow: hidden;
}

.stage-visual svg {
  width: 100%;
  min-height: 210px;
}

.stage-visual img {
  object-fit: contain;
}

.stage-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.stage-card {
  padding: 22px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--theme-panel-strong);
}

.stage-card h2,
.stage-card h3 {
  margin-bottom: 12px;
}

.stage-card ul,
.stage-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.stage-card p {
  color: var(--muted);
}

.stage-card.primary {
  border-left: 8px solid var(--active-role);
}

.stage-card.warning {
  border-left: 8px solid var(--coral);
}

.stage-card.note {
  background: color-mix(in srgb, var(--active-role-soft) 45%, #ffffff);
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.week-strip a {
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.week-strip a.active {
  background: var(--active-role);
  color: #fff;
  border-color: var(--active-role);
}

.knowledge-page {
  min-height: 100vh;
}

.knowledge-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 18px 0;
}

.knowledge-hero > div:first-child,
.knowledge-visual,
.source-panel {
  border: 1px solid color-mix(in srgb, var(--eu-blue) 18%, var(--theme-line));
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.knowledge-hero > div:first-child {
  padding: 30px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 204, 0, 0.22), transparent 17rem),
    linear-gradient(135deg, var(--eu-blue-dark), var(--eu-blue));
  color: #fff;
}

.knowledge-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.knowledge-hero > div:first-child p {
  color: rgba(255, 255, 255, 0.84);
}

.knowledge-hero > div:first-child .eyebrow {
  color: var(--eu-yellow);
}

.knowledge-visual {
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--active-role);
  overflow: hidden;
}

.knowledge-visual svg {
  width: 100%;
  min-height: 220px;
}

.knowledge-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.knowledge-index a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--theme-line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--active-role-dark);
  font-weight: 800;
}

.knowledge-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.knowledge-detail-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--theme-line);
  border-radius: var(--radius);
  background: var(--surface);
}

.knowledge-detail-card header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.knowledge-detail-card header span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--active-role-soft);
  color: var(--active-role);
  font-weight: 900;
}

.knowledge-detail-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.knowledge-detail-card dt {
  color: var(--active-role-dark);
  font-weight: 900;
}

.knowledge-detail-card dd {
  margin: 0;
  color: var(--muted);
}

.source-panel {
  margin-top: 18px;
  padding: 24px;
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
}

.source-list a {
  color: var(--active-role);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eu-disclaimer-footer {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 18px 22px;
  border-top: 1px solid var(--theme-line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.stage-shell > .eu-disclaimer-footer {
  max-width: none;
}

.eu-disclaimer-footer p {
  margin: 0;
}

.hub-grid,
.center-grid,
.meeting-grid,
.toolkit-grid,
.media-grid,
.quiz-grid,
.print-grid,
.owp-grid,
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hub-card,
.center-card,
.meeting-card,
.toolkit-card,
.media-card,
.quiz-card,
.print-card,
.owp-card,
.timeline-card,
.stage-detail-card {
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--eu-blue) 12%, var(--theme-line));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.hub-card:hover,
.center-card:hover,
.meeting-card:hover,
.toolkit-card:hover,
.media-card:hover,
.quiz-card:hover,
.print-card:hover,
.owp-card:hover,
.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.hub-card,
.center-card,
.meeting-card,
.media-card {
  display: grid;
  gap: 10px;
}

.hub-card i,
.center-card i,
.meeting-card i,
.media-card i {
  width: 26px;
  height: 26px;
  color: var(--active-role);
}

.role-zone-card.director-zone {
  border-color: #dbc06a;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.role-zone-card.director-zone.active {
  box-shadow: 0 0 0 2px #6f5820 inset, var(--shadow);
}

.stage-detail-band {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.stage-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-list,
.toolkit-card ul,
.meeting-card ul,
.media-card ul {
  margin: 0;
  padding-left: 18px;
}

.print-card {
  break-inside: avoid;
}

.print-card header,
.toolkit-card header,
.meeting-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.print-button {
  min-height: 38px;
  border: 1px solid var(--active-role);
  border-radius: 6px;
  background: var(--active-role);
  color: #fff;
  font-weight: 850;
}

.field-line {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  color: var(--muted);
}

.field-line input,
.field-line select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
}

.field-box {
  min-height: 58px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #fff;
}

.media-visual {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--active-role-soft) 70%, #fff), #fff),
    var(--surface);
  border: 1px solid var(--theme-line);
}

.media-visual svg {
  width: min(100%, 460px);
  height: auto;
}

.print-note {
  color: var(--muted);
  font-size: 0.92rem;
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .mobile-nav,
  .stage-nav,
  .stage-actions,
  .print-button,
  .hero-actions,
  .journey-stage-links {
    display: none !important;
  }

  .app-shell,
  main,
  .stage-shell {
    display: block;
    padding: 0;
    margin: 0;
  }

  .section,
  .print-card,
  .stage-card,
  .toolkit-card,
  .meeting-card {
    box-shadow: none;
    border-color: #888;
  }

  body:has(.print-active) main > *:not(.print-active),
  body:has(.print-active) .stage-shell > *:not(.print-active) {
    display: none !important;
  }

  .print-active {
    display: block !important;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 1080px) {
  :root {
    --sidebar: 250px;
  }

  main {
    padding: 0 22px 84px;
  }

  .hero-section,
  .now-grid,
  .tools-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .process-map,
  .task-board,
  .question-list,
  .materials-grid,
  .faq-grid,
  .hub-grid,
  .center-grid,
  .meeting-grid,
  .toolkit-grid,
  .media-grid,
  .quiz-grid,
  .print-grid,
  .owp-grid,
  .timeline-grid,
  .stage-detail-grid,
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-grid,
  .stage-header,
  .knowledge-hero,
  .knowledge-detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .topbar .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    min-height: auto;
    padding: 12px 0;
  }

  .ghost-button {
    display: none;
  }

  .section {
    padding: 20px;
    margin-bottom: 18px;
  }

  .hero-section {
    padding-top: 22px;
  }

  .progress-section,
  .split-heading,
  .module-detail,
  .conversation-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .progress-wrap {
    grid-template-columns: 1fr;
  }

  .process-map,
  .task-board,
  .question-list,
  .triage-list,
  .role-zone-grid,
  .materials-grid,
  .procedure-grid,
  .faq-grid,
  .hub-grid,
  .center-grid,
  .meeting-grid,
  .toolkit-grid,
  .media-grid,
  .quiz-grid,
  .print-grid,
  .owp-grid,
  .timeline-grid,
  .stage-detail-grid,
  .knowledge-grid,
  .week-strip {
    grid-template-columns: 1fr;
  }

  .project-site-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-strip-logos {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .project-strip-logos img {
    max-width: 126px;
    height: 34px;
  }

  .project-strip-logos img:nth-child(3) {
    height: 48px;
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 48px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-nav a.active {
    background: var(--active-role-soft);
    color: var(--active-role);
  }
}

@media (max-width: 520px) {
  main {
    padding: 0 12px 84px;
  }

  h1 {
    max-width: 100%;
    font-size: 1.95rem;
  }

  .hero-actions,
  .stage-picker {
    align-items: stretch;
  }

  .hero-section,
  .stage-header,
  .knowledge-hero {
    display: block;
    overflow: hidden;
  }

  .hero-copy,
  .stage-header > div,
  .knowledge-hero > div {
    max-width: 100%;
    min-width: 0;
  }

  .project-strip-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .project-strip-logos img,
  .project-strip-logos img:nth-child(3) {
    width: 100%;
    max-width: 100%;
    height: 38px;
  }

  .project-strip-logos img:nth-child(4) {
    grid-column: 1 / -1;
  }

  .mobile-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .persona-card {
    min-height: auto;
  }

  .search-box {
    min-width: 0;
  }

  .role-status {
    display: none;
  }
}
