/* Single directory member — full centered layout */

body.single-we_directory_member .site-main,
body.single-we_directory_member #content,
body.single-we_directory_member .page-content,
body.single-we_directory_member .entry-content {
  max-width: none !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-we_directory_member .sidebar,
body.single-we_directory_member #secondary {
  display: none !important;
}

.wed-single {
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 40%);
  padding: 48px 16px 80px;
  font-family: "Outfit", sans-serif;
  color: #1a2744;
  box-sizing: border-box;
}

.wed-single *,
.wed-single *::before,
.wed-single *::after {
  box-sizing: border-box;
}

.wed-single__wrap {
  max-width: 920px;
  margin: 0 auto;
}

.wed-single__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c20000;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.wed-single__back:hover,
.wed-single__back:focus {
  color: #a00000;
}

.wed-single__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(26, 39, 68, 0.08);
  padding: 28px;
  animation: wedSingleIn 0.45s ease both;
}

.wed-single__hero {
  display: flex;
  gap: 22px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #eef0f4;
  margin-bottom: 22px;
}

.wed-single__logo {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #fff;
  flex-shrink: 0;
}

.wed-single__logo--placeholder {
  display: grid;
  place-items: center;
  background: #fff0f0;
  color: #c20000;
  font-weight: 700;
  font-size: 1.6rem;
}

.wed-single__name {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a2744;
}

.wed-single__role,
.wed-single__company {
  margin: 0;
  color: #555;
}

.wed-single__company {
  font-weight: 500;
  margin-top: 2px;
}

.wed-single__city {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #1a2744;
  font-weight: 500;
}

.wed-single__section {
  margin-bottom: 24px;
}

.wed-single__section h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a2744;
}

.wed-single__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wed-single__specs li {
  background: #fff0f0;
  color: #c20000;
  border: 1px solid #f0c2c2;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.875rem;
}

.wed-single__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eef0f4;
  border-radius: 12px;
  overflow: hidden;
}

.wed-single__table th,
.wed-single__table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eef0f4;
}

.wed-single__table tr:last-child th,
.wed-single__table tr:last-child td {
  border-bottom: 0;
}

.wed-single__table th {
  width: 34%;
  background: #f7f8fa;
  color: #1a2744;
  font-weight: 600;
}

.wed-single__table td {
  color: #374151;
}

.wed-single__table a {
  color: #c20000;
  text-decoration: none;
  font-weight: 500;
}

.wed-single__table a:hover {
  text-decoration: underline;
}

.wed-single__body {
  color: #444;
  line-height: 1.65;
}

.wed-single__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #eef0f4;
}

.wed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 600;
  transition: 0.2s ease;
  min-height: 48px;
}

.wed-btn--primary {
  background: #c20000;
  color: #fff !important;
}

.wed-btn--primary:hover,
.wed-btn--primary:focus {
  background: #a00000;
  color: #fff !important;
}

.wed-btn--ghost {
  border: 1px solid #c20000;
  color: #c20000 !important;
  background: #fff;
}

.wed-btn--ghost:hover,
.wed-btn--ghost:focus {
  background: #c20000;
  color: #fff !important;
}

@keyframes wedSingleIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .wed-single {
    padding: 32px 14px 72px;
  }

  .wed-single__card {
    padding: 20px 16px;
  }

  .wed-single__hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .wed-single__table th,
  .wed-single__table td {
    display: block;
    width: 100%;
  }

  .wed-single__table th {
    padding-bottom: 4px;
  }

  .wed-single__table td {
    padding-top: 0;
    padding-bottom: 14px;
  }

  .wed-single__actions {
    flex-direction: column;
    gap: 10px;
  }

  .wed-btn {
    width: 100%;
    padding: 14px 18px;
  }
}