.mindmap-page {
  padding: 96px 24px 56px;
  background:
    linear-gradient(90deg, rgba(194, 74, 61, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    #f4f6f2;
  background-size: 44px 44px;
}

.mindmap-hero,
.mindmap-canvas,
.flow-board,
.access-board,
.role-detail-board {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.mindmap-hero {
  padding: 38px 0 26px;
}

.mindmap-hero .eyebrow {
  margin-bottom: 10px;
}

.mindmap-hero h1,
.mindmap-hero p {
  margin: 0;
}

.mindmap-hero h1 {
  max-width: 760px;
  color: #18212d;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
}

.mindmap-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  color: #697485;
  font-size: 19px;
  line-height: 1.45;
}

.mindmap-canvas {
  position: relative;
  min-height: 1040px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(16, 56px);
  gap: 12px;
  overflow: visible;
  border: 1px solid #d9e0df;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(28, 36, 48, 0.07);
}

.mindmap-canvas::before,
.mindmap-canvas::after {
  content: "";
  position: absolute;
  inset: 135px 80px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  pointer-events: none;
}

.mindmap-canvas::after {
  inset: 220px 180px;
  border-color: rgba(216, 155, 33, 0.38);
}

.mind-node,
.mind-ring {
  position: relative;
  z-index: 1;
  border: 1px solid #d9e0df;
  background: #ffffff;
}

.mind-node-core {
  grid-column: 5 / 9;
  grid-row: 6 / 9;
  padding: 22px;
  display: grid;
  align-content: center;
  text-align: center;
  border-color: #0f766e;
  background: #edf2ec;
}

.mind-node-core span,
.mind-ring h2,
.flow-steps span {
  color: #115e59;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mind-node-core strong {
  margin-top: 6px;
  color: #18212d;
  font-size: 30px;
  line-height: 1;
}

.mind-node-core p {
  margin: 12px 0 0;
  color: #697485;
  line-height: 1.45;
}

.mind-ring {
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.mind-ring h2 {
  margin: 0 0 4px;
  color: #697485;
}

.mind-ring a,
.mind-ring article {
  display: block;
  padding: 10px 12px;
  border: 1px solid #d9e0df;
  background: #f8faf9;
  color: #18212d;
  text-decoration: none;
}

.mind-ring a:hover {
  border-color: #0f766e;
  color: #115e59;
}

.mind-ring article strong,
.mind-ring article span {
  display: block;
}

.mind-ring article strong {
  color: #18212d;
  font-size: 15px;
}

.mind-ring article span {
  margin-top: 4px;
  color: #697485;
  font-size: 13px;
  line-height: 1.35;
}

.mind-ring-site {
  grid-column: 1 / 5;
  grid-row: 1 / 6;
}

.mind-ring-org {
  grid-column: 9 / 13;
  grid-row: 1 / 6;
  border-color: rgba(216, 155, 33, 0.65);
  background: #fffaf0;
}

.mind-ring-roles {
  grid-column: 1 / 6;
  grid-row: 9 / 17;
  border-color: rgba(36, 87, 166, 0.35);
}

.mind-ring-data {
  grid-column: 8 / 13;
  grid-row: 9 / 17;
  border-color: rgba(194, 74, 61, 0.35);
}

.flow-board,
.access-board,
.role-detail-board {
  margin-top: 28px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid #d9e0df;
  background: #ffffff;
}

.role-detail-board .section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.role-detail-board .section-heading h2 {
  max-width: 780px;
  font-size: clamp(34px, 4.2vw, 58px);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.flow-steps article,
.access-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e0df;
  background: #f8faf9;
}

.flow-steps strong,
.access-grid strong {
  display: block;
  margin-top: 8px;
  color: #18212d;
  line-height: 1.2;
}

.flow-steps p,
.access-grid p {
  margin: 8px 0 0;
  color: #697485;
  line-height: 1.45;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.role-detail-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
  padding: 18px;
  border: 1px solid #d9e0df;
  background: #f8faf9;
}

.role-detail-card header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.role-detail-card header > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #0f766e;
  background: #edf2ec;
  color: #115e59;
  font-weight: 900;
}

.role-detail-card h3,
.role-detail-card p {
  margin: 0;
}

.role-detail-card h3 {
  color: #18212d;
  font-size: 24px;
  line-height: 1.05;
}

.role-detail-card header p {
  margin-top: 6px;
  color: #697485;
  line-height: 1.45;
}

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

.role-flow div {
  position: relative;
  min-width: 0;
  padding: 13px;
  border: 1px solid #d9e0df;
  background: #ffffff;
}

.role-flow strong {
  display: block;
  color: #115e59;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-flow p {
  margin-top: 8px;
  color: #18212d;
  font-size: 14px;
  line-height: 1.42;
}

.role-organizer header > span,
.role-organizer .role-flow strong {
  color: #ad6500;
}

.role-organizer header > span {
  border-color: rgba(216, 155, 33, 0.72);
  background: #fff7e5;
}

.role-producer header > span,
.role-producer .role-flow strong,
.role-tech header > span,
.role-tech .role-flow strong {
  color: #2457a6;
}

.role-producer header > span,
.role-tech header > span {
  border-color: rgba(36, 87, 166, 0.48);
  background: #eef4ff;
}

.role-curator header > span,
.role-curator .role-flow strong,
.role-participant header > span,
.role-participant .role-flow strong {
  color: #6654a8;
}

.role-curator header > span,
.role-participant header > span {
  border-color: rgba(102, 84, 168, 0.42);
  background: #f4f1ff;
}

.role-pr header > span,
.role-pr .role-flow strong {
  color: #c24a3d;
}

.role-pr header > span {
  border-color: rgba(194, 74, 61, 0.48);
  background: #fff0ed;
}

.role-volunteer header > span,
.role-volunteer .role-flow strong,
.role-admin header > span,
.role-admin .role-flow strong {
  color: #167045;
}

.role-volunteer header > span,
.role-admin header > span {
  border-color: rgba(22, 112, 69, 0.42);
  background: #ecf7f0;
}

@media (max-width: 980px) {
  .mindmap-canvas {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .mindmap-canvas::before,
  .mindmap-canvas::after {
    display: none;
  }

  .mind-node-core,
  .mind-ring-site,
  .mind-ring-org,
  .mind-ring-roles,
  .mind-ring-data {
    grid-column: auto;
    grid-row: auto;
  }

  .flow-steps,
  .access-grid,
  .role-detail-list,
  .role-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .mindmap-page {
    padding: 88px 0 36px;
  }

  .mindmap-hero,
  .mindmap-canvas,
  .flow-board,
  .access-board,
  .role-detail-board {
    width: calc(100vw - 24px);
  }

  .mindmap-canvas,
  .flow-board,
  .access-board,
  .role-detail-board {
    padding: 14px;
  }

  .flow-steps,
  .access-grid,
  .role-detail-list,
  .role-flow {
    grid-template-columns: 1fr;
  }

  .role-detail-card {
    padding: 14px;
  }

  .role-detail-card header {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .role-detail-card header > span {
    width: 36px;
    height: 36px;
  }
}
