/* =============================================
   CSS Custom Properties (Design Tokens)
   ============================================= */
:root {
  --color-bg: #f9f8f6;
  --color-surface: #ffffff;
  --color-primary: #2d6a9f;
  --color-primary-dark: #1e4f7a;
  --color-accent: #f0a500;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;

  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --max-width: 960px;
  --nav-height: 64px;
}

/* =============================================
   Reset & Base
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
}

/* =============================================
   Navigation
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
}
.nav__logo:hover {
  text-decoration: none;
  color: var(--color-primary-dark);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-primary);
  text-decoration: none;
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* =============================================
   Layout
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
  padding: 3rem 0;
}

/* =============================================
   Hero (Home)
   ============================================= */
.hero {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero__subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.hero__tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition:
    background 0.2s,
    transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #1f2937;
}
.btn--primary:hover {
  background: #d4900a;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* =============================================
   Section
   ============================================= */
.section {
  padding: 3rem 0;
}

.section__title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.section-help {
  position: relative;
  margin-top: -0.15rem;
}

.section-help__trigger {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #b8cfe3;
  background: #ffffff;
  color: #1f4769;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.section-help__trigger:hover {
  background: #eaf5ff;
}

.section-help__tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: -4px;
  width: min(360px, 82vw);
  border: 1px solid #cddcee;
  border-radius: 10px;
  background: #ffffff;
  color: #365774;
  font-size: 0.8rem;
  line-height: 1.45;
  box-shadow: 0 10px 26px rgba(12, 28, 46, 0.18);
  padding: 0.55rem 0.65rem;
  z-index: 25;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.section-help:hover .section-help__tooltip,
.section-help:focus-within .section-help__tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.section__divider {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin-bottom: 2rem;
}

/* =============================================
   Cards (Portfolio & Features)
   ============================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: #e8f0f9;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* =============================================
   About
   ============================================= */
.about-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-primary);
  background: var(--color-border);
}

.about-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: #e8f0f9;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  font-size: 0.85rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
}

/* =============================================
   Education Cards
   ============================================= */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.edu-card__icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.edu-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 0.25rem;
}

.edu-card__sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* =============================================
   Resume
   ============================================= */
.resume-section {
  margin-bottom: 2.5rem;
}
.resume-section h2 {
  font-size: 1.25rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
  color: var(--color-primary-dark);
}

.resume-item {
  margin-bottom: 1.5rem;
}
.resume-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.resume-item h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.resume-item__date {
  font-size: 0.85rem;
  color: var(--color-muted);
  white-space: nowrap;
}
.resume-item__org {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.resume-item ul {
  padding-left: 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.resume-item ul li {
  margin-bottom: 0.25rem;
}

.resume-download {
  margin-bottom: 2rem;
}

.resume-cert-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted, var(--color-muted));
  margin: 0.25rem 0 0;
}

/* =============================================
   Contact
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.contact-links {
  list-style: none;
}
.contact-links li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.contact-links li span {
  margin-right: 0.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 159, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.success {
  color: #15803d;
  display: block;
}
.form-status.error {
  color: #b91c1c;
  display: block;
}

/* Formspree Ajax feedback */
.form-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #15803d;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.form-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.form-field-error {
  display: block;
  color: #b91c1c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #b91c1c;
  outline-color: #b91c1c;
}
button[data-fs-submit-btn]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =============================================
   Footer
   ============================================= */
footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.875rem;
}
footer a {
  color: rgba(255, 255, 255, 0.85);
}

/* =============================================
   Onboarding Project Page
   ============================================= */
.project-hero {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(14, 165, 233, 0.2),
      transparent 36%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(251, 191, 36, 0.24),
      transparent 30%
    ),
    #11243a;
  color: #f8fbff;
  border-radius: 14px;
  padding: 2rem;
  margin-top: 0.75rem;
  position: relative;
  padding-right: 17.5rem;
  min-height: 240px;
}

.project-hero__eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(248, 251, 255, 0.78);
  margin-bottom: 0.7rem;
}

.project-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.85rem;
}

.project-hero__summary {
  max-width: 700px;
  color: rgba(248, 251, 255, 0.9);
}
.project-hero__content {
  min-width: 0;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.project-meta span {
  border: 1px solid rgba(248, 251, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.84rem;
}

.project-hero__card {
  margin: 0;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 220px;
  border: 1px solid rgba(248, 251, 255, 0.24);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project-hero__image {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.project-hero__caption {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(248, 251, 255, 0.88);
  padding: 0.5rem 0.65rem;
  border-top: 1px solid rgba(248, 251, 255, 0.16);
}

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

.story-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.story-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.story-card p,
.story-card li {
  font-size: 0.93rem;
  color: var(--color-muted);
}

.story-card ul {
  padding-left: 1rem;
}

.integrated-intro {
  color: var(--color-muted);
  margin-bottom: 1rem;
  max-width: 760px;
}

.integrated-system {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.integrated-system.storyline-only {
  grid-template-columns: minmax(0, 1fr);
}

.integrated-panel {
  border: 1px solid var(--color-border);
  background: #ffffff;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.integrated-panel h3 {
  margin-bottom: 0.45rem;
}

.storyline-mock {
  margin-top: 1rem;
  border: 1px solid #cddcee;
  border-radius: 12px;
  overflow: visible;
  background: #f6fbff;
}

.storyline-mock__topbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid #d7e5f4;
  background: #ecf4fb;
  padding: 0.45rem 0.65rem;
}

.storyline-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fb4d8;
}

.storyline-mock__topbar p {
  margin-left: 0.35rem;
  margin-right: auto;
  font-size: 0.78rem;
  color: #365774;
}

.storyline-help {
  position: relative;
}

.storyline-help__trigger {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #a6bfd7;
  background: #ffffff;
  color: #1f4769;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.storyline-help__trigger:hover {
  background: #eaf5ff;
}

.storyline-help__tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: -6px;
  width: min(520px, 88vw);
  border: 1px solid #cddcee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(12, 28, 46, 0.2);
  padding: 0.65rem;
  z-index: 30;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.storyline-help:hover .storyline-help__tooltip,
.storyline-help:focus-within .storyline-help__tooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.storyline-help__tooltip h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #123b5d;
}

.storyline-mock__body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 170px;
}

.storyline-mock__sidebar {
  background: #e7f0f8;
  border-right: 1px solid #d3e1ef;
  padding: 0.7rem 0.6rem;
  display: grid;
  gap: 0.45rem;
}

.storyline-mock__sidebar button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  font-size: 0.76rem;
  color: #4d647b;
  padding: 0.25rem 0.35rem;
  border-radius: 7px;
  cursor: pointer;
}

.storyline-mock__sidebar button:hover {
  background: #dbeaf8;
}

.storyline-mock__sidebar span,
.storyline-mock__sidebar button {
  font-size: 0.76rem;
  color: #4d647b;
}

.storyline-mock__sidebar span.active,
.storyline-mock__sidebar button.active {
  color: #0f3555;
  font-weight: 700;
  background: #d2e4f5;
  border-color: #b7d1e7;
}

.storyline-mock__content {
  padding: 0.8rem;
}

.storyline-mock__content h4 {
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.storyline-mock__content p {
  font-size: 0.85rem;
  color: #4b6177;
  margin-bottom: 0.55rem;
}

.storyline-mock__choices {
  display: grid;
  gap: 0.45rem;
}

.storyline-mock__choices button {
  text-align: left;
  border: 1px solid #b9d1e8;
  border-radius: 8px;
  background: #ffffff;
  color: #123b5d;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
}

.storyline-mock__choices button:hover {
  background: #eaf5ff;
}

.storyline-mock__choices button.is-selected {
  border-color: #0e7490;
  background: #e8f6ff;
}

.storyline-mock__feedback {
  margin-top: 0.6rem;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.78rem;
  background: #eef2f7;
  color: #334155;
}

.storyline-mock__feedback.safe {
  background: #e9f9ef;
  color: #0f5132;
}

.storyline-mock__feedback.risk {
  background: #fdecee;
  color: #8a1f2d;
}

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

.storyline-chip {
  border: 1px solid #cddcee;
  border-radius: 10px;
  background: #f8fbff;
  padding: 0.65rem 0.75rem;
}

.storyline-chip h5 {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
  color: #0f3555;
}

.storyline-chip ul,
.storyline-chip ol {
  margin: 0;
  padding-left: 1rem;
}

.storyline-chip li {
  font-size: 0.8rem;
  color: #425f7a;
  margin-bottom: 0.2rem;
}

.storyline-help__tooltip .storyline-chip {
  background: #f8fbff;
}

.panel-benefit {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: #0f3555;
  background: #f2f9ff;
  border-left: 4px solid #0ea5e9;
  padding: 0.65rem 0.8rem;
}

.scenario-box {
  border: 1px solid #c8def4;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f5f9fd);
  padding: 1.2rem;
}

.scenario-prompt {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.scenario-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}

.scenario-step {
  color: #335170;
  font-weight: 700;
}

.scenario-score {
  color: #0e7490;
  font-weight: 700;
}

.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.scenario-btn {
  border: 1px solid #a9c8e4;
  background: #ffffff;
  color: #123b5d;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.scenario-btn:hover {
  background: #eaf5ff;
}

.scenario-btn.is-selected {
  border-color: #0e7490;
  background: #e8f6ff;
}

.scenario-controls {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.scenario-restart[hidden] {
  display: none;
}

.scenario-feedback {
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: #eef2f7;
  color: #334155;
  font-size: 0.91rem;
}

.scenario-feedback.good {
  background: #e9f9ef;
  color: #0f5132;
}

.scenario-feedback.warn {
  background: #fff8e1;
  color: #7a4b00;
}

.scenario-feedback.risk {
  background: #fdecee;
  color: #8a1f2d;
}

.project-backlink-section {
  padding-top: 0.5rem;
}

.branch-map {
  border: 1px solid #d8e5f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  padding: 0.95rem;
  margin-bottom: 1rem;
}

.branch-map__title {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #0f3555;
  margin-bottom: 0.65rem;
}

.branch-map__hint {
  font-size: 0.82rem;
  color: #45637f;
  margin-bottom: 0.65rem;
}

.branch-map__hint kbd {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  border: 1px solid #bdd4e8;
  background: #ffffff;
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
}

.branch-map__lane {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.branch-node {
  appearance: none;
  border: 1px solid #bdd4e8;
  border-radius: 999px;
  background: #ffffff;
  color: #123b5d;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
}

.branch-node:hover {
  background: #ecf7ff;
}

.branch-node.active {
  background: #0e7490;
  border-color: #0e7490;
  color: #ffffff;
}

.branch-node--start {
  background: #e8f6ff;
}

.branch-node--result {
  background: #edfdf3;
  border-color: #9ad8b0;
  color: #14532d;
}

.branch-connector {
  width: 24px;
  height: 2px;
  background: #9eb7cf;
}

.branch-map__legend {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: #37516a;
}

.branch-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.branch-dot--safe {
  background: #14b8a6;
}

.branch-dot--risky {
  background: #ef4444;
}

.branching-module {
  border: 1px solid #cbdcef;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.branching-head {
  margin-bottom: 1rem;
}

.branching-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f3555;
  margin-bottom: 0.45rem;
}

.branching-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.branching-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6eef8;
  color: #274560;
  font-size: 0.82rem;
  font-weight: 700;
}

.branching-step.active {
  background: #0e7490;
  color: #ffffff;
}

.branching-step.done {
  background: #0ea5e9;
  color: #ffffff;
}

.branching-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e5edf7;
  overflow: hidden;
}

.branching-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0ea5e9, #0e7490);
  transition: width 0.25s ease;
}

.branch-scene {
  display: none;
  border: 1px solid #dbe6f2;
  border-radius: 12px;
  background: #ffffff;
  padding: 1rem;
}

.branch-scene.active {
  display: block;
}

.branch-scene h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.branch-scene p {
  color: var(--color-muted);
  font-size: 0.93rem;
}

.branch-options {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

.branch-choice {
  text-align: left;
  border: 1px solid #bbd3ea;
  border-radius: 10px;
  background: #f7fbff;
  color: #123b5d;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.branch-choice:hover {
  background: #eaf5ff;
}

.branch-result {
  margin-bottom: 1rem;
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  background: #eef2f7;
}

.branch-result.success {
  background: #e9f9ef;
  color: #0f5132;
}

.branch-result.partial {
  background: #fff8e1;
  color: #7a4b00;
}

.branch-result.retry {
  background: #fdecee;
  color: #8a1f2d;
}

.branch-result.demo {
  background: #e8f3ff;
  color: #0f3555;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 700px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav__links.open {
    display: flex;
  }
  .nav__toggle {
    display: flex;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-avatar {
    width: 140px;
    height: 140px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-hero {
    padding: 1.3rem;
    padding-right: 1.3rem;
    min-height: 0;
  }

  .section-help__tooltip {
    width: min(300px, 84vw);
  }

  .project-hero__card {
    position: static;
    width: 100%;
    max-width: 300px;
    margin-top: 1rem;
  }

  .project-hero__image {
    height: 170px;
  }

  .storyline-mock__body {
    grid-template-columns: 1fr;
  }

  .storyline-mock__sidebar {
    border-right: 0;
    border-bottom: 1px solid #d3e1ef;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .branching-module {
    padding: 0.85rem;
  }

  .branch-connector {
    width: 16px;
  }
}

/* =============================================
   Scroll Progress Bar
   ============================================= */
.scroll-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border);
  z-index: 99;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.1s linear;
}

/* =============================================
   Scroll Reveal Animations
   ============================================= */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

[data-reveal="fade-up"] {
  transform: translateY(28px);
}

[data-reveal="fade-left"] {
  transform: translateX(-36px);
}

[data-reveal="fade-right"] {
  transform: translateX(36px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   LDP Hero
   ============================================= */
.ldp-hero {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  color: #fff;
  padding: 5rem 1.5rem 4rem;
}

.ldp-hero__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.ldp-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.ldp-hero__summary {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.ldp-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-meta-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =============================================
   LDP Overview Stats
   ============================================= */
.ldp-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.ldp-overview__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.ldp-overview__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1;
}

.ldp-overview__label {
  font-size: 0.85rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   LDP Body Text
   ============================================= */
.ldp-body {
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 720px;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* =============================================
   LDP Timeline (6 Weeks)
   ============================================= */
.ldp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ldp-week {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 2rem;
  position: relative;
}

.ldp-week__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.25rem;
}

.ldp-week__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 4px var(--color-bg),
    0 0 0 6px var(--color-primary);
}

.ldp-week__line {
  width: 2px;
  flex: 1;
  background: var(--color-border);
  margin: 0.5rem 0;
  min-height: 32px;
}

.ldp-week:last-child .ldp-week__line {
  display: none;
}

.ldp-week__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.ldp-week__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.ldp-week__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}

.ldp-week__title {
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.ldp-week__desc {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.ldp-week__activities {
  padding-left: 1.25rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ldp-week__activities li {
  margin-bottom: 0.3rem;
}

.ldp-week__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* =============================================
   LDP Design Decisions
   ============================================= */
.ldp-decisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ldp-decision {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.ldp-decision__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}

.ldp-decision__title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary-dark);
}

.ldp-decision__desc {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* =============================================
   LDP Responsive
   ============================================= */
@media (max-width: 700px) {
  .ldp-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .ldp-decisions {
    grid-template-columns: 1fr;
  }

  .ldp-week {
    grid-template-columns: 56px 1fr;
    gap: 0 1rem;
  }

  }

  .ldp-decisions {
    grid-template-columns: 1fr;
  }

  .ldp-week {
    grid-template-columns: 56px 1fr;
    gap: 0 1rem;
  }

  .ldp-week__num {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* =============================================
   Skills Gap / Kirkpatrick Eval Page
   ============================================= */

/* ── Kirkpatrick Level Grid ─────────────────── */
.kp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.kp-level {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.kp-level--active {
  opacity: 1;
  border-color: var(--color-primary);
  border-top: 4px solid var(--color-primary);
}

.kp-level__badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kp-level__badge--active {
  background: var(--color-primary);
  color: #fff;
}

.kp-level__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.kp-level--active .kp-level__name {
  color: var(--color-primary-dark);
}

.kp-level__desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.kp-level__methods {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-top: auto;
}

.kp-level__methods li {
  font-size: 0.78rem;
  color: var(--color-text);
  padding-left: 1rem;
  position: relative;
  line-height: 1.4;
}

.kp-level__methods li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.72rem;
}

/* ── Scenario Shell ─────────────────────────── */
.scenario-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.scenario-header {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.scenario-header__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.3rem;
}

.scenario-header__title {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  font-weight: bold;
  line-height: 1.3;
}

.scenario-header__badge {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-heading);
  min-width: 72px;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.scenario-header__badge--best {
  background: #14532d;
  border-color: #22c55e;
  color: #bbf7d0;
}

.scenario-header__badge--mid {
  background: #78350f;
  border-color: var(--color-accent);
  color: #fde68a;
}

.scenario-header__badge--low {
  background: #7f1d1d;
  border-color: #f87171;
  color: #fecaca;
}

/* Body */
.scenario-body {
  padding: 2rem;
  background: var(--color-surface);
}

/* Stem */
.scenario-stem {
  margin-bottom: 1.75rem;
}

.scenario-stem__context {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scenario-stem__text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.scenario-stem__quote {
  border-left: 4px solid var(--color-accent);
  margin: 1rem 0 1rem 0;
  padding: 0.75rem 1.25rem;
  background: #fdfaf2;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.scenario-stem__prompt {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

/* Options */
.scenario-options {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.scenario-option {
  display: block;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.15s, background 0.15s;
}

.scenario-option:hover {
  border-color: var(--color-primary);
  background: #f4f8fd;
}

.scenario-option--best {
  border-color: #22c55e !important;
  background: #f0fdf4 !important;
}

.scenario-option--wrong {
  border-color: #f87171 !important;
  background: #fff5f5 !important;
}

.scenario-option__inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
}

.scenario-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.scenario-option__letter {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--color-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  letter-spacing: 0.04em;
}

.scenario-option__text {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.6;
  flex: 1;
}

.scenario-option__mark {
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}

.scenario-option--best .scenario-option__mark::after { content: "✓"; color: #16a34a; }
.scenario-option--wrong .scenario-option__mark::after { content: "✗"; color: #dc2626; }

/* Feedback panel */
.scenario-feedback {
  margin-top: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.scenario-feedback__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.scenario-feedback__score {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.scenario-feedback__score--best { color: #166534; background: #dcfce7; }
.scenario-feedback__score--mid  { color: #92400e; background: #fef3c7; }
.scenario-feedback__score--low  { color: #991b1b; background: #fee2e2; }

.scenario-feedback__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.scenario-feedback__rationale {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.75;
  border-bottom: 1px solid var(--color-border);
}

/* Rubric */
.scenario-rubric {
  padding: 1rem 1.25rem 0.5rem;
}

.scenario-rubric__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.scenario-rubric__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.scenario-rubric__opt {
  font-size: 0.72rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-muted);
}

.scenario-rubric__opt--best {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.scenario-rubric__bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
}

.scenario-rubric__bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: 99px;
}

.scenario-rubric__bar--best {
  background: #22c55e;
}

.scenario-rubric__pts {
  font-size: 0.72rem;
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
  min-width: 30px;
}

.scenario-rubric__tag {
  font-size: 0.72rem;
  color: var(--color-muted);
  min-width: 0;
  flex: 1;
}

.scenario-reset {
  display: block;
  margin: 1rem 1.25rem 1rem;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  cursor: pointer;
  color: var(--color-muted);
  transition: background 0.15s, color 0.15s;
}

.scenario-reset:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Visually hidden (screen-reader only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Results row ──────────────────────────── */
.results-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.result-stat__num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1;
}

.result-stat__label {
  font-size: 0.83rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Kirkpatrick / Scenario responsive */
@media (max-width: 860px) {
  .kp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .scenario-header {
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
  }

  .scenario-body {
    padding: 1.25rem;
  }

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

  .scenario-rubric__tag {
    display: none;
  }
}

/* =============================================
   Train-the-Trainer Workshop Page
   ============================================= */

/* ── Deliverables cards ─────────────────────── */
.ttt-deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.ttt-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.ttt-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.ttt-card__num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--color-primary);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
  padding-top: 0.15rem;
}

.ttt-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.ttt-card__desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.ttt-card__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.ttt-card__specs li {
  font-size: 0.8rem;
  color: var(--color-text);
  padding-left: 1rem;
  position: relative;
  line-height: 1.45;
}

.ttt-card__specs li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.72rem;
}

/* ── Agenda shell ───────────────────────────── */
.agenda-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.agenda-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.agenda-legend__item {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.agenda-legend__item--inst  { background: #dbeafe; color: #1e40af; }
.agenda-legend__item--appl  { background: #dcfce7; color: #166534; }
.agenda-legend__item--refl  { background: #fef3c7; color: #92400e; }
.agenda-legend__item--break { background: var(--color-border); color: var(--color-muted); }

/* Agenda track */
.agenda-track {
  display: flex;
  flex-direction: column;
}

/* Individual block button */
.agenda-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}

.agenda-block:last-of-type {
  border-bottom: none;
}

.agenda-block:hover,
.agenda-block--open {
  background: var(--color-bg);
}

/* Left accent strip by type */
.agenda-block--inst  { border-left: 4px solid #3b82f6; }
.agenda-block--appl  { border-left: 4px solid #22c55e; }
.agenda-block--refl  { border-left: 4px solid var(--color-accent); }
.agenda-block--break { border-left: 4px solid var(--color-border); }

.agenda-block__time {
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
  min-width: 110px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.agenda-block__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

.agenda-block__dur {
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.agenda-block__chevron {
  font-size: 1.1rem;
  color: var(--color-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
  line-height: 1;
}

.agenda-block--open .agenda-block__chevron {
  transform: rotate(90deg);
}

/* Detail panel */
.agenda-detail {
  padding: 1rem 1.25rem 1rem 2.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
}

.agenda-detail p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.agenda-detail p:last-child {
  margin-bottom: 0;
}

.agenda-detail__obj {
  color: var(--color-primary-dark) !important;
}

/* TTT responsive */
@media (max-width: 760px) {
  .ttt-deliverables {
    grid-template-columns: 1fr;
  }

  .agenda-block__time {
    display: none;
  }

  .agenda-block__dur {
    display: none;
  }
}

/* =============================================
   Job Aid — Compliance Checklist (Military)
   ============================================= */

/* Military color palette (scoped to the shell) */
:root {
  --mil-bg: #1a1f18;
  --mil-surface: #22271f;
  --mil-border: #3a4035;
  --mil-olive: #4a5240;
  --mil-olive-light: #5c6650;
  --mil-green: #6b7c55;
  --mil-amber: #c8a040;
  --mil-red: #a03030;
  --mil-text: #d8dbd0;
  --mil-muted: #8a9080;
  --mil-done-bg: #1e2a1a;
  --mil-font: "Courier New", "Courier", monospace;
}

.jaid-intro {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 700px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* Outer shell */
.jaid-shell {
  border: 2px solid var(--mil-border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px #0a0c09, 4px 4px 0 #0a0c09;
  background: var(--mil-surface);
  margin-bottom: 1rem;
  font-family: var(--mil-font);
}

/* Header bar */
.jaid-header {
  background: var(--mil-bg);
  color: var(--mil-text);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--mil-amber);
}

.jaid-header__label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mil-amber);
  margin-bottom: 0.3rem;
  font-family: var(--mil-font);
}

.jaid-header__title {
  font-size: 1.4rem;
  font-family: var(--mil-font);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mil-text);
  margin-bottom: 0.2rem;
}

.jaid-header__sub {
  font-size: 0.75rem;
  color: var(--mil-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Progress ring */
.jaid-header__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.jaid-progress-ring {
  position: relative;
  width: 64px;
  height: 64px;
}

.jaid-ring-bg {
  fill: none;
  stroke: var(--mil-border);
  stroke-width: 5;
}

.jaid-ring-fill {
  fill: none;
  stroke: var(--mil-amber);
  stroke-width: 5;
  stroke-linecap: butt;
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.35s ease, stroke 0.35s ease;
}

.jaid-ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--mil-font);
  color: var(--mil-amber);
}

.jaid-progress-label {
  font-size: 0.62rem;
  color: var(--mil-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--mil-font);
}

/* Body */
.jaid-body {
  padding: 0 2rem 1rem;
  background: var(--mil-surface);
}

/* Section */
.jaid-section {
  border-bottom: 1px solid var(--mil-border);
  padding: 1.5rem 0;
}

.jaid-section:last-of-type {
  border-bottom: none;
}

.jaid-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.jaid-section__num {
  width: 32px;
  height: 32px;
  border-radius: 0;
  background: var(--mil-olive);
  color: var(--mil-amber);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mil-font);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--mil-olive-light);
  letter-spacing: 0.05em;
}

.jaid-section__title {
  font-size: 0.85rem;
  font-family: var(--mil-font);
  font-weight: 700;
  color: var(--mil-text);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* List */
.jaid-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jaid-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.jaid-item:hover {
  background: #2a3026;
  border-left-color: var(--mil-olive-light);
}

.jaid-item--done {
  background: var(--mil-done-bg);
  border-left-color: var(--mil-green);
}

.jaid-item--done .jaid-item__label > span:last-child {
  text-decoration: line-through;
  color: var(--mil-muted);
}

.jaid-item__label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  flex: 1;
  font-size: 0.88rem;
  font-family: var(--mil-font);
  color: var(--mil-text);
  line-height: 1.5;
}

/* Hide native checkbox, use custom box */
.jaid-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.jaid-item__box {
  width: 18px;
  height: 18px;
  border: 2px solid var(--mil-olive-light);
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--mil-bg);
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jaid-check:checked + .jaid-item__box {
  background: var(--mil-green);
  border-color: var(--mil-green);
}

.jaid-check:checked + .jaid-item__box::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.jaid-check:focus-visible + .jaid-item__box {
  outline: 2px solid var(--mil-amber);
  outline-offset: 2px;
}

.jaid-item__note {
  font-size: 0.72rem;
  font-family: var(--mil-font);
  color: var(--mil-muted);
  white-space: nowrap;
  padding-top: 3px;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* Alert block */
.jaid-alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #1f1208;
  border: 1px solid var(--mil-amber);
  border-left: 4px solid var(--mil-red);
  border-radius: 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.jaid-alert__icon {
  font-size: 1rem;
  font-family: var(--mil-font);
  font-weight: 900;
  color: var(--mil-red);
  flex-shrink: 0;
  line-height: 1.4;
  width: 24px;
  height: 24px;
  border: 2px solid var(--mil-red);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

.jaid-alert__title {
  font-weight: 700;
  font-size: 0.82rem;
  font-family: var(--mil-font);
  color: var(--mil-amber);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.jaid-alert__body {
  font-size: 0.82rem;
  font-family: var(--mil-font);
  color: #c0a870;
  line-height: 1.65;
}

/* Footer bar */
.jaid-footer {
  background: var(--mil-bg);
  border-top: 2px solid var(--mil-border);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  font-family: var(--mil-font);
  color: var(--mil-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.jaid-reset {
  font-size: 0.72rem;
  font-family: var(--mil-font);
  padding: 0.35rem 0.9rem;
  background: transparent;
  border: 1px solid var(--mil-olive-light);
  border-radius: 0;
  cursor: pointer;
  color: var(--mil-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.jaid-reset:hover {
  background: var(--mil-olive);
  color: var(--mil-text);
  border-color: var(--mil-olive-light);
}

/* Results row */
.jaid-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.jaid-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.jaid-result__num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1;
}

.jaid-result__label {
  font-size: 0.83rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Decision icon — now numbered labels */
.ldp-decision__icon {
  font-size: 0.72rem;
  font-family: var(--mil-font);
  font-weight: 700;
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  border-radius: 0;
}

/* Responsive */
@media (max-width: 700px) {
  .jaid-header {
    padding: 1.25rem 1.25rem;
    flex-wrap: wrap;
  }

  .jaid-body {
    padding: 0 1.25rem 1rem;
  }

  .jaid-footer {
    padding: 0.75rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .jaid-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .jaid-item__note {
    white-space: normal;
    padding-left: 1.5rem;
  }

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

/* =============================================
   Knowledge Check Demo (interactive-education)
   ============================================= */
.branching-body {
  padding: 1rem;
}

.branching-prompt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.branching-choices {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.choice-btn {
  text-align: left;
  border: 1px solid #bbd3ea;
  border-radius: 10px;
  background: #f7fbff;
  color: #123b5d;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.45;
  transition: background 0.15s, border-color 0.15s;
}

.choice-btn:hover:not(:disabled) {
  background: #eaf5ff;
  border-color: #7cb9e8;
}

.choice-btn:disabled {
  cursor: default;
  opacity: 0.75;
}

.choice-btn--correct {
  background: #e9f9ef !important;
  border-color: #34a853 !important;
  color: #0f5132 !important;
}

.choice-btn--incorrect {
  background: #fdecee !important;
  border-color: #e53e3e !important;
  color: #8a1f2d !important;
}

.branching-feedback {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #eef2f7;
  color: var(--color-text);
  min-height: 1.5rem;
}

.branching-feedback--safe {
  background: #e9f9ef;
  color: #0f5132;
  border-left: 3px solid #34a853;
}

.branching-feedback--risk {
  background: #fff8e1;
  color: #7a4b00;
  border-left: 3px solid #f59e0b;
}

/* =============================================
   Project Navigation (prev / next)
   ============================================= */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 500px) {
  .project-nav {
    flex-direction: column;
  }
}

/* =============================================
   Image / Infographic Placeholders
   ============================================= */
.img-placeholder-wrap {
  margin: 1.75rem 0;
}

.img-placeholder-wrap figcaption {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.6rem;
  font-style: italic;
}

.img-placeholder {
  background: #f0f5fb;
  border: 2px dashed #bbd3ea;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2.25rem 1.5rem;
  min-height: 220px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.img-placeholder--wide {
  min-height: 280px;
}

.img-placeholder--video {
  min-height: 320px;
  background: #0f2a3f;
  border-color: #1e4d70;
}

.img-placeholder__icon {
  width: 48px;
  height: 48px;
  opacity: 0.45;
  flex-shrink: 0;
}

.img-placeholder--video .img-placeholder__icon {
  opacity: 0.7;
}

.img-placeholder__label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3a6b8e;
}

.img-placeholder--video .img-placeholder__label {
  color: rgba(255, 255, 255, 0.8);
}

.img-placeholder__hint {
  font-size: 0.78rem;
  color: #7a9cb8;
  max-width: 300px;
  line-height: 1.5;
}

.img-placeholder--video .img-placeholder__hint {
  color: rgba(255, 255, 255, 0.45);
}

.deployment-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.deployment-photo-card {
  margin: 0;
  background: #f8fbff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.deployment-photo-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.deployment-photo-card figcaption {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  padding: 0.6rem 0.75rem 0.8rem;
  font-style: italic;
}

@media (max-width: 800px) {
  .deployment-photo-grid {
    grid-template-columns: 1fr;
  }
}
