/* Visão: only what the shared team-page components don't already provide.
   Loaded before team-pages.css, so every rule is scoped under .team-page. */

.team-page .visao-hero h1 {
  font-size: clamp(2.6rem, 4.3vw, 4.25rem);
}

.team-page .visao-hero__accent {
  display: block;
  color: var(--team-accent);
}

.team-page .visao-map {
  display: grid;
  gap: 12px;
  margin: 0;
  min-width: 0;
}
.team-page .visao-map figcaption { text-align: center; }
.team-page .visao-map__inputs li small {
  display: block;
  margin-top: 2px;
  color: var(--team-muted);
  font-size: .9em;
}

/* Section labels above titles (case-reading paragraphs are muted by default). */
.team-page .case-reading p.team-page__label,
.team-page .visao-section-head p.team-page__label,
.team-page .team-page__section-header p.team-page__label,
.team-page .visao-end > p.team-page__label,
.team-page .mix-solution-copy p.team-page__label {
  max-width: none;
  margin: 0 0 14px;
  color: var(--team-accent);
  line-height: 1.4;
}

/* Horizon: three stages, enhanced into tabs by visao.js. */
.team-page .visao-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  align-items: end;
  gap: 16px clamp(28px, 6vw, 96px);
}
.team-page .visao-section-head > p {
  max-width: 44ch;
  color: var(--team-muted);
  line-height: 1.65;
}
.team-page .visao-horizon h2,
.team-page .visao-story h2,
.team-page .visao-conditions h2 { max-width: 20ch; }

.team-page .visao-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: clamp(26px, 3vw, 40px);
}
.team-page .visao-tabs[hidden] { display: none; }
.team-page .visao-tabs button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--team-rule);
  border-radius: 5px;
  background: var(--team-panel);
  color: var(--team-ink);
  font: 600 1.05rem/1.2 var(--team-display);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.team-page .visao-tabs button small {
  color: var(--team-accent);
  font: 400 .72rem/1.3 var(--team-mono);
  letter-spacing: .08em;
}
.team-page .visao-tabs button:hover { background: #f4eff7; border-color: #a18ab4; }
.team-page .visao-tabs button[aria-selected="true"] {
  border-color: var(--team-accent);
  background: #f1ecf5;
  box-shadow: inset 0 -3px 0 var(--team-accent);
}
.team-page .visao-tabs button:focus-visible,
.team-page .visao-stage:focus-visible {
  outline: 2px solid var(--team-accent);
  outline-offset: 3px;
}

.team-page .visao-stages { margin-top: 18px; }
.team-page .visao-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding-block: clamp(26px, 3.4vw, 48px);
  border-top: 1px solid var(--team-rule);
}
.team-page .visao-horizon.is-tabbed .visao-stage {
  padding: clamp(22px, 3vw, 44px);
  border: 1px solid #c7b8d1;
  border-radius: 6px;
  background: var(--team-panel);
  box-shadow: 5px 5px 0 #e9e2ef;
}
.team-page .visao-stage[hidden] { display: none; }
.team-page .visao-stage__number { color: var(--team-ink); margin-right: .6em; }
.team-page .visao-stage h3 {
  margin-top: 4px;
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}
.team-page .visao-stage__copy > p:not(.team-page__label) {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--team-muted);
  line-height: 1.65;
}
.team-page .visao-stage__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.team-page .visao-stage__points li {
  padding: 5px 10px;
  border: 1px solid var(--team-rule);
  border-radius: 4px;
  background: #f8f4fb;
  color: var(--team-ink);
  font: 400 .76rem/1.35 var(--team-mono);
}
.team-page .visao-stage__aside {
  display: grid;
  gap: 6px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--team-rule);
  color: var(--team-muted);
  font-size: .93rem;
  line-height: 1.6;
}
.team-page .visao-stage__aside .team-page__example-link { width: fit-content; }

.team-page .visao-stage__figure {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(36px, 4vw, 58px) clamp(16px, 2.4vw, 34px);
  border: 1px solid var(--team-rule);
  border-radius: 5px;
  background: var(--destination-lilac, #efe8f5) var(--destination-grain, none);
}
.team-page .visao-stage__badge {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--team-accent);
  font: 400 .72rem/1 var(--team-mono);
  letter-spacing: .08em;
}
.visao-art { display: block; width: 100%; max-width: 360px; height: auto; }
.visao-art__cards rect { fill: #fff; stroke: #ae98c1; stroke-width: 1.2; }
.visao-art__lines { stroke: #cdbfdb; stroke-width: 2.4; stroke-linecap: round; }
.visao-art__broken { stroke: #9e83b8; stroke-width: 1.3; stroke-dasharray: 3 5; stroke-linecap: round; }
.visao-art__links { stroke: #8f72aa; stroke-width: 1.3; }
.visao-art__marks circle { fill: #6728d4; }
.visao-art__q { fill: #6728d4; font: 600 26px/1 "Bricolage Grotesque", Inter, sans-serif; text-anchor: middle; }
.visao-art__hub { fill: #6728d4; stroke: #4b1fa0; stroke-width: 1; }
.visao-art__hub-lines { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.visao-art__ring { stroke: #ae98c1; stroke-width: 1.2; stroke-dasharray: 2 6; }
.visao-art__ring--inner { stroke-dasharray: none; stroke: #cdbfdb; }
.visao-art__people { stroke: #2b2440; stroke-width: 1.4; fill: #fff; stroke-linecap: round; }
.visao-art__agents { stroke: #6728d4; stroke-width: 1.4; fill: #fff; stroke-linecap: round; }

/* Timeline and conditions reuse .team-page__jobs. */
.team-page .visao-timeline .team-page__label,
.team-page .visao-year .team-page__label { font-size: .9rem; letter-spacing: .06em; }
.team-page .visao-condition .team-nav__icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--team-rule);
  border-radius: 4px;
  background: #f8f5fa;
  color: var(--team-accent);
}
.team-page .visao-condition .team-nav__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.team-page .visao-condition__value {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--team-rule);
  font-size: .86rem;
  line-height: 1.55;
}
.team-page .visao-condition__value strong {
  display: block;
  margin-bottom: 3px;
  color: var(--team-accent);
  font: 400 .72rem/1.4 var(--team-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.team-page .visao-conditions .team-page__section-header,
.team-page .visao-story .team-page__section-header { align-items: end; }

/* Motors reuse the native depth grid. */
.team-page .visao-motors article { display: flex; flex-direction: column; }
.team-page .visao-motors article .team-page__example-link { margin-top: auto; padding-top: 14px; }
.team-page .visao-chapters .mix-depth-heading > p { font-family: var(--team-mono); font-weight: 400; text-transform: uppercase; }

/* Example. */
.team-page .visao-example__note {
  margin-top: 10px;
  color: var(--team-muted);
  font-size: .75rem;
}

/* What we don't negotiate: a dark band, like the native handoff panels. */
.team-page .visao-promise {
  background: #18152b;
  border-top-color: #18152b;
}
.team-page .visao-promise > .ed-paper-layer { display: none; }
.team-page .visao-promise h2 { color: #fff; }
.team-page .visao-promise.case-reading p.team-page__label { color: #c9b8ff; }
.team-page .visao-promise.case-reading p:not(.team-page__label) { color: rgb(255 255 255 / .8); }
.team-page .visao-promise dt { color: #fff; }
.team-page .visao-promise dd { color: rgb(255 255 255 / .78); }
.team-page .visao-promise dl > div + div { border-top-color: rgb(255 255 255 / .2); }

/* Ending. */
.team-page .visao-end__text {
  max-width: 56ch;
  margin-top: 14px;
  color: var(--team-muted);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .team-page .visao-section-head { grid-template-columns: minmax(0, 1fr); }
  .team-page .visao-stage { grid-template-columns: minmax(0, 1fr); }
  .team-page .visao-stage__figure { order: -1; }
}

@media (max-width: 520px) {
  .team-page .visao-tabs { gap: 6px; }
  .team-page .visao-tabs button { min-height: 56px; padding: 10px; font-size: .92rem; }
  .team-page .visao-horizon.is-tabbed .visao-stage { padding: 18px 16px; box-shadow: 3px 3px 0 #e9e2ef; }
  .team-page .visao-stage__figure { padding: 34px 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .team-page .visao-tabs button { transition: none; }
}
