:root {
  --rhi-gold: #c58b16;
  --rhi-gold-dark: #8b5d16;
  --rhi-gold-soft: #f8edda;
  --rhi-ink: #241f1a;
  --rhi-muted: #716b64;
  --rhi-line: #e9dfcf;
  --rhi-surface: #ffffff;
  --rhi-canvas: #f6f4f0;
  --rhi-green: #20ad5f;
  --rhi-blue: #3295df;
  --rhi-shadow: 0 16px 42px rgba(80, 59, 28, .10);
  --rhi-shadow-soft: 0 8px 24px rgba(61, 48, 28, .08);
  --rhi-radius-xl: 30px;
  --rhi-radius-lg: 22px;
  --rhi-radius-md: 16px;
}

.rhi-mp-shell,
.rhi-mp-public-shell,
.rhi-mp-admin,
.rhi-mp-shell *,
.rhi-mp-public-shell *,
.rhi-mp-admin * {
  box-sizing: border-box;
}

.rhi-mp-shell,
.rhi-mp-public-shell {
  color: var(--rhi-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

.rhi-mp-shell img,
.rhi-mp-public-shell img { max-width: 100%; }
.rhi-mp-shell button,
.rhi-mp-shell input,
.rhi-mp-shell textarea,
.rhi-mp-public-shell a { font: inherit; }

.rhi-mp-public-body {
  margin: 0;
  background: radial-gradient(circle at top, #fffdf9 0, #f7f3ec 50%, #f1ede7 100%);
  color: var(--rhi-ink);
}

.rhi-mp-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 120px;
}

.rhi-mp-card,
.rhi-mp-public-content-card,
.rhi-mp-public-status-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(213, 197, 169, .58);
  border-radius: var(--rhi-radius-lg);
  box-shadow: var(--rhi-shadow-soft);
}

.rhi-mp-kicker,
.rhi-mp-label {
  margin: 0;
  color: var(--rhi-gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rhi-mp-btn {
  appearance: none;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  color: #5f4b2a;
  background: #fff;
  border: 1px solid var(--rhi-line);
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.rhi-mp-btn:hover { transform: translateY(-1px); box-shadow: var(--rhi-shadow-soft); }
.rhi-mp-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.rhi-mp-btn-gold {
  color: #fff !important;
  border-color: transparent;
  background: linear-gradient(135deg, #d6a027, #a86a08);
  box-shadow: 0 10px 22px rgba(176, 111, 10, .20);
}

.rhi-mp-notice,
.rhi-mp-js-notice {
  display: none;
  width: 100%;
  margin: 0 0 14px;
  padding: 13px 16px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}
.rhi-mp-notice { display: block; }
.rhi-mp-js-notice.is-visible { display: block; position: sticky; top: 10px; z-index: 50; box-shadow: var(--rhi-shadow); }
.rhi-mp-success, .rhi-mp-js-notice.is-success { color: #126d3c; background: #e7f8ef; border: 1px solid #bfead2; }
.rhi-mp-error, .rhi-mp-js-notice.is-error { color: #a12828; background: #fff0ef; border: 1px solid #f0c1bd; }
.rhi-mp-warning, .rhi-mp-js-notice.is-warning { color: #7b5b10; background: #fff8df; border: 1px solid #edd99e; }

/* Internal profile */
.rhi-mp-internal-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 48px;
  border: 1px solid rgba(213, 197, 169, .55);
  border-radius: var(--rhi-radius-xl);
  background: #fffaf0 url('../images/backgrounds/hero-pattern-desktop.webp') center/cover no-repeat;
  box-shadow: var(--rhi-shadow);
}
.rhi-mp-internal-cover { position: absolute; inset: 0; pointer-events: none; }
.rhi-mp-internal-photo {
  position: relative;
  z-index: 1;
  width: 220px;
  aspect-ratio: 1;
  margin: auto;
}
.rhi-mp-internal-photo > img:first-child,
.rhi-mp-public-photo > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #fff;
  border: 8px solid rgba(255,255,255,.92);
  box-shadow: 0 18px 34px rgba(70, 52, 26, .18);
}
.rhi-mp-verified-image {
  position: absolute;
  right: -3px;
  bottom: 6px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(38, 136, 208, .24));
}
.rhi-mp-internal-copy { position: relative; z-index: 1; min-width: 0; }
.rhi-mp-internal-copy h1 {
  margin: 7px 0 4px;
  color: var(--rhi-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.rhi-mp-tagline { margin: 0 0 14px; color: #635d55; font-size: 19px; font-style: italic; }
.rhi-mp-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  color: #596171;
  background: rgba(255,255,255,.82);
  border: 1px solid #dae0e7;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.rhi-mp-location-pill img { width: 16px; height: 16px; }
.rhi-mp-inline-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rhi-mp-inline-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  color: #64491d;
  background: rgba(255,255,255,.72);
  border: 1px solid #eadcc4;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.rhi-mp-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.rhi-mp-progress-card { padding: 20px 22px; margin-bottom: 16px; }
.rhi-mp-progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rhi-mp-progress-head span { display: block; font-size: 16px; font-weight: 800; }
.rhi-mp-progress-head small { display: block; margin-top: 3px; color: var(--rhi-muted); font-size: 13px; }
.rhi-mp-progress-head strong { font-size: 30px; line-height: 1; }
.rhi-mp-progress { height: 9px; margin-top: 14px; overflow: hidden; background: #eee6d9; border-radius: 999px; }
.rhi-mp-progress span { display: block; height: 100%; background: linear-gradient(90deg, #bd7c0f, #ebc45c); border-radius: inherit; }

.rhi-mp-social-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.rhi-mp-social-proof article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(213, 197, 169, .55);
  border-radius: 20px;
  box-shadow: var(--rhi-shadow-soft);
}
.rhi-mp-proof-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #f8eedf);
  border: 1px solid #ead8ba;
  border-radius: 50%;
}
.rhi-mp-proof-icon img { width: 38px; height: 38px; }
.rhi-mp-social-proof article > div:last-child { min-width: 0; }
.rhi-mp-social-proof article span { display: block; color: #717785; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.rhi-mp-social-proof article strong { display: block; margin: 2px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.2; }
.rhi-mp-social-proof article p { margin: 0; color: #55545a; font-size: 13px; line-height: 1.42; }

.rhi-mp-internal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.rhi-mp-summary-card { padding: 20px; }
.rhi-mp-summary-card h3 { margin: 6px 0 5px; font-size: 19px; }
.rhi-mp-summary-card p:last-child { margin: 0; color: var(--rhi-muted); font-size: 14px; }
.rhi-mp-internal-about { padding: 24px; }
.rhi-mp-internal-about h2 { margin: 4px 0 16px; font-size: 24px; }
.rhi-mp-internal-about ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; padding: 0; margin: 0; list-style: none; }
.rhi-mp-internal-about li { position: relative; padding-left: 24px; font-size: 14px; }
.rhi-mp-internal-about li::before { content: "✓"; position: absolute; left: 0; color: var(--rhi-gold); font-weight: 900; }
.rhi-mp-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.rhi-mp-chips span { padding: 6px 10px; color: #68512e; background: #fff9ed; border: 1px solid #ead9bb; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* Edit profile */
.rhi-mp-edit-shell { max-width: 1050px; }
.rhi-mp-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--rhi-line);
  border-radius: var(--rhi-radius-lg);
  box-shadow: var(--rhi-shadow-soft);
}
.rhi-mp-page-head h1 { margin: 2px 0; font-size: 30px; line-height: 1.15; }
.rhi-mp-page-head p:last-child { margin: 0; color: var(--rhi-muted); font-size: 14px; }
.rhi-mp-form { display: grid; gap: 14px; }
.rhi-mp-form-section { padding: 22px; }
.rhi-mp-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #eee6db; }
.rhi-mp-section-heading > div { display: flex; align-items: center; gap: 10px; }
.rhi-mp-section-heading > div > span { display: grid; place-items: center; width: 29px; height: 29px; color: #fff; background: var(--rhi-gold); border-radius: 9px; font-size: 12px; font-weight: 900; }
.rhi-mp-section-heading h2 { margin: 0; font-size: 20px; }
.rhi-mp-section-heading p { margin: 0; max-width: 50%; color: var(--rhi-muted); font-size: 12px; text-align: right; }
.rhi-mp-photo-editor { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 18px; margin-bottom: 20px; padding: 15px; background: #fbf7ef; border: 1px solid #eee0ca; border-radius: 18px; }
.rhi-mp-photo-preview { width: 96px; height: 96px; }
.rhi-mp-photo-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border: 5px solid #fff; border-radius: 50%; box-shadow: var(--rhi-shadow-soft); }
.rhi-mp-photo-editor label strong { display: block; margin-bottom: 8px; }
.rhi-mp-photo-editor input[type="file"] { max-width: 100%; font-size: 13px; }
.rhi-mp-photo-editor small,
.rhi-mp-form label > small { display: block; margin-top: 6px; color: var(--rhi-muted); font-size: 11px; }
.rhi-mp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.rhi-mp-form-grid label,
.rhi-mp-form-section > label { display: block; min-width: 0; }
.rhi-mp-form label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.rhi-mp-form input[type="text"],
.rhi-mp-form input[type="tel"],
.rhi-mp-form input[type="url"],
.rhi-mp-form input[type="email"],
.rhi-mp-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #2b2926;
  background: #fff;
  border: 1px solid #ddd7ce;
  border-radius: 13px;
  box-shadow: none;
  outline: none;
  font-size: 14px;
  transition: border .18s ease, box-shadow .18s ease;
}
.rhi-mp-form textarea { min-height: 126px; resize: vertical; }
.rhi-mp-form input:focus,
.rhi-mp-form textarea:focus { border-color: #c99739; box-shadow: 0 0 0 3px rgba(197, 139, 22, .13); }
.rhi-mp-form .is-invalid { border-color: #d84b4b !important; box-shadow: 0 0 0 3px rgba(216,75,75,.12) !important; }
.rhi-mp-field-error { display: block; margin-top: 6px; color: #b52929 !important; font-size: 11px !important; font-weight: 700; }
.rhi-mp-span-2 { grid-column: span 2; }
.rhi-mp-slug-field { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; min-height: 48px; overflow: hidden; background: #faf8f4; border: 1px solid #ddd7ce; border-radius: 13px; }
.rhi-mp-slug-field > span { padding-left: 12px; color: #8a8379; font-size: 12px; }
.rhi-mp-slug-field input { min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.rhi-mp-switch-row { display: flex !important; align-items: flex-start; gap: 12px; margin-bottom: 15px; padding: 16px; background: #fcf7ed; border: 1px solid #eadcc4; border-radius: 16px; }
.rhi-mp-switch-row input { margin-top: 3px; width: 19px; height: 19px; accent-color: var(--rhi-gold); }
.rhi-mp-switch-row span { margin: 0 !important; }
.rhi-mp-switch-row strong { display: block; }
.rhi-mp-switch-row small { display: block; margin-top: 4px; color: var(--rhi-muted); font-weight: 500; overflow-wrap: anywhere; }
.rhi-mp-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.rhi-mp-check-grid label { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 12px; background: #fff; border: 1px solid #e7e1d9; border-radius: 13px; }
.rhi-mp-check-grid input { width: 18px; height: 18px; accent-color: var(--rhi-gold); }
.rhi-mp-check-grid span { margin: 0 !important; font-size: 13px !important; }
.rhi-mp-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rhi-mp-form-actions .rhi-mp-btn { min-height: 52px; }

/* Public profile */
.rhi-mp-public-shell {
  width: min(1240px, calc(100% - 34px));
  margin: 0 auto;
  padding: 22px 0 34px;
}
.rhi-mp-public-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: center;
  padding: 72px 48px 42px;
  overflow: hidden;
  background: #fff9ec url('../images/backgrounds/hero-pattern-desktop.webp') center/cover no-repeat;
  border: 1px solid rgba(213, 197, 169, .62);
  border-radius: 32px;
  box-shadow: var(--rhi-shadow);
}
.rhi-mp-public-logo { position: absolute; top: 20px; left: 28px; width: 112px; height: auto; }
.rhi-mp-public-photo { position: relative; width: 238px; aspect-ratio: 1; justify-self: center; }
.rhi-mp-public-identity { min-width: 0; }
.rhi-mp-public-identity h1 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.rhi-mp-public-identity > p { margin: 0 0 17px; color: #5e5a54; font-size: clamp(17px, 2vw, 22px); font-style: italic; }
.rhi-mp-verification-card { padding: 19px 20px; background: rgba(255,255,255,.90); border: 1px solid #eadfce; border-radius: 20px; box-shadow: var(--rhi-shadow-soft); }
.rhi-mp-verification-card > div { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ead9bb; }
.rhi-mp-verification-card > div:first-child strong { color: #14964e; }
.rhi-mp-verification-card img { width: 28px; height: 28px; }
.rhi-mp-verification-card p { margin: 13px 0 0; }
.rhi-mp-verification-card p span { display: block; color: var(--rhi-muted); font-size: 12px; }
.rhi-mp-verification-card p b { display: block; font-size: 17px; }
.rhi-mp-social-proof-public { margin: 16px 0; }
.rhi-mp-public-status-card { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: center; padding: 18px 22px; }
.rhi-mp-public-status-card h2 { margin: 0; color: var(--rhi-gold-dark); font-size: 16px; letter-spacing: .05em; text-transform: uppercase; }
.rhi-mp-status-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.rhi-mp-status-items article { display: flex; gap: 13px; align-items: center; padding: 8px 22px; }
.rhi-mp-status-items article + article { border-top: 1px solid #ead8b8; }
.rhi-mp-status-items img { width: 54px; height: 54px; padding: 8px; background: #fffaf0; border: 1px solid #ead8b8; border-radius: 50%; }
.rhi-mp-status-items strong { display: block; color: #91610e; font-size: 16px; }
.rhi-mp-status-items span { display: block; margin-top: 2px; color: #5f5a53; font-size: 12px; }
.rhi-mp-public-main-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 14px; margin-top: 16px; }
.rhi-mp-public-content-card { position: relative; overflow: hidden; padding: 24px; }
.rhi-mp-public-content-card h2 { margin: 0 0 15px; color: var(--rhi-gold-dark); font-family: Georgia, "Times New Roman", serif; font-size: 23px; }
.rhi-mp-about-card::after { content: ""; position: absolute; right: -30px; bottom: -20px; width: 260px; height: 180px; background: url('../images/backgrounds/card-pattern.svg') center/contain no-repeat; pointer-events: none; }
.rhi-mp-about-card > * { position: relative; z-index: 1; }
.rhi-mp-about-card ul { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.rhi-mp-about-card li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.rhi-mp-about-card li img { width: 22px; height: 22px; }
.rhi-mp-public-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 17px 0 0; padding-top: 14px; border-top: 1px solid #ede3d3; }
.rhi-mp-public-meta div { padding: 11px; background: rgba(255,249,238,.8); border-radius: 12px; }
.rhi-mp-public-meta dt { color: #8a7250; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.rhi-mp-public-meta dd { margin: 3px 0 0; font-size: 13px; font-weight: 700; }
.rhi-mp-contact-card > p { margin: -7px 0 17px; color: var(--rhi-muted); font-size: 13px; }
.rhi-mp-contact-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; margin-top: 10px; border-radius: 14px; color: #fff !important; font-size: 17px; font-weight: 800; text-decoration: none !important; box-shadow: 0 10px 20px rgba(42, 115, 77, .18); transition: transform .18s ease, filter .18s ease; }
.rhi-mp-contact-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.rhi-mp-contact-button img { width: 28px; height: 28px; }
.rhi-mp-contact-button.rhi-mp-wa { background: linear-gradient(135deg, #22b962, #14994f); }
.rhi-mp-contact-button.rhi-mp-phone { background: linear-gradient(135deg, #45a7eb, #247ccc); }
.rhi-mp-socials { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.rhi-mp-socials a { padding: 6px 10px; color: #5f4f37; background: #fff9ed; border: 1px solid #ead9bb; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; }
.rhi-mp-public-footer { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; margin-top: 16px; padding: 18px 24px; overflow: hidden; background: rgba(255,255,255,.95); border: 1px solid rgba(213, 197, 169, .58); border-radius: 22px; box-shadow: var(--rhi-shadow-soft); }
.rhi-mp-public-footer::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 250px; height: 180px; background: url('../images/backgrounds/card-pattern.svg') center/contain no-repeat; }
.rhi-mp-public-footer img { width: 115px; justify-self: center; }
.rhi-mp-public-footer div { position: relative; z-index: 1; padding-left: 22px; border-left: 1px solid #e6d2ad; }
.rhi-mp-public-footer strong { display: block; font-size: 16px; }
.rhi-mp-public-footer p { margin: 3px 0; max-width: 760px; color: #56524d; font-size: 12px; }
.rhi-mp-public-footer small { color: #77716a; font-size: 11px; }
.rhi-mp-directory { min-height: 100vh; display: grid; place-items: center; }
.rhi-mp-directory .rhi-mp-public-content-card { max-width: 600px; text-align: center; }
.rhi-mp-directory-logo { width: 140px; }

/* Admin */
.rhi-mp-admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)); gap: 14px; margin: 18px 0; }
.rhi-mp-admin-stats div, .rhi-mp-admin-box { padding: 18px; background: #fff; border: 1px solid #dedede; border-radius: 14px; }
.rhi-mp-admin-stats strong { display: block; font-size: 28px; }
.rhi-mp-admin-stats span { color: #666; }
.rhi-mp-admin-box { margin-top: 16px; max-width: 900px; }

@media (max-width: 1020px) {
  .rhi-mp-public-shell { width: min(920px, calc(100% - 28px)); }
  .rhi-mp-public-hero { grid-template-columns: 220px minmax(0, 1fr); gap: 25px; padding: 76px 34px 32px; background-image: url('../images/backgrounds/hero-pattern-tablet.webp'); }
  .rhi-mp-public-photo { width: 205px; }
  .rhi-mp-verification-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 8px 16px; }
  .rhi-mp-verification-card > div { border-bottom: 0; }
  .rhi-mp-verification-card p { margin: 0; padding-left: 16px; border-left: 1px solid #ead9bb; }
  .rhi-mp-public-status-card { grid-template-columns: 1fr; }
  .rhi-mp-public-status-card h2 { padding-left: 8px; }
  .rhi-mp-public-main-grid { grid-template-columns: 1fr; }
  .rhi-mp-internal-hero { grid-template-columns: 210px 1fr; padding: 36px; }
  .rhi-mp-internal-photo { width: 190px; }
}

@media (max-width: 780px) {
  .rhi-mp-shell { width: min(100% - 18px, 720px); padding-top: 10px; padding-bottom: 145px; }
  .rhi-mp-internal-hero { min-height: auto; grid-template-columns: 1fr; gap: 16px; padding: 52px 20px 24px; text-align: center; background-image: url('../images/backgrounds/hero-pattern-mobile.webp'); }
  .rhi-mp-internal-photo { width: 156px; }
  .rhi-mp-verified-image { width: 42px; height: 42px; }
  .rhi-mp-internal-copy h1 { font-size: 31px; }
  .rhi-mp-tagline { font-size: 16px; }
  .rhi-mp-inline-badges { justify-content: center; }
  .rhi-mp-actions { grid-template-columns: repeat(2, 1fr); }
  .rhi-mp-social-proof { grid-template-columns: 1fr; }
  .rhi-mp-social-proof article { padding: 14px; }
  .rhi-mp-proof-icon { flex-basis: 54px; width: 54px; height: 54px; }
  .rhi-mp-proof-icon img { width: 33px; height: 33px; }
  .rhi-mp-internal-grid { grid-template-columns: 1fr; }
  .rhi-mp-internal-about ul { grid-template-columns: 1fr; }
  .rhi-mp-page-head { align-items: flex-start; padding: 18px; }
  .rhi-mp-page-head h1 { font-size: 25px; }
  .rhi-mp-form-section { padding: 17px; }
  .rhi-mp-section-heading { align-items: flex-start; }
  .rhi-mp-section-heading p { display: none; }
  .rhi-mp-form-grid { grid-template-columns: 1fr; }
  .rhi-mp-span-2 { grid-column: auto; }
  .rhi-mp-check-grid { grid-template-columns: 1fr; }
  .rhi-mp-form-actions { position: sticky; bottom: 92px; z-index: 20; padding: 10px; background: rgba(246,244,240,.93); border-radius: 16px; backdrop-filter: blur(9px); }
  .rhi-mp-public-shell { width: min(100% - 16px, 700px); padding-top: 8px; }
  .rhi-mp-public-hero { min-height: auto; grid-template-columns: 1fr; gap: 16px; padding: 72px 18px 22px; text-align: center; background-image: url('../images/backgrounds/hero-pattern-mobile.webp'); }
  .rhi-mp-public-logo { top: 15px; left: 18px; width: 85px; }
  .rhi-mp-public-photo { width: 175px; }
  .rhi-mp-public-identity h1 { font-size: clamp(28px, 8vw, 38px); }
  .rhi-mp-public-identity > p { font-size: 16px; }
  .rhi-mp-verification-card { grid-column: auto; display: block; width: 100%; max-width: 500px; margin: auto; text-align: left; }
  .rhi-mp-verification-card > div { border-bottom: 1px solid #ead9bb; }
  .rhi-mp-verification-card p { margin-top: 10px; padding-left: 0; border-left: 0; }
  .rhi-mp-status-items { grid-template-columns: 1fr; }
  .rhi-mp-status-items article { padding: 12px 6px; }
  .rhi-mp-status-items article + article { border-left: 0; border-top: 1px solid #ead8b8; }
  .rhi-mp-public-status-card { padding: 18px; }
  .rhi-mp-public-content-card { padding: 19px; }
  .rhi-mp-public-meta { grid-template-columns: 1fr; }
  .rhi-mp-public-footer { grid-template-columns: 90px 1fr; padding: 16px; }
  .rhi-mp-public-footer img { width: 78px; }
  .rhi-mp-public-footer div { padding-left: 14px; }
}

@media (max-width: 500px) {
  .rhi-mp-shell { width: calc(100% - 12px); }
  .rhi-mp-actions { gap: 8px; }
  .rhi-mp-btn { min-height: 44px; padding: 10px 11px; font-size: 13px; }
  .rhi-mp-progress-card { padding: 17px; }
  .rhi-mp-progress-head strong { font-size: 26px; }
  .rhi-mp-social-proof article strong { font-size: 18px; }
  .rhi-mp-photo-editor { grid-template-columns: 82px 1fr; gap: 12px; }
  .rhi-mp-photo-preview { width: 76px; height: 76px; }
  .rhi-mp-slug-field { grid-template-columns: 1fr; padding-top: 7px; }
  .rhi-mp-slug-field > span { padding: 0 12px; font-size: 10px; }
  .rhi-mp-form-actions { grid-template-columns: 1fr 1fr; }
  .rhi-mp-public-shell { width: calc(100% - 10px); }
  .rhi-mp-public-photo { width: 155px; }
  .rhi-mp-public-identity h1 { font-size: 28px; }
  .rhi-mp-public-status-card h2 { font-size: 14px; }
  .rhi-mp-status-items img { width: 48px; height: 48px; }
  .rhi-mp-contact-button { min-height: 54px; font-size: 15px; }
  .rhi-mp-public-footer { grid-template-columns: 1fr; text-align: center; }
  .rhi-mp-public-footer div { padding: 12px 0 0; border-left: 0; border-top: 1px solid #e6d2ad; }
}


/* v0.2.1 responsive containment and asset safety */
.rhi-mp-shell,
.rhi-mp-public-shell,
.rhi-mp-shell > *,
.rhi-mp-public-shell > *,
.rhi-mp-form,
.rhi-mp-form > *,
.rhi-mp-form-section,
.rhi-mp-form-grid,
.rhi-mp-form-grid > *,
.rhi-mp-page-head,
.rhi-mp-photo-editor,
.rhi-mp-switch-row,
.rhi-mp-check-grid,
.rhi-mp-status-items,
.rhi-mp-social-proof,
.rhi-mp-social-proof article {
  min-width: 0;
  max-width: 100%;
}
.rhi-mp-shell,
.rhi-mp-public-shell,
.rhi-mp-form-section,
.rhi-mp-page-head,
.rhi-mp-public-content-card,
.rhi-mp-public-status-card {
  overflow-x: clip;
}
.rhi-mp-form input,
.rhi-mp-form textarea,
.rhi-mp-form select,
.rhi-mp-form button,
.rhi-mp-form input[type="file"] {
  max-width: 100%;
  min-width: 0;
}
.rhi-mp-form input[type="file"] { width: 100%; overflow: hidden; }
.rhi-mp-slug-field { width: 100%; max-width: 100%; }
.rhi-mp-slug-field > span,
.rhi-mp-switch-row small,
.rhi-mp-inline-badges span,
.rhi-mp-social-proof article p,
.rhi-mp-status-items span,
.rhi-mp-public-footer p {
  overflow-wrap: anywhere;
}
.rhi-mp-proof-icon img,
.rhi-mp-status-items img,
.rhi-mp-contact-button img,
.rhi-mp-socials img,
.rhi-mp-location-pill img,
.rhi-mp-verification-card img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.rhi-mp-contact-button img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}
.rhi-mp-socials a { display: inline-flex; align-items: center; gap: 7px; }
.rhi-mp-socials img { width: 18px; height: 18px; max-width: 18px; }
.rhi-mp-public-logo,
.rhi-mp-public-footer > img,
.rhi-mp-directory-logo { object-fit: contain; }
.rhi-mp-status-items-single { grid-template-columns: minmax(0, 1fr); }
.rhi-mp-status-items-single article { border-left: 0 !important; max-width: 720px; }

@media (max-width: 780px) {
  .rhi-mp-edit-shell,
  .rhi-mp-form,
  .rhi-mp-form-section,
  .rhi-mp-page-head { width: 100%; }
  .rhi-mp-photo-editor { grid-template-columns: 78px minmax(0, 1fr); }
  .rhi-mp-slug-field { grid-template-columns: 1fr; padding: 8px 0 0; }
  .rhi-mp-slug-field > span { padding: 0 12px 4px; }
  .rhi-mp-slug-field input { width: 100%; }
  .rhi-mp-public-logo { max-height: 78px; object-fit: contain; }
  .rhi-mp-socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhi-mp-socials a { justify-content: center; min-width: 0; }
}
@media (max-width: 420px) {
  .rhi-mp-shell,
  .rhi-mp-public-shell { width: calc(100% - 8px); }
  .rhi-mp-form-section { padding: 14px; }
  .rhi-mp-page-head { padding: 14px; }
  .rhi-mp-social-proof article { grid-template-columns: 52px minmax(0, 1fr); }
  .rhi-mp-socials { grid-template-columns: 1fr 1fr; }
}


/* v0.2.2 — clean public identity, approved asset mapping, and deduplication */
.rhi-mp-internal-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rhi-mp-public-body {
  background: linear-gradient(180deg, #fffdf9 0%, #f7f4ee 54%, #f2eee8 100%);
}

.rhi-mp-public-hero {
  background-color: #fffaf0;
  background-image: url('../images/backgrounds/hero-pattern-desktop.webp');
}

.rhi-mp-public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.28));
}

.rhi-mp-public-hero > * {
  position: relative;
  z-index: 1;
}

.rhi-mp-verification-card > div:nth-child(2) strong {
  color: var(--rhi-ink);
}

.rhi-mp-social-proof-public {
  margin-bottom: 0;
}

.rhi-mp-about-card::after,
.rhi-mp-public-footer::after {
  display: none;
}

.rhi-mp-public-meta {
  grid-template-columns: minmax(0, 1fr);
}

.rhi-mp-about-card li img {
  border-radius: 50%;
}

.rhi-mp-proof-icon {
  overflow: hidden;
}

.rhi-mp-proof-icon img {
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}

.rhi-mp-proof-achievement .rhi-mp-proof-icon img {
  width: 50px;
  height: 50px;
  max-width: 50px;
  max-height: 50px;
}

.rhi-mp-contact-button img {
  object-fit: contain;
}

.rhi-mp-socials a {
  min-height: 36px;
}

.rhi-mp-socials img {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
}

@media (max-width: 1020px) {
  .rhi-mp-public-hero {
    background-image: url('../images/backgrounds/hero-pattern-tablet.webp');
  }
}

@media (max-width: 780px) {
  .rhi-mp-internal-grid-two {
    grid-template-columns: 1fr;
  }

  .rhi-mp-public-hero {
    background-image: url('../images/backgrounds/hero-pattern-mobile.webp');
  }

  .rhi-mp-verification-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .rhi-mp-verification-card > div,
  .rhi-mp-verification-card p {
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  .rhi-mp-verification-card p {
    justify-content: space-between;
    gap: 12px;
    border-top: 0;
  }

  .rhi-mp-verification-card p span,
  .rhi-mp-verification-card p b {
    display: block;
  }
}

@media (max-width: 500px) {
  .rhi-mp-proof-icon img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
  }

  .rhi-mp-proof-achievement .rhi-mp-proof-icon img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
  }
}

/* v0.3.0 — approved responsive public profile rebuild */
html { overflow-x: hidden; }
.rhi-mp-public-body { overflow-x: hidden; }
.rhi-mp-public-v3 {
  --rhi-v3-border: rgba(206, 179, 126, .42);
  --rhi-v3-cream: #fffaf0;
  --rhi-v3-cream-2: #f8f0df;
  --rhi-v3-gold: #aa7416;
  --rhi-v3-green: #10b75a;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 42px;
}
.rhi-mp-public-v3 > * { min-width: 0; max-width: 100%; }

.rhi-mp-public-v3 .rhi-mp-public-hero {
  position: relative;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 286px;
  grid-template-areas: "photo identity verify";
  gap: 36px;
  align-items: center;
  min-height: 390px;
  padding: 76px 44px 42px;
  overflow: hidden;
  border: 1px solid var(--rhi-v3-border);
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(87, 65, 29, .12);
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.72), transparent 35%),
    repeating-linear-gradient(45deg, transparent 0 48px, rgba(170,116,22,.055) 49px 51px, transparent 52px 98px),
    repeating-linear-gradient(-45deg, transparent 0 48px, rgba(170,116,22,.045) 49px 51px, transparent 52px 98px),
    linear-gradient(135deg, #fffdf8 0%, #fff7e5 62%, #f5e3bc 100%);
}
.rhi-mp-public-v3 .rhi-mp-public-hero::after { display: none; }
.rhi-mp-public-v3 .rhi-mp-public-logo {
  position: absolute;
  z-index: 3;
  top: 28px;
  left: 38px;
  width: 126px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}
.rhi-mp-public-v3 .rhi-mp-public-photo {
  grid-area: photo;
  position: relative;
  width: 224px;
  aspect-ratio: 1;
  justify-self: center;
}
.rhi-mp-public-v3 .rhi-mp-public-photo > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  background: #fff;
  border: 8px solid rgba(255,255,255,.94);
  box-shadow: 0 18px 38px rgba(65,46,20,.16);
}
.rhi-mp-public-v3 .rhi-mp-verified-image {
  right: -2px;
  bottom: 8px;
  width: 52px;
  height: 52px;
}
.rhi-mp-public-v3 .rhi-mp-public-identity {
  grid-area: identity;
  min-width: 0;
}
.rhi-mp-public-v3 .rhi-mp-public-identity h1 {
  margin: 0 0 8px;
  max-width: 650px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.8vw, 66px);
  line-height: .98;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  word-break: normal;
}
.rhi-mp-public-v3 .rhi-mp-public-identity > p {
  margin: 0 0 18px;
  color: #6e665d;
  font-size: clamp(17px, 1.6vw, 22px);
  font-style: italic;
}
.rhi-mp-public-v3 .rhi-mp-location-pill {
  max-width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 18px rgba(88,64,26,.07);
}
.rhi-mp-public-v3 .rhi-mp-location-pill img { width: 18px; height: 18px; }
.rhi-mp-public-v3 .rhi-mp-verification-card {
  grid-area: verify;
  align-self: center;
  width: 100%;
  padding: 19px 20px;
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(218,198,160,.68);
  border-radius: 22px;
  box-shadow: 0 15px 34px rgba(74,53,22,.10);
}
.rhi-mp-public-v3 .rhi-mp-verification-card > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding: 8px 0;
  border-bottom: 1px solid #eadfcb;
}
.rhi-mp-public-v3 .rhi-mp-verification-card img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.rhi-mp-public-v3 .rhi-mp-verification-card > div:first-child strong { color: #159750; }
.rhi-mp-public-v3 .rhi-mp-verification-card p {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0 0;
}
.rhi-mp-public-v3 .rhi-mp-verification-card p span { color: #7a736b; font-size: 12px; }
.rhi-mp-public-v3 .rhi-mp-verification-card p b { font-size: 18px; white-space: nowrap; }

.rhi-mp-public-v3 .rhi-mp-social-proof-public {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public article {
  min-height: 142px;
  padding: 18px;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--rhi-v3-border);
  border-radius: 23px;
  box-shadow: 0 11px 28px rgba(75,55,26,.08);
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public .rhi-mp-proof-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  background: transparent;
  border: 0;
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public .rhi-mp-proof-icon img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public article span { color: #737b8b; font-size: 11px; }
.rhi-mp-public-v3 .rhi-mp-social-proof-public article strong { font-size: 23px; }
.rhi-mp-public-v3 .rhi-mp-social-proof-public article p { font-size: 13px; }

.rhi-mp-public-v3 .rhi-mp-consult-card {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(430px, 1.35fr);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fffdf9, #fbf3e4);
  border: 1px solid var(--rhi-v3-border);
  border-radius: 23px;
  box-shadow: 0 12px 30px rgba(75,55,26,.08);
}
.rhi-mp-public-v3 .rhi-mp-consult-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.rhi-mp-public-v3 .rhi-mp-consult-intro > img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.rhi-mp-public-v3 .rhi-mp-consult-intro span {
  display: block;
  margin-bottom: 3px;
  color: #94701f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rhi-mp-public-v3 .rhi-mp-consult-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.15;
}
.rhi-mp-public-v3 .rhi-mp-consult-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 12px;
}
.rhi-mp-public-v3 .rhi-mp-consult-button {
  min-width: 0;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.rhi-mp-public-v3 .rhi-mp-consult-button:hover { transform: translateY(-1px); }
.rhi-mp-public-v3 .rhi-mp-consult-button img {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  object-fit: contain;
}
.rhi-mp-public-v3 .rhi-mp-consult-button.rhi-mp-wa {
  color: #fff;
  background: linear-gradient(135deg, #13ba61, #079746);
  box-shadow: 0 12px 24px rgba(8,151,70,.20);
}
.rhi-mp-public-v3 .rhi-mp-consult-button.rhi-mp-phone {
  color: #9b6815;
  background: #fff;
  border: 1.5px solid #c7932d;
}
.rhi-mp-public-v3 .rhi-mp-consult-button.rhi-mp-phone img { filter: sepia(1) saturate(6) hue-rotate(355deg) brightness(.72); }

.rhi-mp-public-v3 .rhi-mp-public-content-card {
  margin-top: 16px;
  padding: 28px;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--rhi-v3-border);
  border-radius: 23px;
  box-shadow: 0 11px 28px rgba(75,55,26,.08);
}
.rhi-mp-public-v3 .rhi-mp-public-content-card h2 {
  margin: 0 0 19px;
  color: #8a5d16;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
}
.rhi-mp-public-v3 .rhi-mp-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: 28px;
  align-items: start;
}
.rhi-mp-public-v3 .rhi-mp-about-card ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.rhi-mp-public-v3 .rhi-mp-about-card li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: #3f434b;
  font-size: 15px;
}
.rhi-mp-public-v3 .rhi-mp-about-card li img { width: 24px; height: 24px; object-fit: contain; }
.rhi-mp-public-v3 .rhi-mp-about-meta { display: grid; gap: 12px; }
.rhi-mp-public-v3 .rhi-mp-about-meta > div {
  padding: 15px 17px;
  background: #fff9ed;
  border: 1px solid #ead9ba;
  border-radius: 16px;
}
.rhi-mp-public-v3 .rhi-mp-about-meta span {
  display: block;
  margin-bottom: 7px;
  color: #8a7048;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.rhi-mp-public-v3 .rhi-mp-about-meta strong { display: block; font-size: 14px; }
.rhi-mp-public-v3 .rhi-mp-about-meta .rhi-mp-chips { margin-top: 0; }
.rhi-mp-public-v3 .rhi-mp-about-meta .rhi-mp-chips b {
  display: inline-flex;
  padding: 6px 9px;
  color: #6f5325;
  background: #fff;
  border: 1px solid #ead9bb;
  border-radius: 999px;
  font-size: 11px;
}

.rhi-mp-public-v3 .rhi-mp-media-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-top: 21px;
  padding-bottom: 21px;
}
.rhi-mp-public-v3 .rhi-mp-media-card h2 { margin: 0; font-size: 24px; }
.rhi-mp-public-v3 .rhi-mp-socials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.rhi-mp-public-v3 .rhi-mp-socials a {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 12px;
  color: #493f32;
  background: #fffaf1;
  border: 1px solid #eadcc6;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.rhi-mp-public-v3 .rhi-mp-socials img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.rhi-mp-public-v3 .rhi-mp-public-footer {
  grid-template-columns: 120px minmax(0, 1fr);
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 23px;
}
.rhi-mp-public-v3 .rhi-mp-public-footer::after { display: none; }
.rhi-mp-public-v3 .rhi-mp-public-footer img { width: 98px; height: 78px; object-fit: contain; }
.rhi-mp-public-v3 .rhi-mp-public-footer p { font-size: 12px; }

/* edit form containment retained and hardened */
.rhi-mp-edit-shell .rhi-mp-form-section,
.rhi-mp-edit-shell .rhi-mp-form-grid,
.rhi-mp-edit-shell label,
.rhi-mp-edit-shell input,
.rhi-mp-edit-shell textarea,
.rhi-mp-edit-shell .rhi-mp-slug-field { min-width: 0; max-width: 100%; }
.rhi-mp-edit-shell input,
.rhi-mp-edit-shell textarea { width: 100%; }

@media (max-width: 1080px) {
  .rhi-mp-public-v3 { width: min(940px, calc(100% - 24px)); }
  .rhi-mp-public-v3 .rhi-mp-public-hero {
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-areas: "photo identity" "verify verify";
    gap: 24px 30px;
    padding: 78px 34px 30px;
  }
  .rhi-mp-public-v3 .rhi-mp-public-photo { width: 196px; }
  .rhi-mp-public-v3 .rhi-mp-public-identity h1 { font-size: clamp(40px, 6vw, 58px); }
  .rhi-mp-public-v3 .rhi-mp-verification-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 10px 16px;
  }
  .rhi-mp-public-v3 .rhi-mp-verification-card > div { border-bottom: 0; padding: 6px 14px; }
  .rhi-mp-public-v3 .rhi-mp-verification-card > div + div { border-left: 1px solid #eadfcb; }
  .rhi-mp-public-v3 .rhi-mp-verification-card p { align-items: center; margin: 0; padding: 6px 14px; border-left: 1px solid #eadfcb; }
  .rhi-mp-public-v3 .rhi-mp-consult-card { grid-template-columns: 1fr; }
  .rhi-mp-public-v3 .rhi-mp-about-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 780px) {
  .rhi-mp-public-v3 { width: min(100% - 14px, 680px); padding-top: 7px; }
  .rhi-mp-public-v3 .rhi-mp-public-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "photo" "identity" "verify";
    gap: 17px;
    padding: 88px 20px 23px;
    text-align: center;
    border-radius: 28px;
  }
  .rhi-mp-public-v3 .rhi-mp-public-logo { top: 20px; left: 22px; width: 100px; height: 56px; }
  .rhi-mp-public-v3 .rhi-mp-public-photo { width: 180px; }
  .rhi-mp-public-v3 .rhi-mp-public-identity h1 { margin-inline: auto; max-width: 590px; font-size: clamp(32px, 8.7vw, 44px); line-height: 1.03; }
  .rhi-mp-public-v3 .rhi-mp-public-identity > p { font-size: 17px; }
  .rhi-mp-public-v3 .rhi-mp-verification-card {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    text-align: left;
  }
  .rhi-mp-public-v3 .rhi-mp-verification-card > div,
  .rhi-mp-public-v3 .rhi-mp-verification-card p { min-height: 54px; padding: 7px 5px; border-left: 0 !important; }
  .rhi-mp-public-v3 .rhi-mp-verification-card > div { border-bottom: 1px solid #eadfcb; }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public { grid-template-columns: 1fr; }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public article { min-height: 0; }
  .rhi-mp-public-v3 .rhi-mp-consult-card { padding: 19px; }
  .rhi-mp-public-v3 .rhi-mp-consult-intro { align-items: flex-start; }
  .rhi-mp-public-v3 .rhi-mp-consult-intro > img { flex-basis: 54px; width: 54px; height: 54px; }
  .rhi-mp-public-v3 .rhi-mp-consult-actions { grid-template-columns: 1fr; }
  .rhi-mp-public-v3 .rhi-mp-about-layout { grid-template-columns: 1fr; }
  .rhi-mp-public-v3 .rhi-mp-media-card { grid-template-columns: 1fr; gap: 14px; }
  .rhi-mp-public-v3 .rhi-mp-socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhi-mp-public-v3 .rhi-mp-public-footer { grid-template-columns: 90px minmax(0, 1fr); padding: 18px; }
  .rhi-mp-public-v3 .rhi-mp-public-footer img { width: 76px; }
}

@media (max-width: 430px) {
  .rhi-mp-public-v3 { width: calc(100% - 8px); }
  .rhi-mp-public-v3 .rhi-mp-public-hero { padding-inline: 15px; }
  .rhi-mp-public-v3 .rhi-mp-public-photo { width: 164px; }
  .rhi-mp-public-v3 .rhi-mp-verified-image { width: 44px; height: 44px; }
  .rhi-mp-public-v3 .rhi-mp-location-pill { font-size: 13px; }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public article { gap: 12px; padding: 15px; }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public .rhi-mp-proof-icon { flex-basis: 62px; width: 62px; height: 62px; }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public .rhi-mp-proof-icon img { width: 62px; height: 62px; max-width: 62px; max-height: 62px; }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public article strong { font-size: 21px; }
  .rhi-mp-public-v3 .rhi-mp-consult-card,
  .rhi-mp-public-v3 .rhi-mp-public-content-card { padding: 17px; }
  .rhi-mp-public-v3 .rhi-mp-consult-intro h2 { font-size: 21px; }
  .rhi-mp-public-v3 .rhi-mp-consult-button { min-height: 56px; font-size: 15px; }
  .rhi-mp-public-v3 .rhi-mp-public-content-card h2 { font-size: 26px; }
  .rhi-mp-public-v3 .rhi-mp-socials { grid-template-columns: 1fr 1fr; }
  .rhi-mp-public-v3 .rhi-mp-socials a { padding-inline: 8px; font-size: 12px; }
  .rhi-mp-public-v3 .rhi-mp-public-footer { grid-template-columns: 1fr; text-align: center; }
  .rhi-mp-public-v3 .rhi-mp-public-footer div { padding: 12px 0 0; border-left: 0; border-top: 1px solid #e6d2ad; }
}


/* v0.3.1 — final UI refinements: elegant hero, compact proof cards, aligned privacy controls */
.rhi-mp-public-v3 .rhi-mp-public-hero {
  background-color: #fffaf4;
  background-image: url('../images/backgrounds/profile-hero-desktop.webp');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Compact but still legible social proof */
.rhi-mp-public-v3 .rhi-mp-social-proof-public article {
  min-height: 116px;
  gap: 12px;
  padding: 14px 15px;
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public .rhi-mp-proof-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public .rhi-mp-proof-icon img {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public article span {
  font-size: 10px;
  letter-spacing: .10em;
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public article strong {
  margin: 1px 0 2px;
  font-size: 19px;
  line-height: 1.16;
}
.rhi-mp-public-v3 .rhi-mp-social-proof-public article p {
  font-size: 12px;
  line-height: 1.34;
}

/* Uploaded WhatsApp icon is pure white and transparent. */
.rhi-mp-public-v3 .rhi-mp-consult-button.rhi-mp-wa img {
  filter: none !important;
  mix-blend-mode: normal;
}

/* Prevent theme/global input width rules from stretching checkboxes. */
.rhi-mp-edit-shell input[type="checkbox"] {
  flex: 0 0 20px !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.rhi-mp-edit-shell .rhi-mp-switch-row {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start !important;
  justify-content: start !important;
  gap: 12px !important;
  padding: 15px 16px;
}
.rhi-mp-edit-shell .rhi-mp-switch-row input[type="checkbox"] { margin-top: 2px !important; }
.rhi-mp-edit-shell .rhi-mp-switch-row > span {
  min-width: 0;
  text-align: left;
  line-height: 1.35;
}
.rhi-mp-edit-shell .rhi-mp-check-grid label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  min-height: 54px;
  padding: 12px 15px;
  text-align: left !important;
}
.rhi-mp-edit-shell .rhi-mp-check-grid label > span {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  text-align: left !important;
  font-size: 14px !important;
  line-height: 1.35;
}

@media (max-width: 1080px) {
  .rhi-mp-public-v3 .rhi-mp-public-hero {
    background-image: url('../images/backgrounds/profile-hero-tablet.webp');
  }
}
@media (max-width: 780px) {
  .rhi-mp-public-v3 .rhi-mp-public-hero {
    background-image: url('../images/backgrounds/profile-hero-mobile.webp');
  }
  .rhi-mp-edit-shell { padding-bottom: 190px; }
  .rhi-mp-edit-shell .rhi-mp-check-grid { grid-template-columns: 1fr; gap: 9px; }
  .rhi-mp-edit-shell .rhi-mp-check-grid label { min-height: 52px; }
}
@media (max-width: 430px) {
  .rhi-mp-public-v3 .rhi-mp-social-proof-public article {
    gap: 10px;
    padding: 12px 13px;
  }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public .rhi-mp-proof-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public .rhi-mp-proof-icon img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
  }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public article strong { font-size: 18px; }
  .rhi-mp-public-v3 .rhi-mp-social-proof-public article p { font-size: 11.5px; }
  .rhi-mp-edit-shell .rhi-mp-switch-row,
  .rhi-mp-edit-shell .rhi-mp-check-grid label { padding-inline: 13px; }
}

/* v0.3.2 — cache-safe icon assets, dedicated responsive banners, and tighter composition */
.rhi-mp-public-v3 .rhi-mp-public-hero {
  background-color: #fffaf4;
  background-image: url('../images/backgrounds/profile-hero-desktop-v032.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.rhi-mp-internal-hero {
  background-color: #fffaf4;
  background-image: url('../images/backgrounds/profile-hero-desktop-v032.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Contact buttons follow the approved simple green/blue treatment. */
.rhi-mp-public-v3 .rhi-mp-consult-actions {
  align-items: stretch;
}
.rhi-mp-public-v3 .rhi-mp-consult-button {
  min-height: 58px;
  border: 0 !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: none;
}
.rhi-mp-public-v3 .rhi-mp-consult-button.rhi-mp-wa {
  background: #49bb7c;
}
.rhi-mp-public-v3 .rhi-mp-consult-button.rhi-mp-phone {
  color: #fff !important;
  background: #4a9dde;
  border-color: transparent !important;
}
.rhi-mp-public-v3 .rhi-mp-consult-button img,
.rhi-mp-public-v3 .rhi-mp-consult-button.rhi-mp-wa img,
.rhi-mp-public-v3 .rhi-mp-consult-button.rhi-mp-phone img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* About content and service metadata are independent cards, removing dead space. */
.rhi-mp-public-v3 .rhi-mp-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}
.rhi-mp-public-v3 .rhi-mp-about-grid.is-single {
  grid-template-columns: 1fr;
}
.rhi-mp-public-v3 .rhi-mp-about-main,
.rhi-mp-public-v3 .rhi-mp-about-meta-card {
  margin: 0;
}
.rhi-mp-public-v3 .rhi-mp-about-main::after {
  opacity: .34;
}
.rhi-mp-public-v3 .rhi-mp-about-main ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.rhi-mp-public-v3 .rhi-mp-about-main li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
}
.rhi-mp-public-v3 .rhi-mp-about-main li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.rhi-mp-public-v3 .rhi-mp-about-meta-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}
.rhi-mp-public-v3 .rhi-mp-about-meta-card > div {
  padding: 16px;
  background: rgba(255,249,238,.88);
  border: 1px solid #eadfcf;
  border-radius: 16px;
}
.rhi-mp-public-v3 .rhi-mp-about-meta-card > div > span {
  display: block;
  margin-bottom: 7px;
  color: #8c713f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.rhi-mp-public-v3 .rhi-mp-about-meta-card > div > strong {
  display: block;
  font-size: 15px;
}
.rhi-mp-public-v3 .rhi-mp-about-meta-card .rhi-mp-chips {
  margin-top: 0;
}

/* The new TikTok asset intentionally keeps its hard square corners. */
.rhi-mp-public-v3 .rhi-mp-socials img[src*="tiktok-edge-v032"] {
  border-radius: 0 !important;
}

@media (max-width: 1080px) {
  .rhi-mp-public-v3 .rhi-mp-public-hero,
  .rhi-mp-internal-hero {
    background-image: url('../images/backgrounds/profile-hero-tablet-v032.webp');
    background-position: center;
    background-size: cover;
  }
  .rhi-mp-public-v3 .rhi-mp-about-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  }
}

@media (max-width: 780px) {
  .rhi-mp-public-v3 .rhi-mp-public-hero,
  .rhi-mp-internal-hero {
    background-image: url('../images/backgrounds/profile-hero-mobile-v032.webp');
    background-position: center top;
    background-size: cover;
  }
  .rhi-mp-public-v3 .rhi-mp-about-grid {
    grid-template-columns: 1fr;
  }
  .rhi-mp-public-v3 .rhi-mp-consult-button {
    min-height: 60px;
  }
}

@media (max-width: 430px) {
  .rhi-mp-public-v3 .rhi-mp-public-hero {
    background-position: center top;
  }
  .rhi-mp-public-v3 .rhi-mp-about-main,
  .rhi-mp-public-v3 .rhi-mp-about-meta-card {
    padding: 17px;
  }
  .rhi-mp-public-v3 .rhi-mp-about-meta-card > div {
    padding: 14px;
  }
  .rhi-mp-public-v3 .rhi-mp-consult-button img {
    width: 25px;
    height: 25px;
  }
}
.rhi-mp-public-v3 .rhi-mp-about-meta-card .rhi-mp-chips b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: #6f5325;
  background: #fff;
  border: 1px solid #ead9bb;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
}


/* v0.3.5 — professional rhi.team directory root and unavailable-profile page.
   Scoped classes keep all existing public member profile layouts untouched. */
.rhi-mp-directory-v35 {
  width: min(1180px, calc(100% - 32px));
  min-height: 100svh;
  display: block;
  padding: clamp(18px, 3.5vw, 44px) 0;
}
.rhi-mp-directory-v35::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(197,139,22,.12), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(139,93,22,.09), transparent 28%),
    var(--rhi-canvas) url('../images/backgrounds/card-pattern.svg') repeat center/190px 190px;
  opacity: .98;
}
.rhi-mp-directory-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid rgba(197,139,22,.22);
  border-radius: 32px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.98), rgba(255,250,240,.96)),
    url('../images/backgrounds/profile-hero-desktop-v032.webp') center/cover no-repeat;
  box-shadow: 0 26px 72px rgba(74,47,17,.15);
}
.rhi-mp-directory-hero::after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -90px;
  width: 420px;
  height: 310px;
  background: url('../images/backgrounds/card-pattern.svg') center/contain no-repeat;
  opacity: .30;
  pointer-events: none;
}
.rhi-mp-directory-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.rhi-mp-directory-brand img {
  width: 116px;
  height: 80px;
  object-fit: contain;
}
.rhi-mp-directory-brand span {
  color: var(--rhi-gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
.rhi-mp-directory-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.rhi-mp-directory-copy { min-width: 0; }
.rhi-mp-directory-kicker {
  margin: 0 0 13px;
  color: var(--rhi-gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rhi-mp-directory-copy h1,
.rhi-mp-profile-unavailable h1 {
  margin: 0;
  color: var(--rhi-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.rhi-mp-directory-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--rhi-muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.65;
}
.rhi-mp-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.rhi-mp-directory-button,
.rhi-mp-directory-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 22px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.rhi-mp-directory-button:hover { transform: translateY(-1px); }
.rhi-mp-directory-button-primary,
.rhi-mp-directory-button-primary:visited {
  color: #fff !important;
  border: 1px solid transparent;
  background: linear-gradient(120deg, #d9a51f, #c58b16 55%, #9b620c);
  box-shadow: 0 14px 28px rgba(177,113,10,.22);
}
.rhi-mp-directory-button-secondary,
.rhi-mp-directory-button-secondary:visited {
  color: var(--rhi-gold-dark) !important;
  border: 1px solid #d7b76f;
  background: rgba(255,255,255,.88);
}
.rhi-mp-directory-trust {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(197,139,22,.25);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 44px rgba(75,52,21,.11);
  backdrop-filter: blur(7px);
}
.rhi-mp-directory-trust-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 17px;
}
.rhi-mp-directory-trust-label {
  margin: 0 0 7px;
  color: var(--rhi-gold-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.rhi-mp-directory-trust h2 {
  margin: 0 0 10px;
  color: var(--rhi-ink);
  font-size: 25px;
  line-height: 1.2;
}
.rhi-mp-directory-trust > p:not(.rhi-mp-directory-trust-label) {
  margin: 0;
  color: var(--rhi-muted);
  font-size: 14px;
  line-height: 1.6;
}
.rhi-mp-directory-trust ul {
  display: grid;
  gap: 10px;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--rhi-line);
  list-style: none;
}
.rhi-mp-directory-trust li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  color: #554b3f;
  font-size: 13px;
  font-weight: 750;
}
.rhi-mp-directory-trust li img { width: 21px; height: 21px; object-fit: contain; }
.rhi-mp-directory-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.rhi-mp-directory-proof article {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(213,197,169,.65);
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--rhi-shadow-soft);
}
.rhi-mp-directory-proof article > img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.rhi-mp-directory-proof strong {
  display: block;
  margin-bottom: 3px;
  color: var(--rhi-ink);
  font-size: 16px;
}
.rhi-mp-directory-proof p {
  margin: 0;
  color: var(--rhi-muted);
  font-size: 12px;
  line-height: 1.5;
}
.rhi-mp-directory-footer {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 16px;
  padding: 22px 26px;
  border: 1px solid rgba(213,197,169,.60);
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--rhi-shadow-soft);
}
.rhi-mp-directory-footer > img { width: 116px; height: 78px; object-fit: contain; justify-self: center; }
.rhi-mp-directory-footer > div { min-width: 0; padding-left: 22px; border-left: 1px solid #e6d2ad; }
.rhi-mp-directory-footer strong { display: block; font-size: 16px; }
.rhi-mp-directory-footer p { max-width: 800px; margin: 4px 0; color: #56524d; font-size: 12px; line-height: 1.55; }
.rhi-mp-directory-footer small { color: #77716a; font-size: 11px; }
.rhi-mp-public-not-found-v35 { display: grid; place-items: center; }
.rhi-mp-profile-unavailable {
  width: min(660px, 100%);
  padding: clamp(30px, 6vw, 58px);
  text-align: center;
  border: 1px solid rgba(197,139,22,.22);
  border-radius: 30px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 26px 72px rgba(74,47,17,.15);
}
.rhi-mp-profile-unavailable-logo { width: 132px; height: 90px; object-fit: contain; }
.rhi-mp-profile-unavailable-icon { display: block; width: 58px; height: 58px; object-fit: contain; margin: 18px auto 14px; }
.rhi-mp-profile-unavailable h1 { font-size: clamp(34px, 6vw, 52px); }
.rhi-mp-profile-unavailable > p:not(.rhi-mp-directory-kicker) {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--rhi-muted);
  font-size: 15px;
  line-height: 1.65;
}
.rhi-mp-profile-unavailable .rhi-mp-directory-actions { justify-content: center; }
.rhi-mp-profile-unavailable > small { display: block; margin-top: 22px; color: #8a8177; font-size: 11px; }

@media (max-width: 900px) {
  .rhi-mp-directory-hero {
    background-image: linear-gradient(115deg, rgba(255,255,255,.98), rgba(255,250,240,.96)), url('../images/backgrounds/profile-hero-tablet-v032.webp');
  }
  .rhi-mp-directory-layout { grid-template-columns: 1fr; }
  .rhi-mp-directory-trust { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .rhi-mp-directory-trust-icon { grid-row: 1 / span 3; }
  .rhi-mp-directory-trust ul { grid-column: 1 / -1; }
  .rhi-mp-directory-proof { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rhi-mp-directory-v35 { width: min(100% - 18px, 560px); padding: 10px 0 22px; }
  .rhi-mp-directory-hero {
    padding: 25px 20px 28px;
    border-radius: 25px;
    background-image: linear-gradient(160deg, rgba(255,255,255,.98), rgba(255,250,240,.96)), url('../images/backgrounds/profile-hero-mobile-v032.webp');
    background-position: center top;
  }
  .rhi-mp-directory-brand { align-items: flex-start; gap: 11px; margin-bottom: 28px; }
  .rhi-mp-directory-brand img { width: 88px; height: 62px; }
  .rhi-mp-directory-brand span { padding-top: 5px; font-size: 9px; letter-spacing: .12em; }
  .rhi-mp-directory-copy h1 { font-size: clamp(34px, 11vw, 47px); }
  .rhi-mp-directory-lead { font-size: 14px; line-height: 1.58; }
  .rhi-mp-directory-actions { display: grid; grid-template-columns: 1fr; }
  .rhi-mp-directory-button { width: 100%; min-height: 54px; }
  .rhi-mp-directory-trust { display: block; padding: 22px; }
  .rhi-mp-directory-trust-icon { width: 54px; height: 54px; }
  .rhi-mp-directory-proof article { grid-template-columns: 55px minmax(0, 1fr); padding: 17px; }
  .rhi-mp-directory-proof article > img { width: 49px; height: 49px; }
  .rhi-mp-directory-footer { grid-template-columns: 1fr; gap: 12px; text-align: center; padding: 20px; }
  .rhi-mp-directory-footer > div { padding: 13px 0 0; border-left: 0; border-top: 1px solid #e6d2ad; }
  .rhi-mp-profile-unavailable { padding: 30px 20px; border-radius: 25px; }
}


/* v0.3.6 — PKS-owned verification. Public profiles remain publishable while
 * the verification icon and card turn neutral when no active PKS exists. */
.rhi-mp-verified-image.is-unverified {
  filter: grayscale(1);
  opacity: .48;
}
.rhi-mp-verification-card.is-unverified > div:first-child img {
  filter: grayscale(1);
  opacity: .58;
}
.rhi-mp-verification-card.is-unverified > div:first-child strong {
  color: #6b6f74;
}
.rhi-mp-verification-card.is-unverified {
  border-color: #dedede;
  background: #f5f5f5;
}

.rhi-mp-proof-period{display:block;margin-top:7px;color:#8a6b25;font-size:11px;font-weight:700}
.rhi-mp-identity-field{display:grid;gap:8px}.rhi-mp-btn-small{width:max-content;padding:8px 12px;font-size:13px}.rhi-mp-otp-row{display:flex;gap:8px;align-items:center}.rhi-mp-otp-row input{max-width:180px}.rhi-mp-identity-field small.is-verified{color:#177245;font-weight:700}.rhi-mp-identity-field small.is-error{color:#a2352e;font-weight:700}

/* v0.3.14 — identity action visibility and unsaved-change protection */
.rhi-mp-identity-field {
  align-content: start;
  padding: 15px;
  background: #fcfaf6;
  border: 1px solid #e6dccd;
  border-radius: 16px;
}
.rhi-mp-form .rhi-mp-btn-verify {
  width: max-content;
  min-height: 42px;
  color: #fff !important;
  background: linear-gradient(135deg, #c99222, #95600d) !important;
  border: 1px solid #95600d !important;
  box-shadow: 0 8px 18px rgba(144, 91, 9, .18) !important;
  opacity: 1 !important;
}
.rhi-mp-form .rhi-mp-btn-verify:hover,
.rhi-mp-form .rhi-mp-btn-verify:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, #d5a234, #7f4f08) !important;
  box-shadow: 0 10px 22px rgba(144, 91, 9, .24) !important;
}
.rhi-mp-form .rhi-mp-btn-verify:disabled {
  color: #fff !important;
  opacity: .62 !important;
}
.rhi-mp-form .rhi-mp-btn-secondary {
  color: #5b4b35 !important;
  background: #fff !important;
  border: 1px solid #cfc2ae !important;
  opacity: 1 !important;
}
.rhi-mp-otp-row {
  flex-wrap: wrap;
  width: 100%;
}
.rhi-mp-otp-row[hidden],
.rhi-mp-unsaved-note[hidden],
.rhi-mp-unsaved-modal[hidden] {
  display: none !important;
}
.rhi-mp-unsaved-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  color: #6e4a0a;
  background: #fff5d9;
  border: 1px solid #e7c56e;
  border-radius: 14px;
  box-shadow: var(--rhi-shadow-soft);
}
.rhi-mp-unsaved-note strong { white-space: nowrap; }
.rhi-mp-unsaved-note span { font-size: 13px; text-align: right; }
.rhi-mp-form.has-unsaved-changes .rhi-mp-form-actions {
  box-shadow: 0 12px 28px rgba(116, 76, 14, .15);
}
.rhi-mp-unsaved-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(31, 24, 16, .52);
  backdrop-filter: blur(5px);
}
.rhi-mp-unsaved-dialog {
  width: min(440px, 100%);
  padding: 24px;
  background: #fff;
  border: 1px solid #e4d6c0;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(29, 20, 9, .28);
}
.rhi-mp-unsaved-dialog h2 {
  margin: 7px 0 9px;
  color: var(--rhi-ink);
  font-size: 24px;
  line-height: 1.2;
}
.rhi-mp-unsaved-dialog > p:last-of-type {
  margin: 0;
  color: var(--rhi-muted);
  font-size: 14px;
  line-height: 1.55;
}
.rhi-mp-unsaved-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}
.rhi-mp-btn-danger {
  color: #fff !important;
  background: #9e3b31 !important;
  border: 1px solid #873027 !important;
}
.rhi-mp-modal-open { overflow: hidden !important; }

@media (max-width: 780px) {
  .rhi-mp-identity-field { padding: 13px; }
  .rhi-mp-form .rhi-mp-btn-verify { width: 100%; }
  .rhi-mp-otp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .rhi-mp-otp-row input { max-width: none; }
  .rhi-mp-unsaved-note { align-items: flex-start; flex-direction: column; gap: 3px; }
  .rhi-mp-unsaved-note span { text-align: left; }
}

@media (max-width: 500px) {
  .rhi-mp-otp-row { grid-template-columns: 1fr; }
  .rhi-mp-otp-row .rhi-mp-btn { width: 100%; }
  .rhi-mp-unsaved-dialog { padding: 20px; border-radius: 18px; }
  .rhi-mp-unsaved-actions { grid-template-columns: 1fr; }
}

.rhi-mp-wa-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.rhi-mp-wa-actions[hidden]{display:none!important}.rhi-mp-wa-actions .rhi-mp-btn{margin:0;text-decoration:none}
@media(max-width:520px){.rhi-mp-wa-actions{display:grid;grid-template-columns:1fr}.rhi-mp-wa-actions .rhi-mp-btn{width:100%}}

/* v0.3.16 — QR Member + QR Event inside the existing Page RHI profile shell. */
html.rhi-mp-modal-open{overflow:hidden}.rhi-mp-qr-modal[hidden]{display:none!important}.rhi-mp-qr-modal{position:fixed;inset:0;z-index:100500;display:flex;align-items:center;justify-content:center;padding:24px}.rhi-mp-qr-backdrop{position:absolute;inset:0;background:rgba(30,20,10,.62);backdrop-filter:blur(8px)}.rhi-mp-qr-dialog{position:relative;width:min(760px,100%);max-height:min(880px,calc(100vh - 48px));overflow:auto;background:#fffdf8;border:1px solid rgba(185,132,26,.25);border-radius:28px;box-shadow:0 28px 90px rgba(34,22,8,.28);padding:26px;outline:0}.rhi-mp-qr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.rhi-mp-qr-head h2{font-size:32px;margin:2px 0 0;color:#2f2114}.rhi-mp-qr-close{width:44px;height:44px;border-radius:50%;border:1px solid #e4d8c0;background:#fff;color:#5d411b;font-size:28px;line-height:1;cursor:pointer}.rhi-mp-qr-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f5efe2;border-radius:16px;padding:6px;margin:20px 0}.rhi-mp-qr-tabs button{border:0;border-radius:12px;background:transparent;padding:13px 16px;font-weight:800;color:#74551f;cursor:pointer}.rhi-mp-qr-tabs button.is-active,.rhi-mp-qr-tabs button[aria-selected=true]{background:linear-gradient(135deg,#bf8300,#e2ad28);color:#fff;box-shadow:0 8px 20px rgba(182,120,0,.2)}.rhi-mp-qr-tabs span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;border-radius:999px;background:#fff;color:#9a6b00;font-size:11px;margin-left:6px;padding:0 6px}.rhi-mp-qr-pane{animation:rhiMpQrIn .18s ease}.rhi-mp-qr-member-card{display:grid;grid-template-columns:290px 1fr;gap:24px;align-items:center;padding:20px;background:linear-gradient(145deg,#fff,#faf2df);border:1px solid #eadab8;border-radius:22px}.rhi-mp-qr-code,.rhi-mp-event-qr-code{display:flex;justify-content:center;align-items:center;min-height:260px;background:#fff;border-radius:18px;padding:10px;box-shadow:0 8px 30px rgba(59,38,11,.08)}.rhi-mp-qr-code svg,.rhi-mp-event-qr-code svg{max-width:100%;height:auto}.rhi-mp-qr-identity{display:flex;flex-direction:column;gap:12px}.rhi-mp-qr-identity img{width:92px;height:92px;object-fit:cover;border-radius:50%;border:5px solid #fff;box-shadow:0 7px 24px rgba(44,27,8,.14)}.rhi-mp-qr-identity strong{display:block;font-size:23px;color:#342415}.rhi-mp-qr-identity span{display:block;color:#9b701a;font-weight:800;margin-top:4px}.rhi-mp-qr-identity p{color:#6f675d;line-height:1.55}.rhi-mp-qr-actions,.rhi-mp-event-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.rhi-mp-qr-security{display:block;margin-top:14px;color:#746c61;line-height:1.55}.rhi-mp-qr-alert{background:#fff2d8;border:1px solid #e7c57f;color:#76510c;border-radius:14px;padding:12px 14px;margin-top:14px}.rhi-mp-qr-placeholder,.rhi-mp-event-qr-loading{display:flex;align-items:center;justify-content:center;min-height:220px;color:#7a6b56;text-align:center}.rhi-mp-event-loading,.rhi-mp-event-empty{text-align:center;padding:42px 20px;border:1px dashed #d9c9aa;border-radius:20px;background:#fbf7ef}.rhi-mp-event-loading span{display:inline-block;width:34px;height:34px;border:4px solid #e7d9bd;border-top-color:#bf8300;border-radius:50%;animation:rhiMpSpin .8s linear infinite}.rhi-mp-event-empty-icon{width:70px;height:70px;border-radius:50%;margin:0 auto 14px;display:grid;place-items:center;background:linear-gradient(135deg,#c98c08,#ebbb43);color:#fff;font-weight:900}.rhi-mp-event-empty h3{font-size:23px;margin:0 0 8px}.rhi-mp-event-empty p{max-width:520px;margin:0 auto 18px;color:#6d665c;line-height:1.6}.rhi-mp-event-selector{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}.rhi-mp-event-selector span{font-weight:800}.rhi-mp-event-selector select{width:100%;border:1px solid #dccaa7;border-radius:13px;padding:12px;background:#fff}.rhi-mp-event-card{border:1px solid #e7d7b8;border-radius:22px;background:#fff;padding:22px}.rhi-mp-event-status-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.rhi-mp-event-status-row>span{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f3ede1;color:#7a5b25;font-size:12px;font-weight:800}.rhi-mp-event-status-row .rhi-mp-event-status.is-ongoing{background:#e0f3e6;color:#176339}.rhi-mp-event-status-row .rhi-mp-event-status.is-completed{background:#ececec;color:#595959}.rhi-mp-event-card h3{font-size:28px;line-height:1.18;margin:0 0 10px;color:#332315}.rhi-mp-event-time{font-weight:800;color:#8e6417;margin:0 0 6px}.rhi-mp-event-location{color:#5f584e;margin:0 0 14px}.rhi-mp-event-description{color:#5f584e;line-height:1.65;border-top:1px solid #eee2cc;padding-top:14px}.rhi-mp-event-qr-area{margin-top:18px}.rhi-mp-event-qr-live{display:grid;grid-template-columns:310px 1fr;gap:20px;align-items:center;background:linear-gradient(145deg,#fff9e9,#f8edd5);border:1px solid #e5cc94;border-radius:20px;padding:18px}.rhi-mp-event-qr-timer span{display:block;color:#756b5e}.rhi-mp-event-qr-timer strong{display:block;font-size:28px;color:#9b6900;margin:4px 0 10px}.rhi-mp-event-qr-live small{color:#6f665a;line-height:1.55}.rhi-mp-event-qr-locked,.rhi-mp-event-checked{border-radius:16px;padding:20px;text-align:center;background:#f6f1e7;border:1px solid #e1d6c0}.rhi-mp-event-checked{background:#e6f6ec;border-color:#98cfaa;color:#195e36}.rhi-mp-event-qr-locked strong,.rhi-mp-event-checked strong{font-size:19px}.rhi-mp-event-qr-locked p,.rhi-mp-event-checked p{margin:7px 0 0}.rhi-mp-internal-shell .rhi-mp-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
@keyframes rhiMpQrIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes rhiMpSpin{to{transform:rotate(360deg)}}
@media(max-width:760px){.rhi-mp-qr-modal{align-items:flex-end;padding:0}.rhi-mp-qr-dialog{width:100%;max-height:calc(100dvh - 18px);border-radius:24px 24px 0 0;padding:20px 18px calc(110px + env(safe-area-inset-bottom));}.rhi-mp-qr-head h2{font-size:26px}.rhi-mp-qr-member-card{grid-template-columns:1fr;padding:16px}.rhi-mp-qr-code{min-height:240px}.rhi-mp-qr-identity{display:grid;grid-template-columns:72px 1fr;align-items:center}.rhi-mp-qr-identity img{width:72px;height:72px}.rhi-mp-qr-identity p{grid-column:1/-1}.rhi-mp-event-card h3{font-size:23px}.rhi-mp-event-qr-live{grid-template-columns:1fr}.rhi-mp-event-qr-code{min-height:250px}.rhi-mp-qr-actions .rhi-mp-btn,.rhi-mp-event-actions .rhi-mp-btn{flex:1 1 100%}.rhi-mp-internal-shell .rhi-mp-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.rhi-mp-qr-tabs button{padding:11px 8px;font-size:13px}.rhi-mp-qr-dialog{padding-left:14px;padding-right:14px}.rhi-mp-event-card{padding:16px}}
@media(prefers-reduced-motion:reduce){.rhi-mp-qr-pane,.rhi-mp-event-loading span{animation:none}}


/* v0.3.17 — QR readability hotfix.
 * Canvas is the primary renderer so global SVG/icon rules from the Page RHI shell
 * cannot collapse the QR. The SVG fallback is equally hardened. */
.rhi-mp-qr-code,.rhi-mp-event-qr-code{
  width:100%!important;
  max-width:340px!important;
  min-width:0!important;
  min-height:280px!important;
  aspect-ratio:1/1!important;
  margin-inline:auto!important;
  padding:14px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.rhi-mp-qr-code>.rhi-mp-generated-qr,
.rhi-mp-event-qr-code>.rhi-mp-generated-qr,
.rhi-mp-qr-code>canvas,
.rhi-mp-event-qr-code>canvas,
.rhi-mp-qr-code>svg,
.rhi-mp-event-qr-code>svg{
  display:block!important;
  width:min(100%,320px)!important;
  height:auto!important;
  min-width:min(240px,100%)!important;
  min-height:min(240px,100%)!important;
  max-width:320px!important;
  max-height:none!important;
  aspect-ratio:1/1!important;
  margin:auto!important;
  flex:0 0 auto!important;
  object-fit:contain!important;
}
.rhi-mp-qr-member-card{grid-template-columns:minmax(280px,340px) 1fr}
.rhi-mp-event-qr-live{grid-template-columns:minmax(280px,340px) 1fr}
@media(max-width:760px){
  .rhi-mp-qr-code,.rhi-mp-event-qr-code{max-width:320px!important;min-height:260px!important}
  .rhi-mp-qr-code>.rhi-mp-generated-qr,.rhi-mp-event-qr-code>.rhi-mp-generated-qr,
  .rhi-mp-qr-code>canvas,.rhi-mp-event-qr-code>canvas,
  .rhi-mp-qr-code>svg,.rhi-mp-event-qr-code>svg{width:min(100%,300px)!important;max-width:300px!important}
}
@media(max-width:360px){
  .rhi-mp-qr-code,.rhi-mp-event-qr-code{padding:10px!important;min-height:240px!important}
  .rhi-mp-qr-code>.rhi-mp-generated-qr,.rhi-mp-event-qr-code>.rhi-mp-generated-qr,
  .rhi-mp-qr-code>canvas,.rhi-mp-event-qr-code>canvas,
  .rhi-mp-qr-code>svg,.rhi-mp-event-qr-code>svg{min-width:220px!important;width:min(100%,280px)!important;max-width:280px!important}
}


/* v0.3.18 — QR mobile composition hotfix.
 * Preserve the original identity-card composition while keeping both QR Member
 * and QR Event large enough to scan. The wider breakpoint also covers WebViews
 * that report physical-like viewport widths and previously missed max-width:760px. */
@media (max-width:900px){
  .rhi-mp-qr-member-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:16px!important;
    padding:16px!important;
    overflow:hidden!important;
  }
  .rhi-mp-qr-code{
    order:1!important;
    width:min(100%,300px)!important;
    max-width:300px!important;
    min-height:0!important;
    margin-inline:auto!important;
  }
  .rhi-mp-qr-code>.rhi-mp-generated-qr,
  .rhi-mp-qr-code>canvas,
  .rhi-mp-qr-code>svg{
    width:min(100%,280px)!important;
    max-width:280px!important;
    min-width:min(240px,100%)!important;
  }
  .rhi-mp-qr-identity{
    order:2!important;
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    gap:12px!important;
    align-items:center!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    margin:0!important;
    padding:2px 2px 0!important;
    box-sizing:border-box!important;
  }
  .rhi-mp-qr-identity>img{
    grid-column:1!important;
    grid-row:1!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
    float:none!important;
    width:68px!important;
    height:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    margin:0!important;
    object-fit:cover!important;
  }
  .rhi-mp-qr-identity>div{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
  }
  .rhi-mp-qr-identity strong{
    font-size:20px!important;
    line-height:1.22!important;
    overflow-wrap:anywhere!important;
  }
  .rhi-mp-qr-identity span{
    margin-top:3px!important;
    font-size:15px!important;
  }
  .rhi-mp-qr-identity p{
    margin:6px 0 0!important;
    font-size:14px!important;
    line-height:1.48!important;
    color:#6f675d!important;
  }
  .rhi-mp-event-qr-live{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:16px!important;
    overflow:hidden!important;
  }
  .rhi-mp-event-qr-code{
    order:1!important;
    width:min(100%,300px)!important;
    max-width:300px!important;
    min-height:0!important;
    margin-inline:auto!important;
  }
  .rhi-mp-event-qr-code>.rhi-mp-generated-qr,
  .rhi-mp-event-qr-code>canvas,
  .rhi-mp-event-qr-code>svg{
    width:min(100%,280px)!important;
    max-width:280px!important;
    min-width:min(240px,100%)!important;
  }
  .rhi-mp-event-qr-timer{
    order:2!important;
    width:100%!important;
    min-width:0!important;
  }
}
@media (max-width:380px){
  .rhi-mp-qr-code,.rhi-mp-event-qr-code{
    width:min(100%,276px)!important;
    max-width:276px!important;
    padding:10px!important;
  }
  .rhi-mp-qr-code>.rhi-mp-generated-qr,
  .rhi-mp-event-qr-code>.rhi-mp-generated-qr,
  .rhi-mp-qr-code>canvas,.rhi-mp-event-qr-code>canvas,
  .rhi-mp-qr-code>svg,.rhi-mp-event-qr-code>svg{
    width:min(100%,256px)!important;
    max-width:256px!important;
    min-width:min(220px,100%)!important;
  }
  .rhi-mp-qr-identity{
    grid-template-columns:60px minmax(0,1fr)!important;
    gap:10px!important;
  }
  .rhi-mp-qr-identity>img{
    width:60px!important;
    height:60px!important;
    min-width:60px!important;
    max-width:60px!important;
  }
  .rhi-mp-qr-identity strong{font-size:18px!important}
  .rhi-mp-qr-identity p{font-size:13px!important}
}

.rhi-mp-event-card.is-online .rhi-mp-event-qr-area{margin-top:18px}.rhi-mp-online-access{padding:22px;border:1px solid #eadfc8;border-radius:18px;background:#fff9ed;text-align:left}.rhi-mp-online-access.is-active{background:#eef8f1;border-color:#b9dbc3}.rhi-mp-online-access strong{display:block;font-size:18px;color:#4a3319;margin-bottom:8px}.rhi-mp-online-access p{margin:0 0 8px;line-height:1.55}.rhi-mp-online-access small{display:block;color:#756956}.rhi-mp-event-card.is-online .rhi-mp-event-location:before{content:'ONLINE · ';font-weight:800;color:#b37900}
