/* org-cards.css : load after directory-green.css */

.org-cards { margin-bottom: 32px; }

.org-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 32px 24px;
  background: var(--white);
  border: 1px solid var(--bright-gray);
  border-radius: 12px;
}

/* title left, logo right */
.org-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  min-height: 84px;
}
.org-card__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--key);
}
.org-card__title a { color: inherit; text-decoration: none; }
.org-card__title a:hover { text-decoration: underline; }
.org-card__logo {
  flex: 0 0 auto;
  width: auto;
  max-width: 140px;
  height: 84px;
  object-fit: contain;
}

/* description, clamped to 4 lines */
.org-card__desc {
  margin: 16px 0 24px;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* arrow button pinned bottom-right */
.org-card__foot { margin-top: auto; display: flex; justify-content: flex-end; }
.org-card__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--c4);
  color: var(--key);
  text-decoration: none;
  transition: background .15s;
}
.org-card__go:hover { background: var(--c3); color: var(--key); }
.org-card__go:focus-visible { outline: 2px solid var(--key); outline-offset: 2px; }

@media (max-width: 575.5px) {
  .org-card { padding: 20px; }
  .org-card__head { flex-direction: column-reverse; align-items: flex-start; min-height: 0; }
}
