/* =========================================================
   Our Team — /our-team
   Hero, group filter cards, professionals carousel, directory.
   Uses the site tokens (style.css / tokens.css) throughout.
   ========================================================= */

.tm-page {
    --tm-navy: #0C2F57;
    --tm-navy-2: #12487F;
    --tm-teal: #2EC4B6;
    --tm-line: #D6E4F5;
    --tm-soft: #F3F8FE;
    background: linear-gradient(180deg, #F7FAFE 0%, #FFFFFF 40%);
    color: var(--text);
}

/* Tints: one colour family per group, used by the art tiles. */
.tm-page .tint-blue   { --tc: #1B4DB3; --tb: #E6EFFD; }
.tm-page .tint-indigo { --tc: #4F46E5; --tb: #ECEBFE; }
.tm-page .tint-teal   { --tc: #0F9488; --tb: #E1F6F3; }
.tm-page .tint-cyan   { --tc: #0891B2; --tb: #E0F4FA; }
.tm-page .tint-green  { --tc: #15803D; --tb: #E5F6EA; }
.tm-page .tint-red    { --tc: #DC2626; --tb: #FDECEC; }
.tm-page .tint-sky    { --tc: #0284C7; --tb: #E3F2FC; }
.tm-page .tint-violet { --tc: #7C3AED; --tb: #F1EAFE; }
.tm-page .tint-amber  { --tc: #B45309; --tb: #FDF1DF; }

/* ── Hero ─────────────────────────────────────────────── */
.tm-hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding-top: calc(var(--header-height, 72px) + clamp(22px, 3.5vw, 40px));
    padding-bottom: clamp(26px, 3.5vw, 42px);
    color: #fff;
    background:
        radial-gradient(600px 300px at 85% 30%, rgba(46, 196, 182, .22), transparent 70%),
        linear-gradient(100deg, #0B2C52 0%, #11477D 55%, #1C6AA8 100%);
}
.tm-hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18;
    background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.tm-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; }
.tm-crumb { font-size: var(--text-small, .8125rem); color: rgba(255,255,255,.7); margin-bottom: 10px; display: flex; gap: 8px; }
.tm-crumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.tm-crumb a:hover { color: #fff; text-decoration: underline; }
.tm-hero h1 {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em;
    text-transform: uppercase; color: #fff; margin: 0 0 14px;
    font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05;
    position: relative; padding-bottom: 14px;
}
.tm-hero h1 span { color: var(--tm-teal); }
.tm-hero h1::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 4px;
    background: var(--tm-teal);
}
.tm-hero p { max-width: 64ch; margin: 0; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.55; color: rgba(255,255,255,.92); }
.tm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tm-btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.tm-btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

.tm-hero-art { position: relative; height: 190px; }
.tm-hero-art .tm-hx {
    position: absolute; display: grid; place-items: center; color: #fff;
    width: 76px; height: 76px;
    clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
    background: linear-gradient(145deg, rgba(46,196,182,.55), rgba(27,77,179,.35));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
    font-size: 1.5rem;
}
.tm-hero-art .tm-hx-1 { left: 0;    top: 20px; }
.tm-hero-art .tm-hx-2 { left: 92px; top: 52px; width: 120px; height: 120px; font-size: 2.6rem;
                     background: linear-gradient(145deg, rgba(46,196,182,.75), rgba(28,106,168,.6)); }
.tm-hero-art .tm-hx-3 { left: 30px; top: 112px; width: 60px; height: 60px; font-size: 1.2rem; }
.tm-hero-art .tm-hx-4 { left: 222px; top: 0; width: 64px; height: 64px; font-size: 1.25rem; }

/* ── Sections ─────────────────────────────────────────── */
.tm-sec { padding: clamp(22px, 3vw, 34px) 0; }
.tm-sec--groups { padding-top: clamp(20px, 2.6vw, 28px); padding-bottom: 8px; }

/* ── Group filter cards ───────────────────────────────── */
/* 5 across on the first row and 6 on the second, as in the brief:
   a 30-column grid where the first five span 6 and the rest span 5. */
.tm-groups { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 14px; }
.tm-group { grid-column: span 5; }
.tm-group:nth-child(-n+5) { grid-column: span 6; }

.tm-group {
    position: relative; display: flex; align-items: stretch; min-height: 124px;
    background: #fff; border: 1px solid var(--tm-line); border-radius: 12px;
    text-decoration: none; color: var(--text); overflow: hidden;
    box-shadow: 0 2px 10px rgba(12, 47, 87, .05);
    transition: border-color var(--duration-base, .2s), box-shadow var(--duration-base, .2s), transform var(--duration-base, .2s);
}
@media (min-width: 1181px) {
    /* Second row has six narrower cards. */
    .tm-group:nth-child(n+6) .tm-group-art { max-width: 54px; font-size: 1.6rem; }
    .tm-group:nth-child(n+6) .tm-group-tx { padding-left: 10px; padding-right: 10px; }
    .tm-group:nth-child(n+6) .tm-group-tx b { font-size: .88rem; overflow-wrap: normal; }
}
.tm-group:hover { border-color: #9CC0EA; box-shadow: 0 8px 24px rgba(12, 47, 87, .1); transform: translateY(-2px); color: var(--text); }
.tm-group:focus-visible { outline: 3px solid rgba(27, 77, 179, .45); outline-offset: 2px; }
.tm-group.is-active {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, #F2F7FF, #E7F0FD);
    box-shadow: 0 8px 26px rgba(27, 77, 179, .16);
}
.tm-group-art {
    flex: 0 0 30%; max-width: 84px;
    display: grid; place-items: center;
    background:
        radial-gradient(circle at 50% 110%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 62%),
        var(--tb);
    color: var(--tc); font-size: 2rem;
}
.tm-group-tx { flex: 1; display: flex; flex-direction: column; padding: 12px 14px 12px 12px; min-width: 0; }
.tm-group-ic { display: none; }
.tm-group-tx b { font-family: var(--font-display); font-size: .98rem; overflow-wrap: anywhere; line-height: 1.2; color: #12233D; }
.tm-group-tx em { font-style: normal; font-size: .84rem; line-height: 1.3; color: var(--text-light); margin-top: 2px; }
.tm-group-tx small { margin-top: auto; padding-top: 6px; padding-right: 30px; font-size: .74rem; color: var(--text-muted); }
.tm-group-go {
    position: absolute; right: 10px; bottom: 10px;
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center; font-size: .72rem;
    background: var(--primary); color: #fff;
    transition: transform var(--duration-base, .2s);
}
.tm-group:hover .tm-group-go { transform: translateX(2px); }

/* ── Professionals ────────────────────────────────────── */
.tm-pros-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tm-pros-head h2 {
    margin: 0; font-family: var(--font-display); font-weight: 800; color: var(--tm-navy);
    font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 18px;
}
.tm-pros-head h2::after { content: ""; width: 72px; height: 3px; border-radius: 3px; background: var(--tm-teal); }
.tm-pick { display: flex; gap: 8px; align-items: center; }
.tm-pick select {
    min-width: 290px; height: 44px; border-radius: 8px; border: 1px solid #B9CBE2;
    background-color: #fff; font-weight: 500; color: #12233D; padding: 0 36px 0 14px;
}

.tm-carousel { position: relative; padding: 0 26px; }
.tm-track {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 6px 2px 14px; scrollbar-width: none;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-track:focus-visible { outline: 2px solid rgba(27,77,179,.4); outline-offset: 4px; border-radius: 12px; }
.tm-card {
    flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start;
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #E1E9F3; border-radius: 12px;
    padding: 16px 16px 14px; box-shadow: 0 4px 16px rgba(12, 47, 87, .06);
}
.tm-card-top { display: flex; gap: 14px; align-items: flex-start; }
.tm-photo {
    flex: 0 0 96px; width: 96px; height: 96px; border-radius: 8px; object-fit: cover;
    background: var(--tm-soft);
}
.tm-photo--initials {
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: .02em;
    color: var(--tc); background: linear-gradient(160deg, var(--tb), #fff);
    border: 1px solid color-mix(in srgb, var(--tc) 18%, transparent);
}
.tm-id { min-width: 0; }
.tm-name { margin: 2px 0 4px; font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; color: #12233D; line-height: 1.25; }
.tm-role { margin: 0 0 8px; font-size: .9rem; color: var(--text-light); line-height: 1.35; }
.tm-exp {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    background: #DDF5E4; color: #12693A; font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.tm-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: .84rem; color: #2A3A52; }
.tm-facts li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.tm-facts i { flex: 0 0 18px; color: #3B4759; margin-top: 2px; text-align: center; }
.tm-card-foot { margin-top: auto; padding-top: 14px; text-align: center; }
.tm-link { font-weight: 600; font-size: .9rem; color: var(--primary); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.tm-link:hover { text-decoration: underline; }

.tm-nav {
    position: absolute; top: 50%; transform: translateY(-60%); z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid #C9D6E6; background: #fff; color: #12233D;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 4px 12px rgba(12, 47, 87, .1);
}
.tm-nav:hover { border-color: var(--primary); color: var(--primary); }
.tm-nav[disabled] { opacity: .35; cursor: default; }
.tm-prev { left: -8px; }
.tm-next { right: -8px; }
.tm-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; min-height: 8px; }
.tm-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #C9D3DF; cursor: pointer; }
.tm-dots button.on { background: var(--primary); width: 10px; height: 10px; margin-top: -1px; }
.tm-carousel.is-static .tm-nav { display: none; }

/* Empty group */
.tm-empty {
    display: flex; gap: 18px; align-items: center;
    background: #fff; border: 1px dashed #B9CBE2; border-radius: 12px; padding: 22px 24px;
}
.tm-empty > i { font-size: 2rem; color: var(--primary); }
.tm-empty-ic { flex: 0 0 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 1.7rem; color: var(--tc); background: var(--tb); }
.tm-empty h3 { margin: 0 0 4px; font-size: 1.1rem; color: #12233D; }
.tm-empty h3 small { font-weight: 500; color: var(--text-light); font-size: .9rem; }
.tm-empty p { margin: 0 0 12px; color: var(--text-light); }
.tm-empty-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Banner */
.tm-banner {
    margin-top: 26px; display: flex; align-items: center; gap: 22px;
    padding: 22px 28px; border-radius: 12px;
    background: linear-gradient(90deg, #EAF3FC, #F4F9FE);
    border: 1px solid #DCE8F6;
}
.tm-banner-ic { font-size: 2.4rem; color: #1B9AAA; }
.tm-banner-tx { flex: 1; min-width: 0; }
.tm-banner h3 { margin: 0 0 2px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--tm-navy); }
.tm-banner p { margin: 0; color: #3B4759; }
.tm-btn-dark {
    background: var(--tm-navy); color: #fff; border-radius: 8px; padding: 12px 22px; font-weight: 600;
    display: inline-flex; gap: 10px; align-items: center; white-space: nowrap;
}
.tm-btn-dark:hover { background: var(--tm-navy-2); color: #fff; }

/* ── Directory ────────────────────────────────────────── */
.tm-sec--dir { padding-bottom: clamp(40px, 5vw, 64px); }
.tm-dir-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 18px;
    padding: 14px 22px; border-radius: 12px; color: #fff;
    background: linear-gradient(100deg, var(--tm-navy), #1C5E9C);
}
.tm-dir-ic { font-size: 1.8rem; }
.tm-dir-head h2 { margin: 0; color: #fff; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.tm-dir-head h2 span { color: var(--tm-teal); }
.tm-dir { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tm-dir-row {
    display: flex; align-items: center; gap: 16px;
    padding: 10px 18px 10px 12px; border-radius: 10px;
    border: 1px solid var(--tm-line);
    background: linear-gradient(90deg, #FFFFFF 0%, #F1F6FD 100%);
}
.tm-dir-n {
    flex: 0 0 42px; height: 42px; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--tm-navy); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.tm-dir-art {
    flex: 0 0 64px; height: 50px; display: grid; place-items: center;
    font-size: 1.7rem; color: var(--tc);
    border-right: 2px solid #C9D6E6; padding-right: 12px; margin-right: 2px;
}
.tm-dir-body { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.tm-dir-title { color: #12233D; text-decoration: none; font-size: 1.05rem; }
.tm-dir-title b { font-family: var(--font-display); }
.tm-dir-title:hover { color: var(--primary); }
.tm-dir-team { margin: 0; font-size: .92rem; color: #12233D; background: #DCEAF8; border-radius: 6px; padding: 5px 10px; line-height: 1.5; }
.tm-chip { font-weight: 700; color: var(--tm-navy); margin-right: 4px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1180px) {
    .tm-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tm-group, .tm-group:nth-child(-n+5) { grid-column: span 1; }
    .tm-card { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 900px) {
    .tm-hero-in { grid-template-columns: 1fr; }
    .tm-hero-art { display: none; }
    .tm-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tm-card { flex-basis: calc((100% - 20px) / 2); }
    .tm-banner { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .tm-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .tm-group { flex-direction: column; min-height: 0; }
    .tm-group-art { flex: 0 0 64px; max-width: none; font-size: 1.8rem; }
    .tm-group-ic { display: none; }
    .tm-group-tx { padding: 10px 34px 10px 12px; }
    .tm-group-tx b { font-size: .95rem; }
    .tm-pros-head { flex-direction: column; align-items: stretch; }
    .tm-pick select { min-width: 0; width: 100%; }
    .tm-carousel { padding: 0; }
    .tm-nav { display: none; }
    .tm-card { flex-basis: 86%; }
    .tm-banner { padding: 18px; text-align: left; }
    .tm-btn-dark { width: 100%; justify-content: center; white-space: normal; }
    .tm-dir-row { align-items: flex-start; }
    .tm-dir-art { display: none; }
    .tm-empty { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .tm-track { scroll-behavior: auto; }
    .tm-group, .tm-group-go { transition: none; }
}
