/* V16 | 活動組改為兩字身分徽章＋SNS 膠囊按鈕 */
.team-section { overflow:hidden; }
.team-inner { max-width:1200px; }
.team-carousel { position:relative; padding:0 42px; }
.team-grid {
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:calc((100% - 42px) / 4);
  grid-template-columns:none;
  gap:14px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding:3px 1px 7px;
  touch-action:pan-x pan-y;
}
.team-grid::-webkit-scrollbar { display:none; }
.team-grid.is-dragging { cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto; user-select:none; }
.team-card {
  scroll-snap-align:start;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
  min-height:176px;
  gap:13px;
  padding:16px 17px 18px;
}
.team-person { display:flex; gap:12px; align-items:flex-start; min-width:0; }
.team-badge {
  width:54px; height:54px; flex:0 0 54px;
  border-radius:16px;
  background:#237c77;
  color:#fffdf7;
  display:grid; place-items:center;
  font-size:20px; font-weight:800; line-height:1;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.14), 0 4px 12px rgba(30,84,74,.16);
  letter-spacing:.02em;
}
.team-copy { min-width:0; flex:1; }
.team-name { display:block; font-size:14px; margin:2px 0 0; line-height:1.45; color:#1f6b66; }
.team-sns-button {
  margin-top:7px;
  width:auto;
  max-width:100%;
  min-height:29px;
  padding:4px 12px;
  justify-content:center;
  font-size:11px;
}
.team-message { margin:0; font-size:12px; line-height:1.85; }
.team-arrow {
  appearance:none;
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:1;
  width:36px;height:36px;
  display:grid;place-items:center;
  border-radius:50%;
  border:1px solid #bcdad0;
  background:#fffdf7;
  color:#267e77;
  box-shadow:0 3px 10px rgba(57,108,95,.10);
  cursor:pointer;
  transition:background .16s,color .16s,opacity .16s;
}
.team-arrow:hover:not(:disabled), .team-arrow:focus-visible { background:#d4eee5; color:#176961; }
.team-arrow:focus-visible, .team-grid:focus-visible { outline:2px solid #258b83; outline-offset:2px; }
.team-prev { left:0; }
.team-next { right:0; }
.team-arrow:disabled { opacity:.24; cursor:default; }
.team-carousel:not(.can-scroll) .team-arrow { display:none; }
.team-position { text-align:center; color:#6d8f84; font-size:11px; letter-spacing:.08em; margin:10px 0 0; font-variant-numeric:tabular-nums; }
@media (max-width:1000px) {
  .team-grid { grid-auto-columns:calc((100% - 14px) / 2); }
}
@media (max-width:600px) {
  .team-section { padding:44px 0 48px; }
  .team-carousel { padding:0 28px; }
  .team-grid { grid-template-columns:none; grid-auto-columns:100%; gap:10px; }
  .team-card { min-height:152px; padding:15px 16px; }
  .team-badge { width:50px; height:50px; flex-basis:50px; border-radius:15px; font-size:18px; }
  .team-arrow { width:26px; height:34px; border-radius:11px; background:#fffdf9e8; }
  .team-arrow svg { width:18px;height:18px; }
  .team-position { margin-top:6px; }
}
@media (prefers-reduced-motion:reduce) {
  .team-grid { scroll-behavior:auto; }
  .team-arrow { transition:none; }
}
