/* Approved alternating team rows; reference portrait frame has two curved corners. */
html body main #team>.container>.section-head{width:100%;max-width:none;max-inline-size:none}
html body main #team .section-head :is(h1,.section-intro){width:100%;max-width:none!important;max-inline-size:none!important}
#team-preview-grid {
  --tp-text: #f1f6f8;
  --tp-muted: #c1d0da;
  --tp-line: #456070;
  --tp-accent: #acd875;
  --tp-frame-top: #477fa2;
  --tp-frame-bottom: #17466b;
  --tp-frame-border: #7597af;
  --tp-frame-shadow: #03131d30;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
html[data-color-mode=light] #team-preview-grid {
  --tp-text: #123452;
  --tp-muted: #496176;
  --tp-line: #c9d6d9;
  --tp-accent: #608d2a;
  --tp-frame-top: #558aad;
  --tp-frame-bottom: #24577d;
  --tp-frame-border: #7597af;
  --tp-frame-shadow: #1234520d;
}
#team-preview-grid * { box-sizing: border-box; }
html body #team-preview-grid .tp-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  position: relative;
  border: 0;
  border-bottom: 1px solid var(--tp-line);
  border-radius: 0;
  padding: 32px 0;
  background: transparent;
}
#team-preview-grid .tp-portrait {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  justify-content: center;
  width: min(100%, 440px);
  min-width: 0;
  margin: 0 auto;
  padding: 24px 24px 0;
  border: 1px solid var(--tp-frame-border);
  border-radius: 42px 0 42px 0;
  background: linear-gradient(135deg,#42647a,#213f54);
  box-shadow: 0 12px 32px var(--tp-frame-shadow);
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease;
}
/* Approved option 04: subtle SPARK identity pattern behind original portraits. */
#team-preview-grid .tp-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/images/brand/spark-s-pattern.svg') center/cover;
  opacity: .07;
  pointer-events: none;
  z-index: -1;
}
html[data-color-mode=light] #team-preview-grid .tp-portrait {
  background: linear-gradient(135deg,#e7eef1,#b6c9d4);
}
html[data-color-mode=light] #team-preview-grid .tp-portrait::before { opacity: .055; }
#team-preview-grid .tp-portrait::after {
  content: none;
}
html body #team-preview-grid .tp-photo {
  width: 100%;
  height: clamp(300px, 28vw, 380px);
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  border: 0;
  border-radius: 0;
  filter: none;
  transform: none;
}
#team-preview-grid .tp-card:nth-child(even) .tp-portrait { grid-column: 2; grid-row: 1; }
#team-preview-grid .tp-card:nth-child(even) .tp-caption { grid-column: 1; grid-row: 1; }
#team-preview-grid .tp-caption { min-width: 0; padding: 40px; }
#team-preview-grid .tp-caption::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--tp-accent);
  margin-bottom: 16px;
}
html body #team-preview-grid h3 {
  color: var(--tp-text) !important;
  font-size: clamp(25px,3vw,39px);
  line-height: 1.35;
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}
html body #team-preview-grid p { color: var(--tp-muted) !important; font-size: 14px; line-height: 1.65; margin: 0; }
@media (hover:hover) and (pointer:fine) {
  #team-preview-grid .tp-card:hover .tp-portrait {
    border-color: var(--tp-frame-border);
    box-shadow: 0 14px 36px var(--tp-frame-shadow);
  }
}
@media(max-width:800px) {
  #team-preview-grid .tp-caption { padding: 28px; }
  #team-preview-grid .tp-portrait { padding: 20px 16px 0; }
}
@media(max-width:600px) {
  html body #team-preview-grid .tp-card { display: flex; flex-direction: column; padding: 24px 0; }
  #team-preview-grid .tp-portrait { width: min(100%,360px); }
  #team-preview-grid .tp-caption { width: 100%; padding: 26px 12px 12px; text-align: center; }
  #team-preview-grid .tp-caption::before { margin-inline: auto; }
  html body #team-preview-grid .tp-photo { height: 300px; }
}
@media(prefers-reduced-motion:reduce) {
  #team-preview-grid .tp-portrait { transition: none; }
}
