/* ================= Ocat vCard - Business Network (businessnetwork.aspx) =================
   Loaded after card.css (uses its colours, .page, .bg-blob, .card__foot, .brand-mark). */

.net { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; animation: rise .6s ease-out both; }

.net-back {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.net-back .ico { transform: rotate(180deg); }
.net-back:hover { color: var(--theme); }

/* owner header */
.net-head {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.3), transparent 35%),
    linear-gradient(135deg, var(--theme), color-mix(in srgb, var(--theme) 50%, #ff7a59));
  box-shadow: 0 30px 60px -30px rgba(40, 20, 120, .45);
}
.net-head__avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #fff; color: var(--theme); font-size: 24px; font-weight: 800; border: 3px solid rgba(255,255,255,.7);
}
.net-head__avatar img { width: 100%; height: 100%; object-fit: cover; }
.net-head__text { flex: 1; min-width: 0; }
.net-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.net-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; overflow-wrap: anywhere; }
.net-head p { margin-top: 4px; font-size: 14.5px; opacity: .92; }
.net-head p a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.net-head__count {
  flex: none; display: flex; flex-direction: column; align-items: center; padding: 10px 16px; border-radius: 18px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.net-head__count b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.net-head__count small { font-size: 12px; font-weight: 600; opacity: .9; }

/* search */
.net-search {
  display: flex; align-items: center; gap: 10px; margin: 22px 0 18px; padding: 0 16px; height: 50px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--muted);
}
.net-search:focus-within { border-color: var(--theme); box-shadow: 0 0 0 4px var(--soft); }
.net-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; color: var(--ink); background: transparent; }
.net-search[hidden] { display: none; }

/* member cards */
.net-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .net-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .net-grid { grid-template-columns: repeat(3, 1fr); } }

.mcard {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; min-width: 0;
  background: #fff; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 10px 24px -18px rgba(40, 20, 120, .35);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--theme) 35%, white); box-shadow: 0 18px 34px -18px rgba(40, 20, 120, .45); }
.mcard[hidden] { display: none; }

/* who: photo, name, company, job title */
.mcard__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mcard__pic {
  flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--soft); color: var(--theme); font-weight: 800; font-size: 19px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
}
.mcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.mcard__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mcard__name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard__head:hover .mcard__name { color: var(--theme); }
.mcard__co { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--theme); min-width: 0; }
.mcard__co .ico { flex: none; }
.mcard__co, .mcard__role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard__role { font-size: 12.5px; color: var(--muted); }

/* Business Details: vCard.biztxt exactly as typed, same panel style as the card page */
.mcard__biz {
  position: relative; padding: 14px 14px 12px 18px; border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, #ff7a59 10%, transparent), transparent 45%),
    linear-gradient(160deg, var(--soft), #fff 75%);
  border: 1px solid color-mix(in srgb, var(--theme) 12%, white);
}
.mcard__biz::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(var(--theme), #ff7a59);
}
.mcard__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mcard__details {
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: calc(1.65em * 6); overflow: hidden;   /* 6 lines, then "Show more" */
}
.mcard__biz.open .mcard__details { max-height: none; }
.mcard__more {
  margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--theme);
}
.mcard__more[hidden] { display: none; }
.mcard__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* open the vCard: always at the bottom so the buttons line up across a row */
.mcard__open {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px;
  border-radius: 14px; background: var(--soft); color: var(--theme); font-size: 14px; font-weight: 700;
  transition: background .2s, color .2s;
}
.mcard__open:hover { background: var(--theme); color: #fff; }

.net-empty, .net-nomatch { grid-column: 1 / -1; text-align: center; color: var(--ink-2); }
.net-empty { padding: 48px 20px; background: #fff; border-radius: 24px; border: 1px dashed var(--line); margin-top: 22px; }
.net-empty span { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--soft); color: var(--theme); font-size: 24px; }
.net-empty h2 { font-size: 18px; margin-top: 14px; color: var(--ink); }
.net-empty p { margin-top: 6px; font-size: 14px; }
.net-nomatch { padding: 30px 0; font-size: 14.5px; }

@media (max-width: 560px) {
  .net-head { flex-wrap: wrap; padding: 20px; }
  .net-head h1 { font-size: 22px; }
  .net-head__count { flex-direction: row; gap: 6px; padding: 6px 14px; align-items: baseline; }
  .net-head__count b { font-size: 18px; }
}
