/* ============================================================
   Contact Node Styles
   ============================================================ */

/* Hide redundant page title block (title is rendered in the template) */
.block-page-title-block {
  display: none;
}

/* ---- Layout ---- */
.contact-node {
  max-width: 860px;
  margin: 2rem auto;
  font-family: var(--bs-font-sans-serif);
  color: var(--bs-body-color, #212529);
}

/* ---- Header ---- */
.contact-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--bs-gray-200, #e9ecef);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
}

/* ---- Avatar ---- */
.contact-avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bs-gray-200, #dee2e6);
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Drupal image field wrapper */
.contact-avatar .field--type-image {
  width: 100%;
  height: 100%;
  margin: 0;
}

.contact-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: none;
}

/* ---- Header info ---- */
.contact-header-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.2;
  color: #1a1a2e;
}

.contact-practice {
  font-size: 1rem;
  color: var(--bs-gray-600, #6c757d);
  margin: 0 0 0.75rem;
}

/* Strip Drupal field label wrappers from practice name */
.contact-practice .field__label {
  display: none;
}

/* ---- Badges ---- */
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.contact-badge--available {
  background: #d1fae5;
  color: #065f46;
}

.contact-badge--unavailable {
  background: var(--bs-gray-200, #e9ecef);
  color: var(--bs-gray-600, #6c757d);
}

.contact-badge--type {
  background: #e0e7ff;
  color: #3730a3;
}

/* Strip Drupal field label wrappers inside badge */
.contact-badge .field__label {
  display: none;
}

/* ---- Header actions (edit button etc.) ---- */
.contact-actions {
  flex-shrink: 0;
  align-self: flex-start;
}

/* ---- Body layout ---- */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ---- Sections ---- */
.contact-section {
  background: #fff;
  border: 1px solid var(--bs-gray-200, #e9ecef);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Info section spans both columns */
.contact-section--info {
  grid-column: 1 / -1;
}

.contact-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bs-gray-500, #adb5bd);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bs-gray-100, #f8f9fa);
}

/* ---- Contact info list ---- */
.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.contact-info-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1.4;
}

.contact-info-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  color: var(--bs-gray-500, #adb5bd);
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bs-gray-500, #adb5bd);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  width: 4.5rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--bs-gray-800, #343a40);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Strip Drupal field wrappers inside info values */
.contact-info-value .field__label {
  display: none;
}

.contact-info-value a {
  color: var(--bs-primary, #0d6efd);
  text-decoration: none;
}

.contact-info-value a:hover {
  text-decoration: underline;
}

/* ---- Address ---- */
.contact-address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--bs-gray-700, #495057);
  line-height: 1.7;
}

.contact-address-line {
  display: block;
}

/* Strip Drupal field wrappers in address */
.contact-address .field__label {
  display: none;
}

.contact-address .field__item {
  display: inline;
}

/* ---- Taxonomy / Tags ---- */
.contact-section--taxonomy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.contact-taxonomy-group {
  background: #fff;
  border: 1px solid var(--bs-gray-200, #e9ecef);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Hide Drupal field labels within tags */
.contact-tags .field__label {
  display: none;
}

/* Style each taxonomy term as a pill */
.contact-tags .field__item a,
.contact-tags .field__item {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  border: 1px solid #bfdbfe;
  transition: background 0.15s, color 0.15s;
}

.contact-tags .field__item a:hover {
  background: #dbeafe;
  color: #1e40af;
}

/* Certifications use a different color palette */
.contact-tags--certifications .field__item a,
.contact-tags--certifications .field__item {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.contact-tags--certifications .field__item a:hover {
  background: #dcfce7;
  color: #14532d;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .contact-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-meta {
    justify-content: center;
  }

  .contact-body {
    grid-template-columns: 1fr;
  }

  .contact-section--taxonomy {
    grid-template-columns: 1fr;
  }

  .contact-info-list {
    grid-template-columns: 1fr;
  }
}
