/* =============================================================================
Members — Single & Cards
============================================================================= */

/* -----------------------------------------------------------------------------
Single Member
----------------------------------------------------------------------------- */
.member-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  color: #1a1a1a;
}

.member-header {
  margin-bottom: 2.5rem;

  .member-logo {
    margin-bottom: 1.25rem;

    img {
      max-height: 150px;
      width: auto;
      display: block;
    }
  }

  .member-title {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
  }

  .member-nickname {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 0.85rem;
  }

  .member-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  .membership-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    color: #555;
    background: #f7f7f7;
  }
}

.member-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  font-size: 0.875rem;
  line-height: 1.55;

  dt,
  dd {
    padding: 0.75rem 1rem;
    margin: 0;
    vertical-align: top;
  }

  dt {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
  }

  dd {
    color: #1a1a1a;

    a {
      color: #1a1a1a;
      text-decoration: underline;
      text-underline-offset: 3px;
      -webkit-text-decoration-color: #bbb;
      text-decoration-color: #bbb;
      transition: -webkit-text-decoration-color 0.15s ease;
      transition: text-decoration-color 0.15s ease;
      transition: text-decoration-color 0.15s ease, -webkit-text-decoration-color 0.15s ease;
      word-break: break-all;

      &:hover {
        -webkit-text-decoration-color: #1a1a1a;
        text-decoration-color: #1a1a1a;
      }
    }
  }

  dt:nth-child(4n+1),
  dt:nth-child(4n+1) + dd {
    background: #f7f7f7;
  }

  dt:nth-child(4n+3),
  dt:nth-child(4n+3) + dd {
    background: #fff;
  }
}

.publishing-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;

  span {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    background: #e8e8e8;
    border-radius: 2px;
    color: #333;
  }
}

/* -----------------------------------------------------------------------------
Member Cards — Search & Filter Results
----------------------------------------------------------------------------- */
ul.member-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}

li.member-card {
  background: #fff;
  margin: 0;

  .member-card__link {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;

    &:hover {
      background: #f7f7f7;

      .member-card__name {
        text-decoration: underline;
        text-underline-offset: 3px;
      }
    }

    &:not(:has(.member-card__logo)) {
      grid-template-columns: 1fr;
    }
  }

  .member-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid #ebebeb;
    border-radius: 3px;
    padding: 0.75rem;
    background: #fff;

    img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      -o-object-fit: contain;
      object-fit: contain;
    }
  }

  .member-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .member-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.3;
  }

  .member-card__excerpt {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.55;
  }

  .member-card__year {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.03em;
    margin-top: 0.15rem;
  }
}

/* -----------------------------------------------------------------------------
Filters
----------------------------------------------------------------------------- */
.filters-wrapper {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;

  h2 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin: 0;
    width: 100%;
  }
}

.sf-results-header {
  display: none;
}

.search-filter-field {
  min-width: 250px;
  margin: 0;
}

.search-filter-label {
  font-size: 16px !important;
  color: #666;
  font-weight: 600;
}

.sf-results-footer {
  margin-top: 2rem;
  text-align: center;
}

.sf-results-stats {
  color: #888888;
  margin-top: 0.5rem;
}

/* .search-filter-component-combobox__header {
  min-height: 38.59px;
}

.sf-results-count {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  width: 100%;
  margin-bottom: 1rem;
} */

/* -----------------------------------------------------------------------------
Responsive
----------------------------------------------------------------------------- */
@media (max-width: 540px) {
  .member-title {
    font-size: 1.4rem;
  }

  .member-list {
    grid-template-columns: 1fr;

    dt {
      white-space: normal;
      padding-bottom: 0;
      padding-top: 0.85rem;
      font-size: 0.75rem;
      color: #888;
    }

    dd {
      padding-top: 0.2rem;
    }

    dt,
    dd {
      background: none !important;
    }
  }

  .member-card__link {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .member-card__logo {
    width: 80px;
    height: 56px;
    padding: 0.5rem;
  }

  ul.member-cards {
    grid-template-columns: 1fr;
  }
}