/*
 * rem-myconnect.css — Real Estate Moguls MyConnect Card
 * v4.0.0 — Conversion redesign: "The Business in a Box"
 *
 * Brand tokens as CSS custom properties for single-edit theming.
 * Mobile-first from 375px. Max container: 960px.
 * 13-section layout: header, hero, pull quote, bio, credibility strip,
 * testimonials, podcast, articles, press, referral CTA, custom HTML,
 * sponsor, footer.
 */


/* ══════════════════════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --authority: #0D1B2A;
  --primary:   #29ABE2;
  --accent:    #C9A84C;
  --platinum:  #F2F4F7;
  --white:     #FFFFFF;
  --body:      #1F2937;
  --muted:     #6B7280;
  --border:    #E5E7EB;
  --primary-dark: #1a8fc2;
}


/* ══════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ══════════════════════════════════════════════════════════════════════ */

.rem-myconnect-page {
  margin: 0;
  padding: 0;
  background: var(--white);
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--body);
}

.rem-myconnect-page *,
.rem-myconnect-page *::before,
.rem-myconnect-page *::after {
  box-sizing: border-box;
}


/* ══════════════════════════════════════════════════════════════════════════
   3. LAYOUT CONTAINERS
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-container {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.rem-mc-container--narrow {
  max-width: 700px;
}


/* ══════════════════════════════════════════════════════════════════════════
   4. SHARED COMPONENTS
   ══════════════════════════════════════════════════════════════════════ */

.rem-section {
  opacity: 1;
  transform: none;
}

/* Eyebrow label */
.rem-mc-eyebrow {
  display: block;
  font-family: 'Afacad', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Section title */
.rem-mc-section-title {
  font-family: 'Afacad', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--authority);
  margin: 0 0 24px;
  line-height: 1.2;
}

/* Section header row */
.rem-mc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
}
.rem-mc-section-header .rem-mc-section-title { margin-bottom: 0; }

.rem-mc-view-all {
  font-family: 'Afacad', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.rem-mc-view-all:hover { opacity: 0.7; }


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 1: NAV HEADER — static, solid Authority Navy
   Main site nav markup is reused here (same .rem-nav shell, same primary
   menu, same walker) but rendered as a static bar — no fixed positioning,
   no hero-transparency, no gradient band. !important overrides defeat the
   critical-CSS rules from rem_inject_critical_css() that paint the main
   nav as fixed + transparent over hero on other templates.
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-nav-static {
  position: relative !important;
  top: 0 !important;
  background: var(--authority) !important;
  border-bottom-color: var(--accent) !important;
}
.rem-myconnect-page .rem-band {
  position: static;
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 2: HERO — CONVERSION LAYOUT
   Mobile: stacked (media full-width, then white identity block)
   Desktop: two-column Navy (media 42%, identity 58%)
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-hero {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.rem-mc-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: unset;
  margin-top: 0;
  padding: 0;
  gap: 0;
}

/* ── Media zone (left on desktop) ─── */

.rem-mc-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--authority);
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}

.rem-mc-hero__media-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

/* Video embed in media zone */
.rem-mc-hero__embed {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.rem-mc-hero__embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Generic iframe/img inside media zone */
.rem-mc-hero__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  position: absolute;
  top: 0; left: 0;
}

.rem-mc-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Image in media zone (specific class) */
.rem-mc-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0; left: 0;
}

/* Initials fallback */
.rem-mc-hero__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: 'Afacad', sans-serif;
  font-size: 72px;
  font-weight: 800;
  color: var(--accent);
  background: var(--authority);
}

/* ── Identity zone (right on desktop) ─── */

.rem-mc-hero__body {
  order: 1;
  padding: 24px 20px 20px;
  background: var(--white);
  animation: remHeroFadeIn 0.3s ease 0.1s both;
}

@keyframes remHeroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Name */
.rem-mc-name {
  font-family: 'Afacad', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--authority);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

/* Title */
.rem-mc-hero__title {
  font-family: 'Avenir Next', 'Avenir', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #374151;
  margin: 0 0 6px;
  line-height: 1.35;
}

/* Company + Location row */
.rem-mc-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  line-height: 1.4;
}

.rem-mc-hero__company {
  font-family: 'Avenir Next', 'Avenir', sans-serif;
  font-size: 15px;
  color: var(--primary);
}

.rem-mc-hero__sep {
  margin: 0 8px;
  color: #4B5563;
}

.rem-mc-hero__location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6B7280;
}
.rem-mc-hero__location svg { opacity: 0.6; flex-shrink: 0; }

/* Credentials bar (below CTA cluster) */
.rem-mc-hero__credentials {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: 0.03em;
  line-height: 1.5;
  opacity: 0.72;
  margin: 25px 0 0;
  text-align: left;
}

/* Rule + NMLS row — inline pairing */
.rem-mc-hero__rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px 0;
}

/* NMLS compliance line */
.rem-mc-hero__nmls {
  font-family: 'Avenir Next', 'Avenir', -apple-system, sans-serif;
  font-size: 11px;
  color: #6B7280;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}

/* Gold rule */
.rem-mc-hero__rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
  margin: 0;
  border: none;
}

/* Hero bio (inside identity column — hidden on mobile) */
.rem-mc-hero__bio {
  font-size: 14px;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 20px 0;
  font-family: 'Avenir Next', 'Avenir', -apple-system, sans-serif;
}

/* CTA cluster */
.rem-mc-hero__cta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Mobile-only utility */
.rem-mc-mobile-only {
  display: none;
}

/* Visibility utilities (flex-based) */
.rem-mc-mobile-only  { display: none !important; }
.rem-mc-desktop-only { display: flex !important; }
@media (max-width: 767px) {
  .rem-mc-mobile-only  { display: flex !important; }
  .rem-mc-desktop-only { display: none !important; }
}

/* QR code block (desktop only) */
.rem-mc-hero__qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 24px;
}
.rem-mc-hero__qr > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  display: inline-block;
}
.rem-mc-hero__qr > div img,
.rem-mc-hero__qr > div canvas {
  display: block;
  border-radius: 3px;
}
.rem-mc-hero__qr-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.55;
  display: none;
}

/* Hidden always — element exists in DOM but never renders */
.rem-mc-hidden-always {
  display: none !important;
}

/* Shared button base */
.rem-mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 6px;
  font-family: 'Afacad', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms, color 150ms, border-color 150ms;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  border: none;
}
.rem-mc-btn svg { flex-shrink: 0; }

/* Button — Save to Contacts (outline) */
.rem-mc-btn--outline {
  background: transparent;
  color: var(--authority);
  border: 2px solid var(--authority);
}
.rem-mc-btn--outline:hover {
  background: var(--authority);
  color: var(--white);
}

/* Button — Share This Page (text link) */
.rem-mc-share-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Afacad', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  padding: 0;
  margin-top: 4px;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.rem-mc-share-text:hover { color: var(--primary); }

/* Social icons row */
.rem-mc-hero__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .rem-mc-hero__socials {
    margin-bottom: 10px;
  }
}

.rem-mc-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 48px;
  text-decoration: none;
  transition: background 200ms ease;
}
.rem-mc-social:hover { transform: translateY(-2px); }

.rem-mc-social svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 14px;
  border-radius: 50%;
  background: #F3F4F6;
  color: var(--authority);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.rem-mc-social:hover svg {
  background: var(--primary);
  color: var(--white);
}

.rem-mc-social__label {
  font-size: 9px;
  color: #6B7280;
  font-family: 'Afacad', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  text-align: center;
}

/* Email is first on desktop via CSS order */
@media (min-width: 768px) {
  .rem-mc-social--desktop-first {
    order: -1;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 3: PULL QUOTE
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-quote {
  background: var(--platinum);
  padding: 40px 24px;
  text-align: center;
}

.rem-mc-quote__mark {
  font-family: 'Afacad', sans-serif;
  font-size: 120px;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: -20px;
  position: relative;
  display: block;
}

.rem-mc-quote__text {
  font-family: 'Afacad', sans-serif;
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--authority);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  border: none;
  quotes: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 4: BIO
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-bio {
  background: var(--white);
  padding: 32px 24px 24px;
  margin: 0;
}

.rem-mc-bio__text {
  font-family: 'Avenir Next', 'Avenir', sans-serif;
  font-size: 17px;
  color: #374151;
  line-height: 1.85;
}

/* Mobile clamp */
.rem-mc-bio--clamped {
  max-height: calc(17px * 1.85 * 4);
  overflow: hidden;
  position: relative;
}
.rem-mc-bio--clamped::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
}
.rem-mc-bio--expanded { max-height: none; }
.rem-mc-bio--expanded::after { display: none; }

.rem-mc-bio-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Avenir Next', 'Avenir', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 0;
  margin-top: 8px;
  display: block;
}
.rem-mc-bio-toggle:hover { opacity: 0.7; }


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 5: CREDIBILITY STRIP
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-cred {
  background: var(--authority);
  padding: 20px 24px;
}

.rem-mc-cred__pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.rem-mc-cred__pill {
  font-family: 'Afacad', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 4px 12px;
  white-space: nowrap;
}

.rem-mc-cred__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 6: TESTIMONIALS
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-testimonials {
  background: var(--platinum);
  padding: 40px 24px;
}

.rem-mc-testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.rem-mc-tcard {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 28px;
  border-top: 3px solid var(--accent);
}

.rem-mc-tcard__mark {
  font-family: 'Afacad', sans-serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 0.8;
  display: block;
  margin-bottom: 8px;
}

.rem-mc-tcard__text {
  font-family: 'Avenir Next', 'Avenir', sans-serif;
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  font-style: italic;
  margin: 0;
}

.rem-mc-tcard__attr {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.rem-mc-tcard__name {
  display: block;
  font-family: 'Afacad', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--authority);
}

.rem-mc-tcard__role {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 7: PODCAST EPISODES
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-episodes {
  background: #4A5568;
  padding: 48px 24px 56px;
}
.rem-mc-episodes .rem-mc-eyebrow {
  color: var(--accent);
  opacity: 1;
}
.rem-mc-episodes .rem-mc-section-title {
  color: #fff;
}
.rem-mc-episodes .rem-mc-view-all {
  color: var(--primary);
  opacity: 1;
}
.rem-mc-episodes .rem-mc-view-all:hover {
  color: var(--accent);
}

/* Mobile: horizontal scroll */
.rem-mc-episodes__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  /* Fade-hint right edge */
  mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
}
.rem-mc-episodes__grid::-webkit-scrollbar { display: none; }

.rem-mc-ep-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms;
}
.rem-mc-ep-card:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transform: translateY(-4px);
}

.rem-mc-ep-card__img {
  background-color: #0D1B2A;
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.rem-mc-ep-card__img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 200ms;
}
.rem-mc-ep-card:hover .rem-mc-ep-card__img img {
  opacity: 0.7;
}

/* Play button overlay */
.rem-mc-ep-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--authority);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.rem-mc-ep-card__play svg {
  margin-left: 2px; /* optical center for play triangle */
}

.rem-mc-ep-card__body { padding: 16px; }

.rem-mc-ep-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rem-mc-ep-card__num {
  font-family: 'Afacad', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
}

.rem-mc-ep-card__dur {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.rem-mc-ep-card__title {
  font-family: 'Afacad', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 8: WRITTEN CONTENT / ARTICLES
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-articles {
  background: var(--authority);
  padding: 48px 24px 56px;
}
.rem-mc-articles .rem-mc-eyebrow {
  color: var(--accent);
}
.rem-mc-articles .rem-mc-section-title {
  color: #fff;
}
.rem-mc-articles .rem-mc-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.rem-mc-articles .rem-mc-section-header a {
  color: var(--primary);
}
.rem-mc-articles__view-all {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.rem-mc-articles__view-all:hover { color: var(--accent); }

.rem-mc-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
}

.rem-mc-art-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  min-height: 72px;
}
.rem-mc-art-card:hover {
  background: rgba(255,255,255,0.09);
}

.rem-mc-art-card__img {
  width: 96px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
}
.rem-mc-art-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rem-mc-art-card__body {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
  border-left: 1px solid rgba(255,255,255,0.06);
}

.rem-mc-art-card__cat {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
  display: block;
}

.rem-mc-art-card__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rem-mc-art-card__excerpt { display: none; }
.rem-mc-art-card__link { display: none; }


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 9: PRESS HIGHLIGHTS
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-press {
  background: var(--white);
  padding: 32px 24px 40px;
}

/* Mobile: horizontal scroll */
.rem-mc-press__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rem-mc-press__grid::-webkit-scrollbar { display: none; }

.rem-mc-press-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  border-top: 3px solid var(--accent);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms, box-shadow 200ms;
  display: flex;
  flex-direction: column;
}
.rem-mc-press-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rem-mc-press-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.rem-mc-press-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rem-mc-press-card__body { padding: 16px; }

.rem-mc-press-card__title {
  font-family: 'Afacad', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--authority);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rem-mc-press-card__desc {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rem-mc-press-card__link {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 12px;
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 10: REFERRAL CTA
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-referral {
  background: var(--authority);
  background-image: radial-gradient(ellipse at 50% 100%, rgba(41, 171, 226, 0.15) 0%, transparent 70%);
  padding: 64px 24px;
  text-align: center;
}

.rem-mc-referral__rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 32px;
}

.rem-mc-referral__headline {
  font-family: 'Afacad', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 0;
}

.rem-mc-referral__subtext {
  font-family: 'Avenir Next', 'Avenir', sans-serif;
  font-size: 16px;
  color: #CBD5E1;
  line-height: 1.7;
  margin: 16px 0 0;
}

/* Share button (large) */
.rem-mc-btn--share {
  background: var(--primary);
  color: var(--white);
  font-family: 'Afacad', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 280px;
  max-width: 100%;
  height: 56px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  transition: background 150ms, transform 100ms;
}
.rem-mc-btn--share:hover { background: var(--primary-dark); }
.rem-mc-btn--share:active { transform: scale(0.98); }

/* Copy link field */
.rem-mc-referral__copy {
  margin-top: 20px;
}

.rem-mc-referral__copy-label {
  display: block;
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 8px;
}

.rem-mc-referral__url {
  font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
  font-size: 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 8px 12px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  outline: none;
}
.rem-mc-referral__url:focus {
  border-color: var(--primary);
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 11: CUSTOM HTML BLOCK
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-custom {
  padding: 48px 24px;
  background: var(--white);
}


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 12: SPONSOR ZONE
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-sponsor {
  background: linear-gradient(135deg, #0D1B2A 0%, #1a2f45 100%);
  border-top: 2px solid var(--accent);
  padding: 48px 24px;
}

.rem-mc-sponsor__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.rem-mc-sponsor__label {
  font-family: 'Afacad', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

.rem-mc-sponsor__sep {
  width: 60px;
  height: 1px;
  background: rgba(201, 168, 76, 0.3);
  margin: 16px auto;
}

.rem-mc-sponsor__logo {
  max-height: 56px;
  max-width: 220px;
  width: auto;
  display: inline-block;
}

.rem-mc-sponsor__name-fallback {
  font-family: 'Afacad', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.rem-mc-sponsor__copy {
  font-family: 'Avenir Next', sans-serif;
  font-size: 15px;
  font-style: italic;
  color: #CBD5E1;
  line-height: 1.7;
  margin: 12px 0 0;
  max-width: 500px;
}

.rem-mc-sponsor__cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: 16px;
  transition: opacity 0.2s;
}
.rem-mc-sponsor__cta:hover { opacity: 0.7; }


/* ══════════════════════════════════════════════════════════════════════════
   SECTION 13: FOOTER
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-footer {
  background: var(--authority);
  padding: 32px 24px;
  text-align: center;
}

.rem-mc-footer__wordmark {
  display: block;
  font-family: 'Afacad', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.rem-mc-footer__wordmark:hover { opacity: 0.8; }

.rem-mc-footer__tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--platinum);
  margin: 8px 0 0;
  line-height: 1.5;
}

.rem-mc-footer__copy {
  font-size: 11px;
  color: #4B5563;
  margin: 12px 0 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE: MOBILE-ONLY (< 768px) — Spacing + overflow fixes
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

  .rem-mc-hero__rule-row {
    margin-bottom: 20px;
  }

  .rem-mc-hero__socials {
    margin-bottom: 15px;
  }

  /* NMLS on white background */
  .rem-mc-hero__nmls {
    color: #9CA3AF;
  }

  /* Location on white background */
  .rem-mc-hero__location {
    color: #6B7280;
  }

  /* Social icon labels */
  .rem-mc-social__label {
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 48px;
  }

  /* Share text */
  .rem-mc-share-text {
    color: #6B7280;
  }

  /* Referral — remove decorative shape on mobile */
  .rem-mc-referral::before {
    display: none;
  }
  .rem-mc-referral {
    border-radius: 0;
    clip-path: none;
    padding-top: 48px;
  }

  /* Identity block — center all hero text on mobile */
  .rem-mc-hero__body {
    text-align: center;
  }
  .rem-mc-name,
  .rem-mc-hero__title,
  .rem-mc-hero__meta,
  .rem-mc-hero__nmls {
    text-align: center;
  }
  .rem-mc-hero__credentials {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
  }
  .rem-mc-hero__meta {
    justify-content: center;
  }

  /* NMLS rule row — gold lines flank the number on both sides, centered.
     Left line = .rem-mc-hero__rule (flex sibling); right line = ::after on
     the row itself (NOT on the NMLS text) so both lines sit at the same
     flex level and lock to identical 36px width. */
  .rem-mc-hero__rule-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .rem-mc-hero__rule {
    flex: 0 0 36px;
    height: 1px;
    background: var(--accent);
  }
  .rem-mc-hero__nmls {
    flex-shrink: 0;
    text-align: center;
  }
  .rem-mc-hero__rule-row::after {
    content: '';
    display: block;
    flex: 0 0 36px;
    height: 1px;
    background: var(--accent);
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE: >= 480px
   ══════════════════════════════════════════════════════════════════════ */

@media (min-width: 480px) {
  .rem-mc-hero__body { padding: 28px 24px 24px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE: >= 768px — DESKTOP
   ══════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {

  /* ── HERO: Two-column Navy ─── */
  .rem-mc-hero__inner {
    flex-direction: row;
    background: var(--authority);
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .rem-mc-hero .rem-mc-container,
  .rem-mc-hero__inner .rem-mc-container {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .rem-mc-hero__media {
    width: 55%;
    flex-shrink: 0;
    position: relative;
    aspect-ratio: 16 / 9;
    align-self: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .rem-mc-hero__media-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: unset;
  }

  .rem-mc-hero__embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .rem-mc-hero__embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    min-height: unset;
  }

  .rem-mc-hero__media--hero_image .rem-mc-hero__img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }

  .rem-mc-hero__body {
    flex: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
    background: var(--authority);
    color: var(--white);
    overflow-y: auto;
    min-width: 0;
  }

  /* Recolor identity for dark background */
  .rem-mc-name {
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px 0;
    line-height: 1.05;
  }

  .rem-mc-hero__title {
    font-size: 18px;
    color: #CBD5E1;
    margin: 0 0 8px 0;
    font-weight: 400;
  }

  .rem-mc-hero__meta {
    margin: 0 0 0 0;
  }

  .rem-mc-hero__company { color: var(--primary); font-size: 15px; }
  .rem-mc-hero__location { color: #9CA3AF; font-size: 14px; }

  .rem-mc-hero__nmls {
    font-size: 11px;
    color: #6B7280;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  /* Hero bio — visible on desktop */
  .rem-mc-hero__bio {
    font-size: 13px;
    line-height: 1.75;
    color: #CBD5E1;
    margin: 0 0 16px 0;
  }

  /* Hide standalone bio on desktop when hero has media */
  .rem-mc-hero--has-media ~ .rem-mc-bio {
    display: none;
  }

  /* Share text — dark theme */
  .rem-mc-share-text { color: #9CA3AF; }
  .rem-mc-share-text:hover { color: #CBD5E1; }

  /* Social icons — dark theme */
  .rem-mc-hero__socials {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 0;
  }

  .rem-mc-social svg {
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: var(--white);
  }

  .rem-mc-social:hover svg {
    background: var(--primary);
  }

  .rem-mc-social__label {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    text-align: center;
  }

  /* ── Bio: remove clamp on desktop ─── */
  .rem-mc-bio--clamped { max-height: none; }
  .rem-mc-bio--clamped::after { display: none; }
  .rem-mc-bio-toggle { display: none; }

  /* ── Testimonials: responsive grid by count ─── */
  .rem-mc-testimonials__grid--2 { grid-template-columns: repeat(2, 1fr); }
  .rem-mc-testimonials__grid--3 { grid-template-columns: repeat(3, 1fr); }

  /* ── Episodes: 3-col grid ─── */
  .rem-mc-episodes__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .rem-mc-ep-card { flex: none; }

  /* ── Articles: 2-col uniform grid on desktop ──��� */
  .rem-mc-articles__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }
  .rem-mc-art-card__img {
    width: 110px;
    height: 80px;
  }
  .rem-mc-art-card__title {
    font-size: 15px;
  }

  /* ── Press: responsive grid by count ─── */
  .rem-mc-press__grid {
    display: grid;
    overflow: visible;
  }
  .rem-mc-press__grid--1 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .rem-mc-press__grid--2 { grid-template-columns: repeat(2, 1fr); }
  .rem-mc-press__grid--3 { grid-template-columns: repeat(3, 1fr); }
  .rem-mc-press-card { flex: none; }

  /* ── Quote / testimonials: tighten vertical rhythm on desktop ─── */
  .rem-mc-quote { padding-bottom: 20px; }
  .rem-mc-testimonials { padding-top: 20px; }

  /* ── Credentials bar: larger on desktop ─── */
  .rem-mc-hero__credentials {
    font-size: 15px;
    opacity: 0.85;
  }

  /* ── Elfsight: desktop spacing overrides ─── */
  .rem-mc-elfsight--fullwidth {
    padding-top: 0;
    padding-bottom: 0;
  }
  .rem-mc-elfsight--contained {
    padding-top: 8px;
    padding-bottom: 64px;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE: >= 1024px — CONTAINER + POLISH
   ══════════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
  .rem-mc-container {
    padding-left: 0;
    padding-right: 0;
  }

  .rem-mc-quote,
  .rem-mc-bio,
  .rem-mc-cred,
  .rem-mc-testimonials,
  .rem-mc-episodes,
  .rem-mc-articles,
  .rem-mc-press,
  .rem-mc-custom {
    padding-left: 0;
    padding-right: 0;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   MOBILE HERO — COMPLETE OVERRIDE
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    .rem-mc-card {
        gap: 0 !important;
        padding-top: 0 !important;
    }

    .rem-mc-hero {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }

    .rem-mc-hero__inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: unset !important;
        align-items: stretch !important;
    }

    /* Media column: pushed to top, 16:9 via padding trick */
    .rem-mc-hero__media {
        order: -1 !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        position: relative !important;
        height: 0 !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 56.25% !important;
        overflow: hidden !important;
        margin: 0 !important;
        background: #000 !important;
    }

    /* Inner wrapper fills the padded space */
    .rem-mc-hero__media-inner {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: unset !important;
    }

    /* Embed div fills inner wrapper */
    .rem-mc-hero__embed {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    /* iframe fills embed div */
    .rem-mc-hero__embed iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        display: block !important;
    }

    .rem-mc-hero__media iframe {
        min-height: unset !important;
    }

    /* Images fill the container */
    .rem-mc-hero__img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        display: block !important;
    }

    /* Identity column: below media, white background */
    .rem-mc-hero__body {
        order: 1 !important;
        width: 100% !important;
        background: #ffffff !important;
        padding: 24px 20px 16px !important;
        flex: none !important;
    }

    /* Name color on white */
    .rem-mc-hero .rem-mc-name {
        color: #0D1B2A !important;
        font-size: 30px !important;
    }

    /* Title on white */
    .rem-mc-hero .rem-mc-hero__title {
        color: #374151 !important;
    }

    /* Bio hidden on mobile — shows in standalone section below */
    .rem-mc-hero__bio {
        display: none !important;
    }

    /* Social icons on white background */
    .rem-mc-social svg {
        background: #F3F4F6 !important;
        color: #0D1B2A !important;
    }

    .rem-mc-social__label {
        color: #6B7280 !important;
    }

    /* Save to Contacts button */
    .rem-mc-save-mobile-wrap {
        display: block !important;
        width: 100% !important;
        margin-top: 16px !important;
    }

    /* Standalone bio section below hero */
    .rem-mc-bio,
    .rem-mc-bio-section {
        padding: 20px 20px 16px !important;
        margin: 0 !important;
    }

    /* Podcast section */
    .rem-mc-episodes {
        padding-top: 28px !important;
    }
}


/* ── Admin bar + gap fix for MyConnectCard page ── */

body.rem-myconnect-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* WordPress admin bar pushes html down 46px on mobile, 32px on desktop.
   This removes that offset specifically on the MyConnectCard page. */
body.admin-bar.rem-myconnect-page {
    margin-top: 0 !important;
}

html.admin-bar body.rem-myconnect-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* WordPress core targets html directly for admin bar offset */
body.admin-bar.rem-myconnect-page #wpadminbar {
    position: fixed;
}

@media (max-width: 767px) {
    html body.admin-bar.rem-myconnect-page {
        margin-top: 0 !important;
    }

    /* The real fix: WordPress adds this via core CSS */
    /* html { margin-top: 46px } — we override it here */
    html:has(body.rem-myconnect-page) {
        margin-top: 0 !important;
    }

    .rem-mc-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .rem-mc-hero__inner {
        min-height: unset !important;
        margin-top: 0 !important;
    }
}

@media (min-width: 768px) {
    html:has(body.rem-myconnect-page) {
        margin-top: 0 !important;
    }
}

.rem-mc-elfsight {
    padding-top: 18px;
    padding-bottom: 18px;
}

.rem-mc-elfsight--contained {
    padding-top: 36px;
    padding-bottom: 36px;
    background: #fff;
}

.rem-mc-elfsight--fullwidth {
    padding-top: 18px;
    padding-bottom: 18px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
   FINAL SECTION: GHL CONTACT FORM
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-form-section {
  background: var(--authority);
  padding-top: 72px;
  padding-bottom: 72px;
}

.rem-mc-form-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.rem-mc-form-section .rem-mc-eyebrow {
  color: var(--accent);
}

.rem-mc-form-section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 8px 0 16px;
}

.rem-mc-form-section__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

.rem-mc-form-section__embed {
  background: #fff;
  border-radius: var(--rad-card);
  overflow: hidden;
  border-top: 3px solid var(--accent);
}

@media (max-width: 767px) {
  .rem-mc-form-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .rem-mc-form-section__header {
    margin-bottom: 28px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   NETWORK LAYER — TEAM & PARTNERS
   ══════════════════════════════════════════════════════════════════════ */

.rem-mc-network {
  background: var(--background);
  padding-top: 72px;
  padding-bottom: 72px;
}

.rem-mc-network__header {
  text-align: center;
  margin-bottom: 56px;
}

.rem-mc-network__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--authority);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
}

/* Group containers */
.rem-mc-network__group {
  margin-bottom: 56px;
}
.rem-mc-network__group:last-child {
  margin-bottom: 0;
}

.rem-mc-network__group-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

/* Grids */
.rem-mc-network__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Team grid — tighter, more unified */
.rem-mc-network__grid--team {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}

/* Partners grid — more breathing room */
.rem-mc-network__grid--partners {
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

/* ── TEAM CARD ─── */
.rem-mc-ncard--team {
  background: #fff;
  border-radius: var(--rad-card);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.rem-mc-ncard--team:hover {
  box-shadow: 0 6px 24px rgba(13,27,42,0.1);
  transform: translateY(-2px);
}

/* ── PARTNER CARD ─── */
.rem-mc-ncard--partner {
  background: #fff;
  border-radius: var(--rad-card);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-top: 3px solid var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.rem-mc-ncard--partner:hover {
  box-shadow: 0 8px 32px rgba(13,27,42,0.08);
  transform: translateY(-2px);
  border-top-color: var(--primary);
}

/* Category tag — partners only */
.rem-mc-ncard__category {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 3px 8px;
  border-radius: 20px;
}

/* Photo */
.rem-mc-ncard__photo {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--authority);
}
.rem-mc-ncard--partner .rem-mc-ncard__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.rem-mc-ncard__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rem-mc-ncard__initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

/* Body */
.rem-mc-ncard__body {
  flex: 1;
}
.rem-mc-ncard__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--authority);
  line-height: 1.2;
  margin: 0 0 4px;
}
.rem-mc-ncard__meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--slate);
  line-height: 1.4;
  margin: 0;
}

/* CTA */
.rem-mc-ncard__cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  transition: color .15s;
  margin-top: 4px;
}
.rem-mc-ncard__cta:hover {
  color: var(--authority);
}

/* Mobile */
@media (max-width: 767px) {
  .rem-mc-network {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .rem-mc-network__header {
    margin-bottom: 36px;
  }
  .rem-mc-network__grid--team {
    grid-template-columns: repeat(2, 1fr);
  }
  .rem-mc-network__grid--partners {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .rem-mc-network__grid--team,
  .rem-mc-network__grid--partners {
    grid-template-columns: 1fr;
  }
}
