html.has-modal-open {
  overflow: hidden;
}

/* Shared visual harmony for the legacy/static venture pages. */
.mamal-social {
  --social-bg:#f4f0e7;
  --social-surface:#fffdf9;
  --social-text:#111318;
  --social-muted:#706d68;
  --social-border:#ded7ca;
  --social-yellow:#d3b36a;
  background:
    radial-gradient(circle at 88% 4%,#315e9112,transparent 30rem),
    radial-gradient(circle at 8% 30%,#d3b36a14,transparent 24rem),
    var(--social-bg);
}
.mamal-social[dir="rtl"] { font-family:Tahoma,"Segoe UI",Arial,sans-serif; }
.social-topbar {
  border-color:#d8d0c1b8;
  background:#f9f6eff0;
  box-shadow:0 8px 32px #2d281b0a;
}
.social-wordmark { letter-spacing:.13em; font-size:1.08rem; }
.social-search { border:1px solid #dfd8cb; border-radius:999px; background:#fffdf8d9; }
.social-top-actions>a:not(.social-message) { border-radius:999px; }
.social-sidebar { border-color:#ded7ca; background:#fffdf9e8; backdrop-filter:blur(18px); }
.social-side-logo { background:linear-gradient(145deg,#edd99d,#c89f46); box-shadow:0 8px 22px #9c742e2b; }
.social-venture-profile { width:min(1180px,calc(100vw - 124px)); margin-inline:auto; padding-bottom:90px; }
.venture-profile-head {
  margin:18px 0;
  border:1px solid #d9d0bf;
  border-radius:30px;
  padding:30px 44px;
  background:
    radial-gradient(circle at 88% 12%,#315e911f,transparent 24rem),
    radial-gradient(circle at 14% 100%,#d3b36a26,transparent 22rem),
    linear-gradient(135deg,#fffdf9,#f1ebdf);
  box-shadow:0 24px 70px #3b322312;
}
.venture-profile-avatar { background:conic-gradient(from 210deg,#d3b36a,#c99135,#7652c8,#247b80,#247458,#315e91,#d3b36a); box-shadow:0 18px 45px #251d1230; }
.venture-profile-avatar span { border-color:#fffdf9; background:radial-gradient(circle at 32% 25%,#2c303a,#101218 66%); color:#efd694; }
.venture-profile-name a,.venture-profile-actions a { border-radius:999px; }
.venture-highlights { gap:16px; margin-block:18px 28px; }
.venture-highlights>div { border:1px solid #ddd5c7; border-radius:20px; background:#fffdf9; box-shadow:0 14px 38px #2f281b0d; }
.venture-profile-about { border:1px solid #ddd5c7; border-radius:26px; background:#fffdf9; box-shadow:0 18px 48px #2f281b0d; padding:32px; }
.venture-service-posts { gap:12px; }
.service-post { border:1px solid #ddd5c7; border-radius:22px; box-shadow:0 16px 42px #2f281b0d; overflow:hidden; }
.profile-next>a { border-radius:22px; background:#fffdf9; box-shadow:0 16px 42px #2f281b0d; }

@media(max-width:720px) {
  .mamal-social { background:linear-gradient(180deg,#f7f3eb,#f1ece2); }
  .social-wordmark { font-size:.92rem; }
  .social-venture-profile { width:100%; padding-inline:10px; }
  .venture-profile-head { margin:10px 0; border-radius:23px; padding:20px 14px; }
  .venture-highlights { gap:10px; }
  .venture-profile-about,.service-post,.profile-next>a { border-radius:20px; }
}

.mamal-cast-module {
  width: min(1120px, calc(100% - 48px));
  margin: 72px auto;
  color: #17171b;
  font-family: inherit;
}

.mamal-cast-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 20px;
}

.mamal-cast-head small {
  color: #755acb;
  font-size: .64rem;
  letter-spacing: .12em;
}

.mamal-cast-head h2 {
  margin: 9px 0;
  max-width: 780px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.mamal-cast-head p {
  margin: 0;
  max-width: 760px;
  color: #6c6b72;
  font-size: .78rem;
  line-height: 1.85;
}

.mamal-cast-head strong {
  display: block;
  margin-top: 9px;
  color: #29272f;
  font-size: .68rem;
}

.mamal-cast-badge {
  min-width: 126px;
  border-radius: 16px;
  background: #111318;
  color: #fff;
  padding: 17px;
  display: grid;
  text-align: center;
}

.mamal-cast-badge b {
  color: #ead284;
  font-size: 1.8rem;
}

.mamal-cast-badge small {
  color: #8f8e97;
  font-size: .52rem;
}

.mamal-cast-hero {
  position: relative;
  min-height: 430px;
  border-radius: 22px;
  overflow: hidden;
  background: #17161b;
}

.mamal-cast-hero::after {
  content: "";
  position: absolute;
  inset: 46% 0 0;
  background: linear-gradient(transparent, #111318e8);
}

.mamal-cast-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mamal-cast-hero > div {
  position: absolute;
  z-index: 2;
  inset: auto 24px 22px;
  color: #fff;
  display: grid;
  gap: 6px;
}

.mamal-cast-hero small {
  color: #ead284;
  font-size: .57rem;
  letter-spacing: .11em;
}

.mamal-cast-hero strong {
  font-size: 1.25rem;
}

.mamal-cast-hero span {
  color: #cbc9d1;
  font-size: .66rem;
}

.mamal-cast-people {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.mamal-cast-people article {
  min-width: 0;
  border: 1px solid #dfdde6;
  border-radius: 11px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.mamal-cast-people article.is-ai {
  border-top: 3px solid #765bd0;
}

.mamal-cast-people article.is-real {
  border-style: dashed;
  background: #fbfaf7;
}

.mamal-cast-people b {
  color: #755acb;
  font-size: .53rem;
}

.mamal-cast-people strong {
  font-size: .6rem;
}

.mamal-cast-people small {
  color: #77747e;
  font-size: .49rem;
  line-height: 1.4;
}

.mamal-cast-formats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 9px;
}

.mamal-cast-formats span {
  border-radius: 9px;
  background: #17181d;
  color: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mamal-cast-formats small {
  color: #8f8e97;
  font-size: .5rem;
}

.mamal-cast-formats b {
  color: #ead284;
  font-size: .65rem;
}

.mamal-cast-variation-note {
  margin: 8px 0 0;
  border: 1px solid #e0ddec;
  border-radius: 9px;
  background: #f7f5fc;
  color: #66529e;
  padding: 10px 12px;
  font-size: .53rem;
  line-height: 1.6;
  letter-spacing: .035em;
}

.mamal-cast-workflow-title {
  margin: 30px 0 10px;
  font-size: .72rem;
}

.mamal-cast-workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.mamal-cast-workflow span {
  border-top: 2px solid #d8be63;
  background: #f7f5fa;
  padding: 13px;
  display: grid;
  gap: 5px;
}

.mamal-cast-workflow b {
  color: #9a7d1b;
  font-size: .56rem;
}

.mamal-cast-workflow small {
  color: #4d4b52;
  font-size: .61rem;
}

.mamal-cast-foot {
  margin-top: 10px;
  border-radius: 12px;
  background: #17181d;
  color: #fff;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mamal-cast-foot p {
  margin: 0;
  max-width: 800px;
  color: #b8b6c0;
  font-size: .61rem;
  line-height: 1.75;
}

.mamal-cast-foot a {
  flex: 0 0 auto;
  border-radius: 9px;
  background: #ead284;
  color: #282313;
  padding: 11px 14px;
  font-size: .61rem;
  font-weight: 750;
  text-decoration: none;
}

.modal-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-scrim {
  cursor: pointer;
}

.modal-copy > button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shop-empty-state {
  margin: 0;
  padding: 32px 16px;
  color: #6f6b64;
  background: #fbfaf7;
  border: 1px solid #12120f1f;
  text-align: center;
  font-size: 0.78rem;
}

.shop-empty-state[hidden] {
  display: none;
}

@media (width <= 600px) {
  .mamal-cast-module {
    width: calc(100% - 24px);
    margin: 46px auto 72px;
  }

  .mamal-cast-head {
    grid-template-columns: 1fr;
  }

  .mamal-cast-badge {
    grid-template-columns: auto 1fr;
    align-items: center;
    min-width: 0;
    text-align: start;
  }

  .mamal-cast-hero {
    min-height: 310px;
  }

  .mamal-cast-hero img {
    object-position: 66% center;
  }

  .mamal-cast-people {
    grid-template-columns: repeat(2, 1fr);
  }

  .mamal-cast-formats {
    grid-template-columns: 1fr 1fr;
  }

  .mamal-cast-workflow {
    grid-template-columns: 1fr 1fr;
  }

  .mamal-cast-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .mamal-cast-foot a {
    text-align: center;
  }

  .legal-page h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

.mamal-shared-services {
  width: min(1020px, calc(100% - 48px));
  margin: 12px auto 34px;
  border: 1px solid #dcd8cd;
  border-radius: 15px;
  background: #fff;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(150px, auto));
  gap: 6px;
  align-items: center;
}

/* Meeting-ready public profiles: keep the focus on the current venture and
   the five live MAMALCO destinations. Future-world recommendations stay hidden. */
.social-venture-profile .profile-next,
.social-sidebar a[href$="/market"],
.social-sidebar a[href$="/shop"],
.social-sidebar a[href$="/ai"],
.social-bottom-nav a[href*="/market"] {
  display: none !important;
}

.mamal-shared-services > span {
  color: #858178;
  padding-inline: 9px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.mamal-shared-services > a {
  min-height: 48px;
  border-radius: 10px;
  background: #f3f0e7;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
}

.mamal-shared-services > a:hover { background: #eee4c6; }

.mamal-shared-services > a b {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #12120f;
  color: #e4c45c;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
}

.mamal-shared-services > a small {
  color: #282721;
  font-size: 0.57rem;
  font-weight: 760;
}

@media (width <= 700px) {
  .mamal-shared-services {
    width: calc(100% - 24px);
    grid-template-columns: repeat(3, 1fr);
  }

  .mamal-shared-services > span {
    grid-column: 1 / -1;
    padding: 4px;
  }

  .mamal-shared-services > a {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 7px 4px;
    text-align: center;
  }

  .mamal-shared-services > a small { font-size: 0.49rem; }
}
