/* Highland Insurance Group — team member profile pages (/<slug>/, /es/<slug>/), built by tools/build_team_pages.py.
   Loaded after site.css + about-team.css. Wide layout only; site.css color/font variables only. */

/* ---------- Hero (navy band, portrait + name) ---------- */
.tp-hero { background: var(--navy); color: var(--cream); padding: clamp(22px, 2.6vw, 50px) 0 clamp(56px, 6.5vw, 124px); overflow: hidden; }
.tp-hero .wrap { max-width: min(100%, calc(78vw + 2 * var(--gutter)), 1600px); }
.tp-hero .crumbs { font-family: var(--font-head); font-size: clamp(13px, 1vw, 18px); font-weight: 600; opacity: .85; margin-bottom: clamp(26px, 3.4vw, 64px); overflow-wrap: anywhere; }
.tp-hero .crumbs a { color: var(--cream); text-decoration: none; }
.tp-hero .crumbs a:hover { text-decoration: underline; }
.tp-hero .crumbs [aria-current] { color: var(--gold); }

.tp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(40px, 6.5vw, 130px); align-items: center; }
.tp-portrait { margin: 0 clamp(14px, 1.4vw, 26px) 0 0; position: relative; max-width: 680px; }
.tp-portrait::before {           /* thin gold frame, offset behind the photo */
  content: ""; position: absolute; inset: clamp(14px, 1.4vw, 26px) calc(-1 * clamp(14px, 1.4vw, 26px)) calc(-1 * clamp(14px, 1.4vw, 26px)) clamp(14px, 1.4vw, 26px);
  border: 2px solid var(--gold); pointer-events: none;
}
.tp-portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--navy-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }

.tp-intro { min-width: 0; }
.tp-eyebrow { font-family: var(--font-head); font-weight: 700; font-size: clamp(13px, .95vw, 18px); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: clamp(12px, 1.2vw, 22px); }
.tp-intro h1 { font-size: clamp(40px, 5.2vw, 100px); line-height: 1.02; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tp-role { font-family: var(--font-head); font-weight: 600; font-size: clamp(19px, 1.75vw, 34px); line-height: 1.25; color: var(--gold); margin-top: clamp(12px, 1.2vw, 22px); }
.tp-rule { width: clamp(64px, 5vw, 96px); height: 3px; background: var(--gold); margin: clamp(22px, 2.2vw, 42px) 0; }
.tp-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-body); }
.tp-facts li { display: flex; align-items: center; gap: 10px; }
.tp-city { white-space: nowrap; }
.tp-facts svg { flex: none; width: clamp(18px, 1.3vw, 24px); height: clamp(18px, 1.3vw, 24px); color: var(--gold); }
.tp-hero .hero-ctas.tp-ctas { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; }

/* ---------- Bio ---------- */
.tp-bio { background: var(--cream); }
.tp-bio-grid { max-width: min(100%, calc(78vw + 2 * var(--gutter)), 1600px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.tp-bio-side { position: sticky; top: 28px; border-top: 3px solid var(--gold); padding-top: clamp(16px, 1.4vw, 26px); }
.tp-bio-h { font-size: clamp(28px, 3vw, 58px); line-height: 1.05; color: var(--navy); }
.tp-bio-role { font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1vw, 19px); letter-spacing: .02em; color: var(--gold-dark); margin-top: 12px; }
.tp-bio-text { max-width: 46em; }
.tp-bio-text p { font-size: clamp(18px, 1.35vw, 26px); line-height: 1.7; margin-bottom: 1.1em; }
.tp-bio-text p:last-child { margin-bottom: 0; }
.tp-bio-text .tp-lead {
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  font-size: clamp(22px, 2vw, 38px); line-height: 1.35; letter-spacing: -.005em;
  border-left: 3px solid var(--gold); padding-left: clamp(18px, 1.6vw, 30px); margin-bottom: 1.2em;
}

/* ---------- Rest of the team ---------- */
.tp-more { background: var(--sand); }
.tp-more .wrap { max-width: min(100%, calc(78vw + 2 * var(--gutter)), 1600px); }
.tp-more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(26px, 2.8vw, 54px); }
.tp-more .section-title { color: var(--navy); }
.tp-all { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-body); color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; white-space: nowrap; }
.tp-more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 34px); }
.tp-mini { display: flex; flex-direction: column; height: 100%; background: var(--white); color: var(--navy); text-decoration: none; border-top: 3px solid var(--gold); transition: transform .2s, box-shadow .2s; }
.tp-mini:hover, .tp-mini:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 31, 68, .12); }
.tp-mini img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--stone); }
.tp-mini-txt { display: flex; flex-direction: column; gap: 6px; padding: clamp(14px, 1.2vw, 22px) clamp(14px, 1.3vw, 24px) clamp(16px, 1.4vw, 26px); min-width: 0; }
.tp-mini-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 1.3vw, 25px); line-height: 1.2; }
.tp-mini:hover .tp-mini-name { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.tp-mini-role { font-family: var(--font-head); font-weight: 600; font-size: clamp(13px, .9vw, 17px); line-height: 1.35; color: var(--gold-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tp-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .tp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .tp-portrait { width: min(78%, 360px); margin: 0 auto; }
  .tp-intro { text-align: center; }
  .tp-rule { margin-left: auto; margin-right: auto; }
  .tp-facts { justify-content: center; }
  .tp-facts li { justify-content: center; text-align: left; font-size: 16px; line-height: 1.4; }
  .tp-sep { display: none; }
  .tp-city { display: block; }
  .tp-hero .hero-ctas.tp-ctas { flex-direction: column; align-items: center; }
  .tp-bio-grid { grid-template-columns: 1fr; gap: 22px; }
  .tp-bio-side { position: static; }
}
@media (max-width: 600px) {
  .tp-more-grid { grid-template-columns: 1fr; gap: 12px; }
  .tp-mini { flex-direction: row; align-items: center; border-top: 0; border-left: 3px solid var(--gold); }
  .tp-mini img { width: 84px; flex: none; }
  .tp-mini-txt { padding: 10px 16px; }
  .tp-all { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-mini { transition: none; }
  .tp-mini:hover, .tp-mini:focus-visible { transform: none; }
}
