.cd-social-section {
  padding: 76px 0 88px;
  background: var(--color-canvas);
}

.cd-social-section .inner-container {
  margin-bottom: 0;
  padding: 0 20px;
}

.cd-social-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.cd-social-intro {
  max-width: 760px;
}

.cd-social-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cd-social-eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

.cd-social-heading h2 {
  margin: 0 0 13px;
  color: var(--color-text);
  font-family: Marcellus, Georgia, serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.cd-social-heading h2 span {
  color: var(--accent-gold);
}

.cd-social-intro > p:last-child {
  margin: 0;
  color: var(--color-text-muted);
  font-family: Catamaran, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

.cd-social-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--accent-gold);
  color: var(--color-text);
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.cd-social-all:hover,
.cd-social-all:focus-visible {
  background: var(--color-text);
  color: var(--color-canvas);
}

.cd-social-preview-note {
  margin: 24px 0 0;
  color: var(--color-text-muted);
  font-family: Catamaran, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.cd-social-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.cd-social-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text);
  box-shadow: 0 4px 18px rgba(17, 17, 17, .055);
}

.cd-social-post-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 16px 17px 12px;
}

.cd-social-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.cd-social-author {
  min-width: 0;
  flex: 1;
}

.cd-social-page-link {
  display: block;
  width: fit-content;
  color: var(--color-text);
  font-family: Catamaran, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.cd-social-page-link:hover,
.cd-social-page-link:focus-visible,
.cd-social-post-meta a:hover,
.cd-social-post-meta a:focus-visible {
  text-decoration: underline;
}

.cd-social-post-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #65676b;
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  line-height: 1.2;
}

.cd-social-post-meta a {
  color: inherit;
  text-decoration: none;
}

.cd-social-fb-badge {
  display: grid;
  width: 25px;
  height: 25px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.cd-social-card-copy {
  margin: 0;
  padding: 0 18px 10px;
  color: var(--color-text);
  font-family: Catamaran, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.cd-social-card-media {
  display: grid;
  height: min(108vw, 430px);
  place-items: center;
  overflow: hidden;
  background: #f0f0f0;
  text-decoration: none;
}

.cd-social-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cd-social-card-media.is-empty::after {
  content: 'CD Signature Salon';
  color: var(--color-text-muted);
  font-family: Marcellus, Georgia, serif;
  font-size: 24px;
}

.cd-social-card-actions {
  display: flex;
  margin-top: auto;
  padding: 5px 9px;
  border-top: 1px solid #e4e6eb;
}

.cd-social-card-action {
  display: flex;
  min-height: 39px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  color: #65676b;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cd-social-card-action:hover,
.cd-social-card-action:focus-visible {
  background: #f2f3f5;
  color: #1877f2;
}

.cd-social-card-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.cd-social-unavailable {
  margin: 0;
  color: var(--color-text-muted);
}

.cd-social-unavailable a {
  color: var(--color-text);
  text-decoration-color: var(--accent-gold);
}

@media screen and (max-width: 599px) {
  .cd-social-section .inner-container {
    padding: 0 12px;
  }

  .cd-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cd-social-card {
    border-radius: 9px;
  }

  .cd-social-post-header {
    min-height: 61px;
    gap: 6px;
    padding: 9px 8px 6px;
  }

  .cd-social-avatar {
    width: 28px;
    height: 28px;
  }

  .cd-social-page-link {
    font-size: 11px;
    line-height: 1.15;
  }

  .cd-social-post-meta {
    font-size: 10px;
  }

  .cd-social-post-meta span,
  .cd-social-fb-badge,
  .cd-social-card-action span {
    display: none;
  }

  .cd-social-card-copy {
    display: -webkit-box;
    height: 2.7em;
    padding: 0 9px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cd-social-card-media {
    height: auto;
    aspect-ratio: 1;
  }

  .cd-social-card-actions {
    padding: 2px 4px;
  }

  .cd-social-card-action {
    min-height: 34px;
  }

  .cd-social-card-action svg {
    width: 16px;
    height: 16px;
  }
}

@media screen and (min-width: 600px) {
  .cd-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cd-social-card-media {
    height: 360px;
  }
}

@media screen and (min-width: 992px) {
  .cd-social-section {
    padding: 104px 0 118px;
  }

  .cd-social-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
  }

  .cd-social-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .cd-social-card-media {
    height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-social-all {
    transition: none;
  }
}
