/* team.css: portal page layout only (D14, ARCHITECTURE.md 7 step 2).
   Every selector carries a .team- class. No custom property declared, no
   components.css or base.css selector restyled, no raw color: tokens by
   var() only. tests/test_team_assets.py greps for all four.

   Header chrome stays on the public-site classes. The two substrates are
   .team-sub disclosures inside that list. A rule on .sitenav or .wrap is
   the component restyle D14 forbids. */

/* Vertical rhythm between the sections of a page. */
.team-stack > * + * { margin-top: var(--s5); }

/* Three-zone deck tables, main, extra, side (INFORMATION-ARCHITECTURE.md 5.1,
   5.2). Stacked by default; side by side at desktop density. Same pointer
   gate tokens.css uses, and the data-density override wins both ways. */
.team-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}
.team-deck__zone { min-width: 0; }
.team-deck__zone > * + * { margin-top: var(--s3); }
@media (min-width: 1024px) and (pointer: fine) {
  .team-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s4);
  }
}
:root[data-density="comfortable"] .team-deck { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  :root[data-density="dense"] .team-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s4);
  }
}

/* Control clusters: per-line forms in the builder (5.2 item 4), verb buttons
   and export links on a detail page. */
.team-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}

/* Print link to the /print/ view (INFORMATION-ARCHITECTURE.md 5.1, 6). */
.team-print {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  gap: var(--s2);
  color: var(--eye);
}
.team-print:visited { color: var(--eye); }

/* Two substrates in the header. Closed, the bar is the two names. Open, the
   links drop under that name. On a narrow or coarse screen they expand in
   place, because the bar itself is already stacked. */
.team-sub { position: relative; }
.team-sub__btn {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: var(--tap);
  padding-inline: var(--s2);
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.team-sub__btn::marker,
.team-sub__btn::-webkit-details-marker { content: ""; display: none; }
.team-sub__btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--eye);
}
.team-sub[open] > .team-sub__btn { color: var(--eye); }
.team-sub__btn[aria-current] {
  color: var(--eye);
  box-shadow: inset 0 calc(-1 * var(--bw-thick)) 0 var(--eye);
}
.team-sub__list {
  list-style: none;
  margin: 0;
  padding: var(--s2) 0;
  background: var(--night2);
  border: var(--bw) solid var(--rule-strong);
}
.team-sub__list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: var(--s3);
  white-space: nowrap;
}
@media (min-width: 1024px) and (pointer: fine) {
  .team-sub__list {
    position: absolute;
    z-index: var(--z-nav);
    top: 100%;
    left: 0;
    min-width: 14rem;
  }
}
