/* ==========================================================================
   MEET THE TEAM — templates/about-team.php  (/team/)
   Needs: style.css + css/base-home.css (no base overrides needed).
   JS: js/about-team.js (department filter).
   Page sections are copied from team.html's own CSS; former inline styles
   are the tmx- classes at the end.
   ========================================================================== */

.tm-dept { font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.tm-dept:first-child { margin-top: 0; }
.tm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
.tm-card { display: flex; flex-direction: column; }
.tm-photo { aspect-ratio: 1; overflow: hidden; background: var(--cream2); margin-bottom: 10px; border-radius: 14px; position: relative; }
.tm-photo::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(173,161,117,.5); border-radius: 8px; pointer-events: none; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.1s cubic-bezier(.2,.6,.2,1); }
.tm-card:hover .tm-photo img { transform: scale(1.035); }
.tm-name { font-size: 13.5px; font-weight: 500; color: var(--head); line-height: 1.3; }
.tm-role { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); font-weight: 400; margin: 3px 0 7px; line-height: 1.45; }
.tm-disc { font-size: 10.5px; font-weight: 300; color: var(--body); line-height: 1.55; }
.tm-disc span { display: block; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--body); opacity: .6; margin-bottom: 2px; font-weight: 500; }
.tm-mail { font-size: 10px; color: var(--body); margin-top: 6px; opacity: .65; transition: all .15s; word-break: break-all; }
.tm-mail:hover { color: var(--gold-ink); opacity: 1; }
@media (min-width: 640px) {
  .tm-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
}
@media (min-width: 900px) {
  .tm-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .tm-grid { grid-template-columns: repeat(5, 1fr); }
}
.disc-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 36px; }
.disc-card { background: var(--white); padding: 28px 24px; text-align: center; }
.disc-letter { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 42px; font-weight: 340; color: var(--gold-ink); line-height: 1; margin-bottom: 10px; }
.disc-name { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--head); font-weight: 500; margin-bottom: 10px; }
.disc-desc { font-size: 12.5px; font-weight: 300; color: var(--body); line-height: 1.7; }
@media (min-width: 560px) {
  .disc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .disc-grid { grid-template-columns: repeat(4, 1fr); }
}
.tm-filter { position: sticky; top: var(--ch); z-index: 90; background: var(--cream); border-bottom: 1px solid var(--rule); display: flex; gap: 4px; overflow-x: auto; padding: 10px 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tm-filter::-webkit-scrollbar { display: none; }
.tm-fbtn { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--body); padding: 8px 14px; white-space: nowrap; border: 1px solid transparent; transition: all .15s; }
.tm-fbtn:hover { color: var(--head); }
.tm-fbtn.active { color: var(--gold-ink); border-color: var(--gold-ink); }
@media (min-width: 768px) {
  .tm-filter { padding: 12px 48px; justify-content: center; }
}
/* Sticky filter clears the WP admin bar for logged-in users (the header does too) */
.admin-bar .tm-filter { top: calc(var(--ch) + 32px); }
@media (max-width: 782px) { .admin-bar .tm-filter { top: calc(var(--ch) + 46px); } }

/* ── FORMER INLINE STYLES ── */
.tmx-header { background: var(--white); border-bottom: 1px solid var(--rule); padding-top: 72px; }
.tmx-header .S-inner { max-width: 760px; }
.tmx-header h1 { font-size: clamp(30px, 6vw, 52px); margin-bottom: 14px; }
/* As designed: light text on the white header (reads as invisible) */
.tmx-header-tag { font-size: 14px; font-weight: 300; color: var(--gold-ink); line-height: 1.7; max-width: 460px; margin-top: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.tmx-header .body-copy { max-width: 560px; }
.tmx-team { background: var(--cream); }
.tmx-disc { background: var(--cream2); border-top: 1px solid var(--rule); }
.tmx-disc .S-inner { max-width: 860px; }
.tmx-disc-h { text-align: center; margin-bottom: 14px; }
.tmx-disc-intro { text-align: center; max-width: 560px; margin: 0 auto; }
.tmx-disc-intro em { font-style: normal; font-weight: 400; }
.tmx-disc-note { text-align: center; font-size: 12px; font-weight: 300; color: var(--body); margin-top: 24px; font-style: italic; }
.tmx-review { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; }
.tmx-review .S-inner { max-width: 680px; }
.tmx-stars { color: var(--gold-ink); font-size: 13px; letter-spacing: 3px; margin-bottom: 16px; }
.tmx-quote { font-size: clamp(16px, 2.8vw, 21px); font-weight: 200; font-style: italic; line-height: 1.6; color: var(--head); margin-bottom: 18px; }
.tmx-by { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--body); }

/* Layout refresh (Nov 2026) */
/* Same words, new order: header split with the homeowner review moved up beside it (faces of the
   three people it names), sticky department filter, a headshot grid with round photos on white,
   DISC letters as four hairline columns on cream, closing CTA. No italic serif, square corners. */

h1 em, h2 em, .cta-h em { font-style: normal; }

/* Header: copy + review card */
.tmx-header { background: var(--cream); padding-top: 64px; }
.tmx-header .S-inner.tmx-head-grid { max-width: 1160px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.tmx-header h1 { font-size: clamp(30px, 5.4vw, 52px); font-weight: 200; letter-spacing: -.02em; line-height: 1.06; }
.tmx-header-tag { text-shadow: none; font-size: 16px; font-weight: 300; color: var(--gold-ink); max-width: 480px; margin: 0 0 14px; }
.tmx-revcard { background: var(--white); border: 1px solid var(--rule); border-left: 2px solid var(--gold); padding: 28px 28px 26px; }
.tmx-stars { margin-bottom: 14px; }
.tmx-quote { font-style: normal; font-weight: 200; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.55; letter-spacing: -.005em; margin-bottom: 22px; }
.tmx-revfoot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--rule); }
.tmx-revfaces { display: flex; }
.tmx-revfaces img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--white); margin-left: -10px; background: var(--cream2); }
.tmx-revfaces img:first-child { margin-left: 0; }
.tmx-by { font-size: 9.5px; letter-spacing: .22em; font-weight: 500; }
@media (min-width: 900px) {
  .tmx-header { padding: 96px 48px; }
  .tmx-header .S-inner.tmx-head-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
}

/* Filter: white sticky bar, 44px tap targets */
.tm-filter { background: var(--white); gap: 6px; }
.tm-fbtn { min-height: 44px; padding: 10px 16px; border-radius: 0; background: transparent; }
.tm-fbtn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 2px; }

/* Team: round headshots, centered names */
.tmx-team { background: var(--white); }
.tmx-team .S-inner { max-width: 1160px; }
.tm-sec + .tm-sec .tm-dept { margin-top: 56px; }
.tm-dept { font-size: 9.5px; letter-spacing: .26em; margin: 0 0 28px; padding-bottom: 12px; }
.tm-grid { gap: 36px 16px; }
.tm-card { align-items: center; text-align: center; min-width: 0; }
.tm-photo { width: 100%; max-width: 168px; aspect-ratio: 1 / 1; border-radius: 50%; margin: 0 auto 16px; background: var(--cream2); }
.tm-photo::after { display: none; }
.tm-photo img { display: block; border-radius: 50%; }
.tm-name { font-size: 17px; font-weight: 300; letter-spacing: -.005em; }
.tm-role { font-size: 9.5px; letter-spacing: .16em; font-weight: 500; margin: 6px 0 10px; }
.tm-disc { font-size: 12px; line-height: 1.6; }
.tm-disc span { font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; letter-spacing: .12em; font-weight: 400; color: var(--gold-ink); opacity: 1; margin-bottom: 4px; }
.tm-mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px; font-size: 11px; opacity: .8; word-break: break-word; overflow-wrap: anywhere; }
@media (min-width: 640px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px; } }
@media (min-width: 900px) { .tm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* DISC: cream band, four hairline-divided columns */
.tmx-disc { background: var(--cream); }
.tmx-disc .S-inner { max-width: 1160px; }
.tmx-disc-h { font-weight: 200; }
.disc-grid { gap: 0; background: transparent; border: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 44px; }
.disc-card { background: transparent; padding: 28px 8px; border-top: 1px solid var(--rule); }
.disc-card:first-child { border-top: none; }
.disc-letter { font-family: inherit; font-style: normal; font-weight: 200; font-size: 56px; letter-spacing: -.02em; margin-bottom: 14px; }
.disc-name { font-size: 9.5px; letter-spacing: .26em; margin-bottom: 12px; }
.disc-desc { font-size: 13.5px; line-height: 1.75; max-width: 300px; margin: 0 auto; }
.tmx-disc-note { font-style: normal; font-size: 13px; }
@media (min-width: 560px) {
  .disc-card { border-top: none; }
  .disc-card:nth-child(even) { border-left: 1px solid var(--rule); }
  .disc-card:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (min-width: 900px) {
  .disc-card { padding: 36px 24px; }
  .disc-card:nth-child(n) { border-top: none; border-left: 1px solid var(--rule); }
  .disc-card:first-child { border-left: none; }
}

/* Phones: no horizontal overflow */
@media (max-width: 599px) {
  .tmx-header { padding: 48px 20px; }
  .tmx-revcard { padding: 22px 20px; }
  .tm-photo { max-width: 128px; }
  .tm-mail { font-size: 10px; }
}
