/* Social preview modal: lightweight facade for official social channels */
.social-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 18, 22, 0.68);
  backdrop-filter: blur(14px);
}

.social-modal-backdrop.is-open {
  display: flex;
}

.social-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(31, 152, 155, 0.22), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 239, 0.94));
  box-shadow: 0 24px 80px rgba(4, 18, 24, 0.34);
  color: #173336;
}

.social-modal-inner {
  padding: clamp(24px, 5vw, 42px);
}

.social-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 51, 54, 0.08);
  color: #173336;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.social-modal-kicker {
  margin: 0 0 8px;
  color: var(--primary, #1F989B);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.social-modal-title {
  margin: 0 0 12px;
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(32px, 6vw, 48px);
  line-height: 0.98;
  font-weight: 500;
}

.social-modal-copy {
  margin: 0 0 22px;
  max-width: 56ch;
  color: rgba(23, 51, 54, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.social-modal-feed {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.social-modal-feed-placeholder,
.social-modal-feed-card {
  border: 1px solid rgba(23, 51, 54, 0.12);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.social-modal-feed-placeholder strong,
.social-modal-feed-card strong {
  display: block;
  margin-bottom: 6px;
  color: #173336;
}

.social-modal-feed-placeholder span,
.social-modal-feed-card span {
  color: rgba(23, 51, 54, 0.68);
  line-height: 1.5;
}

.social-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.social-modal-actions .btn-social-open,
.social-modal-actions .btn-social-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.social-modal-actions .btn-social-open {
  background: var(--primary, #1F989B);
  color: #fff;
}

.social-modal-actions .btn-social-secondary {
  border: 1px solid rgba(23, 51, 54, 0.18);
  color: #173336;
  background: rgba(255, 255, 255, 0.72);
}

.physician-credentials {
  margin-top: 28px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(31, 152, 155, 0.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(247, 241, 233, 0.62));
  box-shadow: 0 18px 46px rgba(4, 18, 24, 0.08);
}

.physician-credentials .credential-label {
  margin: 0 0 8px;
  color: var(--primary, #1F989B);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.physician-credentials h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 500;
}

.physician-credentials p {
  margin: 0 0 8px;
  color: rgba(23, 51, 54, 0.76);
  line-height: 1.55;
}

.physician-credentials .credential-license {
  color: #173336;
  font-weight: 600;
}

.physician-credentials .credential-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.physician-credentials .credential-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(31, 152, 155, 0.1);
  color: var(--primary, #1F989B);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.footer-legal-medical {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.82;
}

@media (max-width: 640px) {
  .social-modal-backdrop {
    align-items: flex-end;
    padding: 12px;
  }

  .social-modal {
    border-radius: 24px;
    max-height: 86vh;
  }

  .social-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .social-modal-actions .btn-social-open,
  .social-modal-actions .btn-social-secondary {
    width: 100%;
  }
}
