/* TEAM, 2026-11-24 (src/lib/team-blocks.ts). Loaded after service-kit.css; scoped to `.lf.tm`. The bio sheet is team-bios.css. */

.lf.tm .tx-walk-body + .tx-walk-body { padding-top: 14px; }

/* ── Headline ──────────────────────────────────────────────────────────────────────────────────── */
.lf.tm .tm-mast { padding-bottom: 34px; }
.lf.tm .tm-mast-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px 40px; }
.lf.tm .tm-mast .lf-title { margin-bottom: 0; }
.lf.tm .tm-mast .lf-pill { margin-left: 0.22em; }
.lf.tm .tm-jumps ul { display: flex; flex-wrap: wrap; gap: 10px; }
.lf.tm .tm-jumps a { display: block; padding: 12px 22px; border: 2px solid #dd1421; border-radius: 999px; font-family: var(--tx-head); font-size: 16px; line-height: 1.2; font-weight: 700; color: #c8121f; text-decoration: none; transition: background-color 160ms ease, color 160ms ease; }
.lf.tm .tm-jumps a:hover, .lf.tm .tm-jumps a:focus-visible { background: #dd1421; color: #fff; }

/* ── Owners ────────────────────────────────────────────────────────────────────────────────────── */
.lf.tm .tm-story { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.lf.tm .tm-story .tx-head { padding-bottom: 16px; }
.lf.tm .tm-story .tx-walk-body { color: #e3e6eb; }
.lf.tm .tm-owners { display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); justify-content: end; gap: 22px; }
.lf.tm .tm-owner img { display: block; width: 100%; height: auto; }
.lf.tm .tm-owner > div { padding: 16px 20px 18px; border-top: 4px solid #f31827; border-radius: 0 0 10px 10px; background: #fff; }
.lf.tm .tm-owner h3 { margin: 0; font-family: var(--tx-head); font-size: 22px; line-height: 1.2; font-weight: 700; color: #c8121f; }
.lf.tm .tm-owner p { margin: 0; padding-top: 2px; font-family: 'Ubuntu', sans-serif; font-size: 14px; line-height: 1.4; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #22262d; }
.lf.tm .tm-close { margin: 0; padding-top: 46px; text-align: center; font-family: var(--tx-head); font-size: 26px; line-height: 1.3; font-weight: 700; color: #fff; text-wrap: balance; }

/* ── A colleague: portrait standing on its own card ────────────────────────────────────────────── */
.lf.tm .tm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; padding-top: 4px; }
.lf.tm .tm-card { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: end; }
.lf.tm .tm-shot img { display: block; width: 168px; height: auto; border-radius: 10px 0 0 10px; }
.lf.tm .tm-card > div { display: flex; flex-direction: column; justify-content: center; align-self: end; min-height: 165px; padding: 18px 22px; border-left: 4px solid #f31827; border-radius: 0 10px 10px 0; background: #14181f; }
.lf.tm .tm-card h3 { margin: 0; font-family: var(--tx-head); font-size: 23px; line-height: 1.2; font-weight: 700; color: #fff; text-wrap: balance; }
.lf.tm .tm-card p { margin: 0; padding-top: 6px; font-family: 'Ubuntu', sans-serif; font-size: 15px; line-height: 1.4; font-weight: 500; color: #ff9aa1; text-wrap: balance; }
/* No portrait on file: initials, in the same footprint a portrait's backdrop has. */
.lf.tm .tm-none { display: grid; place-items: center; width: 168px; height: 165px; border-radius: 10px 0 0 10px; background: #d9dde3; }
.lf.tm .tm-none span { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; font-family: var(--tx-head); font-size: 34px; font-weight: 700; color: #c8121f; }

/* ── Sales ─────────────────────────────────────────────────────────────────────────────────────── */
.lf.tm .tm-reps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; padding-top: 4px; }
.lf.tm .tm-rep { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: end; }
.lf.tm .tm-rep-shot { display: block; align-self: end; }
.lf.tm .tm-rep-shot img { display: block; width: 220px; height: auto; border-radius: 12px 0 0 12px; }
.lf.tm .tm-rep-body { align-self: stretch; display: flex; flex-direction: column; justify-content: center; margin-top: 51px; padding: 22px 26px 20px; border: 1px solid var(--tx-line); border-left: 4px solid #f31827; border-radius: 0 12px 12px 0; background: #fff; }
.lf.tm .tm-rep h3 { margin: 0; font-family: var(--tx-head); font-size: 26px; line-height: 1.15; font-weight: 700; }
.lf.tm .tm-rep h3 a { color: #c8121f; text-decoration: none; }
.lf.tm .tm-rep h3 a:hover, .lf.tm .tm-rep h3 a:focus-visible { text-decoration: underline; text-underline-offset: 0.15em; }
.lf.tm .tm-role { margin: 0; padding-top: 4px; font-family: 'Ubuntu', sans-serif; font-size: 14px; line-height: 1.4; font-weight: 700; letter-spacing: 0.4px; color: #22262d; }
.lf.tm .tm-line { margin: 0; padding-top: 10px; font-family: 'Ubuntu', sans-serif; font-size: 15.5px; line-height: 1.5; color: #3d424a; text-wrap: pretty; }
.lf.tm .tm-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 14px; }
.lf.tm .tm-contact a, .lf.tm .tm-contact .tm-show { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; font-family: 'Ubuntu', sans-serif; font-size: 14.5px; line-height: 1.3; font-weight: 500; color: #22262d; text-decoration: none; }
/* The button that shows a number is the links' own size and colour (the site's button reset draws it as a red pill). */
.lf.tm .tm-contact .tm-show { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; letter-spacing: 0; text-transform: none; cursor: pointer; }
html:not(.fs-held-js) .lf.tm .tm-contact button.tm-show, html:not(.fs-held-js) .fs-bio .fs-bio-show { display: none; }
.lf.tm .tm-contact a:hover, .lf.tm .tm-contact a:focus-visible, .lf.tm .tm-contact .tm-show:hover, .lf.tm .tm-contact .tm-show:focus-visible { color: #c8121f; background: none; text-decoration: underline; text-underline-offset: 0.18em; }
.lf.tm .tm-contact svg { width: 17px; height: 17px; color: #dd1421; flex: none; }
.lf.tm .tm-contact a.tm-bio { font-weight: 700; color: #c8121f; text-decoration: underline; text-underline-offset: 0.18em; }
.lf.tm .fs-bio-portrait { cursor: pointer; }

@media (min-width: 1001px) {
  .lf.tm .tm-contact .tm-li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lf.tm .tm-contact .tm-li svg { width: 20px; height: 20px; }
}
@media (max-width: 1240px) {
  .lf.tm .tm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lf.tm .tm-rep { grid-template-columns: 180px minmax(0, 1fr); }
  .lf.tm .tm-rep-shot img { width: 180px; }
  .lf.tm .tm-rep-body { margin-top: 42px; padding: 18px 20px 16px; }
}
@media (max-width: 1000px) {
  .lf.tm .tm-story { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lf.tm .tm-owners { justify-content: start; }
  .lf.tm .tm-reps { grid-template-columns: minmax(0, 1fr); }
  .lf.tm .tm-rep { grid-template-columns: 220px minmax(0, 1fr); }
  .lf.tm .tm-rep-shot img { width: 220px; }
}
@media (max-width: 760px) {
  .lf.tm .tm-mast { padding-bottom: 26px; }
  .lf.tm .tm-jumps ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lf.tm .tm-jumps, .lf.tm .tm-mast-in > div { width: 100%; }
  .lf.tm .tm-jumps a { padding: 12px 10px; text-align: center; font-size: 15px; }
  .lf.tm .tm-owners { gap: 12px; }
  .lf.tm .tm-owner > div { padding: 12px 12px 14px; }
  .lf.tm .tm-owner h3 { font-size: 18px; }
  .lf.tm .tm-owner p { font-size: 12.5px; letter-spacing: 0.5px; }
  .lf.tm .tm-close { padding-top: 34px; font-size: 21px; }
  .lf.tm .tm-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lf.tm .tm-card { grid-template-columns: 132px minmax(0, 1fr); }
  .lf.tm .tm-shot img { width: 132px; }
  .lf.tm .tm-none { width: 132px; height: 130px; }
  .lf.tm .tm-none span { width: 74px; height: 74px; font-size: 27px; }
  .lf.tm .tm-card > div { min-height: 130px; padding: 14px 16px; }
  .lf.tm .tm-card h3 { font-size: 20px; }
  .lf.tm .tm-card p { font-size: 14px; }
  .lf.tm .tm-reps { gap: 30px; }
}
@media (max-width: 620px) {
  /* The portrait sits on top of its card, so the name is never squeezed beside it. */
  .lf.tm .tm-rep { grid-template-columns: minmax(0, 1fr); }
  .lf.tm .tm-rep-shot img { width: 214px; border-radius: 12px 12px 0 0; }
  .lf.tm .tm-rep-body { margin-top: 0; border-left: 1px solid var(--tx-line); border-top: 4px solid #f31827; border-radius: 0 12px 12px 12px; padding: 18px 18px 14px; }
  .lf.tm .tm-contact { gap: 6px 18px; }
  .lf.tm .tm-contact a, .lf.tm .tm-contact .tm-show { min-height: 38px; font-size: 15.5px; }
}
