/* Team directory layout — shares the homepage portrait-card visual style. */
.team-tools{display:grid;gap:.4rem;max-width:26rem;margin-bottom:1.75rem}
.team-tools label{font-weight:600;font-size:.9rem}
.team-tools input{font:inherit;padding:.7rem .9rem;min-height:44px;border:1.5px solid var(--line);border-radius:8px;background:#fff}
.team-tools p{margin:0;font-size:.9rem;color:var(--ink-soft)}
.team-page{padding:2.5rem 0 4rem}
.team-directory{display:grid;gap:2.5rem}
.team-office-group{min-width:0}
.team-office-group[hidden]{display:none}
.team-office-group h2{margin:0 0 1rem;font-size:clamp(1.25rem,2.4vw,1.7rem);line-height:1.25;color:var(--ink)}
.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:1.1rem;align-items:stretch}
.team-grid .agent-card{width:100%;min-width:0;max-width:none;flex:none;transform:none;opacity:1;margin:0;height:100%;min-height:420px}
.team-grid .agent-card:hover{transform:translateY(-3px)}
.team-grid .agent-card[hidden]{display:none}
.team-office-group .team-grid{align-items:stretch}
.team-office-group .agent-card{min-height:420px}
@media(max-width:600px){.team-directory{gap:2rem}.team-office-group h2{margin-bottom:.8rem}.team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.team-grid .agent-card,.team-office-group .agent-card{min-height:0;padding:10px 9px 13px;border-radius:16px}.team-grid .agent-avatar{border-radius:13px;margin-bottom:10px}.team-grid .agent-name{font-size:.96rem}.team-grid .agent-role{font-size:.8rem;min-height:0}.team-grid .agent-office{font-size:.68rem;min-height:0;margin-bottom:10px}.team-grid .agent-call-button{padding:8px 11px;min-height:34px;font-size:10px;letter-spacing:.8px}}
@media(max-width:380px){.team-grid{grid-template-columns:1fr}.team-grid .agent-card{max-width:320px;width:100%;justify-self:center}}

/* Office filters */
.team-filters{display:flex;flex-wrap:nowrap;align-items:center;gap:.5rem;width:max-content;max-width:100%;box-sizing:border-box;margin:0 auto 1.5rem;padding:7px 4px 10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#b7cbbd transparent;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.team-filter{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:44px;padding:.55rem .85rem;border:1px solid #d2e2d7;border-radius:999px;background:#f2f8f4;color:#007a40;font:inherit;font-size:.88rem;font-weight:600;line-height:1.25;text-align:center;white-space:nowrap;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.team-filter:hover,.team-filter.is-active{background:#007a40;border-color:#007a40;color:#fff}
.team-filter:focus-visible{outline:3px solid #00a858;outline-offset:3px}
.team-filters::-webkit-scrollbar{height:5px}
.team-filters::-webkit-scrollbar-track{background:transparent}
.team-filters::-webkit-scrollbar-thumb{border-radius:999px;background:#b7cbbd}
.team-filters::-webkit-scrollbar-thumb:hover{background:#8eaa97}
.team-grid .agent-card[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){.team-filter{transition:none}.team-filters{scroll-behavior:auto}}
