/* Team roles form an interactive, topic-specific diagram. Native radios support keyboard navigation. */
.support-map {
  background: #f7f9f6;
  text-align: center;
  --map-ink: #174f57;
  --map-line: #81d8d0;
}
.support-map .container { max-width: 64rem; }
.support-map .map-intro {
  margin: .45rem auto .85rem;
  max-width: 42rem;
  color: #53676b;
  line-height: 1.6;
}
.map-field {
  position: relative;
  margin: 0 auto;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: 44rem;
  min-inline-size: 0;
}
.map-drawing {
  position: relative;
  width: 100%;
  height: clamp(17rem, 31vw, 19rem);
  isolation: isolate;
}
.map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--map-line);
  stroke-width: 1.6px;
  pointer-events: none;
}
.map-lines line { vector-effect: non-scaling-stroke; }
.map-optional { stroke-dasharray: 5 4; }
.map-centre, .map-member {
  position: absolute;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}
.map-centre {
  left: 50%;
  top: 50%;
  width: clamp(6rem, 19%, 8.5rem);
  aspect-ratio: 1;
  padding: .65rem;
  border-radius: 50%;
  background: #174f57;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-wrap: balance;
  box-shadow: 0 0 0 5px #f7f9f6, 0 0 0 6px #81d8d0;
}
.map-centre > span { font-size: .82rem; color: #e8f6f4; line-height: 1.2; }
.map-centre > strong { font-size: clamp(.96rem, 1.65vw, 1.24rem); line-height: 1.35; }
.map-member {
  left: var(--x);
  top: var(--y);
  width: 24%;
  max-width: 9rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  color: var(--map-ink);
}
.map-member input, .map-reader-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.map-mark {
  display: grid;
  place-items: center;
  border: 1.5px solid #81d8d0;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  background: #fff;
  color: #08777b;
  font: 700 1.02rem/1 Arial, sans-serif;
}
.map-mark svg { width: 1.55rem; height: 1.55rem; }
.map-name {
  margin-top: .22rem;
  background: #f7f9f6;
  padding-inline: .22rem;
  color: #174f57;
  font-size: .98rem;
  font-weight: 650;
  line-height: 1.35;
  text-wrap: balance;
}
.map-member:has(:checked) .map-mark {
  border-color: #08777b;
  background: #08777b;
  color: white;
  box-shadow: 0 0 0 3px #e8f6f4;
}
.map-member:has(:focus-visible) .map-mark {
  outline: 3px solid #89652e;
  outline-offset: 3px;
}
@media (hover: hover) {
  .map-member:hover .map-mark { border-color: #08777b; box-shadow: 0 0 0 3px #e8f6f4; }
}
.support-map .map-prompt {
  margin: .05rem auto .65rem;
  font-size: .85rem;
  color: #53676b;
  line-height: 1.5;
}
.map-details {
  max-width: 38rem;
  margin-inline: auto;
  padding: .75rem 1rem;
  background: #f5fbfa;
  border-radius: .5rem;
  color: #253238;
}
.map-description { display: none; }
.map-description strong { color: #174f57; font-size: 1.04rem; }
.support-map .map-description p { margin: .18rem 0 0; line-height: 1.55; }
.map-field:has(#role-1:checked) .map-description-1,
.map-field:has(#role-2:checked) .map-description-2,
.map-field:has(#role-3:checked) .map-description-3,
.map-field:has(#role-4:checked) .map-description-4,
.map-field:has(#role-5:checked) .map-description-5,
.map-field:has(#role-6:checked) .map-description-6 { display: block; }
.map-field:has(#role-1:checked) .map-link-1,
.map-field:has(#role-2:checked) .map-link-2,
.map-field:has(#role-3:checked) .map-link-3,
.map-field:has(#role-4:checked) .map-link-4,
.map-field:has(#role-5:checked) .map-link-5,
.map-field:has(#role-6:checked) .map-link-6 { stroke: #08777b; stroke-width: 2.3px; }
.support-map .map-boundary {
  margin: .72rem auto 0;
  max-width: 41rem;
  color: #42787b;
  font-size: .85rem;
  line-height: 1.6;
}
@media (max-width: 620px) {
  .map-member { width: 28%; }
  .map-mark { width: 2.55rem; height: 2.55rem; font-size: .9rem; }
  .map-name { font-size: .88rem; }
  .map-centre { width: clamp(5.5rem,24%,6.25rem); padding: .35rem; }
  .map-centre > span { font-size: .73rem; }
  .map-centre > strong { font-size: .91rem; }
  html[lang="en"] .map-centre > span { font-size: .71rem; }
  html[lang="en"] .map-centre > strong { font-size: .82rem; }
  html[lang="en"] .map-name { font-size: .82rem; }
  .support-map .map-description p { font-size: .94rem; }
}


@media (max-width: 360px) {
  html[lang="en"] .map-drawing { height: 19rem; }
}
