/**
 * match-card.css — Pious Hearts Profile Card
 * Premium redesign matching the Murad reference layout.
 * All critical visual properties use !important to beat Bootstrap + bundler order.
 */

/* ══════════════════════════════════════════
   ROOT CARD SHELL
   ══════════════════════════════════════════ */

.ph-match-card {
  --ph-gold:          #9e7d4f;
  --ph-gold-warm:     #b8922e;
  --ph-gold-soft:     rgba(158, 125, 79, 0.25);
  --ph-bronze:        #2c2622;
  --ph-cream:         #f5f2ee;
  --ph-cream-panel:   #faf8f5;
  --ph-cream-deep:    #f0ebe2;
  --ph-white:         #ffffff;
  --ph-border:        #e2d9cc;
  --ph-text:          #1a1714;
  --ph-text-body:     #3d3830;
  --ph-text-muted:    #7a7168;
  --ph-rule:          rgba(44, 38, 34, 0.09);

  
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  color: var(--ph-text);
  background: var(--ph-cream);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(44, 38, 34, 0.10);
  border: 1px solid var(--ph-border);
  padding-bottom: clamp(40px, 5vw, 60px);
  overflow: hidden;
  box-sizing: border-box;
}

.ph-match-card *, .ph-match-card *::before, .ph-match-card *::after {
  box-sizing: border-box;
}

/* Override Bootstrap paragraph margins inside card */
.ph-match-card p {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: var(--ph-text-body) !important;
  word-break: break-word;
  overflow-wrap: break-word;
  margin: 0 !important;
}

/* ══════════════════════════════════════════
   HEADER — BIG NAME
   ══════════════════════════════════════════ */

.ph-match-card__header {
  text-align: center;
  padding: clamp(40px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(24px, 3.2vw, 36px);
  background: var(--ph-cream);
}

.ph-match-card__name {
  margin: 0 !important;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(2.6rem, 5vw + 0.8rem, 4.2rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  color: var(--ph-bronze) !important;
  line-height: 1.05 !important;
}

.ph-match-card__name-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 20px auto 0;
  max-width: 300px;
}

.ph-match-card__name-rule-line {
  flex: 1;
  height: 1px;
  background: var(--ph-gold-soft);
}

.ph-match-card__name-diamond {
  color: var(--ph-gold);
  font-size: 10px;
  line-height: 1;
}

/* ══════════════════════════════════════════
   BODY
   ══════════════════════════════════════════ */

.ph-match-card__body {
  padding: 0 clamp(16px, 3vw, 40px) 2px;
  background: var(--ph-cream);
}

/* ══════════════════════════════════════════
   TOP GRID — Photos | Intro panel
   ══════════════════════════════════════════ */

.ph-match-card__top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(18px, 2.5vw, 30px);
  align-items: start;
  margin-bottom: clamp(22px, 3vw, 32px);
}

/* Photo mosaic */
.ph-match-card__photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
}

.ph-match-card__photo-mosaic-cell--primary {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 1;
}

.ph-match-card__photo-mosaic-cell--secondary {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.ph-match-card__photo-mosaic-cell {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.ph-match-card__photo-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ph-match-card__photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4ddd3;
  color: #b5aca1;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/* ══════════════════════════════════════════
   INTRO PANEL (right side of top grid)
   ══════════════════════════════════════════ */

.ph-match-card__intro-panel {
  padding: clamp(22px, 3vw, 32px) !important;
  background: var(--ph-white) !important;
  border: 1px solid var(--ph-border) !important;
  border-radius: 12px !important;
}

.ph-match-card__intro-section + .ph-match-card__intro-section {
  margin-top: 28px;
}

.ph-match-card__intro-section--first {
  margin-top: 0;
}

/* ══════════════════════════════════════════
   SECTION TITLES — EYEBROWS (BIG)
   ══════════════════════════════════════════ */

/* Base eyebrow — applies to all section headings */
.ph-match-card__eyebrow,
h3.ph-match-card__eyebrow,
p.ph-match-card__eyebrow {
  display: block !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--ph-gold) !important;
  line-height: 1.2 !important;
  background: transparent !important;
  border: none !important;
}

/* Gold underline rule */
.ph-match-card__eyebrow--figma {
  display: block !important;
  width: 100%;
}

.ph-match-card__eyebrow--figma::after {
  content: "" !important;
  display: block !important;
  width: 56px !important;
  height: 2px !important;
  margin-top: 12px !important;
  background: var(--ph-gold) !important;
}

/* Intro panel titles get slightly warmer gold */
.ph-match-card__intro-panel .ph-match-card__eyebrow,
.ph-match-card__intro-panel h3.ph-match-card__eyebrow {
  font-size: 20px !important;
  color: var(--ph-gold-warm) !important;
}

.ph-match-card__intro-panel .ph-match-card__eyebrow--figma::after {
  background: var(--ph-gold-warm) !important;
}

/* ══════════════════════════════════════════
   AT A GLANCE TEXT
   ══════════════════════════════════════════ */

.ph-match-card__glance {
  text-align: left !important;
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.72 !important;
  font-weight: 400 !important;
  color: var(--ph-text-body) !important;
}

/* ══════════════════════════════════════════
   THE ESSENTIALS TABLE
   ══════════════════════════════════════════ */

.ph-match-card__essentials--figma {
  margin: 0;
  padding: 0;
}

.ph-match-card__essentials-group + .ph-match-card__essentials-group {
  margin-top: 6px;
  padding-top: 14px;
}

.ph-match-card__essentials--figma .ph-match-card__row--essentials {
  display: grid !important;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr) !important;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(26, 26, 26, 0.07);
}

.ph-match-card__essentials--figma
  .ph-match-card__essentials-group:last-child
  .ph-match-card__row--essentials:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

.ph-match-card__label--essentials {
  padding-right: 10px;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--ph-text-muted) !important;
  text-align: left !important;
  line-height: 1.5 !important;
}

.ph-match-card__value--essentials {
  margin: 0 !important;
  padding-left: 14px;
  border-left: 1.5px solid rgba(26, 26, 26, 0.12);
  text-align: left !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ph-text) !important;
  line-height: 1.5 !important;
}

/* ══════════════════════════════════════════
   CLOSER LOOK
   ══════════════════════════════════════════ */

.ph-match-card__closer-section {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.ph-match-card__closer-section--figma {
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: clamp(24px, 3.2vw, 34px);
}

/* Closer Look title — same size as other eyebrows */
.ph-match-card__closer-title,
h3.ph-match-card__closer-title {
  display: block !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  color: var(--ph-gold) !important;
  line-height: 1.2 !important;
}

.ph-match-card__closer-title::after,
h3.ph-match-card__closer-title::after {
  content: "" !important;
  display: block !important;
  width: 56px !important;
  height: 2px !important;
  margin-top: 12px !important;
  background: var(--ph-gold) !important;
}

.ph-match-card p.ph-match-card__closer-body {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.78 !important;
  color: var(--ph-text-body) !important;
}

/* ══════════════════════════════════════════
   TWO-COL: FAITH & PRACTICE + LIFESTYLE
   ══════════════════════════════════════════ */

.ph-match-card__two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.ph-match-card__two-col--single {
  grid-template-columns: 1fr;
}

/* General box panel */
.ph-match-card__box {
  background: var(--ph-white);
  border: 1px solid var(--ph-border);
  border-radius: 12px;
  padding: clamp(20px, 2.6vw, 30px);
}

/* KV rows */
.ph-match-card__kv-stack .ph-match-card__row {
  border-bottom: 1px solid var(--ph-rule);
  padding: 11px 0;
  margin: 0;
}

.ph-match-card__kv-stack .ph-match-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ph-match-card__kv-stack .ph-match-card__row:first-child {
  padding-top: 0;
}

.ph-match-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 14px;
}

.ph-match-card__label {
  flex: 0 1 46%;
  max-width: 50%;
  color: var(--ph-text-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.ph-match-card__value {
  flex: 1 1 0;
  min-width: 0;
  color: var(--ph-text);
  text-align: right;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

/* Lifestyle interest list */
.ph-match-card__interest-list {
  list-style: none !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

.ph-match-card__interest-item {
  margin: 0;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ph-text-body);
  border-bottom: 1px solid var(--ph-rule);
}

.ph-match-card__interest-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ══════════════════════════════════════════
   WHOM I'M SEEKING — Horizontal label + separator + text
   ══════════════════════════════════════════ */

.ph-match-card__seeking-strip {
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  grid-template-rows: auto !important;
  align-items: stretch !important;
  margin-bottom: clamp(20px, 3vw, 32px) !important;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ph-cream-panel);
  border: 1px solid var(--ph-border);

  /* Kill any flex that could be set elsewhere */
  flex-direction: unset !important;
}

.ph-match-card__seeking-label {
  /* FORCE horizontal — kill legacy vertical-rl with every possible override */
  writing-mode: horizontal-tb !important;
  -webkit-writing-mode: horizontal-tb !important;
  -ms-writing-mode: lr-tb !important;
  transform: none !important;
  -webkit-transform: none !important;
  text-orientation: mixed !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;

  grid-column: 1 !important;
  grid-row: 1 !important;

  padding: clamp(22px, 3vw, 30px) clamp(20px, 2.6vw, 28px) !important;
  background: var(--ph-cream-deep) !important;
  border-right: 2px solid var(--ph-border) !important;
  border-bottom: none !important;
  white-space: nowrap !important;
  min-width: 150px !important;

  
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ph-gold) !important;
  line-height: 1.35 !important;
}

.ph-match-card__seeking-body {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 36px);
  background: var(--ph-cream-panel);
  display: flex;
  align-items: center;
}

.ph-match-card__seeking-text {
  margin: 0 !important;
  text-align: left !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.78 !important;
  color: var(--ph-text-body) !important;
}

/* ══════════════════════════════════════════
   LEGACY SECTIONS (Previous Marriage, Children)
   ══════════════════════════════════════════ */

.ph-match-card__legacy-section {
  margin-bottom: 16px;
}

.ph-match-card__narrow-block {
  max-width: 100%;
  margin: 0;
}

/* ══════════════════════════════════════════
   BRAND FOOTER
   ══════════════════════════════════════════ */

.ph-match-card__brand-footer {
  text-align: center;
  padding: 32px 20px 0;
  margin-top: 10px;
  border-top: 1px solid var(--ph-border);
}

.ph-match-card__brand-footer-kicker {
  
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
  color: var(--ph-gold) !important;
  margin: 0 0 10px !important;
}

.ph-match-card__brand-footer-note {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--ph-text-muted) !important;
  margin: 0 !important;
  font-style: italic !important;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 991px) {
  .ph-match-card__top-grid {
    grid-template-columns: 1fr;
    row-gap: clamp(14px, 3vw, 22px);
  }
}

@media (max-width: 1180px) {
  .ph-match-card__two-col:not(.ph-match-card__two-col--single) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ph-match-card__seeking-strip {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }

  .ph-match-card__seeking-label {
    grid-column: 1 !important;
    grid-row: 1 !important;
    border-right: none !important;
    border-bottom: 2px solid var(--ph-border) !important;
    padding: 16px 20px !important;
    min-width: unset !important;
    white-space: normal !important;
  }

  .ph-match-card__seeking-body {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .ph-match-card__name {
    letter-spacing: 0.12em !important;
  }

  .ph-match-card__eyebrow,
  h3.ph-match-card__eyebrow,
  .ph-match-card__closer-title,
  h3.ph-match-card__closer-title {
    font-size: 18px !important;
  }
}

@media (max-width: 420px) {
  .ph-match-card__essentials--figma .ph-match-card__row--essentials {
    grid-template-columns: 1fr !important;
    row-gap: 6px;
    padding: 12px 0;
  }

  .ph-match-card__value--essentials {
    border-left: none;
    padding-left: 0;
    padding-top: 4px;
    border-top: 1px solid rgba(26, 26, 26, 0.10);
  }
}

/* ===================================================================
   Section titles / "Whom I'm Seeking" strip / brand footer.
   Moved here verbatim from the inline <style> in Views/Shared/MatchCard.cshtml
   (that partial renders under _Layout, _UserLayout and
   _PublicEventNetworkingCardLayout, all of which load the ~/Content/css bundle
   that includes this file). Existing !important flags are intentional overrides
   and are preserved as-is.
   =================================================================== */

/* ── SECTION TITLES — bigger everywhere ── */
.ph-match-card__eyebrow,
h3.ph-match-card__eyebrow,
p.ph-match-card__eyebrow {
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: #9e7d4f !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
}
.ph-match-card__eyebrow--figma::after {
    content: "" !important;
    display: block !important;
    width: 52px !important;
    height: 2px !important;
    margin-top: 12px !important;
    background: #9e7d4f !important;
}
.ph-match-card__intro-panel .ph-match-card__eyebrow,
.ph-match-card__intro-panel h3.ph-match-card__eyebrow {
    font-size: 20px !important;
    color: #b8922e !important;
}
.ph-match-card__intro-panel .ph-match-card__eyebrow--figma::after {
    background: #b8922e !important;
}
.ph-match-card__closer-title,
h3.ph-match-card__closer-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;
    color: #9e7d4f !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
}
.ph-match-card__closer-title::after,
h3.ph-match-card__closer-title::after {
    content: "" !important;
    display: block !important;
    width: 52px !important;
    height: 2px !important;
    margin-top: 12px !important;
    background: #9e7d4f !important;
}

/* ── WHOM I'M SEEKING — HORIZONTAL label fix ── */
.ph-match-card__seeking-strip {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    grid-template-rows: auto !important;
    flex-direction: unset !important;
    margin-bottom: 28px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #faf8f5 !important;
    border: 1px solid #e2d9cc !important;
}
.ph-match-card__seeking-label {
    /* DESTROY vertical writing mode — every vendor prefix */
    writing-mode: horizontal-tb !important;
    -webkit-writing-mode: horizontal-tb !important;
    -ms-writing-mode: lr-tb !important;
    transform: none !important;
    -webkit-transform: none !important;
    text-orientation: mixed !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    grid-column: 1 !important;
    grid-row: 1 !important;

    padding: 24px 22px !important;
    background: #f0ebe2 !important;
    border-right: 2px solid #e2d9cc !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    min-width: 140px !important;
    white-space: nowrap !important;

    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.13em !important;
    text-transform: uppercase !important;
    color: #9e7d4f !important;
    line-height: 1.35 !important;
}
.ph-match-card__seeking-body {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 24px 28px !important;
    background: #faf8f5 !important;
    display: flex !important;
    align-items: center !important;
}
.ph-match-card__seeking-text {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: #3d3830 !important;
    text-align: left !important;
}

/* ── BRAND FOOTER ── */
.ph-match-card__brand-footer {
    border-top: 1px solid #e2d9cc !important;
    padding-top: 28px !important;
    text-align: center !important;
}
.ph-match-card__brand-footer-kicker {
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.22em !important;
    text-transform: uppercase !important;
    color: #9e7d4f !important;
    margin: 0 0 8px !important;
    display: block !important;
}
.ph-match-card__brand-footer-note {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #7a7168 !important;
    font-style: italic !important;
    margin: 0 !important;
    display: block !important;
}

/* ── MOBILE: Whom I'm Seeking becomes a centered card ── */
@media (max-width: 700px) {
    .ph-match-card__seeking-strip {
        display: block !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        border-radius: 12px !important;
        background: #faf8f5 !important;
        border: 1px solid #e2d9cc !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .ph-match-card__seeking-label {
        display: block !important;
        writing-mode: horizontal-tb !important;
        -webkit-writing-mode: horizontal-tb !important;
        transform: none !important;
        -webkit-transform: none !important;
        width: 100% !important;
        min-width: unset !important;
        white-space: normal !important;
        text-align: center !important;
        align-items: center !important;
        padding: 28px 20px 0 !important;
        background: #faf8f5 !important;
        border-right: none !important;
        border-bottom: none !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        letter-spacing: 0.14em !important;
        text-transform: uppercase !important;
        color: #9e7d4f !important;
        line-height: 1.3 !important;
    }
    /* Gold underline under the label on mobile */
    .ph-match-card__seeking-label::after {
        content: "" !important;
        display: block !important;
        width: 44px !important;
        height: 2px !important;
        background: #9e7d4f !important;
        margin: 12px auto 0 !important;
    }
    .ph-match-card__seeking-body {
        display: block !important;
        padding: 18px 24px 28px !important;
        background: #faf8f5 !important;
        text-align: center !important;
    }
    .ph-match-card__seeking-text {
        text-align: center !important;
        font-size: 15px !important;
        line-height: 1.78 !important;
        color: #3d3830 !important;
        font-style: normal !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}
