.fgc-volunteers {
  margin-top: 46px;
  padding-top: 32px;
  border-top: 2px solid var(--fgc-line);
}

.fgc-volunteers__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.fgc-volunteers__heading h3 {
  margin: 4px 0 5px;
}

.fgc-volunteers__heading p:last-child {
  max-width: 650px;
  margin: 0;
  color: #5d655a;
}

.fgc-volunteers__add {
  flex: 0 0 auto;
}

.fgc-volunteers__add>summary {
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--fgc-green);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.fgc-volunteers__add[open] {
  flex: 1 1 100%;
  padding: 18px;
  border: 1px solid var(--fgc-line);
  border-radius: 12px;
  background: #fff;
}

.fgc-volunteers__add[open]>summary {
  width: max-content;
  margin-bottom: 18px;
}

.fgc-volunteers__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.fgc-volunteers__metrics>div {
  padding: 14px;
  border-radius: 9px;
  background: var(--fgc-pale);
}

.fgc-volunteers__metrics strong,
.fgc-volunteers__metrics span {
  display: block;
}

.fgc-volunteers__metrics strong {
  font-size: 24px;
}

.fgc-volunteers__metrics span {
  font-size: 13px;
}

.fgc-volunteers__cards {
  display: grid;
  gap: 14px;
}

.fgc-volunteer-card {
  overflow: hidden;
  border: 1px solid var(--fgc-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(42, 58, 38, .06);
}

.fgc-volunteer-card>header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: #f8faf6;
}

.fgc-volunteer-card h4,
.fgc-volunteer-card h5 {
  margin: 0;
}

.fgc-volunteer-card>header p {
  margin: 3px 0 0;
  color: #5d655a;
}

.fgc-volunteer-card__archived {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e6e9e2;
  font-size: 12px;
  font-weight: 700;
}

.fgc-volunteer-card__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--fgc-line);
}

.fgc-volunteer-card__checks>section {
  padding: 18px 20px;
  background: #fff;
}

.fgc-volunteer-card__checks>section>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fgc-volunteer-card__checks span {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.fgc-volunteer-card__checks span.is-current {
  background: #dfeedd;
  color: #315c2f;
}

.fgc-volunteer-card__checks span.is-expiring {
  background: #f5eedc;
  color: #765c1d;
}

.fgc-volunteer-card__checks span.is-attention {
  background: #f8e5e1;
  color: #8a3429;
}

.fgc-volunteer-card__checks dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0 0;
}

.fgc-volunteer-card__checks dt {
  color: var(--fgc-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fgc-volunteer-card__checks dd {
  margin: 4px 0 0;
}

.fgc-volunteer-card__notes {
  margin: 0;
  padding: 15px 20px;
  border-top: 1px solid var(--fgc-line);
  color: #5d655a;
}

.fgc-volunteer-card>details {
  border-top: 1px solid var(--fgc-line);
}

.fgc-volunteer-card>details>summary {
  padding: 13px 20px;
  color: var(--fgc-green);
  cursor: pointer;
  font-weight: 700;
}

.fgc-volunteer-card__edit {
  padding: 18px 20px 20px;
  background: #fafbf9;
}

.fgc-volunteer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fgc-volunteer-form>label,
.fgc-volunteer-form__credential,
.fgc-volunteer-form__hint,
.fgc-volunteer-form>button {
  grid-column: 1 / -1;
}

.fgc-volunteer-form__credential {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--fgc-line);
  border-radius: 9px;
  background: #fff;
}

.fgc-volunteer-form__dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fgc-volunteer-form__active {
  display: grid !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
}

.fgc-volunteer-form__active input {
  width: auto;
}

.fgc-volunteer-form__hint {
  margin: 0;
  color: #5d655a;
  font-size: 13px;
}

.fgc-volunteer-card__archive {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--fgc-line);
}

.fgc-volunteer-card__archive button {
  border: 1px solid #a34a3f;
  background: #fff;
  color: #8a3429;
}

.fgc-volunteers__empty {
  padding: 24px;
  border: 1px dashed #bfcbb9;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.fgc-volunteers__archived {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--fgc-line);
}

.fgc-volunteers__archived>summary {
  margin-bottom: 12px;
  color: var(--fgc-green);
  cursor: pointer;
  font-weight: 700;
}

.fgc-volunteer-card.is-archived {
  opacity: .78;
}

@media (max-width: 680px) {
  .fgc-volunteers {
    margin: 40px 12px 0;
    padding-top: 28px;
  }

  .fgc-volunteers__heading {
    display: grid;
    align-items: stretch;
  }

  .fgc-volunteers__add,
  .fgc-volunteers__add>summary {
    width: 100%;
  }

  .fgc-volunteers__add>summary {
    text-align: center;
  }

  .fgc-volunteers__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fgc-volunteer-card__checks,
  .fgc-volunteer-form,
  .fgc-volunteer-form__dates {
    grid-template-columns: 1fr;
  }

  .fgc-volunteer-card__checks>section,
  .fgc-volunteer-card__edit {
    padding: 16px;
  }

  .fgc-volunteer-card__checks>section>div {
    align-items: flex-start;
  }
}
