/* ==========================================================================
   Masera & Co — testimonials page additions to site.css
   (body.testimonials-page.v2 only): page head framing, the place caption,
   and one quote system (lead + body) used by every chapter.
   ========================================================================== */

body.testimonials-page.v2 {
  --quote-lead: clamp(28px, 3.2vw, 40px);
  --quote-body: clamp(20px, 1.9vw, 26px);
  --tm-role: #2A3445;
  --tm-sector: #4B5563;
}

/* --------------------------------------------------------------------------
   Page head: Financial District offices across Fort Point Channel
   -------------------------------------------------------------------------- */
body.v2 .tm-head .mc-pagehead-media img { object-position: 65% 45%; }

body.v2 .tm-head .mc-lead { max-width: 30em; }

/* A firmer navy veil on the text side; the photo stays clear on the right */
body.v2 .tm-head .mc-pagehead-shade {
  background:
    linear-gradient(90deg, rgba(11, 25, 44, 0.86) 0%, rgba(11, 25, 44, 0.66) 32%, rgba(11, 25, 44, 0.32) 60%, rgba(11, 25, 44, 0) 100%),
    linear-gradient(180deg, rgba(11, 25, 44, 0.45) 0%, rgba(11, 25, 44, 0) 24%, rgba(11, 25, 44, 0) 66%, rgba(11, 25, 44, 0.6) 100%);
}

/* The veil carries the contrast, so the glow shadows are not needed */
body.v2 .tm-head.mc-pagehead--photo :is(.mc-eyebrow, .mc-lead) {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Place label, bottom-right of the photo head */
body.v2 .tm-place {
  position: absolute;
  inset: auto 0 clamp(14px, 1.6vw, 24px) 0;
  margin: 0;
  font-family: var(--mc-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: right;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

body.v2 .tm-place > span { display: block; }

/* --------------------------------------------------------------------------
   Quotes: one lead size, one body size, one opening-mark treatment
   (the mark always sits above the text, never hung in the margin)
   -------------------------------------------------------------------------- */
body.v2 .mc-quote.tm-q .mc-quote-mark {
  position: static;
  display: block;
  height: 0.55em;
  margin: 0 0 0.2em;
  font-size: calc(var(--tm-q-size) * 2.2);
  line-height: 0.85;
}

body.v2 .tm-q { --tm-q-size: var(--quote-body); }
body.v2 .tm-q--lead { --tm-q-size: var(--quote-lead); }

body.v2 .tm-q blockquote p {
  max-width: 30em;
  font-size: var(--tm-q-size);
  line-height: 1.45;
}

body.v2 .tm-q--lead blockquote p {
  max-width: 26em;
  line-height: 1.32;
}

/* Attribution: role over sector, no dash */
body.v2 .tm-q .mc-quote-cite {
  margin-top: clamp(20px, 2vw, 32px);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

body.v2 .tm-role,
body.v2 .tm-sector { display: block; }

body.v2 .tm-role { font-weight: 600; color: var(--tm-role); }

body.v2 .tm-sector {
  margin-top: 4px;
  font-weight: 500;
  color: var(--tm-sector);
}

body.v2 .mc-section--dark .tm-role { color: rgba(255, 255, 255, 0.9); }
body.v2 .mc-section--dark .tm-sector { color: rgba(255, 255, 255, 0.74); }

/* --------------------------------------------------------------------------
   Chapters: heading, lead quote (stepped in), then a pair or trio
   -------------------------------------------------------------------------- */
body.v2 .tm-lead { margin-top: 32px; }
body.v2 .tm-lead > .tm-q { grid-column: 1 / -1; max-width: 58rem; margin-inline: auto; }

body.v2 .tm-pair { margin-top: 40px; }

/* 02: navy chapter, opened by a gold hairline */
body.v2 .tm-dark { border-top: 1px solid rgba(226, 183, 90, 0.45); }

/* 03: three quotes on a crisp grid */
body.v2 .tm-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 04: text-only rows (no thumbnails on this page) */
body.v2 .tm-next .mc-nav-row { grid-template-columns: minmax(0, 1fr) auto; }

@media (min-width: 1200px) {
  body.v2 .tm-lead > .tm-q { grid-column: 1 / -1; }
  body.v2 .tm-pair { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  body.v2 .tm-pair > :first-child { grid-column: 1 / span 6; }
  body.v2 .tm-pair > :last-child { grid-column: 7 / -1; }
  body.v2 .tm-next .mc-nav-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto;
  }
}

@media (min-width: 1800px) {
  body.testimonials-page.v2 {
    --quote-lead: 3rem;
    --quote-body: 1.9rem;
  }
  body.v2 .tm-place { font-size: 0.95rem; }
  body.v2 .tm-q .mc-quote-cite { font-size: 0.9rem; }
}

@media (max-width: 1199px) {
  body.v2 .tm-trio { grid-template-columns: 1fr; }
  body.v2 .tm-trio > * { max-width: 40em; }
}

@media (max-width: 991px) {
  body.v2 .tm-head .mc-pagehead-shade {
    background: linear-gradient(180deg, rgba(11, 25, 44, 0.58) 0%, rgba(11, 25, 44, 0.42) 32%, rgba(11, 25, 44, 0.66) 62%, rgba(11, 25, 44, 0.9) 100%);
  }
}

@media (max-width: 767px) {
  body.testimonials-page.v2 {
    --quote-lead: 1.75rem;
    --quote-body: 1.3rem;
  }
  body.v2 .tm-head .mc-pagehead-media img { object-position: 56% 50%; }
  body.v2 .tm-head { padding-bottom: 88px; }
  body.v2 .tm-place { text-align: left; }
  body.v2 .tm-q .mc-quote-cite { font-size: 0.85rem; letter-spacing: 0.12em; }
  body.v2 .mc-section .mc-quotes { row-gap: 36px; margin-top: 44px; }
  body.v2 .mc-section .mc-quotes > * { padding-top: 24px; }
  body.v2 .tm-next .mc-nav-row { grid-template-columns: minmax(0, 1fr); }
}
