/* Isolated team-page layout; intentionally independent of the old team-grid rules. */
.staff-roster {
  padding-top: 0;
  padding-bottom: 56px;
}
.staff-list {
  display: flex;
  flex-direction: column;
}
.staff-member {
  display: grid;
  grid-template-columns: clamp(280px, 24vw, 310px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 4vw, 60px);
  padding-block: 38px;
  border-top: 1px solid var(--line, #dedbd3);
}
.staff-member:first-child {
  padding-top: 0;
  border-top: 0;
}
.staff-member-reverse {
  grid-template-columns: minmax(0, 1fr) clamp(280px, 24vw, 310px);
}
.staff-member-reverse .staff-photo {
  grid-column: 2;
  grid-row: 1;
}
.staff-member-reverse .staff-content {
  grid-column: 1;
  grid-row: 1;
}
.staff-photo {
  width: 100%;
  margin: 0;
}
.staff-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
}
.staff-content {
  min-width: 0;
  display: grid;
  gap: 24px;
}
.staff-presentation .staff-name-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.staff-specialty {
  margin: 0 0 12px;
  color: var(--gold, #796033);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.5;
}
.staff-specialty-label {
  font-weight: 600;
}
.staff-biography {
  margin: 0;
  max-width: 76ch;
  color: var(--muted, #686961);
  font-size: 15px;
  line-height: 1.7;
}
.staff-biography > p {
  margin: 0;
}
.staff-biography > p + p {
  margin-top: 5px;
}
.staff-invite {
  padding-top: 28px;
  border-top: 1px solid var(--line, #dedbd3);
}
.staff-invite h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.staff-invite p {
  color: var(--muted, #686961);
  font-size: 14px;
}

/* Only genuine cards are rendered in HTML. Decorative loop groups require JS. */
.team-review-panel {
  min-width: 0;
  max-width: 100%;
  --team-review-gap: 14px;
  --team-review-card-width: min(260px, calc(100vw - 2 * var(--page-gutter, 22px) - 4px));
}
.team-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 14px;
}
.team-review-heading h3 {
  margin: 0;
  color: var(--ink, #22231f);
  font-family: var(--serif, Georgia, serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.team-review-selection {
  margin: 5px 0 0;
  color: var(--muted, #686961);
  font-size: 12px;
  line-height: 1.5;
}
.team-review-pause {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--champagne, #c8b897);
  border-radius: 6px;
  background: transparent;
  color: var(--gold, #796033);
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
}
.team-review-pause[hidden] {
  display: none;
}
.team-review-pause:hover {
  background: #eee8dc;
}
.team-review-rows {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.team-review-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--champagne, #c8b897) transparent;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  overflow-anchor: none;
}
.team-review-track {
  position: relative;
  display: flex;
  width: max-content;
}
.team-review-group {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  gap: var(--team-review-gap);
  padding-right: var(--team-review-gap);
}
.team-review-group-clone {
  display: none;
}
.team-review-viewport[data-motion='true'] .team-review-group-clone {
  display: flex;
}
.team-review-viewport[data-motion='true'] .team-review-track {
  will-change: transform;
}
.team-review-card {
  display: flex;
  flex: 0 0 var(--team-review-card-width);
  flex-direction: column;
  width: var(--team-review-card-width);
  height: 195px;
  padding: 14px 16px;
  border: 1px solid #ded6c7;
  border-radius: 9px;
  background: var(--paper, #fffefb);
  color: var(--ink, #22231f);
}
.team-review-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 8px;
}
.team-review-author {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.team-review-stars {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 1px;
  padding-top: 2px;
  color: #94640b;
}
.team-review-stars svg {
  fill: var(--review-star-fill, #d7a31d);
  stroke: #94640b;
}
.team-review-meta {
  flex-shrink: 0;
  margin: 5px 0 0;
  color: #68645a;
  font-size: 11.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.team-review-source {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--gold, #796033);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.team-review-text {
  flex: 1 1 auto;
  min-height: 0;
  margin: 10px 0 0;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--champagne, #c8b897) transparent;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.team-review-text:focus-visible,
.team-review-viewport:focus-visible {
  outline: 2px solid var(--gold, #796033);
  outline-offset: -2px;
}
/* JavaScript transfers animation to native scroll before hiding decorative
   copies. No CSS focus/hover reset may discard that exact reading position. */
@media (max-width: 800px) {
  .staff-roster {
    padding-bottom: 42px;
  }
  .staff-member,
  .staff-member-reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-block: 30px;
  }
  .staff-member .staff-photo,
  .staff-member-reverse .staff-photo {
    grid-column: 1;
    grid-row: 1;
    width: min(250px, 100%);
    margin-inline: auto;
  }
  .staff-member .staff-content,
  .staff-member-reverse .staff-content {
    grid-column: 1;
    grid-row: 2;
    gap: 22px;
  }
  .staff-specialty {
    margin-bottom: 10px;
    font-size: 15.5px;
    letter-spacing: .01em;
  }
  .staff-biography {
    max-width: none;
    font-size: 14px;
    line-height: 1.65;
  }
  .staff-invite h2 {
    font-size: 31px;
  }
  .team-review-panel {
    --team-review-gap: 12px;
  }
  .team-review-heading {
    gap: 10px;
    margin-bottom: 12px;
  }
  .team-review-heading h3 {
    font-size: 25px;
  }
  .team-review-card {
    flex: 0 0 175px;
    width: 100%;
    height: 175px;
    padding: 12px 14px;
  }
  .team-review-text {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
  }
  .team-review-viewport {
    height: 362px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .team-review-viewport[hidden] {
    display: none;
  }
  .team-review-track {
    width: 100%;
    flex-direction: column;
  }
  .team-review-group {
    width: 100%;
    flex-direction: column;
    padding-right: 0;
    padding-bottom: var(--team-review-gap);
  }
}
@media (prefers-reduced-motion: reduce) {
  .team-review-viewport[data-motion='true'] .team-review-track {
    animation: none;
    transform: none;
  }
  .team-review-viewport[data-motion='true'] .team-review-group-clone,
  .team-review-pause {
    display: none;
  }
}
