/* Owner 2026-11-28: CVSDH's Team tab opens a compact team profile (4 photos + info +
   contact options). Owner 2026-11-29: the block is one shared include (views/team_block.go)
   on the team page and CTH's sell page; only those pages link this file, so no other page
   loads it or the office photo. Owner 2026-11-29 ("these updates seem uninifhsed"): the
   pages carry their own H1 header in place of the shell's grey title bar, a call-to-action
   band, equal-height cards with labelled buttons, and a phone layout. Grid classes are the
   site's Bootstrap 3 subset (r66-layout.css); this file sizes and styles them. */

/* WHY: the page's own header starts where the shell's title bar did (the content's top
   on every CTH page), centred over the block, so no dead band sits under the site header. */
.team-heading { font-size: 28px; line-height: 1.2; text-align: center; margin: 0 auto 14px; max-width: 760px; }
/* WHY a pulled-up, muted italic line: the owner's tagline reads as the heading's
   subtitle, not as a second paragraph of copy. */
.team-tagline { font-size: 17px; font-style: italic; line-height: 1.4; color: #555; text-align: center; margin: -6px auto 18px; max-width: 760px; }

/* WHY the call-to-action band: styled after the shirinramos.com sell page's hero band the
   owner approved (dark band, cream type, gold filled first button, outlined others,
   uppercase bold labels); the radius matches the office band below. */
.team-cta { background: #17201f; color: #f4efe4; border-radius: 8px; padding: 20px 24px 22px; margin: 0 0 20px; text-align: center; }
.team-cta-lede { font-size: 16px; line-height: 1.45; color: #d8d2c4; max-width: 640px; margin: 0 auto 14px; }
.team-cta-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.team-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1px solid #f4efe4; border-radius: 2px; color: #f4efe4; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.team-cta-btn:hover, .team-cta-btn:focus { color: #fff; background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.team-cta-primary { background: #9a7636; border-color: #9a7636; color: #fff; }
.team-cta-primary:hover, .team-cta-primary:focus { background: #84652e; border-color: #84652e; }
.team-cta-btn:focus-visible, .team-act:focus-visible { outline: 2px solid #cdb37f; outline-offset: 2px; }

/* WHY the icons stay square and never shrink: a wrapping label must not squeeze them. */
.team-icon { flex: none; display: block; }

/* WHY flex rows: every card in a row stretches to the tallest, so the panels end level;
   Bootstrap's row clearfix pseudo-elements would become flex items, so they are dropped. */
.team-grid { display: flex; flex-wrap: wrap; }
.team-grid:before, .team-grid:after { content: none; display: none; }

/* WHY a column flex panel: the text runs from the top and the foot (flags, DRE#,
   buttons) is pushed to the bottom (margin-top: auto), so those three lines sit on one
   line across the row however long each card's text is. */
.team-card { display: flex; margin-bottom: 20px; text-align: center; }
.team-card-in { flex: 1; display: flex; flex-direction: column; background: #fff; border: 1px solid #e3ddd0; border-radius: 8px; padding: 16px 14px 14px; }
.team-card-foot { margin-top: auto; padding-top: 6px; }

/* WHY: round 104px portraits keep four cards readable on one screen; object-fit guards
   the square crop against any future non-square file. */
.team-card img { display: block; width: 104px; height: 104px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; }

/* WHY: the name is the card's heading (h2 under the page's h1), sized to the card; the
   quip leads the description, so it reads a shade larger than the qualifications. */
.team-card h2 { font-size: 18px; margin: 0 0 2px; line-height: 1.25; }
.team-title { font-style: italic; color: #555; margin: 0 0 8px; }
.team-quip { font-size: 14px; line-height: 1.4; margin: 0 0 6px; }
.team-bio { font-size: 13px; line-height: 1.4; margin: 0 0 6px; }
.team-edu { font-size: 12px; line-height: 1.4; color: #444; margin: 0 0 6px; }

/* WHY: the language flags take one short line at the top of the foot; the faint ring
   outlines a flag's white stripes against the white card. WHY nowrap: the longest row
   (Shirin, five flags in three languages) is about 106px, inside every card width, so it
   never needs a second line; a language's flags sit 2px apart, a little tighter than the
   4px between languages. */
.team-langs { margin: 0 0 6px; line-height: 12px; white-space: nowrap; }
.team-flag { display: inline-block; margin: 0 2px; line-height: 0; cursor: help; }
/* WHY pointer-events: none (owner 2026-11-29, verbatim: "tooltips are still missing
   "fluent in .."): Chrome shows no HTML title tooltip while the pointer is over inline
   SVG content, so the hover goes through the flag to its span, which carries the
   "Fluent in <language>" title. */
.team-flag svg { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); pointer-events: none; }
.team-flag svg + svg { margin-left: 2px; }
.team-dre { font-size: 12px; color: #666; margin: 0 0 10px; }

/* WHY four equal columns: the Call, Text, Email and Message buttons share the card's
   width evenly, icon over label, so they line up in every card at every width; the
   narrowest card (four across at 992px, about 180px inside) still fits "Message". */
.team-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.team-act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; border: 1px solid #d6d0c4; border-radius: 6px; background: #fff; color: #1d1f1e; font-size: 12px; line-height: 1.1; text-decoration: none; }
.team-act:hover, .team-act:focus { border-color: #9a7636; color: #9a7636; text-decoration: none; }
.team-act .team-icon { width: 18px; height: 18px; }

/* WHY: the Full profiles link closes the grid, centred under it. */
.team-more { text-align: center; margin: 0 0 16px; }

/* WHY the office band: owner 2026-11-29, the Del Mar office photo as its background.
   The renderer sets the image inline (its versioned URL); here it covers the band, and
   the ::before layer darkens it so the white text reads on the bright glass and sky. */
.team-office { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 220px; margin: 0 0 14px; padding: 24px; border-radius: 8px; overflow: hidden; text-align: center; color: #fff; background-color: #1f2a2e; background-position: center; background-size: cover; background-repeat: no-repeat; }
.team-office:before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.58); }
/* WHY the h1 beside p: the statewide hero's phrase is the page's H1 (team_block.go); it
   needs the same stacking above the darkening layer and the same measure as the band's
   other lines. No San Diego band carries an h1, so their bands are unchanged. */
.team-office > p, .team-office > h1 { position: relative; max-width: 640px; margin: 0 auto 6px; }
.team-office .team-office-name { font-size: 22px; font-weight: 600; margin-bottom: 0; }
/* WHY em and baseline: the COMPASS wordmark stands in for the word "Compass", so it
   scales with the heading (22px, 18px on phones) a little taller than its capitals, and
   its letters sit on the text's baseline (it has no descenders); Bootstrap's img default
   is vertical-align: middle, which would lift it off the line. */
.team-office .team-compass { height: 0.8em; width: auto; vertical-align: baseline; }
/* WHY: the rank now ends the office name's line (owner 2026-11-29, verbatim: 'change "#1
   office in San Diego" to ", #1 Residential Real Estate Brokerage in San Diego"'), so no
   brand has a ranking line and the copy keeps the old 10px gap below the name. */
.team-office .team-office-name + .team-office-copy { margin-top: 10px; }
.team-office .team-office-addr { font-size: 12px; margin-bottom: 0; opacity: 0.88; }

/* WHY the referral hero (owner 2026-11-29, verbatim: "bascically CTH needs a \"referral
   hero\" above the 4-person team"): the statewide brand's band (team_block.go adds
   team-hero) is taller than the 220px band, the photo still covering it. WHY two auto
   margins (owner: "too much deadspace"): the free height splits above the headline and
   above the brokerage line, so the offer sits centred and the brokerage line at the foot,
   with no empty band; the min-height leaves only a few tens of px of that slack on
   desktop. */
.team-hero { min-height: 360px; padding: 36px 32px 18px; }
.team-hero:before { background: rgba(0, 0, 0, 0.62); }
.team-hero > p, .team-hero > h1 { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.team-hero .team-office-name { margin-top: auto; max-width: 960px; font-size: 34px; line-height: 1.2; }
/* WHY lead size, normal weight and no wrap (owner 2026-11-29, verbatim: "find a single
   phrase that fits in the middle of the black box"): the one phrase is the hero's offer
   and the page's H1, read at Bootstrap's lead size (21px) a step down like copy rather
   than a heading, on one line on desktop; it wraps on a phone (media query below). */
.team-hero .team-office-name + .team-office-copy { margin-top: 14px; }
.team-hero .team-office-copy { max-width: none; font-size: 20px; font-weight: 400; line-height: 1.45; white-space: nowrap; }
/* WHY wider than the copy: the buttons stay on one line on desktop; flex-wrap breaks them
   onto a second line on a narrower column. NOTE (owner 2026-11-29, verbatim: "put the
   disclaimer outside the black box"): with the fine print gone from the band, the bottom
   auto margin pairs with the headline's top one, so the offer stays centred. */
.team-hero .team-hero-acts { max-width: 840px; margin: 22px auto auto; }
/* NOTE (owner 2026-11-29, verbatim: "Shrink disclimer font", "put the disclaimer outside
   the black box", 'center the "Team coordination and referral service provided by Compass
   Del Mar, Shirin Ramos Group"'): the service line sits under the lead form, centred in
   small grey print. */
.team-hero-fine { margin: 18px auto 0; font-size: 10px; line-height: 1.4; color: #666; text-align: center; }

/* NOTE (owner 2026-11-29, verbatim: "restore the leadgen form, for people who don't like
   call/text"): the lead form under the hero, as on the owner-reviewed mockup: one light
   panel, its three labelled fields and the button on one row on desktop, bottoms aligned.
   WHY the hero's gold (#9a7636, .team-cta-primary): the button reads as the same action
   family as the hero's Call button. */
.team-match { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px; max-width: 980px; margin: 22px auto 0; padding: 18px; background: #f4f3f1; border: 1px solid #e6e2dc; border-radius: 6px; }
.team-match label { display: flex; flex-direction: column; margin: 0; font-size: 12px; font-weight: 600; color: #6b7680; letter-spacing: 0.04em; text-transform: uppercase; }
.team-match input, .team-match select { height: 38px; min-width: 180px; margin-top: 4px; padding: 0 10px; border: 1px solid #cfd4d8; border-radius: 4px; background: #fff; color: #1f2a33; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.team-match-go { height: 38px; padding: 0 22px; border: 0; border-radius: 4px; background: #9a7636; color: #fff; font-size: 15px; font-weight: 600; }
.team-match-go:hover, .team-match-go:focus { background: #84652e; }
.team-match-go:focus-visible { outline: 2px solid #cdb37f; outline-offset: 2px; }

/* NOTE (owner 2026-11-29, verbatim: "add small/subtle team members below impliying a
   sampling of agents" and "It has to be really subtle"): the four agents in a quiet,
   centred row under the fine print: 40px round photos, slightly desaturated, the full
   name and a smaller grey DRE# beneath; the row wraps on a phone. WHY object-position
   high: the 240px portraits are head-and-shoulders, so the small crop keeps the face. */
.team-sample { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; margin: 14px 0 30px; opacity: 0.85; text-align: center; }
.team-sample figure { width: 150px; margin: 0; }
.team-sample img { display: block; width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; object-fit: cover; object-position: 50% 20%; filter: grayscale(35%); }
.team-sample figcaption { margin-top: 3px; font-size: 11px; color: #8a949c; }
.team-sample figcaption span { display: block; font-size: 10px; color: #a0a8ae; }
/* NOTE (owner 2026-11-29, verbatim: "make this the salient contact number for the CTH
   banner", "I like B"): the hero's Call button is large, with tabular digits so the
   number reads evenly. */
.team-hero .team-hero-call { font-size: 22px; padding: 16px 30px; font-variant-numeric: tabular-nums; }
/* NOTE (owner 2026-11-29, verbatim: "enlarge the two contact buttons"): both hero
   buttons and their icons grow together. */
.team-hero .team-hero-call .team-icon { width: 22px; height: 22px; }

/* WHY: below 768px the cards are col-xs-12, one per row, so every card keeps a full-width
   button row and readable text; the call-to-action buttons stack full width as thumb
   targets; the office band keeps 14px copy over a stronger shade on the narrow photo. */
@media (max-width: 767px) {
  .team-heading { font-size: 22px; margin-bottom: 12px; }
  .team-cta { padding: 16px 14px 18px; }
  .team-cta-lede { font-size: 15px; }
  .team-cta-acts { flex-direction: column; gap: 8px; }
  .team-cta-btn { justify-content: center; width: 100%; padding: 14px 12px; }
  .team-card { margin-bottom: 14px; }
  .team-card img { width: 96px; height: 96px; }
  .team-act { font-size: 13px; padding: 10px 2px 9px; }
  .team-office { min-height: 160px; padding: 18px 14px; }
  .team-office:before { background: rgba(0, 0, 0, 0.64); }
  .team-office .team-office-name { font-size: 18px; }
  .team-office .team-office-copy { font-size: 14px; line-height: 1.45; }
  /* WHY: on a phone the hero takes its content's height (no dead band), keeps a headline
     a step above the band's 18px and the lead copy at 16px; its buttons stack full width
     like the call-to-action band's (.team-cta-acts above). */
  .team-hero { padding: 26px 16px 14px; }
  .team-hero .team-office-name { font-size: 24px; }
  .team-hero .team-office-copy { font-size: 16px; white-space: normal; }
  .team-hero .team-hero-acts { margin-top: 18px; }
  /* WHY: on a phone the lead form's fields and button stack full width as thumb targets. */
  .team-match label, .team-match-go { width: 100%; }
  .team-match input, .team-match select { width: 100%; min-width: 0; }
}
