/* Operations team: original employee cards, a searchable gallery and large preview. */
.team-hero { position: relative; overflow: hidden; background: var(--burgundy-deep); color: var(--cream); }
.team-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 15% 80%, #0e3d5655, transparent 65%); pointer-events: none; }
.team-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 5rem; min-height: 470px; padding-block: 3rem 4rem; }
.team-hero-inner > * { min-width: 0; }
.team-hero h1 { margin-bottom: 1.2rem; }
.team-hero .lede { max-width: 34rem; }
.team-hero .breadcrumbs { margin-bottom: 2rem; }
.team-hero .eyebrow { margin-top: 1rem; }
.team-hero-note { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; color: var(--gold); font-size: .88rem; }
.team-hero-note::before { content: ""; width: 1.8rem; height: 1px; background: currentColor; }
.team-hero-cards { position: relative; max-width: 100%; height: 350px; margin: 1.5rem 0 0; }
.team-hero-cards img { position: absolute; width: 195px; height: 293px; object-fit: contain; border-radius: .8rem; box-shadow: 0 20px 45px #19070b66; background: white; }
.team-hero-cards img:nth-child(1) { left: 0; top: 20px; transform: rotate(-11deg); }
.team-hero-cards img:nth-child(2) { right: 0; top: 30px; transform: rotate(11deg); }
.team-hero-cards img:nth-child(3) { left: 50%; top: 0; transform: translateX(-50%); z-index: 1; }
.team-directory { padding-block: 3.5rem 6rem; }
.team-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.team-heading h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.team-total { flex: none; color: var(--muted); font-size: .92rem; }
.team-total strong { color: var(--burgundy); font-size: 1.4rem; }
.team-toolbar { display: grid; grid-template-columns: 1fr minmax(210px, 280px); gap: 1rem; padding: 1.2rem; margin-bottom: 1rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-md); }
.team-search { position: relative; }
.team-search > .i { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.team-search input, .team-role select { width: 100%; min-height: 3.3rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); }
.team-search input { padding: .7rem 3rem .7rem 1rem; }
.team-search input::placeholder { color: var(--muted); opacity: 1; }
.team-role select { padding: .7rem 1rem; }
.team-results-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.8rem; margin-bottom: 1rem; color: var(--muted); font-size: .88rem; }
.team-reset { border: 0; padding: .25rem 0; background: transparent; color: var(--burgundy); text-decoration: underline; text-underline-offset: 4px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.employee-card { min-width: 0; margin: 0; }
.employee-open { display: block; position: relative; width: 100%; padding: .65rem; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 4px 16px #24191a04; transition: border-color .2s, box-shadow .2s, transform .2s; }
.employee-open:hover { transform: translateY(-4px); border-color: #6e1f3255; box-shadow: 0 12px 30px #24191a12; }
.employee-open img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; border-radius: .5rem; background: #f8f8fa; }
.employee-expand { display: grid; place-items: center; position: absolute; bottom: 1.2rem; left: 1.2rem; width: 2.1rem; height: 2.1rem; background: var(--paper); color: var(--burgundy); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 3px 8px #00000010; }
.employee-card figcaption { padding: .9rem .25rem 0; }
.employee-card h3 { font-size: 1.05rem; line-height: 1.6; overflow-wrap: anywhere; }
.employee-card figcaption p { color: var(--muted); font-size: .83rem; margin-top: .15rem; }
.team-more { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: 2.8rem; }
.team-more p { color: var(--muted); font-size: .85rem; }
.team-empty { padding: 4rem 1rem; text-align: center; border: 1px dashed var(--line); border-radius: 1rem; }
.team-empty h3 { margin-bottom: .6rem; }
.team-empty p { color: var(--muted); }
.team-dialog { width: min(820px, calc(100% - 24px)); max-height: calc(100svh - 24px); padding: 0; overflow: auto; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 1.2rem; box-shadow: var(--shadow-lg); }
.team-dialog::backdrop { background: #170f10d9; backdrop-filter: blur(5px); }
.team-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.team-dialog-header h2 { font-size: 1.1rem; }
.team-dialog-close { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 50%; }
.team-dialog-body { display: flex; justify-content: center; padding: 1rem; background: var(--cream); }
.team-dialog-image { max-width: 100%; width: auto; height: auto; max-height: 72svh; object-fit: contain; border-radius: .6rem; }
.team-dialog-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; padding: .9rem 1.2rem; }
.team-dialog-nav { display: flex; gap: .6rem; }
.team-dialog-nav button { display: flex; align-items: center; gap: .4rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: .5rem; background: white; font-size: .85rem; }
.team-dialog-nav button:disabled { opacity: .4; cursor: default; }
.team-noscript { padding: 1rem; margin-bottom: 1rem; background: var(--cream); border-radius: .6rem; }
.team-toolbar[hidden] + .team-results-line { display: none; }
body.team-dialog-open { overflow: hidden; }
@media (max-width: 1120px) {
  .team-hero-inner { gap: 2.5rem; }
  .team-hero-cards img { width: 165px; height: 248px; }
  .team-hero-cards { height: 300px; }
}
@media (max-width: 920px) {
  .team-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2rem 3rem; }
  .team-hero-cards { width: min(400px, 100%); height: 290px; margin: 0 auto; }
  .team-hero .breadcrumbs { margin-bottom: 1.3rem; }
  .team-hero-note { margin-top: 1rem; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
}
@media (max-width: 640px) {
  .team-hero-cards img { width: 145px; height: 218px; }
  .team-hero-cards { width: min(320px, 100%); height: 250px; }
  .team-hero h1 { font-size: 2.6rem; }
  .team-directory { padding-block: 2.5rem 4rem; }
  .team-heading { align-items: center; }
  .team-toolbar { grid-template-columns: 1fr; padding: .8rem; gap: .7rem; }
  .team-search input { font-size: .9rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem .8rem; }
  .employee-open { padding: .35rem; border-radius: .7rem; }
  .employee-expand { bottom: .7rem; left: .7rem; width: 1.7rem; height: 1.7rem; }
  .employee-expand .i { width: 1rem; height: 1rem; }
  .employee-card h3 { font-size: .95rem; }
  .employee-card figcaption p { font-size: .78rem; }
  .team-dialog-header, .team-dialog-footer { padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .employee-open { transition: none; }
  .employee-open:hover { transform: none; }
}
