/* JPG Insurance 2026: d-team.css. Owner: Builder C (team). Loaded on every page after the shared CSS.
   The Team page (.page-team) is styled by Concept D's pages-team.css (in assets/d/css/pages-base.css); this file only
   adds what WordPress needs (linked names and photos, the Message button). Bio pages are .page-staff. */

/* ======================= Team page (archive-staff.php) ======================= */
.page-team .team-group h2 { flex-wrap: wrap; }
.page-team .team-group h2 small { text-transform: none; } /* "3 people" stays lower case under the Title Case H2 */
.page-team .person a.ph { display: block; }
.page-team .person .team-name { display: inline-block; padding: 2px 0; color: var(--ink); text-decoration: none; }
.page-team .person .team-name:hover { color: var(--blue); text-decoration: underline; }
.page-team .person .team-name:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.page-team .person-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: #fff; font: 600 14px/1 var(--f-body); color: var(--ink-2); cursor: pointer;
}
.page-team .person-actions button:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.page-team .person-actions a:focus-visible, .page-team .person-actions button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ======================= Bio page (single-staff.php) ======================= */
.page-staff .staff-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start; }
.page-staff .staff-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r-xl); overflow: hidden; background: var(--tint); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.page-staff .staff-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 18%; }
.page-staff .staff-main { min-width: 0; }
.page-staff .staff-main > h2 { font-size: 30px; margin: 0 0 16px; }
.page-staff .staff-bio { font-size: 17px; line-height: 1.7; }

.page-staff .staff-contact { margin-top: 32px; max-width: 760px; padding: 24px; border-radius: var(--r-xl); background: var(--band); border: 1px solid var(--band-line); }
.page-staff .staff-contact h3 { font-size: 20px; margin: 0 0 14px; }
.page-staff .staff-facts { margin: 0; display: grid; gap: 0; }
.page-staff .staff-facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--band-line); }
.page-staff .staff-facts > div:first-child { border-top: 0; padding-top: 0; }
.page-staff .staff-facts dt { display: flex; align-items: center; gap: 8px; font: 700 14px/1.4 var(--f-head); color: var(--ink); }
.page-staff .staff-facts dt .icon { color: var(--blue); flex: none; }
.page-staff .staff-facts dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.page-staff .staff-facts dd a { display: inline-block; padding: 3px 0; font-weight: 600; }
.page-staff .staff-hint { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.page-staff .staff-link-btn { padding: 0; border: 0; background: none; font: 600 16px/1.5 var(--f-body); color: var(--blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.page-staff .staff-link-btn:hover { color: var(--blue-700); }
.page-staff .staff-link-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.page-staff .staff-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Reviews that name the person (word for word) */
@media (min-width: 761px) { .page-staff .staff-said-head { align-items: center; } }
.page-staff .staff-said-head h2 { font-size: 30px; }
.page-staff .staff-reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.page-staff .staff-reviews.is-single { grid-template-columns: minmax(0, 760px); }
.page-staff .staff-review { margin: 0; height: 100%; padding: 22px 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.page-staff .team-quote-stars { display: flex; gap: 2px; color: var(--star); margin-bottom: 10px; }
.page-staff .team-quote-stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.page-staff .staff-review blockquote { margin: 0 0 14px; }
.page-staff .staff-review blockquote p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.page-staff .staff-review figcaption { margin-top: auto; font: 700 14px/1.3 var(--f-head); color: var(--muted); }

/* The rest of the team */
.page-staff .staff-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.page-staff .staff-more a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 72px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.page-staff .staff-more a:hover { border-color: var(--blue); box-shadow: var(--sh-2); }
.page-staff .staff-more a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.page-staff .staff-more img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--tint); }
.page-staff .staff-more strong { display: block; font: 700 15px/1.3 var(--f-head); }
.page-staff .staff-more span span { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }

@media (max-width: 1100px) {
  .page-staff .staff-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 36px; }
  .page-staff .staff-more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .page-staff .staff-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .page-staff .staff-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-staff .staff-photo { position: static; width: min(280px, 100%); border-radius: var(--r-lg); }
  .page-staff .staff-main > h2, .page-staff .staff-said-head h2 { font-size: 24px; }
  .page-staff .staff-bio { font-size: 16px; }
  .page-staff .staff-contact { padding: 18px 16px; border-radius: var(--r-lg); }
  .page-staff .staff-facts > div { grid-template-columns: 1fr; }
  .page-staff .staff-actions .btn { flex: 1 1 100%; justify-content: center; }
  .page-staff .staff-review { padding: 18px; }
}
@media (max-width: 560px) {
  .page-staff .staff-more { gap: 8px; }
  .page-staff .staff-more a { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 8px 10px 8px 8px; min-height: 60px; border-radius: var(--r); }
  .page-staff .staff-more img { width: 40px; height: 40px; }
  .page-staff .staff-more strong { font-size: 14px; }
  .page-staff .staff-more span span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .page-staff .staff-more a { transition: none; } }
@media (max-width: 360px) { .page-staff .staff-more { grid-template-columns: 1fr; } }

/* The About page's team section uses the Team page layout (jpg26_team_body(3)): its headings are H3 under About's
   "Meet our team" H2, styled like the Team page's H2s. */
.about-team .team-route-h, .about-team .team-group > h3 { font-family: var(--f-head); font-weight: 800; letter-spacing: -.015em; text-transform: capitalize; }
.about-team .team-group > h3 { font-size: 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.about-team .team-group > h3 small { font: 600 15px/1 var(--f-body); color: var(--muted); text-transform: none; }
.about-team .team-intro { margin-top: 4px; }
