/* Scoped to the team directory; original names, portraits and order retained. */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 25px; margin: 35px 0; align-items: start; }
.team-member { min-width: 0; }
.team-portrait { position: relative; overflow: hidden; background: #f2f2f2; width: 100%; max-width: 320px; aspect-ratio: 8 / 9; margin: 0 auto; }
.team-portrait > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.team-overlay { display: none; }
.team-identity { padding: 18px 8px 12px; max-width: 320px; margin: 0 auto; }
.team-identity h3 { font-size: 20px; letter-spacing: 1px; margin: 0 0 10px; overflow-wrap: anywhere; }
.team-identity h3::after { content: ""; display: block; background: var(--red); width: 35px; height: 2px; margin-top: 7px; }
.team-identity .team-role { margin: 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.article .team-info { padding: 0 8px; border: 0; max-width: 320px; margin: 0 auto; }
.team-info summary { display: flex; align-items: center; gap: 12px; width: fit-content; min-height: 44px; font-size: 16px; font-weight: 700; list-style: none; cursor: pointer; }
.team-info summary::-webkit-details-marker { display: none; }
.team-info summary:hover { color: var(--red); }
.team-info summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.team-info-icon { position: relative; width: 12px; height: 12px; flex: 0 0 12px; }
.team-info-icon::before, .team-info-icon::after { content: ""; position: absolute; background: currentColor; }
.team-info-icon::before { width: 12px; height: 2px; left: 0; top: 5px; }
.team-info-icon::after { width: 2px; height: 12px; left: 5px; top: 0; }
.team-info[open] .team-info-icon::after { display: none; }
.team-info > p { font-size: 16px; line-height: 1.5; margin: 4px 0 0; }
.team-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Hover layout only on wider screens with a mouse; touch keeps native details. */
@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
  .article .team-info { display: none; }
  .team-portrait:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
  .team-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 22px;
    background: rgba(45, 45, 45, .94);
    color: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .team-overlay p { font-size: 16px; line-height: 1.45; margin: 0; }
  .team-member:not(.team-hover-dismissed):is(:hover, :focus-within) .team-overlay {
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }
}
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (prefers-reduced-motion: reduce) { .team-overlay { transition: none; } }
